Skip to content

Rate limiting #32

Description

@Rafiot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions