Knowledge Base Article

How to block access to a specific folder?

To block all access to a specific folder in your account, you should add this rule to the .htaccess file in that folder:

 

Deny from all

 

If the .htaccess file does not exist, you can easily create it from your cPanel > File Manager.

 

To allow access again, simply delete or comment the above rule.



Rating

Please indicate if this article was helpful for you.

rating :  3.3 from 5
views :  272
votes :  3

Valid XHTML 1.0 Strict Valid CSS!