Site Lock

Updated 14 Nov 2026 Published

Site Lock

Site Lock protects a website's document root against defacement. It records a fingerprint (SHA-256) and a copy of every file in a snapshot, tells you exactly which files were added, modified or deleted since then, and puts the site back from the snapshot in one click. It can also make the files immutable so nothing can write to them, and watch them in real time.

Requirements

  • Site Lock is a premium app: it is included with the Enterprise plan, or you can buy it on VinzaWeb. See pricing and Vinza Store.
  • Excluded paths are fully supported from panel 1.3.78. On older panels snapshots cover the whole document root and a restore is refused while excludes are set.
  • Administrators manage every site; a website owner manages their own sites.

Open it

Open Security → Site Lock (/apps/site-lock/), or click the Site Lock card on a website's page. The page lists your websites with their snapshots, lock status and real-time monitor. A dashboard tile shows how many sites are protected and whether there are alerts.

Take a snapshot

  1. Make sure the site is in a known-good state (freshly deployed, updated and clean).
  2. Click Take Snapshot for the site.

A site can keep several snapshots. Files larger than 50 MB are fingerprinted but not copied, so they cannot be restored from the snapshot. Snapshots are stored under /var/lib/vinzapanel/sitelocks on the server that hosts the site. Use Manage Snapshots to list or delete them.

Check integrity

  1. Click Check Integrity for the site. It compares the live files against the latest snapshot.
  2. The Integrity Check Results list each file as Added, Modified or Deleted, or confirm No unauthorized changes — docroot matches the snapshot.

Added and modified files are also scanned with ClamAV and Vinza Scanner when they are installed (see Malware Scanning). Infections are reported in the result and in alerts, never deleted.

Restore

  1. Open Manage Snapshots and choose Restore this snapshot.
  2. Confirm. The current docroot files are overwritten by the snapshot.

A restore writes back every recorded file, owned by the site, and removes files that are not in the snapshot, such as dropped web shells or defacement pages. Excluded paths are never deleted by a restore. If the site is locked, it is unlocked for the restore and locked again afterwards.

A restore deletes newer files

Anything added to the document root after the snapshot, outside the excluded paths, is removed. Exclude upload and cache folders first, or take a new snapshot after legitimate changes.

Lock the site

Lock Site (chattr +i) sets the immutable flag on every file in the document root. Nothing can write to them, not even a compromised PHP process, until you click Unlock Site.

Unlock before you update

A locked site cannot be deployed, updated by its CMS, or receive uploads into the document root. Unlock it first, make the change, take a new snapshot, and lock it again.

Real-time monitor

Turn on the site's Monitor switch (Enable real-time monitor). A root watcher service, vinza-sitelock-watch, uses inotify to notice changes as they happen and raises an alert: one per check, at most once a minute, not one per file. Alerts appear under Pending Alerts, in the bell, and for administrators through Settings → Alert Channels. Website owners are alerted for their own sites. Use Acknowledge or Acknowledge All once you have reviewed them.

Excludes and scheduled checks

In Excludes & scheduled check for a site:

  • Exclude paths, one per line: cache/ means any folder named cache, wp-content/cache/ that folder under the site root, *.log matching file names. Add suggested fills in cache/, uploads/, logs/, *.log and wp-content/cache/. Excluded paths are left out of new snapshots, ignored by the integrity check and the monitor, and never deleted by a restore.
  • Scheduled integrity check: Off, Hourly or Daily at a chosen hour, run as root from cron. Changes and infected files are reported as alerts.

Notes and troubleshooting

  • On multi-server panels, snapshots, the watcher and the alert log live on the node that hosts the site.
  • If the page says The file-integrity watcher is NOT running on a server, sites there are not monitored in real time whatever their switch says. Reinstall the app from the Vinza Store; snapshots, checks and restores still work meanwhile.
  • Snapshots of a website are removed when the website is deleted.
  • Site Lock complements, not replaces, regular backups: it covers the document root only, not databases or mail.
On this page