RevealTheme logo

Trình tạo robots.txt

Tạo tệp robots.txt một cách trực quan. Cấu hình các quy tắc thu thập dữ liệu cho các công cụ tìm kiếm chính và các bot AI.

User-agent: *
Allow: /
Disallow: /admin/
Disallow: /api/

Sitemap: https://example.com/sitemap.xml

Cách sử dụng công cụ này

  1. 1

    Tick 'Allow all standard crawlers' to add an explicit Allow: / line, or untick it to leave it out.

  2. 2

    Enter the paths you want crawlers to skip in the disallowed box, one per line (for example /admin/ or /api/).

  3. 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. 4

    Select the generated text in the preview box, copy it, and save it as a file named robots.txt at your domain root.

Trình tạo robots.txt là gì?

robots.txt cho các trình thu thập dữ liệu web biết chúng có thể và không thể truy cập những trang nào. Đây là một giao thức tự nguyện: các trình thu thập dữ liệu hành xử tốt sẽ tôn trọng nó; các bot độc hại bỏ qua nó. Trình tạo này tạo ra các tệp robots.txt tuân thủ tiêu chuẩn. Đối với các quy tắc phức tạp, hãy tham khảo robotstxt.org và đặc tả đầy đủ.

Các trường hợp sử dụng phổ biến

  • 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.

Câu hỏi thường gặp

Tôi nên tải robots.txt lên đâu?
Ở thư mục gốc của trang web của bạn: example.com/robots.txt. Nó phải nằm ở thư mục gốc; trong các thư mục con thì không hoạt động.
Tôi có nên chặn các bot AI không?
Tùy bạn. Cho phép chúng có nghĩa là ChatGPT/Perplexity có thể tham chiếu nội dung của bạn. Chặn chúng sẽ ngăn việc thu thập dữ liệu huấn luyện, nhưng làm giảm khả năng hiển thị.

Công cụ liên quan