I want to limit requests to 1 per second for each user, counting a bot that
makes requests from multiple ips as a single user. Does this make sense:
map $http_user_agent $single_user {
default $binary_remote_addr;
~PaperLiBot 1;
}
limit_req_zone $single_user zone=one:10m rate=1r/s;
...
limit_req zone=one burst=2;
Thanks
Dave
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,263891,263891#msg-263891
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx