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.
Some servers will blacklist you if do to many queries. The main one I'm aware of is
whois.dns.luand 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 100means one query per seconds, 100 per hourIt 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.