Forum Discussion
Puli
Nimbostratus
Aug 04, 2011how to block Empty User-Agent and Empty Accept-Language values
Am trying to block request that have empty values for header fields
User-Agent and Accept-Language
I have below, but not sure if it check the value of the header or existence of the header field itself.
if { [HTTP::header exists "User-Agent"] and [HTTP::header exists "Accept-Language"} {
if { [HTTP::header "User-Agent"] equals "" and [HTTP:header "Accept-Language"] equals "" } {
reject
}
}
Will this work ?
Appreciate any input.
Puli.
- hoolio
Cirrostratus
Hi Puli, - Puli
Nimbostratus
thanks 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