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>

参考URL

カテゴリ

このブログ記事について

このページは、adminが2005年4月16日 22:51に書いたブログ記事です。

ひとつ前のブログ記事は「ssh-keygen鍵の作成 putty設定」です。

次のブログ記事は「OsCommerce簡単在庫更新モジュール」です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。