User-agent: * # 1. 允许抓取静态资源和核心入口(确保搜索引擎能“看到”网页真实外观) Allow: /wp-content/uploads/ Allow: /wp-admin/admin-ajax.php # 显式放行渲染所需的全部核心静态资源 Allow: /wp-includes/*.js Allow: /wp-includes/*.css Allow: /wp-includes/*.png Allow: /wp-includes/*.jpg Allow: /wp-includes/*.jpeg Allow: /wp-includes/*.gif Allow: /wp-includes/*.svg Allow: /wp-includes/*.webp Allow: /wp-content/plugins/*.js Allow: /wp-content/plugins/*.css Allow: /wp-content/plugins/*.png Allow: /wp-content/plugins/*.jpg Allow: /wp-content/plugins/*.gif Allow: /wp-content/plugins/*.webp Allow: /wp-content/themes/*.js Allow: /wp-content/themes/*.css Allow: /wp-content/themes/*.png Allow: /wp-content/themes/*.jpg Allow: /wp-content/themes/*.jpeg Allow: /wp-content/themes/*.gif Allow: /wp-content/themes/*.svg Allow: /wp-content/themes/*.webp # 2. 针对性屏蔽:拦截冗余的 AJAX 回调和统计请求(解决报错关键) Disallow: /wp-admin/admin-ajax.php?action=tb_the_postview Disallow: /wp-admin/admin-ajax.php?*callback=jQuery* Disallow: /wp-admin/admin-ajax.php?*_=* # 3. 屏蔽后台核心目录、敏感文件与 API 数据接口(安全防护与防止权重流失) Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /wp-content/plugins/ Disallow: /wp-content/themes/ Disallow: /wp-login.php Disallow: /wp-register.php Disallow: /xmlrpc.php Disallow: /wp-json/ # 4. 屏蔽搜索结果页、动态参数与低价值页面(极致节省上万篇文章的抓取配额,彻底阻断重复内容) Disallow: /?s= Disallow: /search/ Disallow: /?p=*&preview=true Disallow: /comments/feed/ Disallow: /feed/ Disallow: /*/feed/ Disallow: /trackback/ Disallow: /*/trackback/ Disallow: /?replytocom= Disallow: /author/ Disallow: /?author=* # 5. 站点地图声明(最后一块拼图:引导爬虫高效抓取 /%post_id%.html 等真实收录链接) Sitemap: https://www.yishou.de/sitemap.xml