Forum Discussion
Puneet_73909
Nimbostratus
Nov 30, 2009Conditional Forwarding
Hi All,
Need ur Help!!!
I have a situation where I need to restrict access to one of my website url from outside world and allow it from internal network.
suppose:
When user types in www.xyz.com, request should forward it to normal webservers.
But If user types in www.xyz.com/doc, then he will get outage page but it should be accessible via 10.10.1.1 subnet.
Please help me to acheive this condition.
Thanks,
Puneet Khanna
- JRahm
Admin
Something like this maybe?when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/doc" && !([IP::addr [IP::client_addr]/24 equals 10.10.1.0]) } { HTTP::redirect "http://my.outage.page" } }
- hoolio
Cirrostratus
The problem with doing URI checking like this is that it would be simple to bypass. There are some examples of URI obfuscation methods in this post:
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