3

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:

5

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.

  • 1
    The referenced module is no longer available. – Aeyoun Jan 9 '18 at 11:58
  • Also note that using md5 for such a limited input range does not really provide anonymity - the IP can be obtained by brute forcing the hash. – Scolytus May 17 '18 at 12:38

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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