Forum Discussion
kirk_stanford_5
Nimbostratus
Oct 29, 2014Redirect based on source IP's
I would like to redirect source IP's (example) 1.1.1.1 and 1.1.1.2 to (ex) https://login.com/internal.html and redirect everthing else to (ex) https://login.com/external.html
Thanks in advance f...
R_Eastman_13667
Oct 29, 2014Historic F5 Account
Put all your IPs in a datagroup "allowed_ips"
when HTTP_REQUEST {
if {[class match [IP::client_addr] equal "allowed_ips"]} {
HTTP::redirect https://login.com/internal.html
}
else {
HTTP::redirect https://login.com/external.html
}
}
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