How to check fake traffic

I want to know how we can check fake traffic:

If the traffic comes from the IP changer software,
If the traffic comes from the IP address of the proxy server,
If the person has set the referral URL in the browser,
If the traffic comes from traffic generation software,
If the traffic comes from traffic / web generation services sites.

To check the proxy server, we can use:

$_SERVER['HTTP_X_FORWARDED_FOR']
$_SERVER['HTTP_VIA']
$_SERVER['HTTP_PROXY_connection']
$_SERVER['HTTP_CLIENT_IP']

To check the referent, we can use:

$_SERVER['HTTP_REFERER']

But the above method can be easily fooled !?

Please suggest a more affordable way to check fake traffic / hits !?

+4
source share
1 answer

, .

. , . , strpos .

if(empty($_SERVER['HTTP_USER_AGENT']) || strpos($_SERVER['HTTP_USER_AGENT'], 'bot') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'spider') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'crawler') !== false)
{
    //most likely fake traffic
}

, , , .

, .

, . -? ?

?

, , , .

0

All Articles