I'm being honest in saying I don't know if what I am about to ask can be done.
I am new to this site and admit I feel a little guilty just coming into a community to ask for help, but I am urgently wanting to put an end to a problem.
I've designed my site to count hits to pages and recognize unique hits (based on IP Addys) and it's working properly. My problem is that certain pages (particular pages that contain name brand items or popular titles) are getting what I strongly believe are fake hits resulting from massive attempts to spam the site. The recaptcha system stops the spam from ever seeing the light of day, but the hits are still counting which is causing the hit counters on the pages to be totally inaccurate.
I check IP addresses for about 90 different hits to one particular page, the page for Pps Dpndncy (Pepsi Dependency) and about 80 were from outside the US, and of the others--most said Network Sharing Suspected. . .to contrast a normal page on my site gets approximately 98% of it's weekly hits from the United States, United Kingdom, Canada and Australia collectively. . clearly an issue when a page gets most of it's hits from India, Brazil, Indonesia & the Middle East.
Spammers never spend more than a second or two on a given page, that I can see from my servers stats, what I was wondering. . .
is their a php function that would allow you to run a part of a script only after a certain amount of seconds have elapsed (say 30 or so) but allow the rest of the page prior to where it's placed run normal as to not affect legitimate visitors to the site? Or any other ideas that anyone has--I would greatly appreciate it. I found ways you can 'not count' certain countries by blocking out certain IP addresses in ranges through MySQL, but the IP system is constantly changing, and even of the 10 or so US hits, some were fake--anyone have any ideas?