Forum Discussion
Tobias_Neumeyer
Nimbostratus
May 25, 2009iRule for designated URI (Path)
Hi,
I think it is not a difficult question, but I did not get it work unfortunately.
Sorry, I'm new with iRule and BigIP.
I'm looking for an iRule with allow access to designated paths only.
Example:
http://myhost/
And if paths like /path1/*, /path2 and path3/path/* then allow access, otherwise discard/block the connection.
Could someone point me to the right direction, please?
Thank you in advance!
Tobias
- The_Bhattman
Nimbostratus
Hi Tobias,when HTTP_REQUEST { if {[HTTP::host] eq "myhost.com" } { if {!([HTTP::path] starts_with "/path1/") or !([HTTP::path] eq "/path2") or !([HTTP::path] starts_with "Path3/path/") } { reject } } }
- Tobias_Neumeyer
Nimbostratus
It works! Thanks a lot...
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