How do you set rate limit access to your API using Iptables?
Posted
by Cory
on Server Fault
See other posts from Server Fault
or by Cory
Published on 2010-05-04T00:42:09Z
Indexed on
2010/05/04
0:49 UTC
Read the original article
Hit count: 313
iptables
How can you set rate limit access to API using Iptables. Tried to set limit using port 80, but I don't want to set limit to the web access entirely. Is there a way to specified a subdomain rather than port. Example: set rate limit to api.example.com not example.com?
If there is no way to set rate limit by subdomain, what is the suggested rate limit access to port 80 without risking blocking a legitimate web user? One connection per second would be enough?
© Server Fault or respective owner