|
|
|
|
|
by mrweasel
2066 days ago
|
|
I would like to see more software having the option of just logging the users country and not the IP, and perhaps just as generic a user agent as possible (Just, is this Chrome, FireFox, Edge, whatever, but nothing else.) for example for Nginx something like: log_format logfmt '$remote_country - [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_generic_user_agent" "$gzip_ratio"'; That would assume access to a GeoIP database, but it would be helpful. |
|
A similar idea would be to have built-in $remote_addr_hash8, $remote_addr_hash16 variables which hash IPv4 and IPv6 addresses down to 8-bit or 16-bit numbers.
There are hacky ways you can do some forms of anonymization already:
https://www.supertechcrew.com/anonymizing-logs-nginx-apache/