Unfinished Work, Public URLs: The Pre-Launch Privacy Pass We Run Before DNS
Photo: developer reviewing staging website access settings on laptop in small studio office, via www.training.com.au
Every studio has a version of this story. A preview link gets pasted into a client email, forwarded to a colleague, opened on a train, and then quietly indexed by a search engine. Nobody meant to publish the unfinished homepage, the test invoice with a real customer name, or the staging dashboard that still says 'Acme Corp — internal review'. It is not a dramatic breach. It is worse in some ways: it is ordinary. A public URL that should have been private is the default outcome of modern preview tooling unless someone deliberately closes the door.
That is why we treat pre-launch privacy as a short, repeatable studio ritual rather than a final checkbox. The DNS switch is the loud part. The privacy pass is the quiet part that stops unfinished work and client data spilling into public view.
Why this belongs in the studio calendar
Small teams often rely on preview environments because they are useful: clients can click around, designers can test copy, developers can check a build against a real domain. But preview URLs multiply. There is the main staging site, the branch preview, the old Netlify deploy from three weeks ago, the CMS preview domain, and the API sandbox that someone bookmarked. Each one is a potential front door with a sticky note on it.
Under UK GDPR, personal data has to be handled with appropriate technical and organisational measures. The ICO's guidance on data protection by design is not just about production systems. If a staging site contains real names, email addresses, support tickets, uploaded documents or even IP addresses in logs, it is in scope. A public preview environment full of client data is not a neutral test rig. It is a processing activity with a very casual access policy.
So we run a 45-minute pass before launch. It is not a legal audit and it is not glamorous. It is the sort of thing a studio owner can do with one coffee and a browser tab full of settings.
Start at the front door, not the homepage
Open every URL you can find. Start with the staging domain, then branch previews, CMS previews, API docs, admin panels and any old deploy links in Slack or project notes. For each one, ask a blunt question: does this require authentication before any content appears?
A login screen is good. A login screen that loads the app shell, client names and a few records behind a modal is less good. HTTP basic auth at the edge is fine for a quick preview, but rotate the credentials and do not leave them in a shared document that outlives the project. If your platform supports it, use an allowlist for studio and client IPs, or a short-lived access token. The obscure URL is not a security control. It is a hope.
We also check the obvious leaks: public sitemaps, RSS feeds, debug pages, health checks that return environment variables, and error pages that reveal framework versions or file paths. None of these are glamorous findings. They are exactly the sort of thing a curious person finds in five minutes.
Tell search engines to stay out — twice
A robots.txt disallow is not a privacy measure. It asks well-behaved crawlers not to crawl, but it does not stop a page being linked, shared or indexed by other means. Use a noindex meta tag on preview pages and, where possible, an X-Robots-Tag: noindex header at the server or edge. Do both. Belt and braces is appropriate here.
Then check the sitemap. If staging generates a sitemap.xml, make sure it is not advertising every draft page and test product. The same goes for canonical URLs: a preview page that points its canonical at the production domain can confuse search engines, but a preview page with no canonical and no noindex is a small invitation.
If a preview URL has already been indexed, use Google Search Console and Bing Webmaster Tools to request removal. Clear the cache if a stale version is still visible. This is also a good moment to check whether the production domain has any unexpected subdomains pointing at old environments. DNS records are part of the privacy surface, even if they feel like infrastructure plumbing.
Sample data is still data
The fastest way to make a staging site realistic is to copy production. It is also the fastest way to create a data protection problem. Real customer names, order histories, support messages, uploaded files and email addresses do not become harmless because they are on a staging domain. They are still personal data. They still need a lawful basis, access controls and a retention plan.
We replace production data with synthetic records before a preview goes to a client. If a realistic dataset is genuinely needed for testing, anonymise it properly and document what was done. Do not rely on a find-and-replace of first names. Check database dumps, media libraries, email logs, CSV exports and the sample content in the CMS. The most common leak we see is not a database at all; it is a folder of client-supplied PDFs sitting in a public uploads directory.
This is also a good time to check logs. If staging is sending error reports or analytics events to a third-party service, those logs may contain URLs, form values or user identifiers. A public preview plus verbose logging is a quiet way to spread data further than intended.
Third-party scripts are little leaks
Analytics, tag managers, chat widgets, session replay tools, payment sandboxes and A/B testing scripts all deserve a look. Many of them are configured with production keys because it was quicker. That means staging activity can land in the same dashboard as real customer behaviour, or a chat widget can invite a member of the public to start a conversation about an unfinished product.
We disable non-essential scripts on preview environments, or use separate staging keys with clear labels. If a script must stay for testing, confirm what it sends and where it goes. Session replay tools are particularly worth checking: they can record form inputs, page text and mouse movements. On a staging site full of sample client data, that is not a neutral test.
The 45-minute pass
We block the time and work in order: ten minutes on authentication and URL discovery, ten on search engine controls and caches, ten on sample data and uploads, ten on third-party scripts and logs, and five minutes writing down what we found. The written note matters. It becomes part of the handover and gives the next person a starting point.
Printable checklist
- Every preview, staging and branch URL requires authentication
- Old deploy links and CMS preview domains are disabled or protected
- Staging credentials are rotated and not stored in shared notes
- Preview pages send noindex meta tags and X-Robots-Tag headers
- Staging sitemaps are disabled or excluded from search engines
- Indexed preview URLs have been removed from Google and Bing
- Production data has been replaced with synthetic or properly anonymised records
- Uploads, exports, logs and email queues contain no client personal data
- Analytics, chat, replay and payment scripts use staging keys or are disabled
- Error pages and debug endpoints reveal no secrets or environment details
- The sweep is recorded in the launch handover with a date and owner
None of this takes a full day. It takes less time than explaining to a client why their test product page appeared in a search result. The pre-launch privacy pass is a small-studio habit worth keeping: unfinished work can stay unfinished, and private links can stay private.