Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Mirror domain or IP address serving your site with 200: fix

SEO-065Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

A web server can answer to many names. Besides www.example.com, it may also answer to its raw IP address (for example http://203.0.113.10), a host-provided address such as example.hostingplatform.com, or a second domain you bought and pointed at the same server. If each of these returns the full site with a 200 OK status, they are mirrors: exact copies of your site on other addresses.

How a mirror splits your site
  1. Crawler finds a linkTo the IP or spare domain
  2. Server returns 200Full site, no redirect
  3. Copy gets indexedCompetes with your real domain
  4. Signals splitLinks and rankings spread out

The same content answers on several hostnames, and nothing points search engines to the right one.

Why it costs you leads or sales

Mirrors also cause practical problems for leads and sales:

What can go wrong
  • Search results show an IP or hosting URL, which looks untrustworthy and gets fewer clicks.
  • Links from other sites point at the mirror, so their value does not reach your main domain.
  • Analytics and ad platforms may not recognise the hostname, so conversions are missing or split.
  • Forms, payment gateways or cookie consent tools tied to your real domain can fail on the mirror, so visitors who land there cannot convert.
  • Crawl budget is spent on copies instead of your important pages.
Where organic visits landExample numbers
Where organic visits land (example)Main domain (before): 70 % of visits; Mirror (before): 30 % of visits; Main domain (after): 100 % of visits038777030100Main domain (before)Mirror (before)Main domain (after)% of visits

Example: illustrative split when a mirror is indexed. After redirecting, all visits land on the main domain.

How to check if your site has it

Find mirrors on your own
  1. Open your server IP in a browser

    Find the IP in your hosting panel or with ping example.com. Visit http://IP and https://IP. If your site loads, the IP is a mirror. A certificate warning does not matter for this test.

  2. Test the response status

    Run the curl command below. Anything other than a 301 or 308 to your real domain, or a refusal such as 403, 404 or a closed connection, needs attention.

  3. Check host-provided and spare domains

    List every domain and subdomain pointed at the site: the hosting temporary URL, old brand domains, typo domains and country domains. Load each one and note the status.

  4. Search Google for copies

    Search site:203.0.113.10 with your IP, site:oldbrand.com and site:hostingplatform.com "your brand". Any results mean a mirror was indexed.

  5. Check Google Search Console

    In the Pages report, look for the status Duplicate without user-selected canonical and inspect a few URLs. The inspection result shows which URL Google chose as canonical and which hostname it crawled.

Check how the IP and a spare hostname respondbash
# Replace with your server IP and your real domain
curl -I http://203.0.113.10/
curl -Ik https://203.0.113.10/

# Ask the server for your site by IP while sending your real Host header
curl -I -H "Host: spare-domain.com" http://203.0.113.10/

# Good result: HTTP/1.1 301 with Location: https://www.example.com/
# Bad result: HTTP/1.1 200 OK

How to fix it

The principle is the same everywhere: pick one canonical hostname, and make every other hostname either 301 redirect to it or refuse the request. The exact place to do it depends on your platform.

Redirect mirrors by platform
  1. Confirm the site address

    In Settings > General, make sure WordPress Address and Site Address use your real https domain.

  2. Add a host redirect

    On Apache hosting, add the rule from the Custom code tab to the top of .htaccess, above the WordPress block. On Nginx hosting, ask your host or edit the server config.

  3. Handle the host URL

    Many managed hosts offer a setting to redirect the temporary or staging URL to the live domain. Check your hosting dashboard.

Apache .htaccess: send any other host to the main domainhtaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
Nginx: catch-all server for unknown hosts and the IPnginx
server {
    listen 80 default_server;
    listen 443 ssl default_server;
    server_name _;
    ssl_certificate     /etc/ssl/certs/ssl-cert-snakeoil.pem;
    ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
    return 301 https://www.example.com$request_uri;
}

How to confirm it's fixed

Mirror responses before and after

Before

  • http://IP returns 200 with your home page
  • Spare domain returns 200 with the full site
  • site: searches show mirror URLs

After

  • http://IP returns 301 to your main domain, or is refused
  • Spare domain returns 301 to the same path on the main domain
  • Mirror URLs drop out of search over time
Verify the fix
  1. Re-run the curl checks

    Every alternative hostname should return 301 (or 308) with a Location header on your main domain, or be refused.

  2. Check that paths carry over

    Load a deep URL on the mirror, such as /pricing. It should land on the same path on the main domain, not just the home page.

  3. Inspect in Search Console

    Use URL Inspection on the main domain pages to confirm the Google-selected canonical is your preferred URL. Request removal of old mirror URLs in the Removals tool if they linger.

  4. Wait and re-search

    Repeat the site: searches after a few weeks. Results for mirrors should shrink.

How to prevent it happening again

Prevention checklist
  • Keep a list of every domain and subdomain that points at your hosting, and review it when you add or retire a domain.
  • Configure a default server that redirects or refuses unknown hostnames when you set up a new server.
  • Set the primary domain in your platform whenever you connect an extra domain.
  • Use absolute canonical tags and sitemap URLs on your real domain only.
  • Turn off indexing on host-provided preview URLs.
  • After a migration or host change, re-run the IP and spare-domain checks.

How FunnelGuard handles this

FunnelGuard does not check for mirror domains or IP address access yet. It is a possible future check.

What FunnelGuard does today is run your real customer journeys on a schedule, from the EU or the US, on the domain you give it. It checks each step of lead forms, checkouts and booking or chat buttons, the tracking hits sent to ad and analytics platforms, and whether test leads reach your inbox and CRM. If a redirect or server change breaks one of those journeys, that is the kind of failure it re-checks from a second region before sending one alert with a screenshot and a likely cause. It will not tell you that a second hostname is serving a copy of your site.

To watch for mirrors, use manual or other tools: repeat the curl checks after every hosting change, run site: searches for your IP and spare domains each quarter, and review the Pages report in Google Search Console. A site crawler such as Screaming Frog can also be pointed at the IP address to see what it serves. A free FunnelGuard plan covers 1 site and 2 journeys with daily checks and no card, and every paid plan has a 3-day free trial.

Questions people ask

Why is my website accessible through its IP address?

Web servers answer requests even when the hostname is not the one you set up, unless a default server rule says otherwise. If the first or only site on the server is yours, it serves it for the IP too. Add a catch-all rule that redirects or refuses unknown hosts.

Is it bad for SEO if my site loads on its IP address?

It can be. If search engines find and index the IP version, they see duplicate content and may split signals between the IP and your domain. Many IP versions are never indexed, but a 301 redirect removes the risk.

How do I redirect an IP address to my domain?

Add a rule at the server that matches any host other than your domain and returns a 301 to the same path on your domain. On Apache use a RewriteCond on HTTP_HOST in .htaccess, and on Nginx use a default_server block with a return 301. Test with curl -I afterwards.

How do I stop Google indexing my hosting provider's temporary URL?

Redirect the temporary URL to your live domain with a 301, or use your host's setting to password protect it or disable indexing. Then use the Removals tool in Search Console for any URLs already listed. Do not only block it in robots.txt, because that stops crawlers seeing the redirect.

Should I use a canonical tag or a 301 redirect for a mirror domain?

Use a 301 redirect. A canonical tag is a hint that search engines can ignore, and visitors still land on the mirror. You can keep a self-referencing canonical on your main domain pages as a backup.

How do I find out if another domain is serving a copy of my site?

Search Google for site:otherdomain.com, load each domain pointed at your hosting, and run curl -I against them. Check the Pages report in Google Search Console for duplicates without a user-selected canonical. Any hostname returning 200 with your content is a mirror.

Does FunnelGuard detect mirror domains or IP access?

No. FunnelGuard does not check this yet, and it is a possible future check. Use curl, site: searches, Search Console and a crawler to watch for it.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.