Page 1 of 1

Does Project Euler block IP addresses?

Posted: Tue Jun 28, 2022 7:42 pm
by Alden
I am building a tool to gather Project Euler problems for me. I am using Python's requests tool to fetch the list of problems. This works fine on my machine, but for some reason when the code runs on Github's servers it cannot access projecteuler.net, getting a 401 error. I also receive a 401 error when requesting mathschallenge.net and projecteuler.chat from Github's servers, though I can access them using the same tool from my machine without trouble. Other sites, like google.com and httpbin.org, respond just fine.

Is Project Euler configured to reject requests from certain IP addresses? What could be causing specifically the 401 error?

Re: Does Project Euler block IP addresses?

Posted: Wed Jun 29, 2022 7:15 am
by euler
Project Euler itself doesn't block any IP addresses because we don't keep any personal data. However, our hosts will be running their own monitoring, protection, and firewall systems. It is possible that they have detected too many requests or badly formed requests from Github servers in general and are blocking them. This is not something we have any direct control over.

Re: Does Project Euler block IP addresses?

Posted: Thu Jun 30, 2022 4:24 am
by Alden
Ah, I see. That clears it up a little bit. Thank you.

Re: Does Project Euler block IP addresses?

Posted: Thu Feb 23, 2023 7:35 pm
by Alden
Update: with Project Euler on its new servers, this no longer seems to be an issue. Neat!

Re: Does Project Euler block IP addresses?

Posted: Thu Feb 23, 2023 10:27 pm
by euler
That's good to hear. Thanks for the feedback. Hopefully it applies to members in other parts of the world who were previously affected by this.