How to Fake a Browser Referrer for Blackhat CPA

First, why would you want to hide or fake a browser referrer? Answer: because you don’t want CPA networks and their advertisers knowing where your traffic came/comes from (obviously)! It doesn’t matter what the source of traffic is – MySpace, Facebook, torrents, foreign, incentivised, etc – if it’s against a network’s/advertiser’s ToS, an affiliate may be get banned and even lose any accumulated earnings if he/she gets caught, so that’s the reason to fake/hide a browser’s referrer.

There are a few ways to remove (hide) a browser referrer, like double meta-refresh, but if you’re new (or newish) to a CPA network and start doing significant conversions via a blank referrer they WILL become suspicious, after all, you have no track record with them and they don’t know where your traffic comes from so it’s quite natural.

The perfect solution is to give the networks a referrer of a site optimized for the particular offer(s) you are promoting. To understand this better, here’s a simple example with an adult dating offer (obviously, you can use more than one site for different traffic sources/offers).

CPA Redirection

With this example, traffic is sent to the adult blog which automatically redirects it to the relevant adult offer. So, if the CPA networks check the referrer, they will see the URL of the adult blog (optimized for that particular offer) and NOT the real source of the traffic.

So, how do you get the blog to automatically redirect to the relevant CPA offer? Simple, use a WP plugin called: CPA Redirector

I’ve developed and tested this plugin over a long period of time - hope you guys appreciate it! I’ve tested with numerous browsers and browser versions, and many networks. To get the plugin to work properly you MUST follow the below instructions exactly and test it before using it!

CPA Redirector: Instructions

Download below, copy to the WP plugin directory, and then activate.

CPA Redirector 

Now, you MUST edit the header file (header.php) of your blog’s theme (in the theme folder - /public_html/wp-content/themes) and add the following line of code to the first line of header.php:

<?php if (prc_red()) exit(); ?>

 

It must be on the first line of header.php! If you don’t do this, the plugin will not work! Your header.php should look something like this:

 

Header.php 

Now, set the blog permalinks to something like: /%postname%/ (don’t forget to add the .htaccess code). Finally, let’s learn how to use it - the user interface is below.

 

CPA Redirector User Interface 

 

Option 1: This is the redirection method. There are two options here: Java Script and Meta Refresh. You should always use the Java Script option as it’s the most reliable way to pass the referrer on.

 

Option 2: Magic Number. This is any number, but choose 4 digits or more.

 

Option 3: These are URLs of posts on your blog. You use these with magic number to redirect traffic.

 

Option 4: These are your affiliate links. One affiliate link per page. IMPORTANT: include the ‘HTTP://’ prefix with affiliate links, otherwise they wont work properly!

 

Let’s get going. Add some articles (use free articles from goarticles.com, ezinearticles.com, etc) to a blog you want to use for redirection. Put some relevant banners on the blog, so it’s optimized for the offer(s) you are promoting. Go to CPA redirector in WP Admin and add your affiliate links to the pages, including your magic number and save the settings.

 

To redirect traffic to your CPA offer(s), simply use the post URL combined with the magic number you have chosen. So, with the above example, I’d use: http://myadultblog.com/adult-video-dating/?mn=32453245

 

The post URL is ‘http://myadultblog.com/adult-video-dating/’ and ‘?mn=’ is the way to pass your magic number to the blog. All traffic sent to http://myadultblog.com/adult-video-dating/?mn=32453245 will be automatically redirected to the proper CPA offer.

 

The traffic will not see the blog. If a CPA network check the referrer URL they will see: http://myadultblog.com/adult-video-dating/ and if they visit that blog post, they will see it’s promoting their particular offer :-)

 

I have a new version of this plugin available very soon with much more functionality including controlling redirection rate. So, make sure you get on my Wordpress Blackhat list here: http://wpblackhat.com/

 



