Bob_10976
May 05, 2010Nimbostratus
Rejecting 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 error in the BigIP log files:
TCL error: BlockNoHeader - expected integer but got "reject" while executing "HTTP::respond reject"
The iRule consist of this:
when HTTP_REQUEST {
if { [HTTP::host] equals "" } {
HTTP::respond reject }
}
Any thoughts or suggestions, maybe we could be doing the block method better?
Thanks,
Bob