1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'CPA' started by agj32mrgibbits, Nov 6, 2008.

  1. agj32mrgibbits

    agj32mrgibbits Registered Member

    Joined:
    Mar 1, 2008
    Messages:
    73
    Likes Received:
    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 Thanks x 18
  2. andre09

    andre09 Junior Member

    Joined:
    Jul 15, 2008
    Messages:
    174
    Likes Received:
    257
    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?
     
  3. agj32mrgibbits

    agj32mrgibbits Registered Member

    Joined:
    Mar 1, 2008
    Messages:
    73
    Likes Received:
    50
    They are just there to make it more secure and in case you want to use it for something other than crap traffic.
     
    • Thanks Thanks x 1
    Last edited: Nov 7, 2008
  4. frenchboy

    frenchboy Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 19, 2008
    Messages:
    650
    Likes Received:
    1,279
    This is the shit. agj32 is making me rich.
     
  5. antsaoo

    antsaoo Supreme Member

    Joined:
    Oct 1, 2008
    Messages:
    1,291
    Likes Received:
    637
    thnx just what i was looking for ;)

    need do some work still to get this in use
     
  6. Jacko

    Jacko Registered Member

    Joined:
    Dec 13, 2007
    Messages:
    71
    Likes Received:
    9
    How do you blank the referrer with this script?
     
  7. agj32mrgibbits

    agj32mrgibbits Registered Member

    Joined:
    Mar 1, 2008
    Messages:
    73
    Likes Received:
    50
    The script uses a double-meta refresh and then checks if the referrer is blank.
     
  8. sherly21

    sherly21 Junior Member

    Joined:
    Apr 14, 2008
    Messages:
    111
    Likes Received:
    2
    thats would be really great and making rich
     
  9. hayama

    hayama Registered Member

    Joined:
    Nov 4, 2008
    Messages:
    96
    Likes Received:
    37
    I just wanted to clarify, what would be the best implementation of this script. Is it to promote CPA offers or for CPM?
     
  10. viewsonic

    viewsonic Regular Member

    Joined:
    Sep 23, 2008
    Messages:
    297
    Likes Received:
    138
    Wow thats gold. double meta & then refer safety check. Plus a spoofer running thru a rotator? ROFL. This is fuckn insane.
     
    • Thanks Thanks x 1
  11. paperchaser

    paperchaser Guest

    Wow! This is crazy. Awesome share bro.
     
  12. evilkarma

    evilkarma Newbie

    Joined:
    Apr 14, 2008
    Messages:
    35
    Likes Received:
    15
    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 *********** is an easy way to do just that.
     
  13. Loak

    Loak Jr. VIP Jr. VIP

    Joined:
    Apr 21, 2008
    Messages:
    314
    Likes Received:
    109
    thats a good script to get started.
     
  14. lilman

    lilman BANNED BANNED

    Joined:
    May 22, 2008
    Messages:
    72
    Likes Received:
    20
    thanks i really appreciate the share .
     
  15. agj32mrgibbits

    agj32mrgibbits Registered Member

    Joined:
    Mar 1, 2008
    Messages:
    73
    Likes Received:
    50
    Yes you are correct, it can. It will not work with an image tag though.
     
    • Thanks Thanks x 1
  16. jambalayam

    jambalayam Newbie

    Joined:
    Apr 6, 2013
    Messages:
    3
    Likes Received:
    0
    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