New Customers: 50% OFF Your First Month on Linux Servers & Web Hosting Plans!
.htaccess

How to protect your .htaccess file?

For security purposes, we recommend you to prevent access to your .htaccess file from unauthorized access.

Add this code to your .htaccess file:

# .htaccess protection

order allow, deny
deny from all
satisfy all

 

Was this article helpful?

← Back to .htaccess