Forum Discussion
MatthewStyles_3
Nimbostratus
Jun 26, 2018iRule to redirect URL based on source address
Hi there,
I am looking to see if it is possible to have an iRule build in the following functionality to a website:
Allow internet access to https://mywebsite.co.uk for all internet traffic...
Jer_O__175899
Nimbostratus
Jun 27, 2018You need a data-group existing that contains a list of allowed IPs or subnets for this iRule to work.
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] starts_with "/admin" and !([class match [IP::client_addr] equals data-group_of_IPs_and/or_subnets ]) } {
HTTP::redirect "https://[HTTP::host]/"
}
}
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