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 404; break; } } i just learned that location does not match query string, if i do the is_arg i cant do nested if, anyone able to do this before? TIA. Regards, Ron
_______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx