Forum Discussion
done_23947
Nimbostratus
Apr 07, 2011restrict public access
I need help w/ a iRule.
I have two URL's,
https://ssb.xx/ODSP/twbkwbis.P_ValLogin and
https://ssb.xx/PROD/twbkwbis.P_WWWLogin.
Both use same public IP address
VIP.
I would like to...
Chris_Miller
Altostratus
Apr 10, 2011
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/prod" and ![IP::addr [IP::client_add] equals 10.233.0.0/16] } {
discard } }
That will check if the URI starts with prod. If it starts with prod and the user's IP isn't in the 10.233.0.0/16 network, it'll discard the request.
Is that what you wanted? Like Michael, I also like to use data groups here for scalability but if this is all you need, perhaps it'll suffice.
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