[SEO优化] SEO教程:禁止搜索引擎抓取网站内容

[复制链接]
查看498 | 回复6 | 2020-1-12 18:40:52 | 显示全部楼层 |阅读模式

大家做seo都是在千方百计的让搜索引擎抓取和收录,但是其实很多情况下我们还需要禁止搜索引擎抓取和收录

比如,公司内部测试的网站,或者内部网,或者后台登录的页面,肯定不希望被外面的人搜索到,所以要禁止搜索引擎抓取。

禁止搜索引擎抓取方法:

创建robots.txt文件到WEB根目录下,其内容为:

User-agent: Baiduspider Disallow: / User-agent: Sosospider Disallow: / User-agent: sogou spider Disallow:  User-agent: YodaoBot Disallow:  User-agent: Googlebot Disallow: / User-agent: Bingbot Disallow: / User-agent: Slurp Disallow: / User-agent: Teoma Disallow: / User-agent: ia_archiver Disallow: / User-agent: twiceler Disallow: / User-agent: MSNBot Disallow: / User-agent: Scrubby Disallow: / User-agent: Robozilla Disallow: / User-agent: googlebot-image Disallow: / User-agent: googlebot-mobile Disallow: / User-agent: yahoo-mmcrawler Disallow: / User-agent: yahoo-blogs/v3.9 Disallow: / User-agent: psbot Disallow: /

给大家发一张禁止搜索引擎抓取网站的搜索结果截图:

百度官方对robots.txt的解释是这样的:

Robots是站点与spider沟通的重要渠道,站点通过robots文件声明本网站中不想被搜索引擎收录的部分或者指定搜索引擎只收录特定的部分。

9月11日,百度搜索robots全新升级。升级后robots将优化对网站视频URL收录抓取情况。仅当您的网站包含不希望被视频搜索引擎收录的内容时,才需要使用robots.txt文件。如果您希望搜索引擎收录网站上所有内容,请勿建立robots.txt文件。

如您的网站未设置robots协议,百度搜索对网站视频URL的收录将包含视频播放页URL,及页面中的视频文件、视频周边文本等信息,搜索对已收录的短视频资源将对用户呈现为视频极速体验页。此外,综艺影视类长视频,搜索引擎仅收录页面URL。

回复

使用道具 举报

昀离936 | 2021-9-1 12:17:11 | 显示全部楼层
这个下载站资源真齐全
回复

使用道具 举报

Qian723 | 2022-6-2 10:06:39 | 显示全部楼层
站长真良心,这么大的资源站都是免费下载
回复

使用道具 举报

123457441 | 2022-6-23 03:32:49 | 显示全部楼层
5kym.cn这个站资源太全了
回复

使用道具 举报

玲嘉婕嘉n | 2022-9-3 08:26:48 | 显示全部楼层
悟空源码资源不错。粉了
回复

使用道具 举报

纆g | 2022-11-27 11:13:29 | 显示全部楼层
找了很多地方都不能下载,终于在悟空源码找到了
回复

使用道具 举报

不好吃荤漳 | 2023-5-2 08:08:48 | 显示全部楼层
没积分哈,谁来帮帮我啊
回复

使用道具 举报

清风哥 | 2023-9-1 17:26:17 | 显示全部楼层
我是来白嫖资源的!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则