Forum Discussion
suguruGeto
Aug 04, 2023Nimbostratus
Block Irule
Hi Guys, i have written an irule in order to block some specific user agents when HTTP_REQUEST { if {[class match [string tolower [HTTP::header "User-Agent"]] contains Blocked_Users]}{ log lo...
Aug 04, 2023
Hi Daniel,
Is there any other iRule binded on the virtual server?
TCL error: ERR_NOT_SUPPORTED after upgrade to version 14.1.0 or later
https://my.f5.com/manage/s/article/K23237429
when HTTP_REQUEST {
if { [HTTP::has_responded] } { return }
if { [class match [string tolower [HTTP::header "User-Agent"]] contains Blocked_Users] } {
log local0. "Request from ip: [IP::client_addr] - User-Agent: [HTTP::header User-Agent] to: [HTTP::host] [HTTP::uri]"
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