Htaccess directory protection

1

Go to your cPanel in section Files and click Directory privacy.

To secure one of the directories you see, click the folder name

To secure a subdirectory, you must navigate the subdirectories: you have to click on the icon to the left of the folder name to go down one notch in the tree ... and click on the name of the folder you want to secure ...

1. Click 'Password protect this directory', give a name and save
2. Create a user with login + password, and save (check again to make sure protection is enabled on directory)

Wait now 2-3 minutes so that server will take new seurity seting into account...

 

Also Read

How to fight against junk bot traffic

We have put a protection server wide with a list of not desired bots. Indeed we remarked that...

PHP files injection - file uploads ON-OFF

This feature is enabled by default because it is the one that allows you to load images, for...

You are under ddos attack ?

    Ddos attack ? Let's talk about it in case we did not already intervene :) Naughty IPs...

IP block by country

On 09/30/2016, due to the persistence of Russian, Chinese, Ukrainian spam traffic and attacks, we...

How to install an SSL certificate

Having a website running with SSL at 100% is highly recommended :- a padlock in your URL...