Block file_get_content是否阻止了Google bot?

问题描述 投票:0回答:1

我看到了; how to block curl or file_get_contents,此站点的页面。该代码用于.htaccess,用于阻止php的file_get_contents

RewriteEngine  On 
RewriteCond%  {HTTP_USER_AGENT}  ^ $ [OR] 
RewriteCond%  {HTTP_ACCEPT}  ^ $
RewriteRule  ^  -  [L, F]

我的问题是也有可能阻止Google Bot的可能性吗?

php .htaccess googlebot
1个回答
1
投票

您可以通过进入Google Webmaster Tools帐户和fetching a page on your site as Googlebot进行测试。那将是一个确定的测试。

但是看起来该代码阻止了没有价值的用户代理。 Google始终将自己标识为Googlebot。它还为v HTTP标头提供了一个值。所以我认为您会没事的。

© www.soinside.com 2019 - 2024. All rights reserved.