Forum Discussion
Bob_10976
Nimbostratus
Apr 16, 2009iRule to Block request with Host Header
I'm needing some help with creating an iRule that will block any request that doesn't have a host header value.
For example if someone was to preform a GET / HTTP/1.1 on one our website...
Bob_10976
Nimbostratus
Apr 16, 2009Thanks for the help...
Just before your reply we actually came up with the below rule, but I like your reject option better...
when HTTP_REQUEST {
if { ([string tolower [HTTP::host]] equals "") } {
HTTP::respond 401
}
}
Thanks,
Bob
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