Forum Discussion
hooleylist
Nov 17, 2009Cirrostratus
Citizen's example would check if the requested host is two dotted fields (example.com or co.uk). You could also explicitly check for a requested host of example.com and reject anything else:
when HTTP_REQUEST {
Check if requested host (set to lower case) is example.com
if {[string tolower [HTTP::host]] eq "example.com"}{
Send an HTTP response
HTTP::respond 403
Reset the TCP connection
reject
}
}
Aaron