Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(lookup): Add protection against infinite recursion for Cloudflare… #1505

Merged
merged 2 commits into from
Dec 24, 2020

Conversation

neatchee
Copy link
Contributor

… when it never progresses past its DDoS protection page

Description

Fixes #1459
Fixes #1490

Sometimes (particularly with certain user-agents) Cloudflare will infinitely redirect you to another DDoS protection page; this can lead to infinite recursion. This change aborts after being forwarded 5 times.

Testing

Merge, set STORE=zotac, then "npm start run" until seeing "CLOUDFLARE RECURSION LIMIT REACHED, ABORTING"

New dependencies

None

@neatchee neatchee requested a review from jef as a code owner December 24, 2020 00:19
Copy link
Owner

@jef jef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Hopefully this will help a little. I'd anything, it will show what's happening better!

@jef jef merged commit 1cf618c into jef:main Dec 24, 2020
@hypercoyote
Copy link

hypercoyote commented Feb 27, 2021

This seems to be happening again. Zotac never succeeds, it just continues saying CLOUDFLARE WAITING or LIMIT REACHED. But loading the page manually shows it will load after several seconds. My PAGE_TIMEOUT is set to 45000.

@hvownij
Copy link

hvownij commented Mar 20, 2021

can confirm, this wont work no matter the settings still.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants