Free PHP script for ordinary hosting

Download Vault

Protected file delivery without a database, framework, Composer, Node.js, recipient accounts, or cloud services.

  • PHP 8.2+
  • JSON storage
  • Apache-ready
  • No SQL
Clean share links Example: /d/client-brand-assets
Controlled delivery Passwords, expirations, limits, and disabled links.
Private storage Files stream through PHP instead of public file URLs.

What It Does

Everything needed for simple protected downloads.

Upload Protected Files

Upload files through the admin panel or register larger files placed in the import directory by FTP or your hosting file manager.

Create Clean Links

Give each download a friendly slug or generate a short random link when you want a less guessable URL.

Add Access Rules

Set optional passwords, expiration dates, maximum download counts, landing pages, direct downloads, and disabled states.

Track Download Starts

See totals, recent activity, daily stats, last downloaded timestamps, blocked attempts, and basic referrer domains.

Stay Database-Free

Records are stored in locked JSON files with atomic writes, backups, and no SQL setup.

Run on Shared Hosting

Upload the folder, edit one config file, set one admin password hash, and manage files from a responsive dashboard.

Use Cases

Built for website owners who need to deliver one file safely.

Client PDFs ZIP archives Free ebooks Website assets Software downloads Private documents Template packs Time-limited files Password-protected handoffs Download-limited offers

Quick Install

No installer. No database. No build process.

  1. Upload the folder. Place Download Vault on ordinary PHP hosting.
  2. Move private storage when possible. Keep storage, protected files, and imports outside the public web root.
  3. Edit config.php. Set the base URL, paths, timezone, privacy salt, and upload limits.
  4. Generate the admin password hash. Use /tools/generate-password.php, paste the hash into config, then delete the helper.
  5. Log in and add a download. Create a title, slug, access rules, and copy the public link.

Included in the ZIP

  • Admin dashboard and public download pages
  • Flat-file storage, locking, backups, history, and daily stats
  • Upload and import workflows
  • Apache rewrite rules and fallback routes
  • README, security notes, changelog, MIT license, and CLI tests

Version 1 Scope

Download Vault focuses on one job: controlled file delivery through self-hosted PHP links. It is not a cloud drive, account system, or collaboration platform.

Version 1.0.0

Script Shed Download

Add protected file delivery to your site today.

Download the ZIP, edit the config, and you can start creating controlled file links from your own hosting account.

Download Download Vault 1.0.0