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 :  4.3 from 5
views :  10021
votes :  59

Related Articles

Views

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!