How do you protect access to a directory on your web hosting?

Procédure

I. Why protect access to a directory?

In today's digital environment, data security is paramount for any company or individual with a website. Protecting web directories against unauthorised access is an important step in preserving the confidentiality, integrity and availability of sensitive information. By securing your directories, you minimise the risk of data leakage, malicious exploitation and other potential cyber attacks. The LWS Panel offers effective tools for implementing this protection simply and reliably. This guide will explain why it is essential to protect your directories and how to use the LWS Panel to secure your data effectively.

II. What types of directories can be protected?

You can protect all the directories on your site with the exception of the root folder of your hosting. Please note that the protection you set up applies to the directory where it is configured, as well as to all its sub-directories.

III. How do you create directory protection?

1. Connect to your hosting and click on"Folder protection".

How do you protect access to a directory on your web hosting?

2. Enter a username (1), a password (2) then confirm the password (3) and enter the directory to be protected (4). To finish, click on the validate button (5).

How do you protect access to a directory on your web hosting?

[tips_warning] Directory protection will create two files in the directory to be secured (.htaccess and .htpasswd). Do not delete them or the directory will no longer be secure[/tips].

For reasons of security and hosting operation, it is not possible to protect the root directory of your hosting (htdocs) using this feature.

IV. Check that the protection is working properly

Test access to the protected directory by trying to open it via a web browser. You should be prompted to enter the user IDs you have created.

How do you protect access to a directory on your web hosting?

Conclusion

You now know how to: protect your data on your website by securing your directories, identify the types of directories you can protect, and use the LWS Panel to set up effective protection for your folders. 🛡️

With this information, you can now significantly reduce the risk of data leaks and cyber attacks, ensuring the confidentiality,integrity and availability of your sensitive information. 🔐

Remember the importance of never deleting .htaccess and .htpasswd files after securing a directory, and bear in mind that root directory protection is not possible for security and operational reasons. ⚠️

Thanks for reading! If you have any questions or feedback on the directory protection service with LWS, please don't hesitate to leave a comment. Your opinion is important to us and helps us to continually improve our services. 📢

Rate this article :

5/5 | 2 opinion

This article was useful to you ?

Article utileYes

Article non utileNo

Vous souhaitez nous laisser un commentaire concernant cet article ?

Si cela concerne une erreur dans la documentation ou un manque d'informations, n'hésitez pas à nous en faire part depuis le formulaire.

Pour toute question non liée à cette documentation ou problème technique sur l'un de vos services, contactez le support commercial ou le support technique

MerciMerci ! N'hésitez pas à poser des questions sur nos documentations si vous souhaitez plus d'informations et nous aider à les améliorer.


Vous avez noté 0 étoile(s)

Similar articles

1mn reading

Web application firewall

0mn reading

How to set the IP Firewall

0mn reading

How do I install a paid SSL Certificate?

1mn reading

Protection hotlinks


Questions sur l'article
ThChor Il y a 746 days
Bonjour sur mon arborescence : racine ............ sous-domaine1 dossier1.1 sous-dossier1.2.1 mettre un mot de passe sur le sous-dossier1.2.1 Comment faire
See the
1 answers
fabrice-LWS - Il y a 745 days
Bonjour, concernant la protection d'un dossier, vous êtes limités au niveau du nombre de caractères en passant par l'espace client. De ce fait, cela ne vous permettra pas de protéger "/htdocs/sous-domaine.com/repertoire1/repertoire" comme vous désirez le faire. La limite est de 30 caractères au niveau de cela. La solution serait de suivre la procédure suivante afin de mettre en place un fichier htpasswd et .htaccess pour protéger le répertoire concerné : https://www.wakdev.com/fr/more/wiki/divers/les-htaccess-et-htpasswd.html
Utile ?
Billy Il y a 738 days
Bonjour, Est-il possible de protéger par mot de passe l’accès à un sous-domaine (à la racine d’un sous-domaine si l’on peut dire). Ou bien est-ce comme la racine du domaine principal ?
See the
1 answers
fabrice-LWS - Il y a 737 days
Bonjour, cela ne pourra pas fonctionner par le biais de votre espace client, en cliquant sur "Protection dossier". En effet, les points dans le nom du répertoire ne sont pas autorisés. Vous pouvez néanmoins protéger un sous domaine en suivant la procédure suivante : https://www.wakdev.com/fr/more/wiki/divers/les-htaccess-et-htpasswd.html
Utile ?
Billy Il y a 738 days
Bonjour, Est-il possible de protéger par mot de passe via la méthode manuelle l’accès à un dossier dans la formule "Domaine" ? Si oui, sans php, je n’arrive pas à trouver le "realpath" et à accéder au .htpasswd… Est-il possible de déduire ce realpath ?
See the
1 answers
fabrice-LWS - Il y a 737 days
Bonjour, vous avez la possibilité de protéger un répertoire sans passer par "Protection dossier" accessible sur votre espace client. Pour cela, je vous invite à suivre la procédure suivante: https://www.wakdev.com/fr/more/wiki/divers/les-htaccess-et-htpasswd.html
Utile ?

Ask the LWS team and its community a question