Log in

View Full Version : Link Referal Script



DarknessFalls
10-18-2008, 08:30 PM
I need a script that whenever there is a link it my site and a user clicks on it it goes to a page and then redirects them to the page for the link they clicked, I need an option to enable this on links from my page to another of my pages or from my page to other site. If I'm not being clear this is the functionality that I need:


2channel uses a referral system for any links to external websites posted on the forum. People clicking on a link are first sent to a page filled with advertisements on the ime.nu domain where a link to the actual site is placed. Apart from collecting revenue from the 2channel visitors it also attracts website owners of the linked pages who check their statistics and can't link it back to 2channel.

DarknessFalls
10-25-2008, 06:20 PM
Lots of views and no posts. If you even get what I want could someone try to point me in the right direction?

Medyman
10-26-2008, 05:00 PM
You shouldn't really pay attention to the views. Dynamic Drive is a heavy target of indexing bots. So, most of those views are probably due to that.

Anyway, the simplest way to do what you need would be to use some simple PHP. Link to your pages using a URL variable. For example:

<a href="referral.php?link=http://www.google.com" title="Google">Google</a>

Then on the landing page (referral.php in my example), read the URL variable and do with it whatever you want.