I use TP on most of my sites and I set up a little scheme to sort that traffic. I figured I would give you an example:
First... you need to create 2 scripts.
test.php - make sure to replace <yourdomain> with the domain this script lives on
Code:
<?php
setcookie('test', 'yahoo', time() + 84600, '/', ".<yourdomain>.com");
header('location: /redirect.php');
?>
redirect.php
Code:
<?php
$LANDING_URL = 'http://www.landingpage.com'; //landing page with fpa's or some promo
$TRAFFIC_URL = 'http://www.trafficbroker.com'; //traffic broker
$MOBILE_URL = 'http://www.mobilesponsor.com/'; //a sponsor like topbuck pinkvisual mobile or GTS Mobi
// Do not edit below
$WORDS = array('mobile', 'blackberry', 'j2me', 'webos', 'windows ce', 'android', 'palm', 'PSP');
$is_mobile = FALSE;
foreach ($WORDS as $w) {
if (isset($_SERVER['HTTP_USER_AGENT']) && stripos($_SERVER['HTTP_USER_AGENT'], $w)) {
$is_mobile = TRUE;
break;
}
}
if ($is_mobile) {
header('Location: ' . $MOBILE_URL);
}
$has_cookie = eregi('yahoo', $_COOKIE['test']);
$is_proxy = getenv('HTTP_X_FORWARDED_FOR');
$has_referer = eregi('http', $_SERVER['HTTP_REFERER']);
if ($has_cookie && !$is_proxy && $has_referer) {
header('Location: ' . $TRAFFIC_URL);
}
else {
header('Location: ' . $LANDING_URL);
}
?>
Then in your trade script (if it supports it) you would put
http://www.yourdomain.com/test.php as the out url for the bad traffic
You can set up a landing page like
this one. to use for the $LANDING_URL
For the $TRAFFIC_URL I recommend using the RAWS program by
FpcTraffic because you don't have to worry about unsold traffic and I average about $2.26/k for this type of traffic. I have compared other brokers and they are in the same range but send back unsold.
For $MOBILE_URL There are alot of different mobile traffic programs. Currently I am using
GTS Mobi.
In TP I set the following to go to this script.
After visiting all trades
nocookie traffic
noref_out traffic
filtered traffic
fast clicks
proxy traffic
notcounted traffic
no img traffic