uwhoisd
uwhoisd copied to clipboard
Rate limiting
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.