Forum Discussion
Orlando_69227
Nimbostratus
May 08, 2014URI Filter
Looking to Filter URI traffic.
Allow only: class Allow-List { { host 10.10.10.15 host 10.10.10.16 } }
Access to URI /sync and block/reject all other traffic. Still looking to allow other traffic through.
rule Filter { when HTTP_REQUEST { if { [HTTP::uri] starts_with "/sync*" } { if { not [class match [IP::client_addr] equals Allow-List]} { log local0. "Request from [IP::client_addr] for [HTTP::uri] has been rejected." reject } } } }
1 Reply
- Kevin_Stewart
Employee
Minor modification:
when HTTP_REQUEST { if { ( [string tolower [HTTP::uri]] starts_with "/sync" ) and not ( [class match [IP::client_addr] equals Allow-List] ) } { reject } }
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