Forum Discussion
aboulleill_3013
Nimbostratus
Sep 07, 2017irule to stop access to URL /login* from outside and permit access exclusevely from 172.0.0.0/8 subnet (internal)
Hello ,
Im trying to use the below Irule to stop access to URL including "/login.aspx" from outside
except for internal network 172.0.0.0/8
But the page is not working from inside also when app...
Stanislas_Piro2
Cumulonimbus
Sep 07, 2017You can try this code:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/login " && ![IP::addr [IP::client_addr] equals 172.0.0.0/8]} {
HTTP::respond 403 -version "1.1" content {Access Denied.}
}
}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
