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

Rate limiting #32

Open
Rafiot opened this issue Sep 17, 2016 · 0 comments
Open

Rate limiting #32

Rafiot opened this issue Sep 17, 2016 · 0 comments

Comments

@Rafiot
Copy link
Contributor

Rafiot commented Sep 17, 2016

Some servers will blacklist you if do to many queries. The main one I'm aware of is whois.dns.lu

and I implemented rate limiting that way:
https://github.com/Rafiot/uwhoisd/blob/testing/extra/uwhoisd.ini#L1868
https://github.com/Rafiot/uwhoisd/blob/testing/uwhoisd/__init__.py#L152

whois.dns.lu=1 100 means one query per seconds, 100 per hour

It requires redis so I guess you don't want it in the core implemented that way, but I know I need it in production on my side.

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