Forum Discussion
Rusty_Tripp_798
Nimbostratus
Jan 02, 2014iRule to determine if a URI is prent and somethign follows it
I'm new to iRules to please bear with me. I need to right an iRule that checks for the existence of a word ( lets say GUI ) within a URI but also has something following the word ( in the case , GUI ...
Kevin_Stewart
Employee
Jan 02, 2014Perhaps something like this:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] ends_with "gui" } {
reject
}
}
In the above the key word can exist anywhere in the URI (or not at all) unless the URI ends with the key word.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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