禁止搜索引擎访问本站一切文件的robots.txt怎么写?

WBOY
Release: 2016-06-23 14:14:36
Original
1841 people have browsed it

如果想禁止搜索引擎访问本站的一切目录和一切文件,那么是需要在目录建立一个robots.txt文件是吗?内容怎么写?


回复讨论(解决方案)

User-agent:
Disallow: /

User-agent:
Disallow: /
请问这样设置以后,连首页(根目录index.php)的内容也不会被收录了吧?

建议你看一下这篇文章  http://baike.baidu.com/view/9274458.htm?fromId=1280732

建议你看一下这篇文章  http://baike.baidu.com/view/9274458.htm?fromId=1280732
好的,谢谢!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template