Forum Discussion
mattias_56723
Nimbostratus
Sep 10, 2009simple filter question of uri
If I want to filter out "?listall=1" and also "log=0" in the uri.
ex: http://testsite.com/test.aspx?listall=1?log=0
to http://testsite.com/test.aspx
How will the syntax look like...
hoolio
Cirrostratus
Sep 11, 2009You could use something like this:
when HTTP_REQUEST {
Check if client is not in internal range
if {not ([IP::addr [IP::remote_addr] equals 10.0.0.0/8])} {
Check if nocache=1 or list parameter is set with any value
if {[URI::query [HTTP::uri] nocache] == 1 or [URI::query [HTTP::uri] list] ne ""}
Redirect client?
}
}
}
But you'd also need to consider a client using encoding methods to bypass the filters. If the server supports the various encoding methods, clients could use (any combination of): numeral 1, Unicode: %u0031 or %u31, URL encoding: %31, .
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
