Forum Discussion
Yozzer
Jun 03, 2011Nimbostratus
Data Group List use in a switch
Hi
I have a Data Group list called allowed_urls that has a list of accepted urls which i want to use in an irule.
switch -glob [HTTP::uri] {
"*temp.txt" {
do...
hooleylist
Jun 09, 2011Cirrostratus
You can use the class command to look up the URI to see if it's in the datagroup like Colin's example:
when HTTP_REQUEST {
set action [class match -value [string tolower [HTTP::path]] equals allowed_urls]
if {$action ne ""}
do stuff
}
}
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