Forum Discussion
royceking_18057
May 29, 2015Cirrus
iRule to block multiple user agents.
I have this clunky iRule to block unwanted user agent bots that I have identified hit our site. Unfortunately it is a pain to manage. Is there a better way to write this and not have to use a big i...
Tim_K_92675
May 29, 2015Cirrostratus
Is using a string type data group an option for you? Something like this:
ltm data-group internal blocked_user_agents {
records {
androiddownloadmanager { }
baiduspider { }
grapeshotvrawler { }
}
type string
when HTTP_REQUEST {
if { [class [string tolower [HTTP::header "User-Agent"]] contains $blocked_user_agents ] } {
drop
return
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects