Here is a good script to see if a sponsor is shaving you. All traffic sent to this script will be equally split over 2 traffic urls that you enter. To make sure you are not getting shaved test sponsors against each other.
Script:
<?
$url_a = 'http://www.aol.com';
$url_b = 'http://www.gfy.com';
$goto = '';
$shm_key = ftok(__FILE__, 't');
$shm_id = shmop_open($shm_key, "c", 0644, 100);
$data = shmop_read($shm_id, 0, 1);
if (($data!='1') && ($data!='2'))
{
$shm_bytes_written = shmop_write($shm_id, '1', 0);
$data = 1;
}
if ($data=='1')
{
$goto = $url_a;
$bw = shmop_write($shm_id, '2', 0);
}
if ($data=='2')
{
$goto = $url_b;
$bw = shmop_write($shm_id, '1', 0);
}
shmop_close($shm_id);
//echo 'Redirecting to: '.$goto.'!';
header('Location: '.$goto);
die();
?>
|