View Single Post
  #9 (permalink)  
Old May 1st, 2008, 21:39
CloudedVision's Avatar
CloudedVision CloudedVision is offline
Nerdy Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 942
Blog Entries: 8
Thanks: 2
Thanked 22 Times in 22 Posts
Send a message via AIM to CloudedVision Send a message via MSN to CloudedVision Send a message via Skype™ to CloudedVision
Re: Record the link you clicked to leave my page

lets say the file redirect/index.php is the file where you redirect the site to.

So each link going outside the site is sent to redirect/index.php, something like this:

HTML: Select all
<a href="redirect/?to=http://google.com">Google!</a>
redirect/index.php connects to the database, inserts the value of $_GET['to'] into the database, and then uses header("location: ".$_GET['to']) to send the user to the site.

This stone can also hit another bird. Use robots.txt to prevent any webcrawlers from going to redirect/index.php, thereby deleting (from the crawlers perspective) any outgoing links, which is a great SEO tactic.
__________________
echo "Take it easy, ".$CloudedVision;
.links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; }
<quote>&quot;I think it's wrong that only one company makes the game Monopoly&quot; - <name>Steven Wright</name></quote>
Reply With Quote