Is Cloudflare blocking my site?
If I use curl, with its default headers, I get a response saying that my site is unavailable (with a 404 response code). If I use curl, but change its headers to ones that match my normal browser, I get the response I expect.
I am on the free Cloudflare plan. My DNS settings are shown in the attachment. I have no custom WAF settings. Bot Fight Mode and Block AI Scrapers and Crawlers are both disabled.
17 Replies
seems to be a user issue, are you relying on curl resolving your hostname in any way?
DNS over Discord: A records
beakpointinsights.com A @1.1.1.1 +noall +answer
diggy diggy hole
if you disable proxying cloudflare doesn't do any blocking of sorts
unless you are using the malware/family dns
I'm not doing anything special with curl, as far as I know.
I started looking into this because semrush was telling me that they are unable to access my site.
did you have proxying enabled for your site before?
I've had that turned off forever, except for a few minutes today where I turned it on to try to debug the issue.
ah
unfortunately, this does exactly what it says, if someone is unable to resolve your hostname the issue lies somewhere else.
cloudflare status doesn't seem to be reporting any dns issues, but perhaps someone else knows something we don't :shrugpepe:
i'm not certain that it's a name resolution issue, since the behavior differs depending on what the user-agent header is in the request.
okay, i did some more testing.
if i omit my user agent then i also get the 404 error when i try visiting your site, however the 404 response is coming from your server
so this is an issue on your end
okay perfect. thanks for helping me narrow it down.
this is what confused me and pointed me in the wrong direction:
you can see that there is no
Cf-Cache-Status
header, meaning that the response is coming from your serverYou have helped me out so much today. I am very, very grateful for your time.
no problem!
if you want to replicate the 404 error in your browser, using firefox you can visit
about:config
and create a string value with the name general.useragent.override
and just leave it empty.
then you can visit your site and using ctrl + shift + i
check the network tab for any errors. if you then click on the file that is served with the 404 response, and open the collapsed get
request information, you can see the IP that the response is coming from.
maybe this can help with any future errors too :shrugpepe:i think it will! have a great rest of your day.