Link Redirect by Website URL in PHP
PHP Code Snippets > Link Redirect by Website URL in PHP
This is a variation on the affilite link mask script i wrote, this PHP link redirect script will allow you to redirect any url without giving away the referral page in the receiving websites logs. Thus allowing you to link to websites without giving away the forwarding page url.
So as an example, create a new file called link-go.php (this is just an example and can be called anything you want!) and paste the code below into this file.
// lets redirect to the website stored in the value of w
header ("Location: ".htmlspecialchars($_GET['w'])."");
Then all you need to do is to link to this file with the URL, so we would use the following to create a redirect link to google.co.uk:
Remember to change the part where it says 'your-domain-name to your actual domain name! You can change the website url after the .php?w= to the website you want to redirect / link to.