NeovaNền tảng SEO chuyên sâu

Không truy cập được robots.txt hoặc file quá lớn

Trong Neova Chạy ngay từ lần crawl: không cần thiết lập gì.

Quy tắc được rà soát lần cuối ngày 17 tháng 10 năm 2026 · Hướng dẫn cập nhật ngày 22 tháng 7 năm 2026

Khi gặp 5xx, 429 hoặc hết thời gian chờ, Google ngừng crawl trong 12 giờ, và với file trên 500 KiB, Google bỏ qua phần còn lại của file. RFC 9309 nói hãy coi như disallow toàn bộ khi gặp 5xx hoặc hết thời gian chờ; 404 không bị đánh dấu, vì khi đó Google coi như không có hạn chế nào.

Bạn có thể làm gì

Làm cho robots.txt trả về 200 nhanh chóng từ server và CDN, và cho phép crawler đi qua firewall. Giữ file dưới 500 KiB.

Neova tìm ra bằng cách nào

Neova gửi yêu cầu tới mọi địa chỉ và đọc phản hồi của máy chủ.

Vì sao Neova đánh dấu

  • Khi robots.txt trả về 5xx hoặc hết thời gian, Google ngừng crawl site trong 12 giờ đầu trong khi thử lại.
  • Google bỏ qua mọi thứ sau 500 KiB đầu của robots.txt, nên các quy tắc phía sau không có tác dụng.
  • RFC 9309 yêu cầu crawler coi như bị disallow hoàn toàn khi file không truy cập được do lỗi server.

Nguồn

Ticket nó tạo ra

Phần này tạm thời còn bằng tiếng Anh.

RO-001 · robots.txt Is Unreachable or Too Large

How to Check the Fix: 1. Run the check again in Neova
2. Spot-check sample URLs across affected templates
3. Record the re-check date and period label next to the baseline

Neova writes this ticket for every affected page group and sends it to Jira, Linear, Asana and the rest, after you approve it.

Hướng dẫn đầy đủ

Phần này tạm thời còn bằng tiếng Anh.

AI Summary

A missing robots.txt is not a ranking penalty, but it leaves a 404 on every crawl and removes your chance to declare a sitemap or steer crawlers. Add a minimal file at the domain root with an allow all block and your sitemap URL, then confirm it returns a 200 status.

  • robots.txt lives at the host root and must return 200 text/plain
  • A minimal file needs a User-agent block plus a Sitemap line
  • Disallow blocks crawling, not indexing, so use noindex to hide pages
  • Never block CSS or JavaScript needed to render the page
Diagram of a minimal valid robots.txt served at the domain root with user-agent, disallow, and sitemap directives, plus do and do-not notes.
A minimal robots.txt at the domain root sets crawl rules and points bots to your sitemap.

Every crawler that visits your site asks for one file before it does anything else: /robots.txt. When that request returns a 404, the site is treated as fully crawlable, which is usually fine, but you have given up a useful control surface and left a small error on every crawl. Adding a minimal, valid robots.txt is basic technical hygiene that costs nothing and closes the gap.

What robots.txt Is For

The file is a plain text set of instructions at the root of a host that tells compliant crawlers which paths they may or may not fetch. It does three practical jobs: it declares where your sitemap lives so discovery is faster, it keeps crawlers out of low value areas such as admin screens and internal search, and it signals that someone has thought about crawl hygiene. It is a request, not a wall: well behaved bots honour it, but it does not secure anything and it does not remove pages from the index.

A Minimal Valid File

You do not need a complex file to satisfy this check. The following allows all crawling and points bots at the sitemap, which is a sensible baseline for most sites:

User-agent: *
Disallow:

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

On a typical WordPress install you might also keep the admin area out of crawling while leaving the AJAX endpoint reachable:

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

Sitemap: https://example.com/sitemap_index.xml
Directive Purpose Example
User-agent Names the crawler a block applies to User-agent: *
Disallow Blocks a path prefix from crawling Disallow: /wp-admin/
Allow Re allows a path inside a blocked area Allow: /wp-admin/admin-ajax.php
Sitemap Declares your sitemap location Sitemap: https://example.com/sitemap_index.xml
Empty Disallow Explicitly allows everything Disallow:

