Apacheのログに関して
画像非表示
http://vine-linux.ddo.jp/linux/apache/accesslog.php
SetEnvIf Request_URI
"\.(gif)|(jpg)|(jpeg)|(png)|(bmp)|(ico)|(css)|(swf)$" no-logfile
CustomLog /var/log/httpd/access_log combined env=!no-logfile
個体識別番号表示
http://www.accessup.org/pj/6_B4C9CDFDBFCDA4B5A4F3/201002182.html
RewriteEngine On
...
RewriteCond %{REQUEST_METHOD} GET [NC]
RewriteCond %{HTTP_USER_AGENT} "^DoCoMo"
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*?)$ $1?guid=ON [R=302,L]RewriteCond %{REQUEST_METHOD} GET [NC]
RewriteCond %{HTTP_USER_AGENT} "^DoCoMo"
RewriteCond %{QUERY_STRING} !^$
RewriteCond %{QUERY_STRING} !guid=ON
# 拡張子は環境に合わせて
RewriteRule ^([^\?]+?\.(?:asp|cgi)) $1?%{QUERY_STRING}&guid=ON [R=302,L,NE]
...