File URI scheme: Difference between revisions

Content deleted Content added
Restored revision 1264783476 by Nabijaczleweli (talk): Last good, IP edit from January removed a category without providing a reason
Web pages: mention restrictions
Line 70:
 
=== Web pages ===
File URLs are rarely used in [[Web page]]s on the public Internet, since they implyare only useful if it is known that a specific file exists on the designated host. Theor ''host''the specifierlocal cancomputer. beAdditionally, usedweb tobrowsers retrievegenerally adisable fileFile fromURLs anin externalweb source,pages althoughthat nowere specificnot file-retrievalthemselves protocolloaded isfrom specified;a andFile usingURL itfor shouldsecurity resultreasons<ref>{{Cite inweb a|title=Why messagelocal thatlinks informsare thedisabled userby thatdefault noin mechanismmodern tobrowsers? |url=https://security.stackexchange.com/questions/153706/why-local-links-are-disabled-by-default-in-modern-browsers |access-date=2025-03-13 that|website=Information machineSecurity isStack Exchange available|language=en}}</ref>.
 
The ''host'' specifier can be used to retrieve a file from an external source. However, no specific file-retrieval protocol is specified and the interpretation of the host specifier is not well standardized, so it is only useful in specific circumstances.
 
If a web page wants to access files stored on the computer the web browser is running on, a modern alternative to File URLs is the [[HTML5 File API]].
 
==References==