Welcome! Log In Create A New Profile

Advanced

String matching

Posted by Bob 
Bob
String matching
September 07, 2011 06:32PM
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.
Re: String matching
September 10, 2011 09:01AM
if ($args ~ =\(\)\(\)\(\)) {
return 403;
}


Andrejs
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 213
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready