Forum Discussion
The_Bhattman
Sep 15, 2010Nimbostratus
Hi Fahmy,
If I understand your question you want to basically only allow requests to make it through if they use domain name but deny those that use the IP addresses.
This code might help. Assuming that you created a white list datagroup.
when HTTP_REQUEST {
if hosts header does not match the whitelist then drop the request
if { ![matchclass [HTTP::header "Host"] eq $::hostswhitelist] } {
drop
}
}
I hope this helps
Bhattman