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...
MTNSEA_284360
Nimbostratus
May 21, 2017Hi, did below testing and working as per requiremnet:
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/console" } { if { not [ class match [IP::client_addr] equals allowed_datagroup ] }{ HTTP::respond 404 noserver return } } }
fgf_165674
Nimbostratus
May 21, 2017Since the traffic is HTTPS, you must do SSL offloading in the load balancer.
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/console"} {
if { not ( [class match [IP::client_addr] equals ip_allowed_datagroup] ) } {
reject
} else {
pool A
}
} else {
pool B
}
}
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