I'd like to give my server's visitors more anonymity and do not want to store their IP address in the access and error logs anymore. This is possible in several ways, e.g. by following ApacheLogsWithoutIPs or just using mod_removeip.

Unfortunately this means that I cannot track the number of unique visitors to my site anymore - which is a problem for me.

Thus I'm looking for a way to store an anonymized IP address in the apache logs that doesn't reveal the user's real IP address but still allows to differentiate between the visitors in awstats. What can I do? I'd prefer an Apache in-built solution and not a script that walks over the logs after writing them.


Related:

link|improve this question

75% accept rate
feedback

1 Answer

up vote 4 down vote accepted

If you want to use an apache module there is mod_anonstats, which can be used to hash the ip address using md5.

If you need to track distinct users, just keep the ASSaltTimeout parameter to a high value.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.