17 Oct
Posted by admin as Affiliate Marketing, Landing Pages
As you probably already know old Facebook cloaking method not always work. They start testing new method without the traditional intern referral URL. So I’ve created clocking script + service to track reviewer’s IP addresses and share between users.
How it works:
You install script on your server, configure it and when Facebook intern come to review your ad from the traditional referral URL, script will send IP address, referral URL and user agent to tracking server. We will provide a daily updates of IP text file with fresh IP addresses. So your script always be up to date. More users use this script/service the more IP we will collect.
Installation and Configuration
1. Download.
2. Unpack the files to any folder on your web server. Make sure this line is in your php.ini file: allow_url_fopen = On
3. Edit the configuration file fbcloaking-config.php. You will see 2 PHP arrays $offers and $cloaked. $offers array for your non-cloaked URLs and $cloaked for cloaked links:). For same offer you have to use identical array keys in both arrays.
Example:
$offers = array( 'offer-id1' => "http://trk.com/dl.php?t202id=123&t202kw=" . $_GET['ad'], 'offer-id2' => "http://trk.com/dl.php?t202id=456&t202kw=" . $_GET['ad'], 'offer-id3' => "http://anotheroffer.com/", ); $cloaked = array( 'offer-id1' => 'http://apps.facebook.com/visabusiness/', 'offer-id2' => 'http://www.disney.com/', 'offer-id3' => 'http://affiliateplex.com/', );
As you can see you can pass through any query string parameters further to your tracking software.
Here is example how to configure cloaking script with prosper202/tracking202:
The best way to split testing your ads with prosper202/tracking202 and Facebook is using single destination URL and t202kw parameter.
For example you have created few ads with following URLs pointing to your cloaking script:
http://yourdomain.com/redirect.php?oid=offer1&ad=ad1
http://yourdomain.com/redirect.php?oid=offer1&ad=ad2
http://yourdomain.com/redirect.php?oid=offer2&ad=ad1
http://yourdomain.com/redirect.php?oid=offer3&ad=ad1
Then your configuration file should look something like this:
$offers = array( 'offer1' => "http://trk.com/dl.php?t202id=123&t202kw=" . $_GET['ad'], 'offer2' => "http://trk.com/dl.php?t202id=456&t202kw=" . $_GET['ad'], 'offer3' => "http://trk.com/dl.php?t202id=789&t202kw=" . $_GET['ad'], ); $cloaked = array( 'offer1' => 'http://apps.facebook.com/visabusiness/', 'offer2' => 'http://www.disney.com/', 'offer3' => 'http://affiliateplex.com/', );
If you don’t use tracking software you can just put offer or landing page URL into $offers array.
4. Daily update IP text file fbcloaking.txt from here.
Tags: cloaking, Facebook
27 Responses
surflovers
October 18th, 2008 at 1:35 pm
1wow two thumbs up…. thanks for the script.. any better way to improve it ??
admin
October 18th, 2008 at 4:18 pm
2How can I improve it? Any suggestion?
Matt
October 29th, 2008 at 8:17 pm
3This is great. Keep the IPs coming!
Miguel (SEO Guru)
November 11th, 2008 at 3:24 am
4Thanks for the script!
xerafhica
November 13th, 2008 at 7:53 am
5Thanks for this helpful script!
Tools Any Facebook Social Ads User Should Have | Facebook Affiliate
December 4th, 2008 at 2:16 am
6[...] 2) Facebook Cloaking Script with Daily Updated IP Database - A cloaking script that sends the interns that approve your ad to a “safe” landing page. This is only useful if you are promoting something that likely wouldn’t be passed based on your LP. [...]
Matthew Berman
December 4th, 2008 at 4:30 pm
7nice script. you can just use a redirect too once the ad gets approved..but this is better if your submitting a lot of ads.
i wrote up a script yesterday that redirects repeat visitors who both did and did not convert. check it out:
http://internetbusinessdaily.net/how-to-deal-with-repeat-visitors-who-didnt-convert/
let me know if this is useful to others…i find it very useful. since i change my ads so often i get repeat clicks all the time and they either signed up already and wont again or didnt sign up and wont.
Lance
December 13th, 2008 at 4:35 pm
8I’m trying to toggle my allow_url_fopen, but my hosting company will not do it globally or at all(poor programming,security issues they say). My current php settings has allow_url_fopen = off based on phpinfo(). I tried toggling it with .htaccess file but I’m not sure if that is targeting the PHP.INI file. Please help as I would like to beat those interns. Thank you!
is there a way to do this with the cURL module?
Wes (MasterlessSamurai.com)
January 19th, 2009 at 10:50 pm
9awesome script…can’t wait to try it out. I’m new to FB advertising, but just got back from ASW and learned that a good number of people are making their income solely from FB. And for the fact that you use it with Prosper202 makes it even more awesome!
Facebook Ad Tools to Help You Get the Job Done | Justin Dupre
February 7th, 2009 at 6:20 am
10[...] Facebook Cloaking Script - Here is a pretty cool script that will collect IPs of the first IP to review your ad, and then redirect that IP each time to a different offer other than what you are promoting. This is good if you are trying to get ads up that might be determined as sketchy according to Facebook’s ad policies. It loads the data to a central database so there is already a ton of IPs collected. [...]
Matthew Berman
February 18th, 2009 at 1:38 am
11is this still being updated?
admin
February 18th, 2009 at 1:50 am
12Ops, switched to new server and forgot to add cron job.
Now IPs list will update daily.
Enjoy
Mike
March 14th, 2009 at 5:02 pm
13Do we have permission to modify the script for our own needs?
Thanks
admin
March 16th, 2009 at 9:17 pm
14>Do we have permission to modify the script for our own needs?
Yes you have
yorgos
March 24th, 2009 at 3:43 pm
15I still can’t get that to work, my redirect file is
http://pastebin.com/m539bca89
I modified it a little to run on PHP 4.3.3
and my fbcloaking-config.php file is
http://pastebin.com/m3fe78bea
Can you tell me where I am wrong. And keep up the good work!!
admin
March 24th, 2009 at 3:58 pm
16What exactly is not working, check your error_logs and give me more info.
Your final URL should look like /redirect.php?oid=offer1
yorga
March 24th, 2009 at 4:50 pm
17nice i missed the ?oid=offer1 part, great script!! i hope interns won’t see my ad
legitimate online jobs
May 7th, 2009 at 9:05 am
18Thanks for the script - this is really useful. Pity the blog owner seems to have stopped posting. There’s some good info here.
leo
May 28th, 2009 at 3:21 pm
19Hey,
I troubleshooted my non working script and it seems that the url: http://fb.affiliateplex.com/track? doesnot seem to return anything back. As a result the script is not working for me. Any ideas why it’s happenning?
admin
May 28th, 2009 at 3:27 pm
20Hey,
It’s normal behavior, /track don’t have to return anything. Read installation instructions and check your configuration.
The 3 Keys To Marketing on Facebook | Justin Dupre
June 3rd, 2009 at 3:05 pm
21[...] Also, if you haven’t heard, Facebook now has ad reviews being done from Irish and UK IPs. This means if you are direct linking and that link has a redirect script for IPs outside of the offers accepted traffic range, they will be redirected to something else. This is why so many ads are getting disapproved for direct linkers. With my script, this is fixed. Here is a basic script you can install and use on your server. [...]
Rick
June 4th, 2009 at 10:50 am
22Very nice script, i will definately give it a try as I haven’t had much success with facebook before… thank you
Emile Bourquin
June 11th, 2009 at 2:21 pm
23Great script and service, thanks for this.
One optimization suggestion for redirect.php: group all the if (preg_match…) statements together into one if(), with || (ORs) so that if the first ‘if’ (or second, third, etc.) matches, the others are not executed (known as ’short circuiting’, if any OR matches, the entire statement is immediately TRUE, or if any AND does not match, the entire statement is FALSE).
if((preg_match(’/dev\.facebook/’ , $_SERVER['HTTP_REFERER'])) ||
(preg_match(’/dev[^\.]+\.facebook/’ , $_SERVER['HTTP_REFERER'])) ||
(preg_match(’/intern\.facebook/’ , $_SERVER['HTTP_REFERER'])) ||
(preg_match(’/\.cs\.facebook/’ , $_SERVER['HTTP_REFERER'])) ||
(stristr($_SERVER['HTTP_REFERER'], ‘/intern/ads/review.php’)))
{
$cloak = TRUE;
}
I’m assuming the PHP interpreter does short circuiting, like a C compiler will.
admin
June 11th, 2009 at 2:23 pm
24Emile thank you for your contribution
Tatto Media Contest Update: A Super Easy Profitable Facebook Campaign!
June 19th, 2009 at 7:22 pm
25[...] Facebook doesn’t like the landing page of Fling. It is too “adult”. Get yourself this cloaking sytem at AffiliatePlex if you don’t already have it. I use my own custom cloaking built into my tracking system [...]
Steve
June 23rd, 2009 at 8:52 pm
26Is any one checking authenticity of the IP’s listed the fbcloaking.txt file? A good percentage of those are just dynamic DSL connections based in Australia & NZ.
Tai Slim
June 25th, 2009 at 9:48 pm
27Good script to cloak the Facebook. But can anybody tell me what is the impostance of collectin ip address? How it can help a webmaster?
RSS feed for comments on this post · TrackBack URI
Leave a reply
Categories
Archives
Links
Meta
Calendar
Recent Entries
Recent Comments
Most Commented
Affiliate Marketing Blog is proudly powered by WordPress - BloggingPro theme by: Design Disease
© AffiliatePlex.com