# Global rules
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

# 允許 Google 抓取 WordPress API(僅限文章)
Allow: /wp-json/wp/v2/

# Google AdSense 和 Ads 相關爬蟲
User-agent: Mediapartners-Google
Allow: /

User-agent: Mediapartners-Google-Mobile
Allow: /

User-agent: AdsBot-Google
Allow: /

# Ezoic 爬蟲
User-agent: Ezobot
Allow: /

User-agent: AdsBot-Google-Mobile
Allow: /

# Google 特定爬蟲
User-agent: Googlebot
Allow: /

User-agent: Googlebot-Image
Allow: /wp-content/uploads/

User-agent: Googlebot-Mobile
Allow: /

# RankMath SEO 外掛
Allow: /wp-json/rankmath/v1/updateCheck

# 允許 /go/ 與 /recommend/
Allow: /go/
Allow: /recommend/

# Sitemap
Sitemap: https://jasiyu.com/sitemap_index.xml

# WordPress 安全性封鎖
Disallow: /wp-includes/
Disallow: /wp-content/plugins/
Disallow: /wp-content/themes/
Disallow: /wp-login.php
Disallow: /wp-register.php

# 避免索引內部搜尋結果
Disallow: /*?s=
Disallow: /search/

# 避免索引已刪除內容
Disallow: /deleted-article-1/
Disallow: /deleted-article-2/
Disallow: /tag/deleted-tag-1/
Disallow: /tag/deleted-tag-2/

# 避免索引動態參數
Disallow: /*?author=
Disallow: /*?loggedout=
Disallow: /*?version=
Disallow: /*?preview=

# 防止 Google 抓取 RSS Feeds
Disallow: /feed/
Disallow: */feed/
Disallow: /comments/feed/

# 阻擋附件頁面(但允許圖片索引)
Disallow: /attachment/
User-agent: Googlebot-Image
Allow: /wp-content/uploads/