Forum Discussion
yaxzone_100047
Nimbostratus
Apr 28, 2010block request on page type - help
Hi there everyone,
At our shop, we would like to setup an iRule that will either deny access or drop request based on a request type. For example, if a request comes in for /*.php we would like the ...
hoolio
Cirrostratus
Apr 28, 2010You could be more specific and check the HTTP path (URI minus the query string):
when HTTP_REQUEST {
Check for unwanted filetypes
switch -glob [string tolower [HTTP::path]] {
"*.php" -
"*.exe" -
"*.dll" {
Reset the TCP connection
reject
}
}
}
Aaron
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
