Cloudflare Error 1003: Direct IP access not allowed
The request went to a Cloudflare IP address directly (or with a Host header for a domain not on Cloudflare).
Direct IP access not allowed Meaning
Cloudflare needs the hostname to know which site you want. Typing a Cloudflare IP in the browser, or tools setting a wrong Host header, trigger 1003.
Common causes
- Browsing to a Cloudflare IP instead of the domain
- Wrong Host header in a client/proxy
- Hosts file mapping a domain to a Cloudflare IP
⚡ Quick fix
- Use the domain name, not the IP
- Fix the Host header in your client/proxy
- To test the origin, connect to the origin IP, not Cloudflare’s
Detailed fix by platform
Shell
- bash
curl -s https://example.com/ -o /dev/null -w '%{http_code} '
How to diagnose
- URL — IP or hostname?
- Host header — Matches a Cloudflare zone?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Cloudflare
Other ways to find it
Where this error sits
Origin: Edge & web server. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 14 Oct 2026