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 php config file

This should be a basic rule known of all, but fact is that it is not... The php config file...

Protection WordPress xmlrpc.php

You are actually by default on mode PROXY with profile 'YOORshop defaut', this is good to know if...

Backup and restore of your files

1. Automatic restore (Your data are also kept external server over last 15 days for shared...

Two-Factor authentication 2FA cPanel

Find the icon in cPanel, Security section: Two-factor authentication To configure 2FA, perform...

Security of your scripts/files

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