Forum Discussion
MTNSEA_284360
Nimbostratus
May 21, 2017Irule for URL- contents drop for all and allow for some IP add.
Hi Team, need irule for below query.
we have URL: https://call.xyz.com and https://call.xyz.com/console/
so-I want to block- https://call.xyz.com/console/ from all internet and allow for specific IP...
JG
Cumulonimbus
May 22, 2017You need to be careful if you are restricting access for reasons of security. Try and test the following:
when HTTP_REQUEST {
if { [string tolower [URI::decode [HTTP::path]]] starts_with "/console"} {
if { not ( [class match [IP::client_addr] equals acl_datagroup] ) } {
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