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.

  • 26 Users Found This Useful
Was this answer helpful?

Related Articles

What is FTP?

FTP (File Transfer Protocol) is a method used to transfer files between your computer and the web...

What is SSH?

SSH (Secure Shell) is a secure method for logging into a server remotely and giving the server...

How do I access cPanel?

cPanel can be accessed by using either of the URLs below:  ...

How do I find my MySQL version?

Login to cPanel In the "Stats" section on the left, locate the row labeled "MySQL Version"....

How do I find my PHP version?

Login to cPanel. In the "Stats" section on the right, located the row labeled "PHP version"....