Sensitive Directory Check Errors
Problem
You see the following message at Configuration () > System Health:
Sensitive Directory Check
One or more sensitive directories are accessible from the web:
/vendor
Cause
This message indicates that your server configuration allows direct web access to directories that should be restricted. Direct access to these directories can cause unexpected behavior and security-related issues.
For example, the /vendor directory includes various common libraries that WHMCS uses. Your server should not serve file requests directly from this path.
Solution
The solution depends on the type of server that hosts your WHMCS installation.
Apache® Servers
If your server runs Apache, the included .htaccess file already protects against these problems. Verify that:
- The
.htaccessfile exists in the/vendordirectory. - Your Apache configuration allows
.htaccessoverrides.
Non-Apache Servers
If you use a server that does not run Apache, you must update your configuration to prohibit serving files directly from the /vendor directory.
Last modified: 2026 January 21