Scope: staging, subdomains, directories
Alternate Hostnames, IP Addresses and CDN URLs That Keep Sites Indexed
You removed the site, but search still shows it. In many cases Google is showing a different address for the same content. This is the inventory that finds them.
The hidden multiplier
Google's removal guidance tells you to protect or remove all URL variations, since different URLs can point to the same page. The same principle scales up to hostnames. A single site may be reachable through several hostnames, and each one can be indexed independently.
The inventory
| Variant | How to find it | Typical fix |
|---|---|---|
http:// and https:// | Test both manually | Both covered by a prefix removal; fix at server too |
www and non-www | Test both | Same |
| Bare IP address | Open http://<server-ip>/ | Make the default vhost return 404 or redirect |
| Hosting platform hostname | Check hosting dashboard | Disable, redirect or noindex |
| CDN or storage hostname | Look at asset URLs in page source | Header or access control on the CDN |
| Preview or branch URLs | CI/CD and host settings | Auth or expiry |
| Old domains and aliases | Registrar and DNS | Apply the same signal or redirect |
| Wildcard subdomains | DNS zone | Default vhost returns an error |
| Language and mobile hosts | m. or en. prefixes | Apply signal on each |
Discovery methods
- Search Console Domain property. The Pages report lists hostnames Google has indexed or encountered under your registered domain.
- DNS zone export. Every A, AAAA and CNAME record is a candidate.
- Certificate transparency logs. Public search tools list certificates issued for your domain, which reveals hostnames that were once live.
- Page source. Search for absolute URLs on other hosts: image CDN, script host, download host.
- Server and CDN logs. Look at the Host header values that receive traffic.
- Search queries.
site:queries on suspect hostnames, and distinctive phrases from your pages in quotes.
IP addresses and default virtual hosts
If a server answers for any hostname, it will answer for its own IP. Search engines rarely index bare IPs deliberately, but links can exist in the wild. Configure the default server block to return a 404 or close the connection, and let only explicit server names serve your site. This is a hygiene fix, not a one-off.
CDN and asset hostnames
Assets such as images and PDFs on a CDN hostname can be indexed in their own right, and HTML pages mirrored on a CDN hostname can appear in results. Options: restrict the CDN to serve only non-HTML assets; add X-Robots-Tag: noindex on CDN responses for files you do not want listed; or require signed URLs. Google's robots documentation explains that the header suits non-HTML files such as PDFs, images and videos.
Hosting platform and preview hostnames
Many platforms give you a default hostname and may create one per deployment. If you cannot verify ownership of that hostname in Search Console, you cannot use the Removals tool on it, so rely on permanent signals: disable the deployment, require authentication, or return noindex via the platform's header configuration. If the platform offers a setting to disable public preview URLs or restrict access, use it. For content you do not control, the third-party flows apply; see removing someone else's content.
Duplicate hostnames and canonicals
Sometimes the right answer is not removal but consolidation. If the same site is reachable at several hostnames and you want one, use 301 redirects from the alternates to the primary hostname and set canonical tags to the primary. Deindexing is for hostnames that should not exist in search at all. A mix of both is common: redirect real aliases, noindex or remove junk ones.
Order of operations
- Inventory hostnames.
- For each, decide: redirect, noindex, auth or gone.
- Verify ownership where possible (a Domain property saves time).
- File prefix removals per hostname, because Search Console states subdomains are not affected by another host's prefix removal.
- Re-check with
site:for each host after a week, then monthly.
Why this keeps going wrong
Teams focus on the primary hostname because that is the one they see. The leftover results are usually the hostnames nobody remembers. Add the inventory to your runbook for every site you manage, and update it when infrastructure changes.
Checklist
- Every hostname that served the site is listed
- Each has a documented signal (redirect, noindex, auth, gone)
- Default virtual host returns an error for unknown names
- CDN serves only intended file types, with noindex where needed
- Preview deployments are access-controlled or expire
- Removals filed per verifiable hostname
- Follow-up
site:checks scheduled
Worked example: the forgotten origin host
A site fronted by a CDN had its origin reachable at a direct hostname, origin.example.com, set up during launch. The CDN hostname carried the noindex header after a cleanup; the origin hostname did not, because the header rule lived in the CDN configuration only. The origin hostname had been linked from one old email archive and was indexed.
The fix had three parts: add the header at the origin so it applies regardless of path, restrict the origin to accept traffic only from the CDN, and file a prefix removal on the origin hostname's property. The root cause was a signal applied at one layer while another layer served the same content.
Layers to check
| Layer | Question |
|---|---|
| Application | Does it emit the signal for every route? |
| Web server | Does it add headers for every virtual host? |
| CDN or proxy | Is the rule applied to every hostname it serves? |
| DNS | Does any record point to a host you forgot? |
Frequently asked questions
Can Google index my server's IP address?
If it serves content and is linked or discovered, it can. Make the default host return an error.
Do I need to deindex the CDN?
If it serves HTML copies of your pages, yes. For plain assets, decide whether you want images and files listed and apply X-Robots-Tag accordingly.
What if I cannot verify the platform's hostname?
Use permanent signals at the platform level and rely on recrawl, since the Removals tool needs ownership.
Is redirecting aliases better than noindexing them?
For aliases that real users reach, yes. Noindex suits hostnames that should never be public.
Official sources
Keep reading
- Pillar: How to Deindex a Website From Google and Bing: The Complete Guide
- Domain Properties vs URL-Prefix Properties for Site Removal
- How to Deindex a Subdomain Without Touching the Main Site
- How to Deindex a Staging or Dev Site That Got Indexed
- 15 Mistakes That Keep a Website Indexed After You Try to Remove It