Home > Paid Traffic Sources > Facebook & Instagram

Is it possible to block facebook IP on CPVlab? (10)


11-08-2012 05:49 AM #1 starrmikeh (Member)
Is it possible to block facebook IP on CPVlab?

Whenever I submit a bunch of ads to facebook I get a shitload of extra clicks on my CPVlab. Is there an IP address I can block so that facebook approval clicks will stop showing up on CPVlab?


11-08-2012 01:07 PM #2 zeno (Administrator)

This is why ads should always head to a PHP file where you control where the traffic goes, so that you can route the to the offer not via your tracking system. Not easy when adding to an already running campaign though. I was going to add something like a referrer check to alleviate some of that nuisance.


11-08-2012 01:52 PM #3 butthole (Member)

Add the IP ranges under the Blocked traffic rules in the settings menu. Its pretty easy to pick out the IPs from the visitor stats. Bulk of them in the 69.171.XXX.XXX range.

Page 77 In the User Guide


11-08-2012 04:09 PM #4 kyleirwin (Member)

Or put this at the top of any PHP file that clicks bounce through. #quickndurrty

[PHP]<?php

if(isset($_SERVER['REMOTE_ADDR'])&&preg_match('/^69\.171\./',$_SERVER['REMOTE_ADDR'])) {
header('Location: http://www.othersite.com/');
exit;
}

?>[/PHP]


11-08-2012 08:30 PM #5 partner (Member)

Also in Cpv Lab you can remove certain stats from a campaign


11-08-2012 09:16 PM #6 jimcrim (Member)

Dang, you beat me to it. Thanks for sharing!

Quote Originally Posted by kyleirwin View Post
Or put this at the top of any PHP file that clicks bounce through. #quickndurrty

[PHP]<?php

if(isset($_SERVER['REMOTE_ADDR'])&&preg_match('/^69\.171\./',$_SERVER['REMOTE_ADDR'])) {
header('Location: http://www.othersite.com/');
exit;
}

?>[/PHP]


11-10-2012 10:48 PM #7 ericchuawc (Member)

who are in the 69.171.XXX.XXX range? bots?

what's the php script above actually do? prevent those under the IPs to access the landers?


11-11-2012 12:35 PM #8 butthole (Member)

In that range are IPs that access your URL when submitting an ad. The above PHP redirects to a specified page based on the visitors IP, rather than your tracking or lander.


11-12-2012 02:48 AM #9 starrmikeh (Member)

Quote Originally Posted by kyleirwin View Post
Or put this at the top of any PHP file that clicks bounce through. #quickndurrty

[PHP]<?php

if(isset($_SERVER['REMOTE_ADDR'])&&preg_match('/^69\.171\./',$_SERVER['REMOTE_ADDR'])) {
header('Location: http://www.othersite.com/');
exit;
}

?>[/PHP]
Thanks for sharing this code and thanks to everyone who replied.

Just to clarify.. if I put this on my landing pages in the <head></head> section then facebook clicks won't show up on CPVLab?


11-12-2012 03:02 AM #10 zeno (Administrator)

That code will need to process before any HTML content. If a browser has started loading some content it's too late to do a header redirect.


Home > Paid Traffic Sources > Facebook & Instagram