Create a perfectly formatted robots.txt file in seconds with our visual builder — or validate your existing one for mistakes that could be silently blocking Google from your site.
Used to auto-fill the Sitemap URL.
# Loading preview…
Kiểm tra xem một URL cụ thể có được các quy tắc này cho phép hoặc chặn hay không.
Một tệp robots.txt là một tệp văn bản thuần túy được đặt ở thư mục gốc của trang web của bạn (ví dụ: https://yoursite.com/robots.txt). It instructs search engine crawlers — like Googlebot — which pages or sections of your site they should or should not crawl and index.
Mặc dù robots.txt không đảm bảo quyền riêng tư (các trang bị chặn vẫn có thể xuất hiện trong kết quả tìm kiếm nếu được liên kết từ các trang khác), nhưng đây là công cụ chính để quản lý thu thập ngân sách — how much of your site Google explores per day. Used correctly, it helps Google focus its crawling on the pages that actually matter for your rankings.
For WordPress sites specifically, a well-configured robots.txt prevents Googlebot from wasting time on admin pages, login screens, and internal search results — directing that crawl budget toward your content instead.
# Allow all crawlers, block admin User-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php # Block bad bots entirely User-agent: AhrefsBot Disallow: / # Sitemap location Sitemap: https://yoursite.com/sitemap.xml
WordPress không tạo robots.txt theo mặc định. Đây chính xác là những gì cần thêm để SEO tối ưu.
Chọn mẫu "WordPress" ở trên, nhập URL trang web của bạn và robots.txt của bạn sẽ được tạo ngay lập tức với tất cả các quy tắc phù hợp được điền sẵn.
Tải xuống tệp robots.txt đã tạo và tải tệp đó lên thư mục gốc của trang web bằng FTP, Trình quản lý tệp cPanel hoặc trình quản lý tệp trên máy chủ của bạn.
SkySEOManager has a built-in robots.txt editor and validator under its Tools section. Paste your generated content there directly.
Mẹo chuyên nghiệp: Xác thực sau mỗi thay đổi
After uploading or editing your robots.txt, always run it through our validator above to check for mistakes. A single typo — like Disallow: / — can block your entire site from Google overnight.
These are the most common errors our validator catches — and the ones most likely to quietly kill your Google rankings.
Một Disallow: / dưới User-agent: * blocks Googlebot from your entire site. This is the single most catastrophic robots.txt mistake — and it happens more often than you'd think during site builds.
Không cho phép /wp-content/ prevents Google from loading your stylesheets and scripts. Google renders pages like a browser — if it can't load CSS/JS, it can't properly evaluate your content for rankings.
Không bao gồm một Sitemap: chỉ thị có nghĩa là Google chỉ phải khám phá sơ đồ trang web của bạn thông qua việc gửi Search Console. Thêm nó vào robots.txt là một chiến thắng dễ dàng giúp Googlebot tìm thấy tất cả các trang của bạn nhanh hơn.
Đường dẫn Robots.txt phân biệt chữ hoa chữ thường trên máy chủ Linux. Disallow: /Admin/ KHÔNG chặn /admin/. Luôn sử dụng trường hợp chính xác của đường dẫn URL thực tế của bạn.
Sửa lỗi SEO toàn bộ trang web của bạn
Once your robots.txt allows Google to crawl your site, make sure every page is optimised. SkySEOManager Pro bulk-generates titles, meta descriptions, and image alt text across your entire WordPress site — powered by Gemini AI.
Disallow: /wp-admin/ ngăn trình thu thập thông tin lãng phí ngân sách thu thập dữ liệu của bạn trên các trang quản trị không có giá trị SEO. Tuy nhiên, hãy đảm bảo thêm Allow: /wp-admin/admin-ajax.php trên dòng tiếp theo để giữ cho các tính năng phụ thuộc vào AJAX (như cập nhật giỏ hàng WooC Commerce) hoạt động chính xác.Miễn phí mãi mãi. Không cần tài khoản. Robots.txt của bạn sẽ sẵn sàng sau 30 giây.