Forum Discussion
Bob_10976
Nimbostratus
Feb 24, 2011iRule 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:...
hoolio
Cirrostratus
Feb 24, 2011Sorry, 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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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