文章目录 1. 内容设置2. 保存位置 1. 内容设置 若不允许所有爬虫爬取自己的站点,可以将robots.txt设置为以下内容: User-Agent: * Disallow: / 2. 保存位置 robots.txt的编辑好了之后应放在网站的根目录下,默认的网站根目录为:%SystemDrive%\inetpub\wwwroot