Forum Discussion
Qasim
Cirrostratus
Nov 28, 2019IRULE to Redirect URL if it doesnt match private subnets
Hi Could you please help me with this IRULE that I am trying to make it work: I have created a data group list: private_net and basically if the client IP doesn't match the http header, path a...
Nov 28, 2019
Hi,
Can you try this?
when HTTP_REQUEST {
if { ([HTTP::host] contains "syst3-my.test.co.uk") and ([string tolower [HTTP::path]] starts_with "/test/cs") } {
if { not ([class match [IP::client_addr] equals private_net]) } {
HTTP::redirect "https://syst3-my.testco.uk/test/home"
}
}
}Qasim
Cirrostratus
Nov 28, 2019HI Mate, thanks for your swift help really appreciate it.
wondering how do I match another URL path as well if I say host match syst3-my.test.co.uk and URL either starts with "/test/cs" or "/test12/cs"
thank you
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