Rules That Trip People Up

Robots.txt has sharp edges. It governs only its own host and scheme, so an HTTPS site and its HTTP version, or the root domain and a subdomain, each need their own file. The file must return a 200 status and a text/plain type; a soft 404 that returns an HTML page can confuse parsers. Disallow blocks crawling, not indexing, so a blocked URL linked from elsewhere can still appear in results without a description. And blocking render critical CSS or JavaScript can stop Google from seeing your layout, which is worse than having no file at all.

How to Check and Deploy

Request the file directly in a browser at https://yourdomain.com/robots.txt and confirm it loads with a 200 status and shows your directives. On WordPress, edit it through Rank Math or Yoast, or drop a physical file in the web root. After deploying, use the robots.txt report in Google Search Console to confirm Google can fetch and parse it, then submit or reconfirm your sitemap.

Quick Reference

Element Code: RO-001

Issue: Site has no robots.txt file

Impact: No crawler guidance

Fix: Create basic robots.txt file

Detection: Direct URL check

What Is This Issue?

Robots.txt provides crawler guidance and is best practice.

Why This Matters for Your Website

Missing it may indicate poor technical SEO hygiene.

How to Fix This Issue

  1. Create file: At /robots.txt
  2. Basic content: User-agent and sitemap

Tools for Detection

  • Direct check: Visit /robots.txt

TL;DR (The Simple Version)

Create a robots.txt file at your domain root with at least your sitemap location.

Frequently Asked Questions

Is a Missing robots.txt an SEO Problem?

On its own a missing robots.txt is not a ranking penalty. Search engines will crawl a site that returns a 404 for robots.txt as if everything is allowed. The issue is hygiene: you lose a place to declare your sitemap, you generate a 404 on every crawl, and you have no lever to steer crawlers away from low value paths.

What Is the Minimum a robots.txt Should Contain?

At a minimum, an allow all block and your sitemap location. That is a User-agent line, an empty Disallow so nothing is blocked, and a Sitemap line with the absolute URL of your sitemap index. From there you can add targeted Disallow rules for admin, cart, or faceted URLs.

Where Does the File Have to Live?

Exactly at the root of each host, for example https://example.com/robots.txt. It must be served over the same scheme and host, return a 200 status, and use a text/plain content type. Subdirectories and subdomains each need their own file, because robots.txt only governs its own host.

Can robots.txt Hide Pages From Google?

No. Disallow stops compliant crawlers from fetching a URL, but a blocked URL can still be indexed without a snippet if it is linked elsewhere. To keep a page out of the index, allow crawling and use a noindex meta tag or header, or protect it behind authentication.

Should I Block CSS and JavaScript?

No. Blocking the CSS and JavaScript that a page needs to render prevents Google from seeing the page as users do, which can hurt rankings. Keep render critical resources crawlable. Only disallow paths that genuinely add no value to search, such as internal search results or admin.

How Do I Create One on WordPress?

WordPress serves a virtual robots.txt by default, but SEO plugins such as Rank Math or Yoast let you edit it from the dashboard, or you can place a physical robots.txt in the web root. After publishing, request the file directly in a browser and confirm it returns your rules with a 200 status.

Tìm lỗi này trên trang của bạn

Neova chạy mục kiểm tra này và mọi mục khác trong mỗi lần crawl, rồi viết cách sửa thành ticket cho nhóm của bạn.

  • Ứng dụng máy tính cho Mac, Windows và Linux
  • Tất cả 696 mục kiểm tra, mỗi mục kèm nguồn
  • Search Console và Analytics 4, kết nối chỉ đọc
  • Ticket sang Jira, Linear và Asana

Tải Neova Gói Desktop Free, hoặc dùng thử Solo miễn phí 14 ngày, không cần thẻ.

Tất cả mục kiểm tra Khả năng lập chỉ mục · Hướng dẫn · Thư viện mục kiểm tra

Do Neova Labs biên soạn · Quay lại Thư viện mục kiểm tra