Forum Discussion
laga44_77816
Nimbostratus
Aug 07, 2008blocking content with iRules
Hi, I'm looking for a sample to block a specific
parameter from a http request URL query string.
As an example is someone hits our site with
http://test.test.11/dir/1315...
laga44_77816
Nimbostratus
Aug 07, 2008Is an example of what I want to dream of doing.
Would this work? Is there a way I can specify a url instead of an IP ?
class WebServers {
host 10.10.5.2
host 10.10.5.3
network 10.10.0.0/16
}
class BadStrings {
";declare"
";select"
";insert"
";update"
";delete"
";exec"
";sp"
" " " " }
when HTTP_REQUEST {
if { [matchclass [IP::server_addr] equals $::WebServers]} {
if { [matchclass [string tolower [HTTP::uri]] equals $::BadStrings]} {
drop
}
}
}
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
