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.
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.
$ curl -sI https://lanternbook.app
HTTP/2 403
server: cloudflare
cf-ray: 8f2a61c0d9e4b7a1-AMS
# In the browser
Error 1000
DNS points to prohibited IPCloudflare'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.
| Cause | How it shows up in a small app | Fix |
|---|---|---|
| A record points to a Cloudflare IP | Content starts with 104.16 to 104.27, 172.64 to 172.71, or another range on cloudflare.com/ips | Replace it with your host's value |
| Load Balancer origin points to a proxied record | Only if you use Cloudflare Load Balancing | Point the origin at the real server |
| Origin reverse proxy sends the request back through Cloudflare | An nginx proxy_pass to a proxied hostname | Use an HTTP redirect at the origin instead |
X-Forwarded-For longer than 100 characters | Requests that pass through several proxies before Cloudflare | Remove proxies from the chain |
Two X-Forwarded-For headers | A proxy that adds a second header instead of extending one | Send a single header |
Request includes CF-Connecting-IP | A client or proxy sets the header itself | Stop sending it |
| SNI issue or mismatch at the origin | The TLS hostname does not match the site | Check the origin's TLS settings |
| SaaS provider on Cloudflare for SaaS with BYOIP, no custom hostname | Your record points at a builder or platform | Add 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.
# 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.10Fixing it for Railway or Vercel
- Railway: add the exact hostname as a custom domain on the service and copy both values it shows, a CNAME target and a TXT record. Railway says a missing TXT record leaves the domain returning 404 even after the CNAME resolves.
- In Cloudflare, delete every A or AAAA record on that name that holds a Cloudflare address. Then create the CNAME with Railway's target. On the bare domain use
@as the name; Cloudflare flattens it. - If you keep the Railway record proxied, set SSL/TLS to Full. Railway's guide says Full (strict) will not work as intended for proxied domains.
- Vercel: take the A record value or CNAME target from the project's Settings, then Domains. Vercel assigns these per project, so values from another project or a tutorial can be wrong.
- Vercel recommends connecting directly where possible, which means setting the Cloudflare records to DNS only. If you must proxy, use Full (strict), as Vercel's guide asks.
- Whatever the host, never type an address you got from looking up a live, proxied hostname. It will always be Cloudflare's.
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.
curl -sI https://yourdomainreturns your app's status, such as 200 or a redirect, not a 403 from Cloudflare.- The record in DNS, Records shows a CNAME target or your host's address, and no value from Cloudflare's ranges.
- Your host's dashboard shows the domain as verified, with a certificate issued or in progress.
- The host's own address, such as the
up.railway.apporvercel.appURL, still loads, so you know the origin itself is healthy.
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
- Cloudflare docs: Error 1000developers.cloudflare.com
- Cloudflare docs: Cloudflare 1xxx errorsdevelopers.cloudflare.com
- Cloudflare docs: Proxy statusdevelopers.cloudflare.com
- Cloudflare: IP rangescloudflare.com
- Railway docs: Working with domainsdocs.railway.com
- Vercel: Using Cloudflare and other reverse proxies with Vercelvercel.com
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.