$_SERVER['HTTP_HOST'] not set
- by yes123
Hi guys,
I am getting lot of traffic to my php pages but without the variable $_SERVER['HTTP_HOST'] setted.
This traffic is like 1 hit per second. I don't know what it could be, but for reducing server load i am doing this at the top of every php pages:
if (!isset($_SERVER['HTTP_HOST']))
exit;
Do u know what could cause this? Is it safe to exit whenever http_host is not setted?
Can a normal user visit my pages without setting http_host?
PHP version: 5.2.0-8,
Apache: 2.2.3
Thanks