Forum Discussion
Fountain_55774
Nimbostratus
Sep 17, 2008Block parts of website
Hello All,
I am hoping this is simple but I have had no training
I am looking for a rule that allows access to
www.xyx.com/something only if the request c...
Nicolas_Menant
Employee
Sep 17, 2008Hi,
You can try something like this:
when HTTP_REQUEST {
if { (not([IP::addr "[IP::client_addr]/24" equals 10.10.10.0])) and ([HTTP::uri] starts_with "/something") } {
HTTP::redirect "www.xyz.com"
}
}
You have some exampls about how to manipulate IP::addr here: Click here
it contains a good example in case you have to filter multiple network ranges and IP addresses
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