Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.


share|improve this question
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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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