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...
shaggy
Nimbostratus
Oct 29, 2014when HTTP_REQUEST {
if {[IP::addr [IP::remote_addr] equals 1.1.1.1/32] or [IP::addr [IP::remote_addr] equals 1.1.1.2/32]} {
HTTP::redirect "https://login.com/internal.html"
} else {
HTTP::redirect "https://login.com/external.html"
}
worth mentioning: if this VS is login.com:443, users will simply end up in a redirect loop
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