The EasyApache FileProtect option improves the security of each user's public_html directory. In EasyApache 4, the system enables this option by default.


Use this option to protect each cPanel account user's public_html directory and each addon domain's document root directory so that only Apache and the user may view its contents.

When you enable this option, EasyApache performs the following actions:


This option does not possess any requirements.


Enable or Disable FileProtect

In the interface

You can enable or disable the FileProtect option with the Enable File Protect option in the Security section of WHM's Tweak Settings interface (WHM >> Home >> Server Configuration >> Tweak Settings).

This option defaults to enabled.

On the command line

To enable the FileProtect option, run the following script:


To disable the FileProtect option, run the following script:


For more information about these scripts, run these scripts with the --help flag.

Additional documentation