49 Comments so far

  1. wesley on November 26th, 2008

    If a cpa network checks the referrer, won’t they see the full referrer? including the request string “?mn=xxxx” ?

  2. jeff on November 26th, 2008

    thank you

  3. Celestmark on November 26th, 2008

    Great post, found this poast via the BHW forum and must say this method is an education in and of itself.

  4. busin3ss on November 26th, 2008

    Nice work! Thank you!

  5. bhatter on November 26th, 2008

    this is awesome thank you

  6. bill on November 26th, 2008

    I am stuck on this:

    (don’t forget to add the .htaccess code).

    I changed the permalink, what where is the .htaccess code?

  7. Joe on November 26th, 2008

    The .htaccess code:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

  8. Joe on November 26th, 2008

    Drat that didnt work. Lets try again:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

  9. Brad on November 26th, 2008

    @wesley: Nope! The request string is removed.

    @busin3ss: Cheers! Hope Vegas was good!

    @Bill & Joe: the .htaccess code is the standard permalinks stuff, and nothing else.

  10. Joe on November 27th, 2008

    Hey Brad, the “Next Page” button shows …/page/2/ etc but still shows the CPA blackhat trick :) Whats going on ?!

  11. Ed on November 27th, 2008

    Brad, sounds like a great solution man.

    One major reason why i would like to want to use this is to prevent unnecessary competition from networks or advertisers.

    A very valid reason you may want to include as well in your leading paragraph. ;)

  12. www.securecams.org on November 27th, 2008

    You can add up a redirector like asp.. response.redirect .. :) But it’s better to make a special page for every affiliations u are into. wherein u have buttons and stuffs. But then the page should redirect after a few seconds even if the surfer has not clicked any buttons yet. he he he.

  13. Paul T on November 27th, 2008

    Brad, you’ve unleashed a HURRICANE in the blackhat marketing world! It will never be the same now :-)

  14. […] the last 24 hours or so, after sharing the CPA Redirector, I’ve been asked numerous times about different ways to use the plugin to make money and leave no […]

  15. audi on November 28th, 2008

    hey brad man awsome

    tut man u Fu**** rock man

    but i need a fav man willing to pay :)

    im not getting this can u get back 2 me via email plz thanks

  16. acai on November 29th, 2008

    Awesome! Thanks for sharing.

  17. john on November 30th, 2008

    thanks a lot for the plugin !

  18. StickyChicky.com on December 1st, 2008

    I believe Wesley is correct. Can you comment on
    whether the CPA network checking the referrer would see the full url, including the request string “?mn=xxxx” ?

  19. uSearchIt.com on December 1st, 2008

    Great plugin but I too am wondering about the referrer including, or not including, the magic number.

  20. AlexF on December 2nd, 2008

    […] CPA Redirector Plugin […]

  21. Brad on December 2nd, 2008

    Guys, test the plugin! The query string is not passed! I’ve tested it on many CPA networks - it’s 100% undetectable!

  22. Lokesh on December 4th, 2008

    Wow Brad, you must be making tons there…
    There’s no reason why any Affiliate network wont love you :D

    Thnx a lot for this - I’d been doin’ double meta refreshes but this is way better than that!

  23. unknown on December 5th, 2008

    I love you!

    (no homo)

  24. Techknow Brad on December 5th, 2008

    I get a timeout before the plug in gets finished adding all my pages. I have roughly 1000 posts on my blog, is there a way I can set the timeout or the number of posts or even search for a common keyword?

  25. Wayne on December 6th, 2008

    Will this work if i use the /%postname%.html redirection?

    Coz i am using it on all my blogs.

  26. Brad on December 6th, 2008

    @Techknow Brad: Just install it on another blog.

    @Wayne: Try it, if it does not work with that permalink, install it on another blog.

  27. Slash on December 9th, 2008

    If I’m understanding this properly.

    When a visitor loads your page they will be redirected to the CPA.

    Now what if the CPA moderator manually loads your blog, won’t they see that the blog redirects to the CPA? And then catch you.

  28. Brad on December 9th, 2008

    @Slash: Just test it, then you’ll see the light.

  29. Drover on December 9th, 2008

    What does the Get/Post option do? I notice it’s not shown on the diagram so I assume it was an added feature?

  30. Tony on December 10th, 2008

    Brad, 2 questions
    1. is there only for 3 offers or can I add the /%category%/ permalink??

    2. so moderators wont even see IPs of traffic??
    Thanks

  31. hanu on December 12th, 2008

    For those with questions about what the referrer shows… search for the Live HTTP Headers addon for FF

  32. Update - Links - Love - 2 | The Nexus on December 13th, 2008

    […] a small update on the last bit I did find this cool wordpress plugin that cuts the hassle of masking traffic sources and browser referers and the such for CPA offers, and does it all automagicaly for you. Though here like I said in […]

  33. […] This follows on from the very popular CPA Redirector. […]

  34. 0xfefefe on December 22nd, 2008

    Why not use the add_action ‘get_header’ ?

    add_action(’get_header’,'prc_test’);

    function prc_test {
    if (prc_red()) exit();
    }

    No theme tweaks required…

  35. Brad on December 22nd, 2008

    @0xfefefe: I totally missed that function - lol! Yep, makes the job much easier, thanks!

  36. lululemon on December 23rd, 2008

    I sat this posted by you on bhw. Thanks.

  37. Edward on December 25th, 2008

    Thanks for a great WP plugin!

    So if I understand this correctly, this technique will make it appear as if the banner of the affiliate program has been clicked at your blogs post page?

  38. CPA Redirector Standalone Version on January 16th, 2009

    […] releasing the CPA Redirector plugin (for Wordpress), I had numerous requests (PMs from Blackhat World Members, comments from […]

  39. report scam on January 17th, 2009

    i got script fake click include fake broswer. it work. you just need list of working proxy :)

  40. CPA Framer Standalone Version on January 28th, 2009

    […] releasing the CPA Redirector plugin (for Wordpress), I had numerous requests (PMs from Blackhat World Members, comments from […]

  41. Black Hat Seo Team on January 30th, 2009

    very nice code. thank man!

  42. Spike on February 8th, 2009

    uhm ok I am not that used to wp 2.7 but I looked everywhere and can’t see the plugin page you got up here.. I installed/activated it from the plugin page and I can only see “CPA Redirector” and that’s a link to this blog. Does this work with WP2.7?

  43. Spike on February 8th, 2009

    bah I knew I’d find it one second after posting here!
    it’s under settings.
    Great stuff man, thankx and hats off to ya.

  44. Jacques on March 5th, 2009

    To get this straight… by typing in the unique url it will AUTOMATICALLY redirect them THROUGH your blog to the offer.

    The landing page is optimized for seo and after they land on your page they are sent to the offer?

  45. palestine students forum on March 5th, 2009

    yes it very nice
    thank you very much maaaaaaaan

  46. Web Designer on March 11th, 2009

    Thanks for the CPA Redirector download and instructions. I’ve learned alot from your posts and visit regularly.

  47. Biology ii Studying Questions on June 18th, 2009

    Very nice tool…

    Thank you so much

  48. Make Money Online on June 20th, 2009

    Brilliant work Brad!!
    I will try this with my CPA network.

  49. problogger 2u2c on June 27th, 2009

    this is cool technic that i ever learn…and i start to thinking a lot of thing to do woth this plugin ;)

Leave a reply

*
To prove you're a person (and not a spam bot - although we do like cute bots round here), type the security word shown in the picture.
Anti-Spam Image