Ameba Ownd

アプリで簡単、無料ホームページ作成

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

2019.08.14 15:00

アクセス制限で検索エンジンのみ許可する.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行はアナリティクス用。