Hi.
I would like to know if it would be possible to tcp reject (or drop)
requests that don't have a domain name, but only an IP adress.
I explain myself :
I run a webserver which is accessible through two domain names :
www.domain1.com &
www.domain2.com.
Each domain is mapped to a name-based virtual host in apache.
I would like a user who types
www.domain1.com in his browser to go to the
right virtual host and receive the corresponding http page, but I would like
a user who types the actual IP and who doesn't know the domain to be TCP
rejected (ie without even a http response).
That way, scans on port 80 would fail but a request with the actual domain
name would be successful.
Do you think it's possible with an apache module or something ?
My firewall is iptables.
Thanx
Yann