libapache2-mod-scramble-ip in an Apache module that encrypts IPs in the apache-server in a way, that you can still work with them (for analytics etc.) but its not possible to find out the original IP.
If you do not like to or if you are not allowed to save IPs of your website-visitors, you just could disable IP-logging or use mod_removeip. But you will not be able to keep track of "unique website visitors" on your pages.
mod_scamble_ip solves this issue, by encrypting IP-addresses on the fly directly in the apache-worker threads. The encrypted IPs will still look like IPs, so your applications should not run into format-issues.
On linux, the module is pretty fast. On other OSes, the apache-start could last longer since we need to gernate random characters. (on Linux, the module just uses /dev/urandom, which is fast)
· Apache 2
This module works ONLY for Apache2 !!!
- look into makefile, check path to apxs2 (included into apache2-dev...)
- make install
Copy into your apache2-configuration:
LoadModule scramble_ip_module /usr/lib/apache2/modules/mod_scramble_ip.so
< IfModule scramble_ip_module >
# ScrambleIPpassword Example1234567890
< /IfModule >
"ScrambleIPenable" needs to be set to "on" to let the module start working
"ScrambleIPpassword" sets a fix password for encryption. Please do not set it, as your IP's could be de-crypted. If you do not set it the module will generate a random password for you on start of apache. As soon as you restart apache, a new password will be generated.