View Single Post
Old 03-06-2011, 08:42 AM  
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Quote:
Originally Posted by HarryMuff View Post
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.
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote