Cloudflare 用戶注意:檢查你有冇誤擋 AI 爬蟲
要做嘅嘢:打開 Cloudflare 嘅 AI Crawler and Agent access policies,Search 揀 Allow;唔想俾人攞去訓練,Training 揀 Disallow,唔好揀 Block。
依據:Cloudflare 官方 AI Crawler and Agent access policies(Bots 文件)。Training 包埋「搜尋同訓練一齊做」嘅混合用途爬蟲。Block 同 Block on pages with ads 會連呢啲爬蟲一齊擋,搜尋停埋。Disallow 先至係拒絕訓練,混合用途爬蟲仍然可以為搜尋嚟。
貼呢段
冇 code 要貼。三個行為揀呢三個動作:
Search: Allow (do not block)
Training: Disallow
Agents: Allow (do not block)
貼喺邊
- Cloudflare:後台 → 你個域名 → Security → Settings → 篩選 Bot traffic → AI Crawler and Agent access policies(舊名 Configure AI bot policies)→ 三行照上面揀 → Save。
Search 係用嚟索引、之後先答問題嘅爬蟲,ChatGPT 搜尋靠呢類。Agents 係用戶即場叫 chat 開你條頁。Personal Agents 預設跟住 Agents;改 Agents 會覆寫返每一隻,Cloudflare 建議 Personal Agents 用 Allow,跟住先至逐隻改。
Training 揀 Block 或者 Block on pages with ads,會連混合用途爬蟲一齊擋,包括 Googlebot、Applebot、Bingbot。Google 搜尋同靠 Googlebot 嘅 AI 功能會一併停。Disallow 只可以揀喺 Training:佢叫爬蟲經 robots.txt 唔好攞去訓練。robots.txt 係自願遵守。開咗 Bot Preference Sync,Disallow 先會喺邊緣多擋一層訓練爬蟲,而混合用途嗰啲排除喺呢層之外。新網域三項預設都係 Allow,舊網域如果以前撳過「一個掣擋晒」,要入嚟改。
點樣驗證
curl -s -o /dev/null -w "%{http_code}\n" -A "OAI-SearchBot" https://你個域名/
200→ 呢個 user agent 有放到。403→ 有嘢擋緊。返後台睇 Training 係咪 Block,再去 Security → Events 篩Googlebot同OAI-SearchBot。
curl 只係改咗 user agent,唔係 Cloudflare 核實過嘅真爬蟲。設定頁三行先至係你要核對嘅結果。
香港實例(2026-11-09 查證)
未有公開例子。