When the Robots file itself is unreadable, what rules does the crawling party follow?

📅 October 12, 2026 👁️ 11

When the Robots file cannot be read, how does the crawling party continue? The exclusion protocol provides two opposite results: server errors are treated as entirely prohibited, and client errors are treated as unrestricted. The former indicates that there is an issue with the site itself, and the crawling party should stop; the latter is usually when the file does not exist, and the crawling party can continue to access resources on the server. The original protocol also emphasizes that this set of rules is not for authorization of access, and what can truly block access is the site's own permissions and content security measures.

Why would there be two opposite results when reading fails?

Before the collector fetches the page, it should first read this exclusion file. Not being able to read it does not mean there are no rules; it has to decide whether to 'stop' or 'continue'. Stopping too aggressively: if the site is only temporarily down, it should not stop the entire site from being collected, as this could harm normal updates; continuing too leniently: if the site clearly refuses, it may be bypassed because the entry is broken. The protocol uses a range of status codes to distinguish this line, separating 'the server is having an issue' from 'this file does not exist at all.'

Handle server errors by completely prohibiting them.

The protocol defines that server errors are indicated by status codes from 500 to 599. When this section is returned, it is stipulated that the crawler must assume complete prohibition, that is, treat the entire site as not allowed to be crawled until this file can be read normally. For the site owner, this means that problems such as backend errors, reverse proxy exceptions, and script timeouts will inevitably affect crawling: even if the file itself is written loosely, it is of no use, and the crawler reads an error state.

Client errors are handled unrestricted.

When the status code falls between 400 and 499, the handling method is completely reversed: the crawling party can access any resource on the server. The common 404 is this kind of situation - the website does not place this file and does not intend to limit anyone. The protocol interprets 'not found' as 'no restriction' rather than 'default prohibition'. This has an actual impact on operations: if you want to tighten the crawling range, deleting files is not possible, deleting is equivalent to giving up control.

The boundary drawn by the protocol itself: it is not access authorization

These two sentences are worth reading word by word: These rules are not a form of access authorization; the robot exclusion protocol is not a substitute for effective content security measures. The translation stands for - This document governs the behavior agreement of polite crawlers, cannot control the programs that refuse to comply, and cannot control the scripts that directly request the interface. Any content that is not intended to be public must be blocked by authentication, authorization, and the scope of interface exposure, rather than written in the exclusion file hoping that others will bypass it.

Read result Status code range What should the crawler continue according to? What should the station pay attention to?
Normal return Two hundred segments successful Crawl according to the release and exclusion rules in the file Changes to the rules will be reflected in the crawling behavior immediately
Server error 500 to 599 Must be treated as a complete ban, pause crawling Site failure will freeze crawling, and the priority for recovery should be raised
Client error 400 to 499 Can access any resource on the server File does not exist is equivalent to no restriction, want to control must put back the file

Exclude the three scenarios that cannot be managed by the file

The first is an entry that requires a login status, such as the background and user center. The background address of AnQiCMS is independent of the site content, and user management and VIP group settings support access permissions set by user groups. Pages that cannot read content should not rely on excluding files for confidentiality. The second is the interface path and temporary address, which can be requested by other programs even if the scraping party does not request them. The third is a list page that can be enumerated with parameters, which is more suitable to limit the returned fields at the interface layer because it is easy to miss parameters by relying on exclusion rules.

The station-side self-check of this file involves four actions.

Step 1: Confirm that it can be read normally: Use a crawling tool to directly request and check if the return is a successful status, not redirected or rewritten. Step 2: Confirm that it has not been cached as a long-term version by the front-end layer, and the old copy is still effective after the site rules are adjusted. Step 3: Confirm that the exclusion range is written on the correct path, as pseudo-static and rewriting rules can make the directory level and actual file name not match. Step 4: Confirm that sensitive entries have additional permission protection, do not rely solely on excluding files. AnQiCMS provides a robots configuration entry in the background, with changes tracked for easy verification of the current effective version.

Common questions

Ask: Will the inability to read a file be judged as a complete ban on site crawling? Answer: It depends on the situation. Server errors in this section will be considered a complete ban; client errors in this section are actually completely unrestricted.

Ask: If the site crawling is temporarily closed, is it enough to delete this file? Answer: No. Deleting it returns 'File does not exist', according to the protocol, it is equivalent to being unrestricted. To tighten it, you need to write exclusion rules, or directly limit it at the server level.

