Skip to content

Guides

In-depth, vendor-neutral guides on file signatures, magic bytes, and how to detect or validate file types by their content rather than their extension.

Validate File Types by Magic Bytes

Validate a file's real type by its magic bytes, not its extension. Server-side code in Python, Node.js, and Go, plus offsets and container collisions.