编码告诉谷歌不要阅读网站的某些脚本 [英] Coding to tell Google not to read a certain scripts of a website

查看:64
本文介绍了编码告诉谷歌不要阅读网站的某些脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找ASP.Net中的编码,告诉Google不要阅读网站页面的某些脚本。我已经尝试通过robots.txt阻止它,但它影响了我的其他scrips页面,因为所有脚本的路径都相同,但最后给出的源名称不同。



网址结构采用以下格式:脚本路径+源名称



我想让google明白不读取某些脚本的脚本路径。

I am a looking for a coding in ASP.Net to tell Google not to read certain scripts of a website pages. I have already tried to block it through robots.txt but it is affecting my other scrips pages because path of all the scripts are same but the source name given at the end is different.

The URL structure is in this pattern : Script Path + Source Name

I want to make google understand not to read script path of certain scripts.

推荐答案

您好使用robot.txt告诉谷歌不要阅读某些特定文件



https://support.google.com/webmasters/answer/156449?hl=en [ ^ ]
Hi use robot.txt to tell google not to read some specific files

https://support.google.com/webmasters/answer/156449?hl=en[^]


这篇关于编码告诉谷歌不要阅读网站的某些脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