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

{Tutorial} How to Geo Target and Rotate Offers in BHCB

Discussion in 'CPA' started by kimkils, Apr 21, 2010.

  1. kimkils

    kimkils Power Member

    Joined:
    Jan 10, 2009
    Messages:
    663
    Likes Received:
    225
    Thought i'd share my way of Geo-Targeting BlackHatCodeBreaker, as well as how to rotate the offers for each country. It is quite straightforward and i will describe the process as best i can.

    Firstly buy BHCB... :)

    Next in your Links.txt simply have the following:

    Click Me
    http://www.domain.com/geo/geo.php


    This will create one link, which when clicked will go to the above URL (change the domain bit to your domain... obviously :))

    Ok, next up we create that geo folder we see up there in the link...

    I have uploaded the contents of the GEO folder to Mediafire here

    I've also attached it to this thread as well.

    VirusTotal scan here

    Code:
    File geo.zip received on 2010.04.21 14:01:09 (UTC)
    Current status: Loading ... queued waiting scanning finished NOT FOUND STOPPED
    Result: 0/41 (0%)
    The only file you really need to edit is the geo.php one, you can use notepad to edit it but its much easier if you get the free product Notepad++, which makes the syntax much easier to keep track of (and it makes it pretty colours!)

    Inside geo.php we have the code to check for the IP and compare it to the database - Geoip.dat and geoip.inc. Index.html is simply a blank html document to give a blank page incase anyone comes sniffing around your website ;)

    Ok so what do you edit in geo.php?

    it's very straightforward... i have made a template showing you how to arrange URL's to be rotated, if you only want one URL to be chosen then you simply only use one, simple :p

    Code:
            case "US": // UNITED STATES OFFERS
    		
    			$random_url = array("[COLOR="Lime"]http://www.whitehatdomain.com/USA_landing_page_1.php?mn=1234[/COLOR]", // landing page 1...
    								"[COLOR="Lime"]http://www.whitehatdomain.com/USA_landing_page_2.php?mn=1234[/COLOR]", // landing page 2...
    								"[COLOR="Lime"]http://www.whitehatdomain.com/USA_landing_page_3.php?mn=1234[/COLOR]"); // 3, make sure you have the commas if more than 1!
    			srand(time());
    			$random = (rand()%count($random_url));
    		
    			header ("Location: $random_url[$random]");
    			
    			break;
    For a single landing page you would simply use the following:
    $random_url = array("http://www.whitehatdomain.com/USA_landing_page_1.php?mn=1234");

    Short codes (GB for United Kingdom and USA for America for example) can be found on the internetz, or you could check Geoip.inc (open in your new sexy notepad++)

    For those not familiar with CPA redirector it allows you to "fake" your referer so the network see one page and the visitor sees another one. You can get brads great CPA redirector 2 standalone from here

    Hope this helps some of you make some money, enjoy ;)
     

    Attached Files:

    • geo.zip
      File size:
      486.7 KB
      Views:
      32
    • Thanks Thanks x 4
    Last edited: Apr 21, 2010
  2. shawah309

    shawah309 Junior Member

    Joined:
    Aug 3, 2009
    Messages:
    153
    Likes Received:
    247
    Home Page:
    can you explain what this link is for, I checked this link it is for buying domain/hosting
    Code:
    [B][URL="http://www.blackhatworld.com/redirect-to/?redirect=http%3A%2F%2Fwww.domain.com%2Fgeo%2Fgeo.php"]http://www.domain.com/geo/geo.php[/URL][/B]
     
  3. 1swag

    1swag BANNED BANNED

    Joined:
    Apr 4, 2008
    Messages:
    233
    Likes Received:
    23
    lol i Just Coded My Own Product that would redirect international vistors to different advertisement so i wouldn't just be advertising to us only traffic ...
    funny that you posted this
     
  4. asdf221

    asdf221 Registered Member

    Joined:
    Mar 18, 2008
    Messages:
    59
    Likes Received:
    3
    thanks!
     
  5. g111k

    g111k Regular Member

    Joined:
    Jul 23, 2009
    Messages:
    263
    Likes Received:
    193
    Thanks OP, great mashup on how to make good use of publicly available scripts - I had this setup going with rotating offers but never bothered to geo-target them, perhaps I should!

    Quick question though... let's say I use incentive offers provided by the network with BHCB... and I lock down real content that users can unlock - so no deceiving involved.

    So to say everything would be "whitehat" even though I'm kind of using a "blackhat" method.

    Would networks have a problem with me using "Click Here" or some other general anchor like "Giftcard Offers" to a link that will different offers???

    In other words, do you think there would be a problem if I'm not specifically saying "$250 Wal-mart Gift Card - Click Here!" which simply rotates that specific offer from different networks????
     
  6. Deviance

    Deviance Regular Member

    Joined:
    Apr 14, 2009
    Messages:
    205
    Likes Received:
    143
    Read the goddamn post man, jesus christ I just can't believe how mindblowlingly dumb some people are here.


    Anyway, thanks for taking the time to explain this OP, +thanked.