.htaccess如何在不阻止搜索引擎爬虫的情况下阻止我们(使用cloudflare)
目前在我的htaccess中,我有这个.htaccess如何在不阻止搜索引擎爬虫的情况下阻止我们(使用cloudflare),.htaccess,googlebot,cloudflare,.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> setenif CF IPCountry US UnwantedCo
SetEnvIf CF-IPCountry US UnwantedCountry=1
Order allow,deny
Allow from all
Deny from env=UnwantedCountry
<Files /error/403.html>
Allow From All
</Files>
setenif CF IPCountry US UnwantedCountry=1
命令允许,拒绝
通融
拒绝来自env=UnwantedCountry
通融
它阻止我们访问网站的这一部分,但我希望搜索引擎(主要是谷歌)仍然能够对其进行索引通过添加来自^googlebot(at)googlebot\.com$的setenif解决!UnwantedCountry等待我回答我自己的问题,通过从^googlebot(at)googlebot\.com$添加setenif解决!在我能回答我自己的问题之前,不要担心这个国家