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

Security of your scripts/files

PHP versions used on servers are regularly updated for performances, stability, and especially...

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...

How to install an SSL certificate

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

MANDATORY security measures for WordPress

It is not a secret, wordpress websites suffer from multiple attacks and increasingly causing...

Optimal technique for DNS update

The DNS to be inserted for your hosting service are mentioned in the email of access that...