Ask: If the scraping party does not comply with this document, what can the website party still do? Answer: Go through the authentication and authorization layer, blocking the entry that should not be publicly exposed behind the login state and group permissions, and cooperate with the interface exposure range control.

Related articles

Is the site description file for the large model meant for humans or for agents, the proposal has changed the statement.

This site description file, according to the current proposal, is to help agents use the website, while the early expression is to help the language model understand the web page, and the service object has expanded from the model to the agent. The file is a plain text list, and only one item is required in the specifications: a first-level title with a project or site name, the rest of the abstract sections, descriptive sections, and file lists grouped by secondary titles are optional. AnQiCMS supports automatic generation of site llms.txt and is different from the site map.

2026-10-12

Would adjusting the page layout make it easier for the generative engine to refer to it, and the experiment provides two percentages?

A generative engine optimization study decomposes the content structure into three layers: document architecture, information blocks, and visual emphasis, and conducts experiments on six mainstream generative engines. The report shows a 17.3% increase in citation rate and a 18.5% increase in subjective quality, without changing the main theme content. This article explains what these two percentages refer to, why structural improvement does not equal content quality improvement, and its division of labor with automatic site generation such as llms.txt.

2026-10-12

The server defaults to writing the program version into the response header and error page. Should this level of fingerprint be removed?

Most web servers default to writing the program version into the Server response header and error pages, the Nginx server_tokens directive is set to on by default, after it is turned off, the two places no longer contain version information. Removing this fingerprint can reduce the convenience of version collision, but it only reduces information exposure and does not constitute a defense. This article discusses where the version number leaks out and what remains after it is turned off, as well as where to make changes at each layer for different deployment methods such as Baota and Docker.

2026-10-12

When your own image is directly referenced by other websites, which response header decides whether to allow or not.

When your own image is directly referenced by other websites, it is the resource party that decides whether to allow it, not the referencing party. The Cross-Origin-Resource-Policy response header is set by the referenced resource, indicating which sources can load it, with values divided into three levels: same-origin, same-site, and cross-origin. The default is to block cross-site requests without cors. This article discusses which level each tier allows, whether it is on the same end as the initiating party, and whether images and fonts should be released separately.

2026-10-12

There is a measurement that says the scraping scripts only follow a part of the exclusion rules, where is the difference in the ratio

A measurement covering thirty-six institutional sites, forty days of traffic, and about one hundred and thirty self-reported identity scraping scripts shows that the compliance rate varies greatly by instruction type: about 60.9% for scraping frequency instructions, about 31% for precise path prohibition, and about 30.7% for whole section prohibition; and less than four in ten scripts will re-read the exclusion file within one hundred and sixty-eight hours. These numbers indicate that relying solely on the exclusion file is not sufficient, and there must also be anti-crawling and permission layers within the site.

2026-10-12

After splitting search and training into two switches, the access rules should be judged according to which purpose

On September 15, 2026, an edge platform announcement divided search, AI training, and AI agents into three independent controls, so the site does not have to choose between retaining search and blocking training. The announcement also provided two ratios: the mixed-purpose crawler accounted for 36.6% of the verified crawling traffic, less than 1% of the site side would block search crawlers, and about 17% restricted AI training. After the switches are opened, the access rules should be judged according to the purpose of access, not according to the source domain.

2026-10-12

How to check the status code conditions and inheritance level when the security response header is added but not present in some responses?

The security response header is added but not visible in some responses, usually stuck at two places: first, the header addition instruction only takes effect for specific response codes, the effective codes listed in the mainstream Web server documentation include two hundred successful segments and three hundred redirects, non-successful responses need to be added unconditionally with the always parameter; second, the hierarchical inheritance rule - once the header addition instruction is defined at the same level, the entire set of definitions at the upper level no longer inherits. The troubleshooting sequence is to first reproduce the response code missing the header, and then locate which level of configuration generates it.

2026-10-12

The intermediate response code for pre-loading resources on the first screen, why is it only issued in multi-path multiplexing protocols in most cases?

The 103 intermediate response used for pre-loading resources on the first screen is a prompt issued by the server before it organizes the final page, allowing the client to pre-connect or pre-load resources. The official documentation suggests that for compatibility and security reasons, it should only be sent in HTTP protocol version 2 or higher, as most browsers only support it under these conditions. The reason is that under old protocols, the boundary handling between intermediate responses and final responses is inconsistent, which is easy to confuse with the content of waiting responses.

2026-10-12