How to Disable mod_userdir Protection

April 19, 2024 / Web Hosting

In this article, we will explain how to disable mod_userdir protection.

Let us understand some information before disabling mod_userdir protection:

  1. While this WHM function enables you to limit mod_userdir functionality, it does not uninstall the module itself. Some PCI compliance scans might still notice its presence.
  2. Due to the mod_userdir module’s usage of virtual hosts, IP addresses are not listed in this feature-
    1. Configuring it with IP addresses is not supported.
    2. If you have not secured the default host, accessing the server’s main IP address through the mod_userdir module is typically possible.
    3. Even if you attempt to secure a dedicated IP address, the site’s contents may still be noticeable when protection is active. To prevent this behaviour, edit the /etc/apache2/conf.d/includes/post_virtualhost_global.conf file with a text editor and include the following line-
      UserDir disabled

This way, you can disable mod_userdir protection. If you require additional assistance, never hesitate to contact our support staff.

Spread the love