禁止来自googlebots的某些网址

时间:2016-10-11 21:38:21

标签: googlebot google-index

我有以下网址:

http://www.website.com/somethingawesome/?render=xml

http://www.website.com/somethingawesome/?render=json

我想要的是当网址中包含?render=xml?render=json时,禁止谷歌编制索引。 这可以改为任何网址。

我的想法是:

Disallow: /?render=xml
Disallow: /?render=json

这会有效吗?我也应该关注网址部分吗?我怎样才能做到这一点?

1 个答案:

答案 0 :(得分:0)

您首先需要通配符:

<span data-bip-type="input"
 data-bip-attribute="name"  
 data-bip-object="company" 
 data-bip-original-content="Lightbulbs Corp." 
 data-bip-skip-blur="false" 
 data-bip-url="/companies/1001664029" 
 data-bip-value="Lightbulbs Corp." 
 class="best_in_place" 
 id="best_in_place_company_1001664029_name">Lightbulbs Corp.</span>