Does Project Euler block IP addresses?

Announcements, comments, ideas, feedback, and "How do I... ?" questions
Post Reply
Alden
Posts: 3
Joined: Tue Jun 14, 2022 10:26 pm

Does Project Euler block IP addresses?

Post 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?
User avatar
euler
Administrator
Posts: 5095
Joined: Sun Mar 05, 2006 4:49 pm
Location: Cheshire, England
Contact:

Re: Does Project Euler block IP addresses?

Post 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.
Image
impudens simia et macrologus profundus fabulae
Alden
Posts: 3
Joined: Tue Jun 14, 2022 10:26 pm

Re: Does Project Euler block IP addresses?

Post by Alden »

Ah, I see. That clears it up a little bit. Thank you.
Alden
Posts: 3
Joined: Tue Jun 14, 2022 10:26 pm

Re: Does Project Euler block IP addresses?

Post by Alden »

Update: with Project Euler on its new servers, this no longer seems to be an issue. Neat!
User avatar
euler
Administrator
Posts: 5095
Joined: Sun Mar 05, 2006 4:49 pm
Location: Cheshire, England
Contact:

Re: Does Project Euler block IP addresses?

Post 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.
Image
impudens simia et macrologus profundus fabulae
Post Reply