Forum Discussion
Brandon_12607
Nimbostratus
Jun 22, 2017Irule for blocking User Agent
I would like to block user agent String User Agent Mozilla/5.0+(Windows+NT+10.0;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36
- JG
Cumulonimbus
when HTTP_REQUEST { if { [HTTP::header "User-Agent"] contains "Mozilla/5.0+(Windows+NT+10.0;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537.36" } { log local0. "This is access is from [HTTP::header User-Agent]" } }
[Edited to log instead of drop]
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