IP Canonicalization Test

Last updated:

Check whether your raw IP address redirects to your canonical domain. We resolve your IP, request the site directly, and confirm whether the server consolidates to one address the way search engines prefer.

Enter your domain to run the test:

How the Test Works

  1. Resolve the IP, your domain is looked up to its A record.
  2. Request by IP, our server fetches the site directly by the raw IP.
  3. Inspect the response, we check for a redirect to your domain.
  4. Report the result, you get a pass or a clear fix recommendation.

Why It Matters

  • One canonical home, signals consolidate to your domain, not an IP.
  • Avoid duplicate content, prevents the same site indexing twice.
  • Cleaner analytics, traffic is attributed to the proper hostname.
  • Better hygiene, a tidy redirect setup signals a well-run site.

Canonicalization is one of many signals search engines weigh. Our SEO services fix redirects, duplicate URLs, and crawl issues so engines see one clean version of every page.

IP Canonicalization Scenarios Reference

Canonicalization is about making sure each page is reachable at exactly one URL, with every other variant redirecting to it. These are the three scenarios that matter most, what the correct behavior is, and why it helps. The fix in every case is a server-side 301 permanent redirect to the canonical address.

Scenario Correct behavior Why
IP-only accessA request to the raw IP (or a missing/invalid Host header) returns a 301 to the canonical domain.Stops the same site answering at both an IP and a domain, which can cause duplicate indexing and exposes the origin.
www vs non-wwwOne host is canonical; the other 301 redirects to it, consistently across the whole site.Serving content at both www and the bare domain splits signals between two URLs that look like separate pages.
HTTP to HTTPSEvery HTTP URL 301 redirects to its HTTPS equivalent.Guarantees one secure canonical address and avoids insecure duplicates of every page.

How to set the 301: on Nginx, add a catch-all default server block that issues return 301 https://your-domain.com$request_uri;. On Apache, use a catch-all VirtualHost or a RewriteRule that tests the %{HTTP_HOST} against your canonical domain. On most managed hosts and CDNs, set the canonical domain or a redirect rule in the dashboard. Use 301 (permanent), never 302, so ranking signals consolidate.

Next steps

IP Canonicalization Test related tools and articles

Continue with the closest follow-up checks and guides based on this tool's topic, crawl intent, and optimization workflow.

IP Canonicalization Test: FAQ

What does this test do?
It resolves the submitted hostname's public IPv4 A records through Cloudflare DNS, selects the first address, requests the root over plain HTTP by IP, and checks whether the first response is a 3xx redirect to the submitted domain, ignoring a leading www.
What counts as a passing result?
Pass means the direct http://IP/ response returned a Location whose hostname matches the submitted domain after normalizing www. The tool does not follow that redirect or verify the destination response, path behavior, HTTPS certificate, or canonical tag.
Why can a healthy CDN-hosted site fail?
Shared hosts and CDNs often serve many domains from one IP and route by the Host header or TLS SNI. A raw-IP request may return a default site, error, or no response by design. Treat the result as configuration evidence, not an automatic SEO defect.
Does the test check every server address?
No. It reports all resolved IPv4 addresses but tests only the first one. It does not query AAAA records or test IPv6, and DNS answers can vary by resolver, geography, and time.
Does the request preserve my domain in the Host header?
No. The direct request is made to the numeric IP, so the HTTP host is the IP rather than the submitted domain. That tests the server's raw-IP default behavior, not the named virtual host.
What should I change after a failure?
First decide whether direct-IP traffic is under your control and whether a redirect is appropriate. On a dedicated origin, configure the default HTTP virtual host to redirect to the canonical hostname. On shared hosting or a CDN, consult the provider before changing routing.
Why might the test return no result?
The hostname may lack a public IPv4 address, the first address may reject or time out on port 80, or the endpoint may block a private or reserved destination. HTTPS-only origins can also intentionally avoid answering raw HTTP by IP.
What data is sent during this test?
The submitted hostname is sent to Web Aloha's server. The endpoint performs a public DNS lookup and a direct HTTP request to the resolved address, then returns those signals. It does not include application logic that stores page content.

Free 48-Hour Website Audit

Not sure what to fix first on your own website? We'll review it and tell you, in plain English. Free & non-obligatory.

Want Your Technical SEO Done Right?

We fix canonicalization, redirects, and crawl issues so search engines see one clean version of your site.