{"id":28203,"date":"2019-01-24T12:16:38","date_gmt":"2019-01-24T12:16:38","guid":{"rendered":"https:\/\/www.knowband.com\/blog\/?p=23874\/"},"modified":"2022-08-13T12:01:14","modified_gmt":"2019-01-24T12:40:13","slug":"password-protection-withhtaccess","status":"publish","type":"post","link":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/password-protection-withhtaccess\/","title":{"rendered":"Password Protection with?htaccess"},"content":{"rendered":"<h2 style=\"font-size: 22px; margin-bottom: 15px; text-align: justify;\"><strong>Introduction<\/strong><\/h2>\n<p>Il est toujours judicieux d\u2019ajouter une protection par mot de passe \u00e0 l\u2019un des dossiers \/ pages Web de votre site Web si vous souhaitez en restreindre l\u2019acc\u00e8s. La m\u00e9thode pour appliquer la m\u00eame chose est plus importante. Nous pouvons utiliser PHP pour autoriser les informations sur chaque page, mais cela ne prot\u00e8ge pas vos images ni aucun autre m\u00e9dia, n&#39;est-ce pas? Nous pouvons donc utiliser une autre m\u00e9thode appel\u00e9e <strong>htaccess protection par mot de passe<\/strong>?or <strong>authentification htaccess<\/strong>. C&#39;est fiable et beaucoup plus facile.<\/p>\n<h3 style=\"font-size: 18px; margin-bottom: 15px; text-align: justify;\"><strong>Objectif<\/strong><\/h3>\n<p>Ce blog vous aide \u00e0 savoir comment restreindre l&#39;acc\u00e8s au site Web d&#39;utilisateurs non autoris\u00e9s.<\/p>\n<p><strong>Veuillez suivre les \u00e9tapes mentionn\u00e9es ci-dessous:<\/strong><\/p>\n<p><strong>\u00c9tape 1.<\/strong> Utiliser <strong>htaccess protection par mot de passe<\/strong> nous devons cr\u00e9er deux fichiers dans le r\u00e9pertoire dans lequel vous souhaitez restreindre l&#39;acc\u00e8s: &#8211;<\/p>\n<p><strong>1)<\/strong> .htaccess<br \/>\n<strong>2)<\/strong> fichier .htpasswd<\/p>\n<p><strong>\u00c9tape 2.<\/strong> Ajoutez le code suivant dans le fichier .htaccess que vous avez cr\u00e9\u00e9 \u00e0 l&#39;\u00e9tape 1.<\/p>\n<p><strong>Le code .htaccess<\/strong><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">AuthType Basic AuthName &quot;No Access&quot; AuthUserFile C: \/wamp64\/www\/test_project\/self_stitch\/.htpasswd n\u00e9cessite un utilisateur valide.<\/pre>\n<p><strong>Remarque :<\/strong> Vous pouvez remplacer &quot;C: \/ wamp64 \/ www \/ test_project \/&quot; par votre propre structure de r\u00e9pertoires. Le code ci-dessus (directives) est d\u00e9crit ci-dessous:<\/p>\n<p><strong>je.)<\/strong> AuthType La directive AuthType vous permet de s\u00e9lectionner la m\u00e9thode utilis\u00e9e pour authentifier l&#39;utilisateur.<\/p>\n<p><strong>ii.)<\/strong> AuthName Remplacer &quot;<strong>Pas d&#39;acc\u00e8s<\/strong>&quot;\u00e0 n&#39;importe quel nom selon vos besoins. Ce nom sera affich\u00e9 dans la zone d&#39;alerte lorsque l&#39;utilisateur tentera d&#39;ouvrir une page prot\u00e9g\u00e9e par htaccess.<a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/mod\/mod_authn_core.html#authname\" target=\"_blank\">AuthName<\/a>?directive sets the?domain?to be used in the authentication.<\/p>\n<p>Once a client has passed the authentication in the?&#8221;<strong>Pas d&#39;acc\u00e8s<\/strong>&quot;zone, il n\u2019est pas n\u00e9cessaire de saisir le mot de passe pour acc\u00e9der \u00e0 tout autre fichier de la m\u00eame zone sur le m\u00eame serveur. Par cons\u00e9quent, emp\u00eachez un utilisateur de saisir le mot de passe encore et encore en laissant plusieurs zones restreintes partager le m\u00eame domaine.<\/p>\n<p><strong>iii.) AuthUserFile<\/strong><\/p>\n<ul>\n<li>Vous devez ajouter votre chemin .htpasswd \u00e0 la place de &quot;C: \/wamp64\/www\/test_project\/self_stitch\/.htpasswd&quot;.<\/li>\n<li>Le &quot;<strong>AuthUserFile<\/strong>&quot;La valeur est toujours sp\u00e9cifique \u00e0 votre configuration h\u00f4te.<\/li>\n<li>Si vous ne savez pas ce que la valeur devrait \u00eatre, faites un<\/li>\n<li>Pour cela, il vous suffit d&#39;ajouter la ligne &quot;&lt;? Php phpinfo ();?&gt;&quot; Dans le fichier phpinfo.php. Vous pouvez trouver le fichier phpinfo.php dans votre dossier racine (www pour localhost), puis ex\u00e9cuter le fichier phpinfo.php sur le navigateur. Par exemple, sur localhost, ex\u00e9cutez localhost \/ phpinfo.php<\/li>\n<\/ul>\n<p><strong>REMARQUE: <\/strong><\/p>\n<p><strong>1.<\/strong>Pour prot\u00e9ger par mot de passe plusieurs fichiers dans le m\u00eame dossier, cr\u00e9ez simplement plusieurs blocs &lt;Fichiers&gt; &lt;\/ Files&gt; dans le m\u00eame fichier .htaccess &#8211; par exemple:<\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">AuthUserFile \/full\/path\/to\/.htpasswd AuthType Basic AuthName &quot;Ma page secr\u00e8te&quot; &lt;Fichiers &quot;mypage.html&quot;&gt; Requiert un utilisateur valide &lt;\/ Files&gt; &lt;Fichiers &quot;myotherpage.html&quot;&gt; Requiert un utilisateur valide &lt;\/ Files&gt;.<\/pre>\n<\/blockquote>\n<p><strong>2.<\/strong> Pour autoriser uniquement les utilisateurs \u00e0 acc\u00e9der aux types de fichiers sp\u00e9cifiques, vous devez ajouter le code suivant:<\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">AuthUserFile \/full\/path\/to\/.htpasswd AuthType Basic AuthName &quot;Ma page secr\u00e8te&quot; # nier * tout * &lt;FilesMatch &quot;. *&quot;&gt; Ordre Autoriser, Refuser Refuser de tous &lt;\/ FilesMatch&gt; # Autoriser uniquement * certains * fichiers n\u00e9cessaires: &lt;FilesMatch &quot;. * \\. (Php | html | css | js | JS | CSS) $&quot;&gt; Ordre Autoris\u00e9, Refus Autoris\u00e9 de tous &lt;\/ FilesMatch&gt;<\/pre>\n<\/blockquote>\n<p>Ici, tout d\u2019abord, nous limitons l\u2019acc\u00e8s \u00e0 tout via &lt;FilesMatch &quot;. *&quot;&gt;, Apr\u00e8s quoi nous autorisons uniquement l\u2019acc\u00e8s \u00e0 certains fichiers (php, html, css, js) \u00e0 l\u2019aide de &lt;FilesMatch &quot;. * \\. (Php | html | css | js | JS | CSS) $ &quot;&gt; Notre exemple n&#39;autorise pas l&#39;acc\u00e8s \u00e0 d&#39;autres fichiers, par exemple. .jpg, .png, etc. Vous pouvez \u00e9galement autoriser l&#39;acc\u00e8s depuis une adresse IP sp\u00e9cifique en utilisant &quot;<strong>permettent de 12.34.56.78<\/strong>&quot; \u00e0 la place d&#39;utiliser &quot;<strong>permettre de toute<\/strong>&#8220;.<\/p>\n<p><strong>3.<\/strong> Pour ajouter un mot de passe htaccess uniquement aux types de fichiers sp\u00e9cifiques, vous devez ajouter le code suivant:<\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">AuthType Basic AuthName &quot;zone restreinte&quot; AuthUserFile C: \/wamp64\/www\/test_project\/self_stitch\/.htpasswd # mais n&#39;autorise plus que * certains * fichiers n\u00e9cessaires: &lt;FilesMatch &quot;. * \\. (Txt) $&quot;&gt; n\u00e9cessite un utilisateur valide &lt;, \/ FilesMatch&gt;<\/pre>\n<\/blockquote>\n<p>En utilisant le code ci-dessus, tous les fichiers seront accessibles sans mot de passe, mais les fichiers avec l&#39;extension .txt auront besoin d&#39;un nom d&#39;utilisateur et d&#39;un mot de passe.<\/p>\n<p><strong>4.<\/strong> Si vous devez appliquer un mot de passe htaccess \u00e0 tous les fichiers sauf un, ajoutez le code suivant:<\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">AuthType Basic AuthName &quot;zone restreinte&quot; AuthUserFile C: \/wamp64\/www\/test_project\/self_stitch\/.htpasswd &lt;FilesMatch &quot;. *&quot;&gt; Requiert utilisateur valide &lt;\/ FilesMatch&gt; # mais n&#39;autorise plus que * certains * fichiers * n\u00e9cessaires: &lt;FilesMatch &quot; . * \\. (txt) $ &quot;&gt; Requiert tous les droits &lt;\/ FilesMatch&gt;<\/pre>\n<\/blockquote>\n<p>Dans l&#39;exemple ci-dessus, \u00e0 l&#39;exception des fichiers .txt, tous les autres fichiers auront besoin du nom d&#39;utilisateur et du mot de passe pour pouvoir \u00eatre utilis\u00e9s.<\/p>\n<p><strong>iv.)<\/strong> <strong>exiger<\/strong><\/p>\n<p>La ligne &quot;<strong>N\u00e9cessite un utilisateur valide<\/strong>&quot;signifie que tout utilisateur sp\u00e9cifi\u00e9 dans votre<br \/>\n<strong>\u00c9tape 3.<\/strong> Ajoutez le nom d&#39;utilisateur et le mot de passe dans le fichier .htpasswd comme d\u00e9crit ci-dessous:<\/p>\n<p><strong>Le code .htpasswd<\/strong><\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">john:$apr1$DObQIej5$0ZmEaLN42GEz\/XJEiJXh9.<\/pre>\n<\/blockquote>\n<p><strong>je.)<\/strong> le<\/p>\n<p><strong>ii.)<\/strong> Les mots de passe sont crypt\u00e9s \u00e0 l\u2019aide de MD5 \u00e0 des fins de s\u00e9curit\u00e9.<\/p>\n<p><strong>iii.)<\/strong> Comme vous pouvez le voir ci-dessus, seul l&#39;utilisateur 1 est autoris\u00e9, c&#39;est-\u00e0-dire avec le mot de passe John: Mot de passe actuel: egypt4721 Mot de passe crypt\u00e9: $ apr1 $ DObQIej5 $ 0ZmEaLN42GEZ \/ XJEiJXhXNXX. (Crypt\u00e9 avec MD9).<\/p>\n<p><strong>iv.)<\/strong> Pour g\u00e9n\u00e9rer un fichier .htpasswd, utilisez le lien indiqu\u00e9 ci-dessous:<\/p>\n<p><a href=\"https:\/\/www.htaccesstools.com\/htaccess-authentication\/\" target=\"_blank\">https:\/\/www.htaccesstools.com\/htaccess-authentication\/<\/a><\/p>\n<p>Apr\u00e8s avoir cr\u00e9\u00e9 le fichier .htaccess et .htpasswd dans le r\u00e9pertoire que vous souhaitez prot\u00e9ger, une alerte sera affich\u00e9e \u00e0 l&#39;ouverture de votre site Web. Veuillez vous r\u00e9f\u00e9rer \u00e0 la capture d&#39;\u00e9cran ci-dessous:<\/p>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/01\/Picture1-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-23898\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/01\/Picture1-1-300x104.png\" alt=\"protection par mot de passe\" width=\"300\" height=\"104\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/01\/Picture1-1-300x104.png 300w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/01\/Picture1-1-768x265.png 768w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/01\/Picture1-1-1024x354.png 1024w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/01\/Picture1-1.png 1150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/1-eCuaavLG-8tQoNftxJNxWqw-aOR1eNI\/view\" target=\"_blank\">Plus de d\u00e9tails<\/a> pour t\u00e9l\u00e9charger un exemple de projet avec .htaccess prot\u00e9g\u00e9 par mot de passe.<script data-cfasync=\"false\" src=\"https:\/\/tdns2.gtranslate.net\/tdn-bin\/queue.js\"><\/script><!-- Yandex.Metrika counter for GTranslate --><script data-cfasync=\"false\">(function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter36618640 = new Ya.Metrika({ id:36618640, clickmap:true, trackLinks:true, accurateTrackBounce:true, ut:\"noindex\" }); } catch(e) { } }); var n = d.getElementsByTagName(\"script\")[0], s = d.createElement(\"script\"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = \"text\/javascript\"; s.async = true; s.src = \"https:\/\/mc.yandex.ru\/metrika\/watch.js\"; if (w.opera == \"[object Opera]\") { d.addEventListener(\"DOMContentLoaded\", f, false); } else { f(); } })(document, window, \"yandex_metrika_callbacks\"); <\/script> <noscript><\/p>\n<div><img decoding=\"async\" src=\"https:\/\/mc.yandex.ru\/watch\/36618640?ut=noindex\" style=\"position:absolute; left:-9999px;\" alt=\"\" \/><\/div>\n<p><\/noscript><br \/>\n<!-- delivered by GTranslate v4.8.8 in 183ms visit https:\/\/gtranslate.io --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Il est toujours judicieux d\u2019ajouter une protection par mot de passe \u00e0 l\u2019un des dossiers \/ pages Web de votre site Web si vous souhaitez en restreindre l\u2019acc\u00e8s. La m\u00e9thode pour appliquer la m\u00eame chose est plus importante. Nous pouvons utiliser PHP pour autoriser les informations sur chaque page, mais cela ne prot\u00e8ge pas [&hellip;]<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kbui_enabled":"","footnotes":""},"categories":[1120],"tags":[13854,13853,13852],"class_list":["post-28203","post","type-post","status-publish","format-standard","hentry","category-conseils-fr","tag-htaccess","tag-conseils-techniques","tag-mot-de-passe-de-protection"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Password Protection with?htaccess - Knowband Blog | Ecommerce Modules<\/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:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/password-protection-withhtaccess\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Password Protection with?htaccess - Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"og:description\" content=\"Introduction Il est toujours judicieux d\u2019ajouter une protection par mot de passe \u00e0 l\u2019un des dossiers \/ pages Web de votre site Web si vous souhaitez en restreindre l\u2019acc\u00e8s. La m\u00e9thode pour appliquer la m\u00eame chose est plus importante. Nous pouvons utiliser PHP pour autoriser les informations sur chaque page, mais cela ne prot\u00e8ge pas [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/password-protection-withhtaccess\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Knowband\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-24T12:16:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-01-24T12:40:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/01\/Picture1-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1150\" \/>\n\t<meta property=\"og:image:height\" content=\"397\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Aparajita Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:site\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aparajita Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/password-protection-withhtaccess\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/password-protection-withhtaccess\\\/\"},\"author\":{\"name\":\"Aparajita Singh\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/7f6731df6c49b884493e2b8e92c7c33c\"},\"headline\":\"Password Protection with?htaccess\",\"datePublished\":\"2019-01-24T12:16:38+00:00\",\"dateModified\":\"2019-01-24T12:40:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/password-protection-withhtaccess\\\/\"},\"wordCount\":856,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/password-protection-withhtaccess\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/Picture1-1-300x104.png\",\"keywords\":[\".htaccess\",\"conseils techniques\",\"mot de passe de protection\"],\"articleSection\":[\"conseils\"],\"inLanguage\":\"fr-FR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/password-protection-withhtaccess\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/password-protection-withhtaccess\\\/\",\"name\":\"Password Protection with?htaccess - Knowband Blog | Ecommerce Modules\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/password-protection-withhtaccess\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/password-protection-withhtaccess\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/Picture1-1-300x104.png\",\"datePublished\":\"2019-01-24T12:16:38+00:00\",\"dateModified\":\"2019-01-24T12:40:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/password-protection-withhtaccess\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/password-protection-withhtaccess\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/password-protection-withhtaccess\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/Picture1-1-300x104.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/Picture1-1-300x104.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/password-protection-withhtaccess\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Password Protection with?htaccess\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"description\":\"Magento, Prestashop, Opencart, Shopify\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"width\":153,\"height\":61,\"caption\":\"Knowband Blog | Ecommerce Modules\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Knowband\",\"https:\\\/\\\/x.com\\\/KnowbandPlugin\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/7f6731df6c49b884493e2b8e92c7c33c\",\"name\":\"Aparajita Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/IMG-20200131-WA0005-150x150.jpg\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/IMG-20200131-WA0005-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/IMG-20200131-WA0005-150x150.jpg\",\"caption\":\"Aparajita Singh\"},\"description\":\"Aparajita Singh is an experienced Software engineer in PHP. She also has knowledge of C, JAVA and database design. She has been working in the IT Industry from the last 2yrs and still looking forward to achieving more in the IT industry. She lives in New Delhi and her hobby is to write the technical writeups.\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/author\\\/aparajitasingh\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Password Protection with?htaccess - Knowband Blog | Ecommerce Modules","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:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/password-protection-withhtaccess\/","og_locale":"fr_FR","og_type":"article","og_title":"Password Protection with?htaccess - Knowband Blog | Ecommerce Modules","og_description":"Introduction Il est toujours judicieux d\u2019ajouter une protection par mot de passe \u00e0 l\u2019un des dossiers \/ pages Web de votre site Web si vous souhaitez en restreindre l\u2019acc\u00e8s. La m\u00e9thode pour appliquer la m\u00eame chose est plus importante. Nous pouvons utiliser PHP pour autoriser les informations sur chaque page, mais cela ne prot\u00e8ge pas [&hellip;]","og_url":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/password-protection-withhtaccess\/","og_site_name":"Knowband Blog | Ecommerce Modules","article_publisher":"https:\/\/www.facebook.com\/Knowband","article_published_time":"2019-01-24T12:16:38+00:00","article_modified_time":"2019-01-24T12:40:13+00:00","og_image":[{"width":1150,"height":397,"url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/01\/Picture1-1.png","type":"image\/png"}],"author":"Aparajita Singh","twitter_card":"summary_large_image","twitter_creator":"@KnowbandPlugin","twitter_site":"@KnowbandPlugin","twitter_misc":{"Written by":"Aparajita Singh","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/password-protection-withhtaccess\/#article","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/password-protection-withhtaccess\/"},"author":{"name":"Aparajita Singh","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/7f6731df6c49b884493e2b8e92c7c33c"},"headline":"Password Protection with?htaccess","datePublished":"2019-01-24T12:16:38+00:00","dateModified":"2019-01-24T12:40:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/password-protection-withhtaccess\/"},"wordCount":856,"commentCount":0,"publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/password-protection-withhtaccess\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/01\/Picture1-1-300x104.png","keywords":[".htaccess","conseils techniques","mot de passe de protection"],"articleSection":["conseils"],"inLanguage":"fr-FR"},{"@type":"WebPage","@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/password-protection-withhtaccess\/","url":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/password-protection-withhtaccess\/","name":"Password Protection with?htaccess - Knowband Blog | Ecommerce Modules","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/password-protection-withhtaccess\/#primaryimage"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/password-protection-withhtaccess\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/01\/Picture1-1-300x104.png","datePublished":"2019-01-24T12:16:38+00:00","dateModified":"2019-01-24T12:40:13+00:00","breadcrumb":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/password-protection-withhtaccess\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/password-protection-withhtaccess\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/password-protection-withhtaccess\/#primaryimage","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/01\/Picture1-1-300x104.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/01\/Picture1-1-300x104.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/password-protection-withhtaccess\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knowband.com\/blog\/fr\/"},{"@type":"ListItem","position":2,"name":"Password Protection with?htaccess"}]},{"@type":"WebSite","@id":"https:\/\/www.knowband.com\/blog\/fr\/#website","url":"https:\/\/www.knowband.com\/blog\/fr\/","name":"Knowband Blog | Ecommerce Modules","description":"Magento, Prestashop, Opencart, Shopify","publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knowband.com\/blog\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization","name":"Knowband Blog | Ecommerce Modules","url":"https:\/\/www.knowband.com\/blog\/fr\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","width":153,"height":61,"caption":"Knowband Blog | Ecommerce Modules"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Knowband","https:\/\/x.com\/KnowbandPlugin"]},{"@type":"Person","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/7f6731df6c49b884493e2b8e92c7c33c","name":"Aparajita Singh","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/IMG-20200131-WA0005-150x150.jpg","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/IMG-20200131-WA0005-150x150.jpg","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/IMG-20200131-WA0005-150x150.jpg","caption":"Aparajita Singh"},"description":"Aparajita Singh is an experienced Software engineer in PHP. She also has knowledge of C, JAVA and database design. She has been working in the IT Industry from the last 2yrs and still looking forward to achieving more in the IT industry. She lives in New Delhi and her hobby is to write the technical writeups.","url":"https:\/\/www.knowband.com\/blog\/fr\/author\/aparajitasingh\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/posts\/28203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/comments?post=28203"}],"version-history":[{"count":0,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/posts\/28203\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/media?parent=28203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/categories?post=28203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/tags?post=28203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}