Forum Discussion
Dave_21507
Nimbostratus
Oct 01, 2009HTTP::uri starts_with - how to make it case insensitive?
Hello everyone,
I have the following iRule in place and it works great, but discovered that a "workaround" is using onlineusers.aspx or any other combination of case (e.g., OnLineUSerS.ASPx w...
Dave_21507
Nimbostratus
Oct 01, 2009All set!!
To help others, here is what I came up with (first I created a new data group for strings called allowed_uris and put /onlineusers.aspx in there):
when HTTP_REQUEST {
if { ( [matchclass [string tolower [HTTP::uri]] starts_with $::allowed_uris] )
and ( not [ matchclass [IP::client_addr] equals $::ips_irule ] ) }{
HTTP::redirect https://[HTTP::host]/login.aspx
}
}
Thanks again
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
