Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Yes, it is possible. Just:
1. go to Administer- Site building - Blocks
2. Select "Counter" block - Configure
3. Choose "Show on every page except the listed pages" and enter: admin/*
With above setting Counter block will not show on any "admin/*" URL, so the hit will not counting too.
Sorry I had to open this up again. I've also set all my blocks including the counter block to not show on forum/* ....does that mean it hasn't been counting the forum hits too? Is there any other way I can have the counter not count my (admin) hits.
Also is there a way to reset the counter...i've looked but can't find any info on this anywhere.
In your case, Counter module will not count access to forum/* but forum hits store in another Drupal table. Mean, the forum hits still working.
"Is there any other way I can have the counter not count my (admin) hits" --> I will add this feature to 6.x-2.0
"Also is there a way to reset the counter" --> right now you can reset it by delete all row in "counter" table using PHPMyAdmin
Comments
Comment #1
danielb commentedAlso would like a feature to not count hits by certain user roles, such as the admin :P
Comment #2
Glowy commentedHello! I'd also like this feature. Is it possible to realize it somehow?
Thanks a lot,
Chris
Comment #3
drupalnesia commented@Jerry.Robinson:
Yes, it is possible. Just:
1. go to Administer- Site building - Blocks
2. Select "Counter" block - Configure
3. Choose "Show on every page except the listed pages" and enter: admin/*
With above setting Counter block will not show on any "admin/*" URL, so the hit will not counting too.
Comment #4
danielb commentedah good point, that would also work for roles and any visibility settings done with PHP :P
Comment #5
drupalnesia commentedSolved.
Comment #6
Terebinth commentedHi,
Sorry I had to open this up again. I've also set all my blocks including the counter block to not show on forum/* ....does that mean it hasn't been counting the forum hits too? Is there any other way I can have the counter not count my (admin) hits.
Also is there a way to reset the counter...i've looked but can't find any info on this anywhere.
Cheers!
Comment #7
Terebinth commentedComment #8
drupalnesia commentedIn your case, Counter module will not count access to forum/* but forum hits store in another Drupal table. Mean, the forum hits still working.
"Is there any other way I can have the counter not count my (admin) hits" --> I will add this feature to 6.x-2.0
"Also is there a way to reset the counter" --> right now you can reset it by delete all row in "counter" table using PHPMyAdmin
Comment #9
drupalnesia commentedCounter 6.x-2.0 available now!
Please create new forum thread for bug reporting or feature request.
Thanks to all contributions to this module.