Forum Discussion
someguy_126006
Nimbostratus
Have you tried, the below, where User-Agent is without quotes and has value?
when HTTP_REQUEST {
if { !(([HTTP::host] starts_with "website.co.uk") or ([HTTP::host] starts_with "www.website.co.uk";) or ([HTTP::host] starts_with "backup.mywebsite.co.uk") or ([HTTP::host] starts_with "www.backup.mywebsite.co.uk";)) } {
log local0. "blocked [HTTP::header value User-Agent] requesting [HTTP::host][HTTP::uri]"
discard
}
}
cjunior
Nov 04, 2016Nacreous
So, the "log" command out of "if" statement, will register log even that is not blocked, am I wrong?
Respectfully.