Forum Discussion
Born_7758
Nimbostratus
Jun 14, 2011Filtering a list of URLs
Hello Everyone, To start off, I'd like to mention that I am pretty new at this F5 business (been reading on it for about 2wks). I am trying to find the best way to filter a lis...
hoolio
Cirrostratus
Jun 14, 2011If the class command doesn't exist, you're running v9. You can use matchclass instead:
when HTTP_REQUEST {
if { not [matchclass [HTTP::path] equals whitelist_paths_class]}{
HTTP::respond 200 content {Access denied!}
}
}
You could do this in an array, but it would be inefficient compared with a datagroup.
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