Forum Discussion
Steve_Brown_882
Feb 18, 2011Historic F5 Account
I agree with Aaron that a datagroup is another good way to do this and it would allow you to keep a much larger txt list that you simply upload and apply.
Something like this would work.
when HTTP_REQUEST {
if { class match [string tolower [HTTP::header User-Agent]] contains "bots-list" ] } {
drop
}
else {
return
}
}