How to limit_req depending if the requests has a REFERER or not.

Joseph Cabezas tdgh2323 at
Tue Jun 5 22:33:09 UTC 2012

I have something like this... I need to be able to apply three different 
limit_req depending:

a.) If the referer to click.php is ... apply zone1
b.) If there is some other referer apply zone2 on click.php
c.) If there is no referer apply zone3 on click.php

  location /click.php { limit_req zone=one;  proxy_pass http://backend; }

Thanks guys
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list