Hi all,<br><br>My objective is to apply the limit_req for all requests except  Googlebot., So had something like this inside a location context:<br><br><br>limit_req_zone  $binary_remote_addr  zone=one:2m   rate=25r/m; #This piece of conf is inside a http context<br>
<br>#The below code is inside a location context<br><br>if ($http_user_agent !~ Googlebot) {<br>    limit_req zone=one burst=4;<br>}<br><br>But I get a error : <br>[emerg]: &quot;limit_req&quot; directive is not allowed here <br>
<br>Is there anyway i can achieve this ?<br><br>Thanks,<br>Harish<br>