# ctyeh.com robots.txt # 允許搜尋引擎抓取公開內容,完全禁止後台 / API / 使用者私人頁。 # 與 nuxt.config.js 的 nitro.routeRules robots: 'noindex, nofollow' 合作使用。 User-agent: * # ── 明確禁止(後台 / API / 私人頁 / 敏感 URL)── Disallow: /api/ # 全部後端 API(Django REST + Admin) Disallow: /api/admin/ # Django Admin(雙保險) Allow: /api/stock/search/ # 公開股票搜尋(/stock 搜尋框渲染) Allow: /api/stock/market/ # 公開市場摘要 / 指數 / 新聞 Allow: /api/stock/sitemap/ # 股票 sitemap 動態來源 Allow: /api/stock/strategies/ # 公開選股策略內容 Allow: /api/stock/stocks/ # 公開個股行情 / 圖表 / 法人 / 估值 / 新聞 Allow: /api/stock/etfs/ # 公開 ETF 清單 / 持股 / 折溢價 Allow: /api/articles/categories/ # 公開文章分類 Allow: /api/articles/articles/ # 公開文章與財經知識 Disallow: /api/articles/articles/favorites/ # 文章收藏仍為會員資料 Disallow: /admin/ # 任何 /admin/ 前綴 Disallow: /auth/ # OAuth callback 頁 Disallow: /profile # 使用者個人資料 Disallow: /my/ # 我的裝置 / 車錶 / 配速紀錄 Disallow: /apps/my-licenses/ # 使用者授權管理 Disallow: /events/create # 建立活動 Disallow: /events/edit/ # 編輯活動 Disallow: /events/my-events # 我的活動 Disallow: /verifications/my-verifications # 我的認證 Disallow: /routes/favorites # 我的收藏路線 Disallow: /cycling-events/favorites # 我的收藏賽事 Disallow: /races/teams # 我的隊伍管理 Disallow: /races/teams/ # 隊伍建立 / 編輯 Disallow: /races/members # 隊員管理 Disallow: /grouprace/manage # 賽事後台 Disallow: /rouvy/ # Rouvy 後台專用 Disallow: /search # 搜尋結果頁(動態 query,避免無限變體) Disallow: /stock/watchlist # 股票自選股(會員資料) Disallow: /stock/alerts # 股票提醒(功能開發中) # 禁止 OAuth / token / session 等敏感 query 的 URL 被索引。 # 用通用 pattern 不暴露具體參數名(避免提示攻擊者參數命名慣例)。 Disallow: /*?*code=* Disallow: /*?*state=* Disallow: /*?*token=* # ── 暫時隱藏(功能開發中)── # ── 舊路徑 301 redirect 到新路徑(告知爬蟲)── Disallow: /product/ # 已 redirect 到 /apps/products/ Disallow: /routes/routelist # 已 redirect 到 /routelist # ── 允許公開內容 ── Allow: /$ Allow: /articles Allow: /articles/ Allow: /articles/* Allow: /routelist Allow: /route/* Allow: /cycling-events Allow: /cycling-events/* Allow: /grouprace Allow: /events$ Allow: /events/ Allow: /verifications$ Allow: /verifications/ Allow: /promotions Allow: /promotions/* Allow: /about Allow: /apps/products/ Allow: /apps/products/* Allow: /apps/line-bot Allow: /running Allow: /running/* Allow: /stock Allow: /stock/ Allow: /stock/etf Allow: /stock/futures Allow: /stock/strategies Allow: /stock/strategies/* Allow: /stock/knowledge Allow: /stock/knowledge/* Allow: /stock/us Allow: /stock/us/* Allow: /stock/market/* Allow: /stock/* # ────────────────────────────────────────────────────────────── # 商業 SEO 分析爬蟲:一律封鎖 # # 2026-08-10 實測 production nginx log(單日 513,225 次請求,其中約 # 78% 是機器人)後決定。這幾支的共同特徵是:爬取量大、但 referrer # 統計顯示帶進來的真人訪客是 0——它們是賣 SEO 分析報告的公司在抓 # 你的內容當商品,對本站沒有任何流量或曝光回報,只是跟 Googlebot / # bingbot 搶伺服器資源與 crawl budget。 # # 當日實測爬取次數: # SemrushBot 7,089 / AhrefsBot 296 / DotBot 199 / MJ12bot 14 # # AI 爬蟲(2026-10-06 站長決定,取代 2026-08-10「全部不封」): # - 「訓練型」封鎖:meta-externalagent、GPTBot、ClaudeBot、CCBot、 # Bytespider、Diffbot、Reflectionbot、ShapBot。它們抓內容訓練模型、 # 不帶來訪客;prod 實測 meta-externalagent 一家就佔文章頁渲染 27%。 # nginx 也會對它們回 403(snippets/ctyeh-bot-policy.conf),這裡是禮貌告知。 # - 「搜尋型」保留:OAI-SearchBot、PerplexityBot、YouBot、Amazonbot、 # ExaSearchBot(忙碌時段限速)——AI 問答引用主要來自它們。 # - 使用者即時查詢(ChatGPT-User、Claude-User、Perplexity-User) # 與 Google/Bing/Apple 等搜尋引擎完全不限。 # ────────────────────────────────────────────────────────────── User-agent: SemrushBot Disallow: / User-agent: SemrushBot-SA Disallow: / User-agent: AhrefsBot Disallow: / User-agent: AhrefsSiteAudit Disallow: / User-agent: DotBot Disallow: / User-agent: MJ12bot Disallow: / User-agent: dataforseobot Disallow: / User-agent: DataForSeoBot Disallow: / User-agent: BLEXBot Disallow: / User-agent: SeekportBot Disallow: / User-agent: serpstatbot Disallow: / User-agent: ZoominfoBot Disallow: / # ── AI 訓練型爬蟲(2026-10-06 起封鎖)── User-agent: meta-externalagent Disallow: / User-agent: GPTBot Disallow: / User-agent: ClaudeBot Disallow: / User-agent: CCBot Disallow: / User-agent: Bytespider Disallow: / User-agent: Diffbot Disallow: / User-agent: Reflectionbot Disallow: / User-agent: ShapBot Disallow: / # ── Sitemap ── Sitemap: https://ctyeh.com/sitemap.xml