Help Center/ Host Security Service/ FAQs/ Web Tamper Protection/ Web Tamper Protection Displays a Message Indicating That the Protected Directory or Backup Directory Does Not Exist
Updated on 2026-11-05 GMT+08:00

Web Tamper Protection Displays a Message Indicating That the Protected Directory or Backup Directory Does Not Exist

Symptom

Web tamper protection fails. The following message is displayed: Invalid protected directory: /root. Configure a valid directory and try again.

Figure 1 Symptom

Click the number under Protected Directories to go to the details page. The following message is displayed: The protected directory or backup directory was not found.

Figure 2 Directory details

Possible Causes

  • Cause 1: No protected directory or backup directory is created on the server.
  • Cause 2: The web tamper protection is enabled before the protected directory and backup directory are created.
  • Cause 3: The protected directory or backup directory is a network directory and cannot be protected.

Solution

  • For cause 1, disable the web tamper protection, create a protected directory and a backup directory on the server, wait for 3 minutes, and then enable the protection again.
  • For cause 2, disable the web tamper protection, wait for 3 minutes, and then enable the protection again.
  • For cause 3, network directories cannot be set as protected directories. If the backup directory is a network directory, select another non-network directory as the backup directory.