htaccessによるSetEnvIf REFERER制限
imgae限定の場合、
<Files ~ "\.(gif|jpe?g|png)$">
SetEnvIf REFERER "自サイトドメイン" Lilith1
SetEnvIf REFERER "自サイト関連ドメイン" Lilith2
SetEnvIf REFERER "goo.ne.jp" Lilith3
SetEnvIf REFERER "google.com" Lilith4
SetEnvIf REFERER "yahoo.co.jp" Lilith5
SetEnvIf REFERER "google.co.jp" Lilith6
SetEnvIf REFERER "66.102.7.104" Lilith7
SetEnvIf REFERER "^$" Lilith8
Order Deny,Allow
Deny from all
Allow from env=Lilith1
Allow from env=Lilith2
Allow from env=Lilith3
Allow from env=Lilith4
Allow from env=Lilith5
Allow from env=Lilith6
Allow from env=Lilith7
Allow from env=Lilith8
</Files>