An identifier can mislead
06A visually persuasive URI can contain an authority different from the one a reader expects.
Prefer a presentation that distinguishes host, userinfo, and path.
Key idea: Show the parsed destination clearly.
Rules & examples
Show the parsed destination clearly.
- Userinfo can be constructed to resemble a trusted domain while the host names a different destination.
- Untrusted URI text must be handled according to the relevant scheme and application security rules.
- Generic URI syntax does not itself define a browser-origin policy or prove a resource is trustworthy.
The examples simplify the wire representation. Follow the linked specification and application profile for implementation.
Sources
New to this? Start hereA quick picture + helpful background
First, agree how to read the message.
An encoding tells a reader how to interpret bytes. A format tells it how values fit together. Correctly reading a value does not make that value trustworthy.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.