Skip to content

Instantly share code, notes, and snippets.

@neoeinstein
Created May 7, 2009 19:24
Show Gist options
  • Save neoeinstein/108294 to your computer and use it in GitHub Desktop.
Save neoeinstein/108294 to your computer and use it in GitHub Desktop.
## These directives are to help preserve anonymity while allowing for aggregation of data
## Only use this if you are proactively shredding log files
## If doing running statistical analysis that depends on timestamps
#LogFormat "%{Service}e:%p %l %{GEOIP_COUNTRY_NAME}e %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" anonymous
## For general use
LogFormat "%{Service}e:%p %l %{GEOIP_COUNTRY_NAME}e %{[%d/%b/%Y:%H:00:00 %z]}t \"%r\" %>s %B \"%{Referer}i\" \"%{User-Agent}i\"" anonymous
SetEnv Service Normal
SetEnvIfNoCase Host ".onion$" Service=Hidden GEOIP_COUNTRY_CODE=HS GEOIP_COUNTRY_NAME=Hidden
## This requires SetEnvIfDNSBL: http://nesitive.net/nesitive/all/ab72d08f06989ea4e204403c6348424c.html
## See also https://www.torproject.org/tordnsel/index.html
<IfModule setenvdnsbl_module>
SetEnvIfDNSBL REMOTE_ADDR PORT.ADDR.IP.HOST.YOUR.ip-port.exitlist.torproject.org Service=TorExit GEOIP_COUNTRY_CODE=ON GEOIP_COUNTRY_NAME=Tor
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment