参考1:https://zhidao.baidu.com/question/543972314.html
参考2:https://jingyan.baidu.com/article/e8cdb32b45b3e837042bad7f.html
请复制以下两行代码:
User-agent: *
Disallow: /
把上面的两行代码保存为Robots.txt文件,放在网站根目录下就可了
除了设置robots协议之外,还可以在网页代码里面设置。在网页<head></head>之间加入
<meta name="robots" content="noarchive">
代码。