This article needs additional citations for verification. (April 2008)
|Internet media type|
|Uniform Type Identifier (UTI)||com.apple.webarchive|
|Type of format||web page file archive|
|Extended from||Apple Binary Property List|
- A version of the webarchive format is used to bundle whole music albums and movies with extra content and menus inside iTunes LP and Extras.
- Webarchives are automatically generated for ads submitted to Apple's iAd advertising platform.
- The WebKit framework's WebArchive class is used to simplify cutting-and-pasting with whole or partial web pages.
In February 2013, a vulnerability with the webarchive format was discovered and reported by Joe Vennix, a Metasploit Project developer. The exploit allows an attacker to send a crafted webarchive to a user containing code to access cookies, local files, and other data. Apple's response to the report was that it will not fix the bug, most likely because it requires action on the users' part in opening the file.
Converting for other browsers
Workarounds to allow the file to be viewed in other browsers are possible, though specific webpage contents may hinder this process. This requires one of the free tools WebArchive Folderizer (for OS X 10.2 and higher) or WebArchive Extractor (for OS X 10.4.3 and higher).
MAFF is an open format (with a published specification) that enables saving of whole webpages in a single file. It is currently supported by Firefox, using an extension. Other web browsers use the MHTML format or do the equivalent by saving a directory of inline resources (usually images) alongside the HTML file, sometimes compressed, like the .war format used by Konqueror (tar+gzip or tar+bzip2). Safari does not support these alternative archive formats.
For archiving entire websites, the Internet Archive has developed the Web ARChive (WARC) format which was standardized by ISO.
HTML Designing (HTML Directory) is a NeXT-developed format for saving web pages and their dependencies in a bundle that may also be served by a web server.
- ^ a b Frakes, Dan. "De-archive Web Archives". Macworld. IDG Communications. Retrieved 15 June 2018.
- ^ Arnott, Nick (28 April 2013). "Apple declines to fix vulnerability in Safari's Web Archive files, likely because it requires user action to exploit". iMore. Mobile Nations. Retrieved 7 February 2015.
- ^ "iOS and IPadOS 13 Review". MacStories. MacStories. Retrieved 25 September 2019.
- ^ "iAd JS Programming Guide: Web Archives and Manifest Files". Mac Developer Library. Apple. Retrieved 7 February 2015.
- ^ "WebArchive Class Reference". Mac Developer Library. Apple. Retrieved 7 February 2015.
- ^ Vennix, Joe (25 April 2013). "Abusing Safari's webarchive file format". Rapid7 Metasploit. Rapid7. Retrieved 7 February 2015.
- ^ WebArchive Extractor
- ^ "Mozilla Archive Format, with MHT and Faithful Save". Archived from the original on 2 November 2017. Retrieved 8 December 2011.
- ^ "WebScrapBook". Retrieved 17 November 2019.
- ^ ".htmld Discussion".