Forum Discussion
haxzorian_35595
Nimbostratus
Apr 01, 2017Blocking admin uri via IP address and keyword?
Hello All,
Is there a proper way to block access to admin URIs using a a keyword and IP address? Such as, if the request comes from 192.168.0.0/16 space and contains /platform/* allow the connecti...
Snl
Cirrostratus
Apr 02, 2017Try below
1)Created Data group list as allowed-host and added the IP 192.168.0.0/16
2) created below irule and called the data group list allowed-host
Code/
when HTTP_REQUEST {
if { ( [string tolower [HTTP::uri]] contains "/platform/*" ) } {
if { not ( [class match [IP::client_addr] equals allowed-host] ) } {
reject
}
} }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
