Skip to content

The firewall is using the database as a fallback

Vulnity Security persists part of the firewall state on disk and falls back to the WordPress database when the disk is not writable. This guide covers the warning shown while that fallback is active.

Use this guide if WordPress shows a message such as:

  • Right now we cannot write to /wp-content/uploads/vulnity-data, so the firewall is using the WordPress database as a fallback...

Or if the Vulnity panel shows the Firewall using database fallback warning for this site.

Vulnity persists part of the firewall state (block lists and the pairing backup) on disk, inside the uploads directory:

wp-content/uploads/vulnity-data/

If PHP loses write access to that folder, Vulnity automatically switches to storing that state in the WordPress database, so protection stays active. Nothing is lost: this warning is about performance and resilience, not about a security gap.

You usually do not need to do anything:

  • On every permission check, Vulnity tries to create the folder and lift its permissions.
  • As soon as the folder is writable again, the data parked in the database is migrated back to disk. This is attempted on every heartbeat (about every 6 hours) and by a daily recovery task.
  • Once migrated, the warning disappears on its own, and the warning badge in the Vulnity panel clears with the next heartbeat.

Follow the steps below only if the warning persists for more than a day.

  1. Open your hosting file manager.
  2. Navigate to your WordPress installation.
  3. Open wp-content/uploads/.
  4. Create the folder vulnity-data if it does not exist.
  5. Set its permissions to 755. If that does not work, try 775.
  6. Reload the WordPress panel and open Vulnity → Storage to re-check.

From the WordPress root:

Terminal window
mkdir -p wp-content/uploads/vulnity-data
chmod 755 wp-content/uploads/vulnity-data

If it still fails:

Terminal window
chmod 775 wp-content/uploads/vulnity-data

The owner should match the owner of wp-content/uploads/; it should not be root:

Terminal window
stat -c '%U %G %n' wp-content/uploads wp-content/uploads/vulnity-data
chown -R <user>:<group> wp-content/uploads/vulnity-data

The database fallback is also a supported permanent mode. Open the Vulnity → Storage screen in wp-admin and choose database fallback: the warning is then hidden on purpose, because it becomes a deliberate choice instead of a degradation.

Signs of success:

  • The warning disappears from wp-admin and the badge clears in the Vulnity panel.
  • Vulnity → Storage shows the disk as writable and no data pending in the database.