ipscrub #

ipscrub is an IP address anonymizer for nginx log files. It's an nginx module that generates an IP-based hash. You can use this hash to link requests from the same source, without identifying your users by IP address.

Source: upstream source

Directives

ipscrub_period_seconds #

syntax: ipscrub_period_seconds 1 arg (integer);  ·  context: http

Set ipscrub_period_seconds <NUM SECONDS PER PERIOD>; (optional). 1.

Example

# Anonymise client IPs in access logs by rotating the salt every hour.
ipscrub_period_seconds 3600;

log_format scrubbed '$remote_addr_ipscrub - [$time_local] "$request" $status';
access_log /var/log/nginx/access.log scrubbed;

↑ back to index