0514.1
This commit is contained in:
20
public/robots.txt
Normal file
20
public/robots.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
# SaaS平台robots.txt
|
||||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
# 禁止访问的路径
|
||||
Disallow: /api/
|
||||
Disallow: /admin/
|
||||
Disallow: /dashboard/private/
|
||||
Disallow: /uploads/private/
|
||||
|
||||
# 允许访问的特定路径
|
||||
Allow: /public/
|
||||
Allow: /blog/
|
||||
Allow: /docs/
|
||||
|
||||
# 站点地图
|
||||
Sitemap: https://yourdomain.com/sitemap.xml
|
||||
|
||||
# 抓取频率设置
|
||||
Crawl-delay: 10
|
||||
Reference in New Issue
Block a user