robots.txt產生器
以視覺化方式產生robots.txt檔案。為主流搜尋引擎和AI機器人設定爬取規則。
User-agent: * Allow: / Disallow: /admin/ Disallow: /api/ Sitemap: https://example.com/sitemap.xml
如何使用本工具
- 1
Tick 'Allow all standard crawlers' to add an explicit Allow: / line, or untick it to leave it out.
- 2
Enter the paths you want crawlers to skip in the disallowed box, one per line (for example /admin/ or /api/).
- 3
Optionally tick 'Block AI training crawlers' to add Disallow rules for GPTBot, ClaudeBot, PerplexityBot, CCBot and Google-Extended, and paste your sitemap URL.
- 4
Select the generated text in the preview box, copy it, and save it as a file named robots.txt at your domain root.
什麼是robots.txt產生器?
robots.txt告訴網路爬蟲哪些頁面可以存取、哪些不可以。它是一種自願性協定:行為規範的爬蟲會遵守它;惡意機器人則會無視它。本產生器建立符合標準的robots.txt檔案。對於複雜規則,請查閱robotstxt.org和完整的規範。
常見使用場景
Keeping crawlers out of admin, API, or internal paths like /admin/ and /api/ while leaving the rest of the site open.
Generating a starter robots.txt for a brand-new site that does not have one yet.
Blocking the five named AI training crawlers (GPTBot, ClaudeBot, PerplexityBot, CCBot, Google-Extended) so your content is not scraped for model training.
Adding or correcting the Sitemap: line so search engines can discover your sitemap.xml.
Drafting rules quickly to paste into a CMS or static-site config, then hand-editing for anything advanced.
Teaching teammates what a minimal, readable robots.txt looks like before they edit the real one.
常見問題
我應該把robots.txt上傳到哪裡?▼
我應該封鎖AI機器人嗎?▼
相關工具
密碼產生器
在你的瀏覽器中產生具有加密強度的密碼。不會向任何伺服器傳送任何內容:隨機位元組來自你瀏覽器的crypto API。
WordPress使用者名稱產生工具
產生安全、隨機的WordPress管理員使用者名稱。切勿使用「admin」:它是暴力破解的頭號攻擊目標。
網域名稱產生器
根據一個關鍵字產生具有品牌潛力的網域名稱創意。組合方式包含常見的前綴、後綴和修飾詞。
公司名稱產生器
產生具有品牌潛力的公司名稱創意。將真實詞彙與修飾詞組合,產生易記的名稱。
URL別名(slug)產生工具
將文字轉換為適合URL的別名:轉為小寫、移除特殊字元,並用連字號分隔單字。
Lorem Ipsum 產生器
為樣機和設計稿產生佔位文字。可選擇段落、句子或單字。