Forum Discussion
Michael_-_Harr1
Nimbostratus
Mar 21, 2014Need some assistance not sure if IRULE is best way handle this requirement - If it is need some help with IRULE please.
Requirement wwe have public facing site and internal employees get special rates on loans. Requirement is to retricy specific URL paths by internal source IP address and the public can access everthi...
JRahm
Admin
Mar 21, 2014assuming you drop all your internal IPs into a data-group called internal_ips, something like this should get you started (untested):
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/internal-rates*" -
"/loan-and-credit-card-rates*" -
"/deposit-and-share-rates*" {
if { ![class match IP::client_addr equals internal_ips] } {
HTTP::redirect "http://[HTTP::host]/"
}
}
}
}
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