アクセス制限で検索エンジンのみ許可する.htaccess

アクセス制限で検索エンジンのみ許可する.htaccessです。


SetEnvIf Referer "^http://google" chk_url

SetEnvIf Referer "^https://google" chk_url

SetEnvIf User-Agent "Google-Site-Verification" allowbot

SetEnvIf User-Agent "Googlebot" allowbot

SetEnvIf User-Agent "Slurp" allowbot

SetEnvIf User-Agent "bingbot" allowbot


※ Google、MSN、Bing、Yahoo!のbotのみを許可。

※ 上3行はアナリティクス用。

うぇぶやき

WEBデザイナーのぼやき、略して「うぇぶやき」です。