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

IP access blocked #445

Closed
jmeattle opened this issue Mar 8, 2024 · 5 comments
Closed

IP access blocked #445

jmeattle opened this issue Mar 8, 2024 · 5 comments

Comments

@jmeattle
Copy link

jmeattle commented Mar 8, 2024

We first noticed the block about 20 hours ago.

We have called the service the same way for 5+ years and this is the first time we've been blocked.

I would be surprised if we tried to download the csv file more than 30 times in any 1 hour period... but I suppose it could be possible if something went wrong which may have led to retries (by automated processes). Otherwise, it should never really go over 10 max.

I would appreciate it if you can please check. All calls are made from IP - 54.208.16.197. Many thanks!

$ curl -I "https://browscap.org/stream?q=BrowsCapCSV"
HTTP/2 403 
date: Fri, 08 Mar 2024 07:59:42 GMT
@asgrim
Copy link
Member

asgrim commented Mar 8, 2024

Can you check the page content (if any) please? If it has a Cloudflare html page, or not. That will help me find the issue quicker, thanks!

@asgrim asgrim transferred this issue from browscap/browscap Mar 8, 2024
@jmeattle
Copy link
Author

jmeattle commented Mar 8, 2024

Yes, it appears to be:

$ curl https://browscap.org/stream?q=BrowsCapCSV
<!DOCTYPE html><html lang="en-US"><head><title>Just a moment...</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge">

I checked our logs - it seems like our code was throwing a Net::HTTPFatalError: 500 "Internal Server Error" when trying to download the file a couple of days ago. My guess is that may have led to retries.

@asgrim
Copy link
Member

asgrim commented Mar 8, 2024

Yes, it appears to be:

$ curl https://browscap.org/stream?q=BrowsCapCSV
<!DOCTYPE html><html lang="en-US"><head><title>Just a moment...</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge">

I checked our logs - it seems like our code was throwing a Net::HTTPFatalError: 500 "Internal Server Error" when trying to download the file a couple of days ago. My guess is that may have led to retries.

Yes; we had a surge in requests on 6th/7th March, which caused a DB limit to be reached (see #444 ).

I've adjusted the site settings on Cloudflare. Please can you try again?

@jmeattle
Copy link
Author

jmeattle commented Mar 8, 2024

Works now! Thanks so much for the quick attention 🤗

@asgrim
Copy link
Member

asgrim commented Mar 8, 2024

Great, thank you!

@asgrim asgrim closed this as completed Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants