Re: [PHP] $HTTP_REFERER / Hijacking

2003-09-06 Thread Curt Zirzow
* Thus wrote John Taylor-Johnston ([EMAIL PROTECTED]): > > The problem is I noticed a friend was getting the hijacking message. > I had him clean his cache and reload, but no luck. > > I wondered why he got that message, so I echoed $HTTP_REFERER to see what his IE6.x > was spewing out. The resu

[PHP] $HTTP_REFERER / Hijacking

2003-09-06 Thread John Taylor-Johnston
This is kind of old-fashioned, but I created a counter that prevents hijacking. "district" is a partial of the word in the URL. If it does not exist, echoes hijacking ... snip--- if(stristr($HTTP_REFERER,"district")) { #... #echo "document.write(\"$num_rows visitors since August 23, 2003\");"