Knowledgebase

How to block access to a specific folder?  Print this Article

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 SiteWorx > File Manager.

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

Was this answer helpful?

Related Articles

How Do Websites Get Hacked?
The most common reasons for a hacked (defaced) website include: Outdated web application....
How to clean malicious code from your website?
If your website has been hacked and malicious content has been inserted into your files, you...
What is a Brute Force Attack and how to block it
Brute Force is a method of guessing your password by trying combinations of letters, numbers and...
How to protect your account from TRACE request attacks?
In order to protect your account from HTTP TRACE request attacks, you can add this to your...
Force SSL/https using .htaccess
You can force an HTTPS connection on your website by adding these rules in your website's...