Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Post History

81%
+7 −0
Q&A Cloudflare "checking my browser" results in a 404 when forwarded to the requested page

For some reason, Cloudflare has apparently decided that my browser is untrustworthy as of late, and want to do something to "check" it before allowing me to access Codidact. That's a snag, but wou...

0 answers  ·  posted 3y ago by Canina‭  ·  edited 3y ago by Canina‭

#3: Post edited by user avatar Canina‭ · 2021-09-10T10:46:43Z (about 3 years ago)
  • For some reason, Cloudflare has apparently decided that my browser is untrustworthy as of late, and want to do something to "check" it before allowing me to access Codidact.
  • That's a snag, but wouldn't be so bad in the end were it not for the fact that when the checking (which of course requires Javascript, so breaks things for anyone who has Javascript disabled and just want to browse and read) finishes, and I am forwarded to the page I actually wanted to get to to begin with, I invariably get a 404 response instead of the page that I wanted.
  • **The culprit appears to be** the fact that, after the browser check completes, I'm redirected to the originally request page (with the addition of a `__cf_chl_jschl_tk__` query parameter) *as a `POST` request*. Since most content pages (quite correctly, given that POST requests are typically used for requests that have side effects) don't support POST requests, this results in a misleading "not found" response complete with a 404 status code in the HTTP response, instead of the much more appropriate [405 "method not allowed"](https://www.rfc-editor.org/rfc/rfc7231.html#section-6.5.5) response or, you know, Cloudflare actually doing the redirection *properly* in the first place thus avoiding the situation entirely.
  • Whatever the actual underlying problem is, though, to first receive a "we're checking your browser" page soon to be followed by a "404 Not Found" error for something like the very front page of a community doesn't exactly make a good first impression on a new visitor.
  • For some reason, Cloudflare has apparently decided that my browser is untrustworthy as of late, and want to do something to "check" it before allowing me to access Codidact.
  • That's a snag, but wouldn't be so bad in the end were it not for the fact that when the checking (which of course requires Javascript, so breaks things for anyone who has Javascript disabled and just want to browse and read) finishes, and I am forwarded to the page I actually wanted to get to to begin with, I invariably get a 404 response instead of the page that I wanted.
  • **The culprit appears to be** the fact that, after the browser check completes, I'm redirected to the originally request page (with the addition of a `__cf_chl_jschl_tk__` query parameter) *as a `POST` request*. Since most content pages (quite correctly, given that POST requests are typically used for requests that have side effects) don't support POST requests, this results in a misleading "not found" response complete with a 404 status code in the HTTP response, instead of the much more appropriate [405 "method not allowed"](https://www.rfc-editor.org/rfc/rfc7231.html#section-6.5.5) response or, you know, Cloudflare actually doing the redirection *properly* in the first place thus avoiding the situation entirely. (A request that starts out as a GET request should *not* blindly be converted into a POST request under the hood!)
  • Whatever the actual underlying problem is, though, to first receive a "we're checking your browser" page soon to be followed by a "404 Not Found" error for something like the very front page of a community doesn't exactly make a good first impression on a new visitor.
#2: Post edited by user avatar Canina‭ · 2021-09-10T10:45:20Z (about 3 years ago)
  • For some reason, Cloudflare has apparently decided that my browser is untrustworthy as of late, and want to do something to "check" it before allowing me to access Codidact.
  • That's a snag, but wouldn't be so bad in the end were it not for the fact that when the checking (which of course requires Javascript, so breaks things for anyone who has Javascript disabled and just want to browse and read) finishes, and I am forwarded to the page I actually wanted to get to to begin with, I invariably get a 404 response instead of the page that I wanted.
  • The culprit seems to somehow be related to the `__cf_chl_jschl_tk__` parameter added to the URL; thus, instead of https://meta.codidact.com, I get redirected to something like `https://meta.codidact.com/?__cf_chl_jschl_tk__=lotsofrandomcharacters`; certainly that's the only difference I've been able to identify from the outside without spending a lot of time on the matter. Oddly enough, if I later create such a URL at random and try to access it (even in a private browsing window), it works fine, so I'm not quite sure what might be going on here.
  • Whatever the actual problem is, to first receive a "we're checking your browser" page soon to be followed by a "404 Not Found" error for something like the very front page of a community doesn't exactly make a good first impression on a new visitor.
  • For some reason, Cloudflare has apparently decided that my browser is untrustworthy as of late, and want to do something to "check" it before allowing me to access Codidact.
  • That's a snag, but wouldn't be so bad in the end were it not for the fact that when the checking (which of course requires Javascript, so breaks things for anyone who has Javascript disabled and just want to browse and read) finishes, and I am forwarded to the page I actually wanted to get to to begin with, I invariably get a 404 response instead of the page that I wanted.
  • **The culprit appears to be** the fact that, after the browser check completes, I'm redirected to the originally request page (with the addition of a `__cf_chl_jschl_tk__` query parameter) *as a `POST` request*. Since most content pages (quite correctly, given that POST requests are typically used for requests that have side effects) don't support POST requests, this results in a misleading "not found" response complete with a 404 status code in the HTTP response, instead of the much more appropriate [405 "method not allowed"](https://www.rfc-editor.org/rfc/rfc7231.html#section-6.5.5) response or, you know, Cloudflare actually doing the redirection *properly* in the first place thus avoiding the situation entirely.
  • Whatever the actual underlying problem is, though, to first receive a "we're checking your browser" page soon to be followed by a "404 Not Found" error for something like the very front page of a community doesn't exactly make a good first impression on a new visitor.
#1: Initial revision by user avatar Canina‭ · 2021-09-09T19:32:02Z (about 3 years ago)
Cloudflare "checking my browser" results in a 404 when forwarded to the requested page
For some reason, Cloudflare has apparently decided that my browser is untrustworthy as of late, and want to do something to "check" it before allowing me to access Codidact.

That's a snag, but wouldn't be so bad in the end were it not for the fact that when the checking (which of course requires Javascript, so breaks things for anyone who has Javascript disabled and just want to browse and read) finishes, and I am forwarded to the page I actually wanted to get to to begin with, I invariably get a 404 response instead of the page that I wanted.

The culprit seems to somehow be related to the `__cf_chl_jschl_tk__` parameter added to the URL; thus, instead of https://meta.codidact.com, I get redirected to something like `https://meta.codidact.com/?__cf_chl_jschl_tk__=lotsofrandomcharacters`; certainly that's the only difference I've been able to identify from the outside without spending a lot of time on the matter. Oddly enough, if I later create such a URL at random and try to access it (even in a private browsing window), it works fine, so I'm not quite sure what might be going on here.

Whatever the actual problem is, to first receive a "we're checking your browser" page soon to be followed by a "404 Not Found" error for something like the very front page of a community doesn't exactly make a good first impression on a new visitor.