Forum Discussion
Jason_40769
Nimbostratus
Aug 20, 2010Subsite ACL (Exception)
I have a working irule that blocks access to a subsite of a website based on a IP address. I would however like to add to the rule an exception url. for instance all access is blocked to /admin but ...
The_Bhattman
Nimbostratus
Aug 21, 2010Hi Jason,
You could also provide some information to the clients when they are denied access
Here is the one modified from Chris'
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::uri]] contains subsite] and !([[string tolower [HTTP::uri]] contains "/admin/upload") and ![class match [IP::addr [IP::client_addr]] eq allow] }
{
HTTP::respond 200 content "Forbidden Redirect From Remote Server\Acess is forbidden"
}
}
I hope this helps
Bhattman
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
