Forum Discussion
Balasubramaniy2
Nimbostratus
Sep 03, 2018URL Restriction based on Host
Hi i want to redirect/ redirect the URL https://www.test.com/user.php. except two IP's 10.10.10.0/24; 10.20.30.40.
- Kevin_Stewart
Employee
Try this,
when HTTP_REQUEST { if { not ( [class match [IP::client_addr] equals allowed_ips] ) } { HTTP::redirect "https://www.test.com/user.php" } }
where "allowed_ips" is an address-based data group. The data group option allows you to more easily modify IP addresses/ranges.
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