Forum Discussion
Santhosh
Nimbostratus
Apr 06, 2020Redirect when the client address is not equal to the networks in datagroup
Trying to redirect to the site when the client address is not equal to the datagroup but it's not working. Any help appreciated. when HTTP_REQUEST { if { not [matchclass [IP::client_addr] equals XY...
Santhosh
Nimbostratus
Apr 07, 2020Hi Ragunath,
I can see that in the logs but it's still breaking and when I verified in the developer tools. I don't see any kind of 301 in that.
ragunath154
Cirrostratus
Apr 08, 2020can you post those logs here
also try
HTTP::redirect
when HTTP_REQUEST {
if { not[class match [IP::client_addr] equals XYZ_group } {
log local0. "SUCCESS REDIRECTING THE USER [IP::client_addr] TO NEW DOMAIN "
HTTP::redirect "http://rextrum.com/xyz"
}
}
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