Forum Discussion
MW1
Cirrus
Jan 08, 2009irule newbie - pointer please!
Hi all,
I'm very new to the irules and have alot to learn so apologies for asking something that I presume is very simple.
I need to restrict access to three URI's these are:
https://servername/admin/*
https://servername/user/*
https://servername/home/*
And block all other access (ie https://servername/admin/home allowed but not say https://servername/game)
I believe I will need to turn the request in to lowercase to avoid having to match the various cases ie https://servername/ADMIN/*. I've seen lots of post on matching a URI which contains a string but unsure on how to specify if it does not contain a string.
Can anyone point me in the right direction?
Thanks in advance
Matt
- James_Quinby_46Historic F5 AccountMatt -
when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { "/user/*" - "/home/*" - "/admin/*" { pool apache } default { discard } } }
- MW1
Cirrus
Works well. Thanks for the links - time for me to do some reading!
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