Hi Guys, Just a quick question: how could I go about blocking a HTTP request based on its string? Let's say I wanted to block the following request: 190.20.173.246 - - [07/Sep/2011:15:28:17 -0700] "GET /?=()()()!2000 HTTP/1.1" 200 13555 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)" Thanks in advanced.by Bob - How to...
Yeah, the rewrite module wasn't compiled in. Recompiling nginx with the http_rewrite_module did the trick!by Bob - Nginx Mailing List - English
Thanks for the response, greatly appreciated :) However I'm getting Unknown directive 'if' when trying to add this into my nginx config - any ideas?by Bob - Nginx Mailing List - English
Does anyone know how I can achieve this? I want to block all requests with blank useragents, however I'm not exactly sure how would I go about setting that up in nginx's configuration.by Bob - Nginx Mailing List - English