Drupal 7: Do not count visits of bots or spammers
Posted by rolf on Friday, 13 February 2015
If you use the statistics module (in core in Drupal 7) to show how many times an article was read, there are two problems with that number
- also bots and spammers are count
- if you reload the page (e.g. with F5) the number is incremented
SOLUTION TO 1.
Browse to
MYWEBISTE.com/admin/config/system/statistics
and check
"
Then only users who have javascript enabled are counted. Bots most of the time are not jusing a browser, hence have no javascript and will not be counted.
SO FAR NO EASY SOLUTION TO 2.
this seems to be a major issue in Drupal 7, see this Drupal post. One easy solution might be to not use the statistics module, but rely on the google analytics module.
Add new comment