Forum Discussion
tacobell_112236
Nimbostratus
Feb 21, 2011Redirect Based on IP
Hello all- Im a newbie- can someone assist .
I need to create an Irule wheras specefic URL's can only be accessed based on IP address(s) and if not on the IP range I need to redirect to ano...
Chris_Miller
Altostratus
Feb 22, 2011V9 is a bit different. Try this
when HTTP_REQUEST {
if { [matchclass [string tolower [HTTP::uri]] eq uri_datagroup] and [matchclass [IP::client_addr] ne address_datagroup] } {
HTTP::redirect "http://www.example.com" }
}
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
