> MODIFICA RILEVATA ·
Aggiunta raccomandazione sull'uso del percent-encoding nei robots.txt
È stata aggiunta una frase che raccomanda l'uso del percent-encoding per i percorsi nelle regole `allow` e `disallow` del robots.txt. Sebbene Google gestisca correttamente i caratteri UTF-8 raw, il percent-encoding può facilitare l'elaborazione di questi file da parte di strumenti e servizi di terze parti.
- Documento:
- Google robots.txt Specification
- Righe:
- +1 −1
- Importanza:
- ★★☆☆☆
- Edizione:
- feed del 24 ottobre 2026
> PRIMA E DOPO
testo aggiunto
testo tolto
in grigio il contesto invariato
riga 287
## URL matching based on path values
Google uses the path value in the `allow` and `disallow` rules as a basis to determine whether or not a rule applies to a specific URL on a site. This works by comparing the rule to the path component of the URL that the crawler is trying to fetch. The path in the rules can be either raw UTF-8 characters or percent-encoded UTF-8 strings (per RFC 3986). As defined in RFC 9309 Section 2.2.2, Google's crawlers compare rules against URLs using their percent-encoded forms, and automatically canonicalize raw UTF-8 rule paths into percent-encoded forms. This means that, for example, `Disallow: /foo/bar/ツ` and `Disallow: /foo/bar/%E3%83%84` are treated identically by the parser. While Google's systems parse raw UTF-8 characters properly, using percent-encoding for rule paths can make it easier to process these files with third-party tools and services.
Google, Bing, and other major search engines support a limited form of _wildcards_ for path values. These wildcard characters are:
Il testo nel confronto è tratto da developers.google.com, pubblicato da Google in licenza CC BY 4.0, convertito in testo semplice. Il riassunto è generato con l'AI a partire dal diff e non è rivisto editorialmente.