{"id":28207,"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\/pt-br\/dicas\/password-protection-withhtaccess\/","title":{"rendered":"Password Protection with?htaccess"},"content":{"rendered":"<h2 style=\"font-size: 22px; margin-bottom: 15px; text-align: justify;\"><strong>Introdu\u00e7\u00e3o<\/strong><\/h2>\n<p>\u00c9 sempre uma boa ideia adicionar prote\u00e7\u00e3o por senha a qualquer uma das pastas \/ p\u00e1ginas da Web do seu site se voc\u00ea quiser restringir o acesso a elas. O m\u00e9todo para aplicar o mesmo \u00e9 mais importante. Podemos usar o PHP para autorizar as informa\u00e7\u00f5es em cada p\u00e1gina, mas isso n\u00e3o protege suas imagens ou qualquer outra m\u00eddia, n\u00e3o \u00e9? Ent\u00e3o, podemos usar outro m\u00e9todo conhecido como <strong>prote\u00e7\u00e3o de senha do htaccess<\/strong>?or <strong>autentica\u00e7\u00e3o htaccess<\/strong>. \u00c9 confi\u00e1vel e muito mais f\u00e1cil.<\/p>\n<h3 style=\"font-size: 18px; margin-bottom: 15px; text-align: justify;\"><strong>Objetivo<\/strong><\/h3>\n<p>Este blog ajuda voc\u00ea a saber como restringir o acesso ao site de usu\u00e1rios n\u00e3o autorizados.<\/p>\n<p><strong>Por favor, siga os passos abaixo:<\/strong><\/p>\n<p><strong>Passo 1.<\/strong> Usar <strong>prote\u00e7\u00e3o de senha do htaccess<\/strong> precisamos criar dois arquivos no diret\u00f3rio em que voc\u00ea deseja restringir o acesso: &#8211;<\/p>\n<p><strong>1)<\/strong> .htaccess<br \/>\n<strong>2)<\/strong> arquivo .htpasswd<\/p>\n<p><strong>Passo 2.<\/strong> Adicione o seguinte c\u00f3digo no arquivo .htaccess que voc\u00ea criou na etapa 1.<\/p>\n<p><strong>O c\u00f3digo .htaccess<\/strong><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">AuthType Basic AuthName &quot;Sem acesso&quot; AuthUserFile C: \/wamp64\/www\/test_project\/self_stitch\/.htpasswd requer usu\u00e1rio v\u00e1lido<\/pre>\n<p><strong>Observa\u00e7\u00e3o: <\/strong> Voc\u00ea pode substituir &quot;C: \/ wamp64 \/ www \/ test_project \/&quot; com sua pr\u00f3pria estrutura de diret\u00f3rios. O c\u00f3digo acima (diretivas) \u00e9 descrito abaixo:<\/p>\n<p><strong>Eu.)<\/strong> AuthType Da diretiva AuthType, voc\u00ea pode selecionar o m\u00e9todo usado para autenticar o usu\u00e1rio.<\/p>\n<p><strong>ii.)<\/strong> AuthName Substituir &quot;<strong>Sem acesso<\/strong>&quot;para qualquer nome de acordo com sua exig\u00eancia. Esse nome ser\u00e1 exibido na caixa de alerta, quando o usu\u00e1rio tentar abrir uma p\u00e1gina protegida por 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>Sem acesso<\/strong>&quot;zona, ent\u00e3o n\u00e3o h\u00e1 necessidade de digitar a senha para acessar qualquer outro arquivo na mesma zona no mesmo servidor. Portanto, para impedir que um usu\u00e1rio digite a senha novamente e novamente, permitindo que v\u00e1rias \u00e1reas restritas compartilhem o mesmo dom\u00ednio.<\/p>\n<p><strong>iii.) AuthUserFile<\/strong><\/p>\n<ul>\n<li>Voc\u00ea precisa adicionar seu caminho .htpasswd no lugar de &quot;C: \/wamp64\/www\/test_project\/self_stitch\/.htpasswd&quot;.<\/li>\n<li>O &quot;<strong>AuthUserFile<\/strong>&quot;valor \u00e9 sempre espec\u00edfico para sua configura\u00e7\u00e3o de host.<\/li>\n<li>Se voc\u00ea n\u00e3o sabe qual deve ser o valor, fa\u00e7a um<\/li>\n<li>Para isso voc\u00ea s\u00f3 precisa adicionar a linha &quot;&lt;? Php phpinfo ();?&gt;&quot; No arquivo phpinfo.php. Voc\u00ea pode encontrar o arquivo phpinfo.php na sua pasta raiz (www para localhost) e, em seguida, executar o arquivo phpinfo.php no navegador. Por exemplo, no localhost, execute localhost \/ phpinfo.php<\/li>\n<\/ul>\n<p><strong>NOTA:<\/strong><\/p>\n<p><strong>1.<\/strong>Para proteger com senha mais de um arquivo na mesma pasta, apenas crie mais blocos &lt;Files&gt; &lt;\/ Files&gt; dentro do mesmo arquivo .htaccess &#8211; por exemplo:<\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">AuthUserFile \/full\/path\/to\/.htpasswd AuthType Basic AuthName &quot;Minha p\u00e1gina secreta&quot; &lt;Arquivos &quot;mypage.html&quot;&gt; Exigir usu\u00e1rio v\u00e1lido &lt;\/ Files&gt; &lt;Files &quot;myotherpage.html&quot;&gt; Requerer usu\u00e1rio v\u00e1lido &lt;\/ Files&gt;<\/pre>\n<\/blockquote>\n<p><strong>2.<\/strong> Para permitir que apenas os tipos espec\u00edficos de arquivos sejam acessados \u200b\u200bpelos usu\u00e1rios, voc\u00ea precisa adicionar o seguinte c\u00f3digo:<\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">AuthUserFile \/full\/path\/to\/.htpasswd AuthType Basic AuthName &quot;Minha p\u00e1gina secreta&quot; # negar * tudo * &lt;FilesMatch&gt;. * &quot;&gt; Pedido Permitir, Negar Negar de todos os &lt;\/ FilesMatch&gt; # Permitir apenas * determinados * arquivos necess\u00e1rios: &lt;FilesMatch &quot;. * \\. (Php | html | css | js | JS | CSS) $&quot;&gt; Pedido Permitir, Negar Permitir de todos os &lt;\/ FilesMatch&gt;<\/pre>\n<\/blockquote>\n<p>Aqui, primeiro estamos restringindo o acesso a tudo usando &lt;FilesMatch &quot;. *&quot;&gt; E depois disso estamos permitindo que apenas certos arquivos (php, html, css, js) sejam acessados \u200b\u200busando &lt;FilesMatch &quot;. * \\. (Php | html | css | js | JS | CSS) $ &quot;&gt; Nosso exemplo n\u00e3o permite acesso a outros arquivos, por exemplo. .jpg, .png, etc. Voc\u00ea tamb\u00e9m pode permitir o acesso de um endere\u00e7o IP espec\u00edfico usando &quot;<strong>permitir a partir de 12.34.56.78<\/strong>&quot; ao inv\u00e9s de usar &quot;<strong>permitir que a partir de todos<\/strong>&#8220;.<\/p>\n<p><strong>3.<\/strong> Para adicionar a senha do htaccess apenas para os tipos espec\u00edficos de arquivos, voc\u00ea precisa adicionar o seguinte c\u00f3digo:<\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">AuthType Basic AuthName &quot;\u00e1rea restrita&quot; AuthUserFile C: \/wamp64\/www\/test_project\/self_stitch\/.htpasswd # mas agora permite apenas * determinados * arquivos necess\u00e1rios: &lt;FilesMatch &quot;. * \\. (Txt) $&quot;&gt; require valid-user &lt; \/ FilesMatch&gt;<\/pre>\n<\/blockquote>\n<p>Usando o c\u00f3digo acima, todos os arquivos ser\u00e3o acessados \u200b\u200bsem uma senha, mas os arquivos com extens\u00e3o .txt precisar\u00e3o de nome de usu\u00e1rio e senha para serem acessados.<\/p>\n<p><strong>4.<\/strong> Se voc\u00ea precisar aplicar a senha de htaccess para todos os arquivos, exceto um que adicione o seguinte c\u00f3digo:<\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">AuthType Basic AuthName &quot;\u00e1rea restrita&quot; AuthUserFile C: \/wamp64\/www\/test_project\/self_stitch\/.htpasswd &lt;FilesMatch &quot;. *&quot;&gt; Exigir usu\u00e1rio v\u00e1lido &lt;\/ FilesMatch&gt; # mas agora permitir apenas * determinados * arquivos necess\u00e1rios: &lt;FilesMatch &quot; . * \\. (txt) $ &quot;&gt; Exigir tudo concedido &lt;\/ FilesMatch&gt;<\/pre>\n<\/blockquote>\n<p>No exemplo acima, exceto arquivos .txt, todos os outros arquivos precisar\u00e3o do nome de usu\u00e1rio e senha a serem acessados.<\/p>\n<p><strong>iv.)<\/strong> <strong>requerer<\/strong><\/p>\n<p>A linha &quot;<strong>exigem-usu\u00e1rio v\u00e1lido<\/strong>&quot;significa que qualquer usu\u00e1rio especificado em seu<br \/>\n<strong>Passo 3.<\/strong> Adicione o nome de usu\u00e1rio e a senha no arquivo .htpasswd conforme descrito abaixo:<\/p>\n<p><strong>O c\u00f3digo .htpasswd<\/strong><\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">john:$apr1$DObQIej5$0ZmEaLN42GEz\/XJEiJXh9.<\/pre>\n<\/blockquote>\n<p><strong>Eu.)<\/strong> o<\/p>\n<p><strong>ii.)<\/strong> As senhas s\u00e3o criptografadas usando o MD5 para fins de seguran\u00e7a.<\/p>\n<p><strong>iii)<\/strong> Como voc\u00ea pode ver acima, somente o usu\u00e1rio 1 \u00e9 permitido, ou seja, john com a senha: Senha real: egypt4721 Senha criptografada: $ apr1 $ DObQIej5 $ 0ZmEaLN42GEz \/ XJEiJXh9. (Criptografado usando MD5).<\/p>\n<p><strong>iv.)<\/strong> Para gerar o arquivo .htpasswd use o link abaixo:<\/p>\n<p><a href=\"https:\/\/www.htaccesstools.com\/htaccess-authentication\/\" target=\"_blank\">https:\/\/www.htaccesstools.com\/htaccess-authentication\/<\/a><\/p>\n<p>Depois de criar o arquivo .htaccess e .htpasswd no diret\u00f3rio que voc\u00ea deseja proteger, um alerta ser\u00e1 exibido quando voc\u00ea abrir o seu site. Por favor, consulte a imagem abaixo:<\/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=\"A prote\u00e7\u00e3o por senha\" 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\">Clique aqui<\/a> para baixar um projeto de amostra com .htaccess protegido por senha.<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 22ms visit https:\/\/gtranslate.io --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introdu\u00e7\u00e3o \u00c9 sempre uma boa ideia adicionar prote\u00e7\u00e3o por senha a qualquer uma das pastas \/ p\u00e1ginas da Web do seu site se voc\u00ea quiser restringir o acesso a elas. O m\u00e9todo para aplicar o mesmo \u00e9 mais importante. Podemos usar o PHP para autorizar as informa\u00e7\u00f5es em cada p\u00e1gina, mas isso n\u00e3o protege suas [&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":[3274],"tags":[13866,13865,13864],"class_list":["post-28207","post","type-post","status-publish","format-standard","hentry","category-dicas","tag-htaccess","tag-dicas-tcnicas","tag-proteo-de-senha"],"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\/pt-br\/dicas\/password-protection-withhtaccess\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\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=\"Introdu\u00e7\u00e3o \u00c9 sempre uma boa ideia adicionar prote\u00e7\u00e3o por senha a qualquer uma das pastas \/ p\u00e1ginas da Web do seu site se voc\u00ea quiser restringir o acesso a elas. O m\u00e9todo para aplicar o mesmo \u00e9 mais importante. Podemos usar o PHP para autorizar as informa\u00e7\u00f5es em cada p\u00e1gina, mas isso n\u00e3o protege suas [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/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\\\/pt-br\\\/dicas\\\/password-protection-withhtaccess\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/dicas\\\/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\\\/pt-br\\\/dicas\\\/password-protection-withhtaccess\\\/\"},\"wordCount\":792,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/dicas\\\/password-protection-withhtaccess\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/Picture1-1-300x104.png\",\"keywords\":[\".htaccess\",\"dicas t\u00e9cnicas\",\"prote\u00e7\u00e3o de senha\"],\"articleSection\":[\"Dicas\"],\"inLanguage\":\"pt-BR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/dicas\\\/password-protection-withhtaccess\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/dicas\\\/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\\\/pt-br\\\/dicas\\\/password-protection-withhtaccess\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/dicas\\\/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\\\/pt-br\\\/dicas\\\/password-protection-withhtaccess\\\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/dicas\\\/password-protection-withhtaccess\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/pt-br\\\/dicas\\\/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\\\/pt-br\\\/dicas\\\/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\":\"pt-BR\"},{\"@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\":\"pt-BR\",\"@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\":\"pt-BR\",\"@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\\\/pt-br\\\/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\/pt-br\/dicas\/password-protection-withhtaccess\/","og_locale":"pt_BR","og_type":"article","og_title":"Password Protection with?htaccess - Knowband Blog | Ecommerce Modules","og_description":"Introdu\u00e7\u00e3o \u00c9 sempre uma boa ideia adicionar prote\u00e7\u00e3o por senha a qualquer uma das pastas \/ p\u00e1ginas da Web do seu site se voc\u00ea quiser restringir o acesso a elas. O m\u00e9todo para aplicar o mesmo \u00e9 mais importante. Podemos usar o PHP para autorizar as informa\u00e7\u00f5es em cada p\u00e1gina, mas isso n\u00e3o protege suas [&hellip;]","og_url":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/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\/pt-br\/dicas\/password-protection-withhtaccess\/#article","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/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\/pt-br\/dicas\/password-protection-withhtaccess\/"},"wordCount":792,"commentCount":0,"publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/password-protection-withhtaccess\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/01\/Picture1-1-300x104.png","keywords":[".htaccess","dicas t\u00e9cnicas","prote\u00e7\u00e3o de senha"],"articleSection":["Dicas"],"inLanguage":"pt-BR"},{"@type":"WebPage","@id":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/password-protection-withhtaccess\/","url":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/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\/pt-br\/dicas\/password-protection-withhtaccess\/#primaryimage"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/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\/pt-br\/dicas\/password-protection-withhtaccess\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/password-protection-withhtaccess\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.knowband.com\/blog\/pt-br\/dicas\/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\/pt-br\/dicas\/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":"pt-BR"},{"@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":"pt-BR","@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":"pt-BR","@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\/pt-br\/author\/aparajitasingh\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/posts\/28207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/comments?post=28207"}],"version-history":[{"count":0,"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/posts\/28207\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/media?parent=28207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/categories?post=28207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/pt-br\/wp-json\/wp\/v2\/tags?post=28207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}