gpt4 book ai didi

html - robot.txt 允许而不是禁止

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:43:05 24 4
gpt4 key购买 nike

我的应用程序几乎没有动态网址,所以 robots.txt 中是否允许而不是禁止?喜欢

User-agent: *
allow: /
allow: /blog

或者我必须做这样的事情?

User-agent: *
Disallow: /users/*

最佳答案

有,它叫做“允许”。您甚至可以通过这种方式禁止整个文件夹但禁止文件:

User-agent: * 
Disallow: /folder/
Allow: /folder/file.php

关于html - robot.txt 允许而不是禁止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40814583/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com