Quote:
Originally Posted by HarryMuff
What is the point of declaring "visitor" in js then never using it?
Also, if a blank "HTTP_REFERER" means it's the google bot then why would you go and use javascript to redirect when you could do it in PHP?
|
var visitor is purely for showing a novice user what is going on, i suppose i could have used
// this is a bot
// this is not
if you did a php redirect in a javascript it wouldn't do jack shit except make a script error.
reason why i used it like that is so if a detective surfer was checking out what happened and check the js they see nothing ( blank referer ).
also if by chance a bot does check with a referer essentially they see the same page as they would if they checked without one, they would only detect a difference if they checked both the page and the script both with and without referer.