Do BOT's trigger the count?

Post your Click counter digestion problems here
Post Reply
MarkHoward
Posts: 2
Joined: Thu May 20, 2010 10:31 pm

Do BOT's trigger the count?

Post by MarkHoward »

Script URL:
Version of script:1.2
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
Hi. Firstly, what a very useful script this is. Thank you.
Can you tell me if BOT's or Crawlers or any other non-humans can trigger the counter?
If so, is there any mod I can do to ensure that only human clicks are counted?
Thanks.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Yes, bots do trigger the count. To prevent the good bots (those that obey standards) doing so block them from visiting click.php using robots.txt file:
http://www.google.com/#hl=en&source=hp&q=robots.txt
http://www.google.com/#hl=en&source=hp& ... allow+file

Blocking others (non-standard compliant) would require coding in confirmation pages where people would have to type in a code (captcha) to visit a link - not recommended.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
MarkHoward
Posts: 2
Joined: Thu May 20, 2010 10:31 pm

Post by MarkHoward »

Thanks Klemen
That will help a lot. I'll try that on Monday. :)
DC
Posts: 138
Joined: Sun Dec 09, 2007 9:28 am

Post by DC »

Klem, couldn't you just check a session var is set as I found most bots pay no attention to sessions or cookies, thus they can't trigger the script if we check that ideas just my 2 cents ...

Its a small trick I use in my anti spam scripts.

DC
To Code Or Not To Code That Is The Question?

Was my post of any help to you? if so please do [url=http://www.clickcraft.net/slice_donations.php][b]Buy Me A Slice[/b][/url] ...
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

The bot would have to go through 2 requests for this to work (the click.php would have to be accessed two times).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply