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.