{"id":3913,"date":"2026-07-22T21:36:04","date_gmt":"2026-07-22T21:36:04","guid":{"rendered":"https:\/\/disoh.com\/support\/how-do-i-password-protect-a-directory-in-cpanel\/"},"modified":"2026-07-22T21:36:04","modified_gmt":"2026-07-22T21:36:04","password":"","slug":"comment-proteger-un-repertoire-par-mot-de-passe-dans-cpanel","status":"publish","type":"docs","link":"https:\/\/disoh.com\/fr\/support\/how-do-i-password-protect-a-directory-in-cpanel\/","title":{"rendered":"Comment prot\u00e9ger un r\u00e9pertoire par mot de passe dans cPanel ?"},"content":{"rendered":"<p>La protection par mot de passe affiche une fen\u00eatre de connexion avant que quiconque ne puisse acc\u00e9der \u00e0 un dossier ; cette fonctionnalit\u00e9 est utile pour les espaces de travail temporaires, les t\u00e9l\u00e9chargements priv\u00e9s ou les sections d'administration. Ce guide explique comment la configurer dans cPanel.<\/p>\n<h2>Fonctionnalit\u00e9s<\/h2>\n<p>Cette fonctionnalit\u00e9 ajoute une invite de saisie du nom d'utilisateur et du mot de passe \u00e0 un dossier sp\u00e9cifique, bloquant ainsi l'acc\u00e8s \u00e0 tout son contenu jusqu'\u00e0 ce que le visiteur se connecte. Elle fonctionne au niveau du serveur, ind\u00e9pendamment de toute proc\u00e9dure de connexion \u00e0 une application.<\/p>\n<h2>Prot\u00e9ger un r\u00e9pertoire<\/h2>\n<ol>\n<li>Connectez-vous \u00e0 cPanel.<\/li>\n<li>Dans le <strong>Fichiers<\/strong> section, ouvrir <strong>Confidentialit\u00e9 de l'annuaire<\/strong>.<\/li>\n<li>Acc\u00e9dez au dossier que vous souhaitez prot\u00e9ger, puis s\u00e9lectionnez-le.<\/li>\n<li>Coche <strong>Prot\u00e9ger ce r\u00e9pertoire par un mot de passe<\/strong> et donnez-lui un nom.<\/li>\n<li>Enregistrez, puis cr\u00e9ez un utilisateur en indiquant un nom d'utilisateur et un mot de passe.<\/li>\n<\/ol>\n<h2>Gestion des utilisateurs<\/h2>\n<ul>\n<li>Ajoutez autant d'utilisateurs que n\u00e9cessaire pour ce m\u00eame dossier.<\/li>\n<li>Supprimez les utilisateurs lorsqu'ils n'ont plus besoin d'un acc\u00e8s.<\/li>\n<\/ul>\n<h2>Suppression de la protection<\/h2>\n<p>Revenez au r\u00e9pertoire \u00ab Confidentialit\u00e9 \u00bb, s\u00e9lectionnez le dossier, puis d\u00e9sactivez l'option de protection ou supprimez les utilisateurs.<\/p>\n<h2>Conseils<\/h2>\n<ul>\n<li>Utilisez des mots de passe forts et uniques.<\/li>\n<li>Prot\u00e9gez le dossier pr\u00e9cis que vous souhaitez.<\/li>\n<li>\u00c0 associer au protocole SSL afin que la connexion soit crypt\u00e9e.<\/li>\n<\/ul>\n<h2>D\u00e9pannage<\/h2>\n<ul>\n<li><strong>Aucune invite ne s'affiche :<\/strong> V\u00e9rifiez que la protection est bien activ\u00e9e sur le dossier appropri\u00e9.<\/li>\n<li><strong>Cl\u00e9ferm\u00e9 :<\/strong> D\u00e9sactivez la protection depuis cPanel, puis reconfigurez-la.<\/li>\n<\/ul>\n<h2>Besoin d'aide ?<\/h2>\n<p>Si la protection ne fonctionne pas, notre \u00e9quipe d'assistance peut v\u00e9rifier son fonctionnement via le chat en direct.<\/p>","protected":false},"excerpt":{"rendered":"<p>Password protection adds a login prompt before anyone can view a folder, useful for staging areas, private downloads, or admin sections. This guide explains how to set it up in cPanel. What it does It adds a username and password prompt to a specific folder, blocking access to everything inside until the visitor logs in. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[12],"doc_tag":[],"class_list":["post-3913","docs","type-docs","status-publish","hentry","doc_category-webhosting"],"year_month":"2026-10","word_count":204,"total_views":"179","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Jorn","author_nicename":"jorn","author_url":"https:\/\/disoh.com\/fr\/author\/jorn\/"},"doc_category_info":[{"term_name":"Webhosting","term_url":"https:\/\/disoh.com\/fr\/docs-category\/webhosting\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How do I password-protect a directory in cPanel? &#8211; Disoh<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/disoh.com\/fr\/soutien\/comment-proteger-un-repertoire-par-mot-de-passe-dans-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How do I password-protect a directory in cPanel? &#8211; Disoh\" \/>\n<meta property=\"og:description\" content=\"Password protection adds a login prompt before anyone can view a folder, useful for staging areas, private downloads, or admin sections. This guide explains how to set it up in cPanel. What it does It adds a username and password prompt to a specific folder, blocking access to everything inside until the visitor logs in. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/disoh.com\/fr\/soutien\/comment-proteger-un-repertoire-par-mot-de-passe-dans-cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"Disoh\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/disohhosting\" \/>\n<meta property=\"og:image\" content=\"https:\/\/disoh.com\/wp-content\/uploads\/2025\/07\/disoh_about.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1536\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/disoh.com\\\/sv\\\/support\\\/how-do-i-password-protect-a-directory-in-cpanel\\\/\",\"url\":\"https:\\\/\\\/disoh.com\\\/sv\\\/support\\\/how-do-i-password-protect-a-directory-in-cpanel\\\/\",\"name\":\"How do I password-protect a directory in cPanel? &#8211; Disoh\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/disoh.com\\\/sv\\\/#website\"},\"datePublished\":\"2026-07-22T21:36:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/disoh.com\\\/sv\\\/support\\\/how-do-i-password-protect-a-directory-in-cpanel\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/disoh.com\\\/sv\\\/support\\\/how-do-i-password-protect-a-directory-in-cpanel\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/disoh.com\\\/sv\\\/support\\\/how-do-i-password-protect-a-directory-in-cpanel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/disoh.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How do I password-protect a directory in cPanel?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/disoh.com\\\/sv\\\/#website\",\"url\":\"https:\\\/\\\/disoh.com\\\/sv\\\/\",\"name\":\"Disoh\",\"description\":\"Digital Solutions Hosting\",\"publisher\":{\"@id\":\"https:\\\/\\\/disoh.com\\\/sv\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/disoh.com\\\/sv\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/disoh.com\\\/sv\\\/#organization\",\"name\":\"Disoh LLC\",\"url\":\"https:\\\/\\\/disoh.com\\\/sv\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/disoh.com\\\/sv\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/disoh.com\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/favicon_1.svg\",\"contentUrl\":\"https:\\\/\\\/disoh.com\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/favicon_1.svg\",\"width\":615,\"height\":615,\"caption\":\"Disoh LLC\"},\"image\":{\"@id\":\"https:\\\/\\\/disoh.com\\\/sv\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/disohhosting\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Comment prot\u00e9ger un r\u00e9pertoire par mot de passe dans cPanel ? \u2013 Disoh","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/disoh.com\/fr\/soutien\/comment-proteger-un-repertoire-par-mot-de-passe-dans-cpanel\/","og_locale":"fr_FR","og_type":"article","og_title":"How do I password-protect a directory in cPanel? &#8211; Disoh","og_description":"Password protection adds a login prompt before anyone can view a folder, useful for staging areas, private downloads, or admin sections. This guide explains how to set it up in cPanel. What it does It adds a username and password prompt to a specific folder, blocking access to everything inside until the visitor logs in. [&hellip;]","og_url":"https:\/\/disoh.com\/fr\/soutien\/comment-proteger-un-repertoire-par-mot-de-passe-dans-cpanel\/","og_site_name":"Disoh","article_publisher":"https:\/\/www.facebook.com\/disohhosting","og_image":[{"width":1536,"height":1024,"url":"https:\/\/disoh.com\/wp-content\/uploads\/2025\/07\/disoh_about.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Dur\u00e9e de lecture estim\u00e9e":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/disoh.com\/sv\/support\/how-do-i-password-protect-a-directory-in-cpanel\/","url":"https:\/\/disoh.com\/sv\/support\/how-do-i-password-protect-a-directory-in-cpanel\/","name":"Comment prot\u00e9ger un r\u00e9pertoire par mot de passe dans cPanel ? \u2013 Disoh","isPartOf":{"@id":"https:\/\/disoh.com\/sv\/#website"},"datePublished":"2026-07-22T21:36:04+00:00","breadcrumb":{"@id":"https:\/\/disoh.com\/sv\/support\/how-do-i-password-protect-a-directory-in-cpanel\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/disoh.com\/sv\/support\/how-do-i-password-protect-a-directory-in-cpanel\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/disoh.com\/sv\/support\/how-do-i-password-protect-a-directory-in-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/disoh.com\/"},{"@type":"ListItem","position":2,"name":"How do I password-protect a directory in cPanel?"}]},{"@type":"WebSite","@id":"https:\/\/disoh.com\/sv\/#website","url":"https:\/\/disoh.com\/sv\/","name":"Disoh","description":"Solutions num\u00e9riques H\u00e9bergement","publisher":{"@id":"https:\/\/disoh.com\/sv\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/disoh.com\/sv\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/disoh.com\/sv\/#organization","name":"Disoh LLC","url":"https:\/\/disoh.com\/sv\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/disoh.com\/sv\/#\/schema\/logo\/image\/","url":"https:\/\/disoh.com\/wp-content\/uploads\/2025\/06\/favicon_1.svg","contentUrl":"https:\/\/disoh.com\/wp-content\/uploads\/2025\/06\/favicon_1.svg","width":615,"height":615,"caption":"Disoh LLC"},"image":{"@id":"https:\/\/disoh.com\/sv\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/disohhosting"]}]}},"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/docs\/3913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/comments?post=3913"}],"version-history":[{"count":0,"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/docs\/3913\/revisions"}],"wp:attachment":[{"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/media?parent=3913"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/doc_category?post=3913"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/doc_tag?post=3913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}