by dom96 · 4y ago · 0 comments
Was this definitely the cause? It's somewhat surprising to hear that requests would be rejected if the user agent doesn't match a set of hard coded IP addresses.
Were you able to resolve this in the end? If not and the cause is what you suspect then perhaps changing the user agent in your worker might be a workaround.
It’s fairly common for DDoS/scraping prevention, Googlebot (and most other crawlers) publish their IP ranges for that reason[0][1][2]. I don’t work at Cloudflare though, so no insider knowledge of what you folks are doing.
[0] https://developers.google.com/search/docs/crawling-indexing/...
[1] https://developers.facebook.com/docs/sharing/webmasters/craw...
[2] https://developer.twitter.com/en/docs/twitter-for-websites/c...
No, I haven't confirmed it. We jumped straight to fixing it without debugging the root cause. It's possible the cause is something totally different (I should have added this caveat in my original post). I was just speculating.