Forum Discussion
Richard_Milner-
May 08, 2012Nimbostratus
mod_rewrite to iRule conversion question from a newcomer
Hi Folks,
I'm fairly new to the BIGIP devices, though I've used competitors products before so I'm not starting from scratch. I have a mod_rewrite rule that I'm trying to migrate f...
hooleylist
May 08, 2012Cirrostratus
The ends_with operator does an exact match (without support for wildcards). If you want to check with a request with no query string, you can use [HTTP::query] eq "". Or if you want to check if the requested path has a file type you can use [URI::basename [HTTP::uri]] contains ".".
I'd also check if the [HTTP::uri] starts_with "/server-status" to prevent someone from bypassing your blacklist by adding a query string to the URI.
Aaron
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