List of IPs to be ignored

LUTi - April 9, 2009 - 08:07
Project:Statistics Advanced Settings
Version:6.x-1.4
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Description

I don't want visits from my LAN to be counted on my website, so I've added some very simple code (diffs in attachment). For my needs, it is enough to simply enter all single IPs to be excluded (so there is no possibility to include subnets / IPs with masks at the moment - if anyone can provide a relatively simple solution for that, it would be just great...).

As much as I've tested it, everything seems to work as expected.

I am publishing that if anyone else is interested for this feature.

Any comments about the code (or, improvements) are also welcome, of course... ;-)

AttachmentSize
statistics_advanced.admin_.inc_.diff1.05 KB
statistics_advanced.module.diff890 bytes

#1

Dave Reid - April 9, 2009 - 18:08
Status:active» needs work

Thanks for the feature request!

1. Make sure to read up on http://drupal.org/patch/create (
2. Use ip_address() instead of $_SERVER['REMOTE_ADDR'].

#2

LUTi - April 10, 2009 - 12:21

Thank you for your feedback, Dave.

By the way, what exactly is wrong with my patches (as you're suggesting me to read the post about patch creation)? ;-)

#3

Dave Reid - April 10, 2009 - 13:34

Oh, on second glance it looks like the patch files are just fine. I usually expect them to be named .patch files, but that's not anything major. Sorry. :)

#4

henmue - August 28, 2009 - 08:49

Is there any progress on this request? I have a lot of unnecessary "recent hits" entries which result out of our server configuration...

Regards
Henry

 
 

Drupal is a registered trademark of Dries Buytaert.