Detecting and Logging Real Visitors Versus Bot Hits Using PHP

For the past two years I have been developing a traffic trading script that I actually bought many years ago. At the time I needed something fast to setup a few sites where I would be trading traffic with other sites. The script needed a lot of new features so over time I have managed to integrate various changes to help with performance and also usability. The one thing I always had problems with was the script constantly logged traffic that was not human traffic.

One of the features that I added was tracking hits that had no referrer. The problem with that was this also allowed bot traffic to get logged as well.  Bots usually don’t have a referring site so the script was picking these up as valid hits and throwing off my no referrer stats.

Powered by WordPress