deindexwebsites.com

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.

By the deindexwebsites.com editorial team · Updated

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

VariantHow to find itTypical fix
http:// and https://Test both manuallyBoth covered by a prefix removal; fix at server too
www and non-wwwTest bothSame
Bare IP addressOpen http://<server-ip>/Make the default vhost return 404 or redirect
Hosting platform hostnameCheck hosting dashboardDisable, redirect or noindex
CDN or storage hostnameLook at asset URLs in page sourceHeader or access control on the CDN
Preview or branch URLsCI/CD and host settingsAuth or expiry
Old domains and aliasesRegistrar and DNSApply the same signal or redirect
Wildcard subdomainsDNS zoneDefault vhost returns an error
Language and mobile hostsm. or en. prefixesApply signal on each

Discovery methods

  1. Search Console Domain property. The Pages report lists hostnames Google has indexed or encountered under your registered domain.
  2. DNS zone export. Every A, AAAA and CNAME record is a candidate.
  3. Certificate transparency logs. Public search tools list certificates issued for your domain, which reveals hostnames that were once live.
  4. Page source. Search for absolute URLs on other hosts: image CDN, script host, download host.
  5. Server and CDN logs. Look at the Host header values that receive traffic.
  6. 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

  1. Inventory hostnames.
  2. For each, decide: redirect, noindex, auth or gone.
  3. Verify ownership where possible (a Domain property saves time).
  4. File prefix removals per hostname, because Search Console states subdomains are not affected by another host's prefix removal.
  5. 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

LayerQuestion
ApplicationDoes it emit the signal for every route?
Web serverDoes it add headers for every virtual host?
CDN or proxyIs the rule applied to every hostname it serves?
DNSDoes 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