Welcome! Log In Create A New Profile

Advanced

Limit robots

January 13, 2012 05:57AM
Hello,

Is there a chance to limit robots to 1 request per second?
The down below does not work: [emerg] "limit_req" directive is not allowed here

Thanks a lot
Markus


http {
limit_req_zone $http_user_agent zone=useragenttrack:1m rate=1r/s;
server {
listen 80;
location / {
if ($http_user_agent ~* "[a-z]bot[^a-z]") {
limit_req zone=useragenttrack burst=100 nodelay;
}
}
}
}
Subject Author Posted

Limit robots

double January 13, 2012 05:57AM

Re: Limit robots

António P. P. Almeida January 13, 2012 08:52AM

Re: Limit robots

Jeff J. January 17, 2012 12:18PM

Re: Limit robots

António P. P. Almeida January 17, 2012 02:28PM

Re: Limit robots

Jeff J. January 17, 2012 03:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 90
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready