Forum Discussion
jokragly
Nov 03, 2010Nimbostratus
iRule for URI ACL
Good afternoon. We are getting desperate trying to find a solution to allow specific URIs and deny all other traffic.
Basically what we are after is to allow access to 5 specific directorie...
jokragly
Nov 04, 2010Nimbostratus
Good morning George, thanks for the reply. I have attempted your solution but it doesn't seem to work. I created a datagroup "blue" with the strings as
"/Dealer/"
"/Help/"
"/Image/"
"/Login/"
"/User/"
I am new to this but is a value required when adding these strings to the group?
The iRule I used is this
when HTTP_REQUEST {
if { ![class match [HTTPS::path] starts_with $::blue] } {
HTTP::redirect http://www.google.com/
}
}
When I go to https://mycompany.com/test it should direct to google.com but just gives a page cannot be found page from the webserver.
Also this is a 443 request as we have a redirect iRule for the 80 traffic to be routed to 443.
Thanks for the help and I look forward to a response
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