Black Hat Forum
Go Back   Black Hat Forum > Black Hat SEO > Cloaking and Content Generators

Cloaking and Content Generators Discuss Cloaking, Doorway pages and Automatic content generators for search engine optimization

Search
 
Do NOT buy anything from MASS PM Messages Asking you to buy IMA Products YOU HAVE BEEN WARNED!! (If you have REFUND IMMEDIATELY)
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-15-2008, 12:01 PM
bigkee42's Avatar
Jr. VIP
 
Join Date: Dec 2007
Posts: 147
Reputation: 10
bigkee42 is on a distinguished road
Thanks: 28
Thanked 13 Times in 12 Posts
iTrader: (0)
Talking Handy Affiliate Cloaking Script Help

Hello,

I am kind of new to the forum and PHP. I found a neat script, but I can not get it to work. I will add the whole blog below:



Affiliate link cloaking with Geo targeting

If you have some experience in affiliate marketing you know why is so important to cloak mask your affiliate links from bots and humans. If not you can find some info here.

Another problem you can face is losing some of your visitors because some of affiliate networks do not allowed traffic from some countries and redirect to different offer without your affiliate ID, so you won’t get your commission. Or you want to redirect user to different landing page/offer depend on region he came from using the same link.

To solve both of this problems I’ve wrote redirect script with geo targeting and it’s time to release it to public.

Configuration:
In config.inc.php you have to define rules and your affiliate links. There is two type of rules.

GEO regular expressions:

* Redirect to destination URL if user came from following countries: ‘/[(US|CA|GB)]/’
* Redirect to destination URL if user not came from following countries: ‘/[^(US|CA)]/’

Static links: linkffer1, linkffer2, etc.
Empty rule: default URL if none of rules above matched
config.inc.php:

<?php
$config = array(
'geo:/[(US|CA)]/' => 'http://example.com/aff-offer1',
'linkffer1' => 'http://example.com/aff-offer2',
'linkffer2' => 'http://example.com/aff-offer3',
'' => 'http://example.com/def-offer', # default offer
);
?>

In your httpd config file/.htaccess add following lines:

RewriteEngine On
RewriteRule ^/r/(.*?)/?$ /redirect.php?link=$1 [QSA,L]

In your robots.txt you disallow redirect script /r/:

User-agent: *
Disallow: /r/

Available country codes:

“AP”, “EU”, “AD”, “AE”, “AF”, “AG”, “AI”, “AL”, “AM”, “AN”, “AO”, “AQ”,
“AR”, “AS”, “AT”, “AU”, “AW”, “AZ”, “BA”, “BB”, “BD”, “BE”, “BF”, “BG”, “BH”,
“BI”, “BJ”, “BM”, “BN”, “BO”, “BR”, “BS”, “BT”, “BV”, “BW”, “BY”, “BZ”, “CA”,
“CC”, “CD”, “CF”, “CG”, “CH”, “CI”, “CK”, “CL”, “CM”, “CN”, “CO”, “CR”, “CU”,
“CV”, “CX”, “CY”, “CZ”, “DE”, “DJ”, “DK”, “DM”, “DO”, “DZ”, “EC”, “EE”, “EG”,
“EH”, “ER”, “ES”, “ET”, “FI”, “FJ”, “FK”, “FM”, “FO”, “FR”, “FX”, “GA”, “GB”,
“GD”, “GE”, “GF”, “GH”, “GI”, “GL”, “GM”, “GN”, “GP”, “GQ”, “GR”, “GS”, “GT”,
“GU”, “GW”, “GY”, “HK”, “HM”, “HN”, “HR”, “HT”, “HU”, “ID”, “IE”, “IL”, “IN”,
“IO”, “IQ”, “IR”, “IS”, “IT”, “JM”, “JO”, “JP”, “KE”, “KG”, “KH”, “KI”, “KM”,
“KN”, “KP”, “KR”, “KW”, “KY”, “KZ”, “LA”, “LB”, “LC”, “LI”, “LK”, “LR”, “LS”,
“LT”, “LU”, “LV”, “LY”, “MA”, “MC”, “MD”, “MG”, “MH”, “MK”, “ML”, “MM”, “MN”,
“MO”, “MP”, “MQ”, “MR”, “MS”, “MT”, “MU”, “MV”, “MW”, “MX”, “MY”, “MZ”, “NA”,
“NC”, “NE”, “NF”, “NG”, “NI”, “NL”, “NO”, “NP”, “NR”, “NU”, “NZ”, “OM”, “PA”,
“PE”, “PF”, “PG”, “PH”, “PK”, “PL”, “PM”, “PN”, “PR”, “PS”, “PT”, “PW”, “PY”,
“QA”, “RE”, “RO”, “RU”, “RW”, “SA”, “SB”, “SC”, “SD”, “SE”, “SG”, “SH”, “SI”,
“SJ”, “SK”, “SL”, “SM”, “SN”, “SO”, “SR”, “ST”, “SV”, “SY”, “SZ”, “TC”, “TD”,
“TF”, “TG”, “TH”, “TJ”, “TK”, “TM”, “TN”, “TO”, “TP”, “TR”, “TT”, “TV”, “TW”,
“TZ”, “UA”, “UG”, “UM”, “US”, “UY”, “UZ”, “VA”, “VC”, “VE”, “VG”, “VI”, “VN”,
“VU”, “WF”, “WS”, “YE”, “YT”, “YU”, “ZA”, “ZM”, “ZR”, “ZW”, “A1″, “A2″, “O1″



I uploaded the information to my domain, but I am not sure what I need to edit to make it work??? Also, I am not sure if I need to change any of the files CHMOD??? Please help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Make Money!

  #2 (permalink)  
Old 02-16-2008, 01:55 PM
bigkee42's Avatar
Jr. VIP
 
Join Date: Dec 2007
Posts: 147
Reputation: 10
bigkee42 is on a distinguished road
Thanks: 28
Thanked 13 Times in 12 Posts
iTrader: (0)
Default Re: Handy Affiliate Cloaking Script Help

I have the files in a zip if anyone needs it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump






Sitemap: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65