block bot on uri with query_string

2013-07-27 Thread ron ramos
Hi All, Been trying to block bots from accessing a URI that has a query_string "action=get_it", i tried below location ~* \?(action=get_it)$ { if ( $http_user_agent ~ (crawl|Googlebot|Slurp|spider|bingbot|tracker|click|parser|spider)) { return 40

Re: Nginx changing settings on the fly?

2013-07-27 Thread Jonathan Matthews
On 26 July 2013 22:18, YesThatGuy wrote: > We're currently using CrossRoads for our load balancing needs and are > evaluating a switch to Nginx. We are excited by the existence of a > pacemaker/heartbeat ocf script. But one of the needs that we have is that > our web servers have somewhat volatile