LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   spoofing SERVER_NAME and HTTP_HOST (https://www.linuxquestions.org/questions/linux-server-73/spoofing-server_name-and-http_host-586802/)

walidaly 09-23-2007 03:08 PM

spoofing SERVER_NAME and HTTP_HOST
 
I get a lot of 404 errors with wrong HTTP_HOST and SERVER_NAME headers that are not on my DNS nor on my server, why would someone do that and how can I stop it?

acid_kewpie 09-23-2007 03:15 PM

if someone is sending you http requests with ficticious http headers then there's nothign at all you can do about it, as they are making them up themselves... you could in theory match maybe for known strings within iptables, but often host headers are missing anyway. personally i'd just say you should suffer in silence...

if it's more the noise in the log files you dislike then each virtual host can use their own log file, so you'd have a virtual host for your real site and then let any hits against the default site just be logged to /dev/null or such like. http://httpd.apache.org/docs/1.3/logs.html#virtualhosts

walidaly 09-24-2007 01:03 AM

Thank for the advice, is there any clue what would someone do that for?


All times are GMT -5. The time now is 05:24 PM.