Neova高级 SEO 平台

robots.txt 无法访问或过大

在 Neova 中 直接在抓取过程中运行,无需任何设置。

规则最近审核:2026年10月17日 · 指南更新:2026年7月22日

遇到 5xx、429 或超时,Google 会停止抓取 12 小时;文件超过 500 KiB 时,Google 会忽略其余部分。RFC 9309 规定,遇到 5xx 或超时应视为完全禁止抓取;404 不会被标记,因为此时 Google 会视为没有任何限制。

您可以做什么

让 robots.txt 从服务器和 CDN 快速返回 200,并在防火墙中放行爬虫。把文件保持在 500 KiB 以下。

Neova 如何发现

Neova 请求每个地址,并读取服务器的响应。

Neova 为何标记

  • robots.txt 返回 5XX 或超时时,Google 会在最初 12 小时内停止抓取该网站并重试。
  • Google 会忽略 robots.txt 前 500 KiB 之后的所有内容,后面的规则不起作用。
  • RFC 9309 规定,当文件因服务器错误无法访问时,爬虫应视为完全禁止抓取。

来源

生成的工单

这一部分目前只有英文版。

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.

完整指南

这一部分目前只有英文版。

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.

在您自己的网站上找到它

Neova 在每次抓取时都会运行此检查项和其他所有检查项,然后把修复方法写成工单交给您的团队。

  • 适用于 Mac、Windows 和 Linux 的桌面应用
  • 全部 696 项检查,每项都附来源
  • Search Console 和 Analytics 4,以只读方式连接
  • 工单发送到 Jira、Linear 和 Asana

下载 Neova Desktop Free 套餐,或免费试用 Solo 14 天,无需银行卡。

全部可索引性检查 · 指南 · 检查项库

作者:Neova Labs · 返回检查项库