View Single Post
Old 12-07-2017, 08:01 AM  
brassmonkey
Pay It Forward
 
brassmonkey's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Yo Mama House
Posts: 75,358
[Tech] Redirections in PHP file

this is copied. i modified some of it.

I'm using this php jump script for my affiliate links.

Simply copy and paste following code to a text editor on your PC. I use Pspad

Code:
<?php
$v = $_GET['v'];
// In case someone calls naked php file
if ($v == '') {$link = 'http://pornstuffarooni.com/';}

// Add as many as links in below format. Each in a new line.
if ($v == 'fish') {$link = 'http://sexoidfsh.com/';}
if ($v == 'oils') {$link = 'http://fundepwe.com/';}
if ($v == 'grapes') {$link = 'http://grapeapewatreu.com/';}

// Don't change anything below this line.
header("Location: $link") ;
exit();
?>
i named the php file ads
ads.php and uploaded to /go/ directory, linking to following URL will redirect user to example1.com.

Code:
http://pornstuffarooni.com/go/ads.php?v=fish
Block Search Engines from Crawling and Indexing PHP files
We don't want Google to crawl these redirections. We can easily prevent it and other bots from crawling these files by blocking access to the directory. So open your robots.txt file and add following code to it.

Code:
User-agent: *
disallow: /go/*
__________________
EMAIL ==>[email protected] ==> #NOBIDEN2024
TRUMP 2024!!! | END DACA!!!! | HCR2060 <= ILLEGAL ALIENS!!!!...👮
=> TRUMPS PAYDAY!!!!... - Support The Laken Riley Act!!! - Trump Nobel Prize...
brassmonkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote