.htaccess如何在不阻挡搜索引擎的情况下阻止美国(使用cloudflare)

时间:2012-09-13 11:56:46

标签: .htaccess googlebot cloudflare

目前在我的htaccess中我有这个

    SetEnvIf CF-IPCountry US UnwantedCountry=1
    Order allow,deny
    Allow from all
    Deny from env=UnwantedCountry
    <Files /error/403.html> 
    Allow From All 
    </Files>

它阻止美国访问该网站的这一部分,但我希望搜索引擎(主要是谷歌)仍然可以将其编入索引

0 个答案:

没有答案
相关问题