Cloudflare Error 1000 "DNS points to prohibited IP": the fix

Cloudflare Error 1000 means a DNS record leads Cloudflare back to itself, usually an A record holding a Cloudflare IP. How to find it and fix it.

Simon, Founder of Shipyard

By · Founder of Shipyard

6 minute read

The short answer

Cloudflare Error 1000 "DNS points to prohibited IP" means a DNS record in your zone sends Cloudflare back into its own network, so it refuses the request with HTTP status 403. The most common cause is an A record that holds a Cloudflare IP address, usually one copied from a dig or ping of a hostname that is already proxied. Replace it with the value your host gives for that exact hostname, such as the CNAME target Railway shows or the A record value on Vercel's Domains page, and the error clears within minutes.

What you see, and where you do not see it

The page comes from Cloudflare, not from your app. That is why your host's logs stay empty while visitors get an error: the request never left Cloudflare. A quick curl -sI shows the signature, a 403 with Cloudflare's own headers.

If a request carries a cf-ray header and server: cloudflare, Cloudflare answered it. Note the Ray ID; it identifies the request if you ever need Cloudflare support.

Text
$ curl -sI https://lanternbook.app
HTTP/2 403
server: cloudflare
cf-ray: 8f2a61c0d9e4b7a1-AMS

# In the browser
Error 1000
DNS points to prohibited IP

Cloudflare's list of causes, translated

Cloudflare's documentation for Error 1000 lists the situations below. For an app built with an AI coding tool and hosted on Railway or Vercel, the first row covers nearly every case. The others matter if you run your own server, use Cloudflare Load Balancing, or point the domain at a platform that itself runs on Cloudflare.

CauseHow it shows up in a small appFix
A record points to a Cloudflare IPContent starts with 104.16 to 104.27, 172.64 to 172.71, or another range on cloudflare.com/ipsReplace it with your host's value
Load Balancer origin points to a proxied recordOnly if you use Cloudflare Load BalancingPoint the origin at the real server
Origin reverse proxy sends the request back through CloudflareAn nginx proxy_pass to a proxied hostnameUse an HTTP redirect at the origin instead
X-Forwarded-For longer than 100 charactersRequests that pass through several proxies before CloudflareRemove proxies from the chain
Two X-Forwarded-For headersA proxy that adds a second header instead of extending oneSend a single header
Request includes CF-Connecting-IPA client or proxy sets the header itselfStop sending it
SNI issue or mismatch at the originThe TLS hostname does not match the siteCheck the origin's TLS settings
SaaS provider on Cloudflare for SaaS with BYOIP, no custom hostnameYour record points at a builder or platformAdd the domain inside that platform

A worked example: the copied address

Take a small app, lanternbook.app, running on Railway. The www record is a proxied CNAME to the Railway target and loads fine. For the bare domain the developer wanted an A record, ran dig +short www.lanternbook.app, got 104.21.48.10, and pasted that into an A record for @. From that moment lanternbook.app showed Error 1000.

The address was never Railway's. A proxied record does not reveal its target to a DNS query. Cloudflare's proxy documentation says a query for a proxied record is answered with Cloudflare anycast addresses instead of the origin. So the new A record told Cloudflare to send the bare domain's traffic to Cloudflare, and Cloudflare refused.

The fix was to delete that A record, add lanternbook.app as a separate custom domain on the Railway service, and create the CNAME and TXT records Railway showed for it. Cloudflare accepts a CNAME at the apex and flattens it into an address on its side. Railway's own domain guide describes exactly this setup for Cloudflare.

Check whether an address belongs to Cloudflare

Cloudflare publishes its ranges at cloudflare.com/ips. As of December 2026 the list holds 15 IPv4 ranges and 7 IPv6 ranges. Read the record as Cloudflare stores it, not as DNS returns it, then test the stored value against the list.

Terminal
# 1. The record as stored (or open DNS > Records in the dashboard)
curl -s "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records?name=lanternbook.app" \
  -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" | jq '.result[] | {type, content, proxied}'

# 2. Cloudflare's published IPv4 ranges
curl -s https://www.cloudflare.com/ips-v4

# 3. Is this address inside one of them? Prints True or False.
python3 -c "import ipaddress,sys,urllib.request as u; ip=ipaddress.ip_address(sys.argv[1]); print(any(ip in ipaddress.ip_network(n) for n in u.urlopen('https://www.cloudflare.com/ips-v4').read().decode().split()))" 104.21.48.10

Fixing it for Railway or Vercel

When your own server sends the request back

The second family of causes is a loop. Cloudflare's example is an nginx server whose proxy_pass forwards requests to a hostname that is itself proxied by Cloudflare, so each request enters Cloudflare a second time. The header causes in the table usually come from similar chains: a proxy that adds a second X-Forwarded-For header, one that lets that header grow past 100 characters, or a client that sets CF-Connecting-IP on its own.

Cloudflare's advice for the loop is to drop the reverse proxy and configure an HTTP redirect at the origin. If one of your services really has to fetch from another, point it at the other service's direct address or a private network name, not at the public domain that sits behind the orange cloud.

When the domain points at a platform built on Cloudflare

Some site builders and SaaS platforms serve customer domains through Cloudflare for SaaS, sometimes on their own IP ranges (BYOIP). If your record points at one of them and the platform has not set up a custom hostname for your domain, Cloudflare returns Error 1000. Cloudflare's documentation is explicit that this error then comes from the provider's Cloudflare account, not yours.

Nothing in your own zone fixes it. Add the domain inside the platform's dashboard, finish whatever verification it asks for, and if the error stays, ask the platform's support to confirm that a custom hostname for your domain is active.

How to confirm it is fixed

Proxied records use a fixed TTL of 300 seconds, so a corrected record should take effect within about five minutes, although your own computer may cache the old answer a little longer. Then run through these checks.

Keeping it from coming back

Copy record values from the host's domain page every time, never from a lookup of a domain that is already live. Add each new record as DNS only until the site works, then decide about the proxy; our guide to Cloudflare DNS for a new app explains that trade-off record by record. If you script DNS changes, make the script refuse any A or AAAA content that falls inside Cloudflare's published ranges.

Shipyard writes the records your host asks for into Cloudflare as DNS only when it connects a domain, taking the values from the host rather than from a lookup, so a copied anycast address never ends up in the zone.

Sources

Launch in an hour, not a weekend

Shipyard connects your accounts once, then sets up the domain, hosting, database, email and payments for every new product.

Get started See how it works

Read next