Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想禁止 SE 机器人访问我网站上的所有文件和文件夹,但其中的特殊文件夹和文件除外。我可以在 robots.txt 文件中使用这些行吗?
User-agent: * Disallow: / Allow: /thatfolder
这样对吗?
User-agent:* Allow: /thatfolder Disallow: /
这应该做。(只是改变了顺序)