ips masking

To mask the IPs addresses of your visitors in Caddy, you can use the ipmask parameter from the log plugin.

It’s a mask, so the “reverse” value must be supplied.

In this example, the complete IP addresses (v4 and v6) are masked:

    log / /path/to/logs "{common}" {
      ipmask          0.0.0.0 0000:0000:0000:0000:0000:0000:0000:0000
    }

In this example, only the last half of the IP addresses (v4 and v6) are masked:

    log / /path/to/logs "{common}" {
      ipmask          255.255.0.0 ffff:ffff:ffff:ffff::
    }

The complete IP address will be transfered to the possible proxied services.

The data is permanently lost in the logs: here a file.

And this is a good thing!