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

Prevent API overuse by generic user agent #54

Open
ChlodAlejandro opened this issue Feb 9, 2025 · 0 comments
Open

Prevent API overuse by generic user agent #54

ChlodAlejandro opened this issue Feb 9, 2025 · 0 comments

Comments

@ChlodAlejandro
Copy link
Collaborator

ChlodAlejandro commented Feb 9, 2025

It seems like there's a generic user agent python-requests/2.31.0 which is overusing the copyvios API. In the past day, they account for 502 out of the 3,288 requests with the search engine enabled. Another UA, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 accounts for 298. Both were using the API for requests. They were running checks on French and Hebrew Wikipedia, respectively.

There should probably be a rate limit or login or API requests, and specifically a ban for generic user agents trying to use the search engine. We're hitting 429s again even with the login requirements that were placed a few months back.

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

1 participant