summaryrefslogtreecommitdiffstats
path: root/magic/Magdir/warc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--magic/Magdir/warc16
1 files changed, 16 insertions, 0 deletions
diff --git a/magic/Magdir/warc b/magic/Magdir/warc
new file mode 100644
index 0000000..5942867
--- /dev/null
+++ b/magic/Magdir/warc
@@ -0,0 +1,16 @@
+
+#------------------------------------------------------------------------------
+# $File: warc,v 1.4 2019/04/19 00:42:27 christos Exp $
+# warc: file(1) magic for WARC files
+
+0 string WARC/ WARC Archive
+>5 string x version %.4s
+!:mime application/warc
+
+#------------------------------------------------------------------------------
+# Arc File Format from Internet Archive
+# see https://www.archive.org/web/researcher/ArcFileFormat.php
+0 string filedesc:// Internet Archive File
+!:mime application/x-ia-arc
+>11 search/256 \x0A \b
+>>&0 ubyte >0 \b version %c