Forum Discussion
Paul_125684
Nimbostratus
Jul 28, 2016Using iRule to block a URL in Virtual server but doesn't work
I created a virtual server for a web site (10.11.12.100, www.abc.com) and using irule want to block a sub-site "www.abc.com/xyz" with below irule command but seems not work, please advise.
when ...
JG
Cumulonimbus
Jul 29, 2016Try this instead:
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] starts_with "/xyz" } {
log local0. "dropped" HTTP::respond 200 content "URL Blocked"
reject
}
}
.
[Edit: Added reject, just for your testing]
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