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...
mattias_56723
Nimbostratus
Sep 11, 2009ex: http://testsite.com/test.aspx?pageid=13&nocache=1&list=11
to http://testsite.com/test.aspx?pageid=13
I need to do some type of remove or filter before the url hit the webserver, and thats only for users from outside ip:s (they should not be able to use nocache=1 and list=nn=)
I am using an redirect at the moment.
ex2
when HTTP_REQUEST {
if { [IP::addr [IP::remote_addr] equals 10.0.0.0/8] } {
}
else {
if { [string tolower [HTTP::uri]] contains "nocache=1"} {
HTTP::redirect "http://testsite.com/" }
}
if { [string tolower [HTTP::uri]] matches_regex {list*}} {
HTTP::redirect "http://testsite.com/" }
}
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
