Forum Discussion
eanderson6_2759
Nimbostratus
Apr 02, 2013iRule for blocking access to a specific URL
I need to block access to a URL as follows.
when URL contants "string"
if ip range = 10.0.0.0/8 then permit access
else block access
this is all i could figure out at the mom...
Kevin_Stewart
Employee
Apr 02, 2013Something like this:
when HTTP_REQUEST {
if { ( [string tolower [HTTP::uri]] contains "elmah.axd" ) and not ( [IP::addr [IP::client_addr] equals 10.0.0.0/8] ) } {
log local0. "dropped"
reject
}
}
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