Forum Discussion
Bob_10976
Feb 24, 2011Nimbostratus
iRule Error for HTTP::respond 404
Hello all,
I'm attempting to create an iRule that will block Microsoft Office Protocol Discovery User Agent from a specfic list of VS and I keep coming up with the error:
line 4:...
hooleylist
Feb 24, 2011Cirrostratus
Sorry, I wasn't reading your rule closely enough. There are a couple of brackets missing:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::header "user-agent"]] {
"*microsoft office protocol discovery*" {
HTTP::respond 404
}
}
}
Aaron
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