[Share] Double-Meta Blank Referer and Even Rotation Script for Junk Traffic

agj32mrgibbits

Registered Member
Joined
Mar 1, 2008
Messages
73
Reaction score
50
This is a modified version of my original script, posted here http://www.blackhatworld.com/blackh...t-script-anyone-incentivizing-cpa-offers.html by Dev-Gank with my permission.

This script will let you send your junk traffic with findology and adbrite, it can show a different page until you get accepted.

It will rotate your offers evenly and blank the referer using a double-meta refresh. If you want one offer to be shown more then you can add it multiple times.

You can also choose which domains to allow/deny traffic from.

This script is good for keeping your conversion rate low if you are incentivizing non-incent offers.

You can download the archive with instructions here:
Code:
http://www.mediafire.com/download.php?kn2ze2mgmnc

Or you can follow the instructions below:

Setup:

Step1: Copy the following code into a file called "index.php"
Code:
<?php
require_once(dirname(__FILE__)."/config.php");
$referer=@$_SERVER['HTTP_REFERER'];

if($_REQUEST['userdata']==''){
	$go=false;
	
	$domains=array_map("trim",file(dirname(__FILE__)."/allowed-domains.txt"));
	foreach($domains as $domain){
		if(strpos($referer,$domain)){
			$go=true;
		}
	}

	$blocks=array_map("trim",file(dirname(__FILE__)."/blocked-referers.txt"));
	foreach($blocks as $block){
		if(strpos($referer,$block)){
			$go=false;
		}
	}
	
	if($go==false){
		header("Location: ".$site);
		exit;
	}
	
	die('<meta http-equiv="refresh" content="0;url=?id='.$_REQUEST['id'].'&userdata='.mt_rand(111111,999999).'">');
	exit;
}else{
	$offers=array_map("trim",file(dirname(__FILE__)."/offers.txt"));
	$file=dirname(__FILE__)."/offerdata.txt";
	if(file_exists($file)){
		$exp=array_map("trim",file($file));
		foreach($exp as $var=>$val){
			$exp[$var]=explode("*:*",$val);
		}
		foreach($offers as $offer){
			$found=false;
			foreach($exp as $var=>$val){
				if($offer==$val[0]){
					$found=true;
				}
			}
			if($found==false){
				$exp[]=array($offer,0);
			}
		}
		$t1="";
		foreach($exp as $var=>$val){
			$t1.=$val[0];
		}
		$t2="";
		foreach($offers as $offer){
			$t2.=$offer;
		}
		if($t1!=$t2){
			foreach($offers as $offer){
				$exp[]=array($offer,0);
			}
		}
	}else{
		foreach($offers as $offer){
			$exp[]=array($offer,0);
		}
	}
	$lowest=0;
	foreach($exp as $var=>$val){
		if($val[1]<$exp[$lowest][1]){
			$lowest=$var;
		}
	}
	$exp[$lowest][1]++;
	$goto=$exp[$lowest][0];
	$fp=fopen($file,"w");
	foreach($exp as $var=>$val){
		if($var!=0){
			fputs($fp,"n");
		}
		fputs($fp,$val[0]."*:*".$val[1]);
	}
	fclose($fp);
	if($referer==''){
		die('<meta http-equiv="refresh" content="0;url='.$goto.'">');
		exit;
	}else{
		header("Location: ".$site);
		exit;
	}
}
?>

Step2: Copy the following code into a file called "config.php"
Code:
<?php
//Spoof Site, this is the page that you want your traffic sender to see
$site="http://www.whitehatsite.com";
?>

And then edit "http://www.whitehatsite.com" to the site you want to use as a spoof.

Step3: Create a file called "allowed-domains.txt" and enter all of your domains you want to allow traffic from, one per line, NO "http://" or "www". Example: "example.org". Entering "/" on one line will allow all domains.
Example:
Code:
allowsite1.com
allowsite2.com
allowsite3.com

Step4: Create a file called "blocked-referers.txt" and enter all of the domains you want to block traffic from, one per line. NO "http://" or "www". Entering "/" on one line will block all domains.
Example:
Code:
blocksite1.com
blocksite2.com
blocksite3.com

Step5: Create a file called "offers.txt" and enter all of your offers you want to rotate traffic to, one per line. Include full URL.
Example:
Code:
http://www.offer1.com
http://www.offer2.com
http://www.offer3.com
http://www.offer4.com
http://www.offer5.com

Step 6: Upload all files to a folder (example: "/track/") on your site.

Step 7: Send traffic to the script like this "http://example.com/track/?id=2921" make up a random number to put there so that it looks like a genuine tracking script.



Getting accepted into adbrite or findology:

Step1: Edit "blocked-domains.txt", enter "/" on one line to block all domains.

Step2: Once your site is approved into the junk traffic site remove the "/" line.


Enjoy.
 
Thanks dude, this is just what I need. Only it looks a lot more complicated and I'm not sure all those extra steps are necessary. Can I ask what is the point of the allow domains part and blocked referrers if it is a blank referrer script?
 
They are just there to make it more secure and in case you want to use it for something other than crap traffic.
 
Last edited:
thnx just what i was looking for ;)

need do some work still to get this in use
 
How do you blank the referrer with this script?
 
I just wanted to clarify, what would be the best implementation of this script. Is it to promote CPA offers or for CPM?
 
Wow thats gold. double meta & then refer safety check. Plus a spoofer running thru a rotator? ROFL. This is fuckn insane.
 
It's a good script, but not perfect. Browsers that don't pass the double meta refresh are just kicked back to the homepage, and never make it to the intended link. Some examples I've seen that don't blank the referrer on meta refreshes are Opera, cell phone browsers, and Safari.

Also, the script checks that the referrer is absolutely blank, when it should probably check that the referrer doesn't contain the site's domain instead, as the referrer is sometimes forced or not exactly blank. The way I hide my source is use a meta refresh to an entirely different domain, and meta refresh to the destination link. Using tinyurl.com is an easy way to do just that.
 
Thank you for the share sir. I know this is 2013, but is this script still working? i cant seem to make the site hop to ther destination URLs. It keeps getting redirected to the whitehat site. Any help would be greatly appreciated. thank you
 
Back
Top