Forum Discussion
Bob_10976
Nimbostratus
May 05, 2010Rejecting Blank Host
Hello all, we have created an iRule that is suppose to block request to a website with no Host Header. I've included the code below. The rule appears to be working, but we are getting the following ...
hoolio
Cirrostratus
May 11, 2010Hi Bob,
I assume you were getting that error from the original version of the iRule. Have you tried testing with this version which doesn't use HTTP::respond?
when HTTP_REQUEST {
if { [HTTP::host] equals "" } {
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
