TheManu
Apr 19, 2010Nimbostratus
Rejecting HTTP request
Hello there,
I'm trying to reject a http request when it's containing a special string, but it doesn't work.
Please have a look at my rule:
when HTTP_REQUEST {
if {[HTTP::path] starts_with "/MyString"}
{
reject
}
}
Is it correct to use the starts_with reference?
Do I have to change the sting "/MyString"? (The string could look like this www.myurl.com/MyStringAndMore/something.html)
Is the reject command correct?
Thank you for your help.