{"id":28205,"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\/it\/suggerimenti\/password-protection-withhtaccess\/","title":{"rendered":"Password Protection with?htaccess"},"content":{"rendered":"<h2 style=\"font-size: 22px; margin-bottom: 15px; text-align: justify;\"><strong>Introduzione<\/strong><\/h2>\n<p>\u00c8 sempre consigliabile aggiungere una protezione tramite password a qualsiasi cartella \/ pagina web del sito Web se si desidera limitare l&#39;accesso a tali siti. Il metodo per applicare lo stesso \u00e8 pi\u00f9 importante. Possiamo usare PHP per autorizzare le informazioni su ogni pagina, ma questo non protegge le tue immagini o altri media, vero? Quindi possiamo usare un altro metodo noto come <strong>protezione password htaccess<\/strong>?or <strong>autenticazione htaccess<\/strong>. \u00c8 affidabile e molto pi\u00f9 semplice.<\/p>\n<h3 style=\"font-size: 18px; margin-bottom: 15px; text-align: justify;\"><strong>Obiettivo<\/strong><\/h3>\n<p>Questo blog ti aiuta a sapere come limitare l&#39;accesso al sito da parte di utenti non autorizzati.<\/p>\n<p><strong>Si prega di seguire i passaggi indicati di seguito:<\/strong><\/p>\n<p><strong>Passo 1.<\/strong> Per utilizzare <strong>protezione password htaccess<\/strong> abbiamo bisogno di creare due file nella directory in cui si desidera limitare l&#39;accesso: &#8211;<\/p>\n<p><strong>1)<\/strong> .htaccess<br \/>\n<strong>2)<\/strong> .htpasswd file<\/p>\n<p><strong>Passo 2.<\/strong> Aggiungi il seguente codice nel file .htaccess che hai creato nel passaggio 1.<\/p>\n<p><strong>Il codice .htaccess<\/strong><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">AuthType Basic AuthName &quot;Nessun accesso&quot; AuthUserFile C: \/wamp64\/www\/test_project\/self_stitch\/.htpasswd richiede utente valido<\/pre>\n<p><strong>Nota:<\/strong> \u00c8 possibile sostituire &quot;C: \/ wamp64 \/ www \/ test_project \/&quot; con la propria struttura di directory. Il codice di cui sopra (direttive) \u00e8 descritto di seguito:<\/p>\n<p><strong>io.)<\/strong> AuthType Dalla direttiva AuthType \u00e8 possibile selezionare il metodo utilizzato per autenticare l&#39;utente.<\/p>\n<p><strong>ii.)<\/strong> AuthName Replace &quot;<strong>Nessun accesso<\/strong>&quot;a qualsiasi nome secondo il tuo requisito. Questo nome verr\u00e0 visualizzato nella finestra di avviso quando l&#39;utente tenta di aprire una pagina protetta da 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>Nessun accesso<\/strong>&quot;zona, quindi non \u00e8 necessario immettere la password per accedere a qualsiasi altro file nella stessa zona sullo stesso server, per impedire a un utente di immettere la password pi\u00f9 e pi\u00f9 volte lasciando che pi\u00f9 aree riservate condividano lo stesso dominio.<\/p>\n<p><strong>iii.) AuthUserFile<\/strong><\/p>\n<ul>\n<li>Devi aggiungere il tuo percorso .htpasswd al posto di &quot;C: \/wamp64\/www\/test_project\/self_stitch\/.htpasswd&quot;.<\/li>\n<li>Il &quot;<strong>AuthUserFile<\/strong>&quot;il valore \u00e8 sempre specifico per la configurazione dell&#39;host.<\/li>\n<li>Se non sai quale dovrebbe essere il valore, fai a<\/li>\n<li>Per questo \u00e8 sufficiente aggiungere la riga &quot;&lt;? Php phpinfo ();?&gt;&quot; Nel file phpinfo.php. \u00c8 possibile trovare il file phpinfo.php nella cartella principale (www per localhost) e quindi eseguire il file phpinfo.php sul browser. Ad esempio, su localhost, esegui localhost \/ phpinfo.php<\/li>\n<\/ul>\n<p><strong>NOTA: <\/strong><\/p>\n<p><strong>1.<\/strong>Per proteggere con password pi\u00f9 di un file nella stessa cartella, \u00e8 sufficiente creare pi\u00f9 blocchi &lt;Files&gt; &lt;\/ Files&gt; all&#39;interno dello stesso file .htaccess, ad esempio:<\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">AuthUserFile \/full\/path\/to\/.htpasswd AuthType Basic AuthName &quot;My Secret Page&quot; &lt;Files &quot;mypage.html&quot;&gt; Richiedi utente valido &lt;\/ Files&gt; &lt;Files &quot;myotherpage.html&quot;&gt; Richiedi utente valido &lt;\/ Files&gt;<\/pre>\n<\/blockquote>\n<p><strong>2.<\/strong> Per consentire solo agli specifici tipi di file di accedere agli utenti, \u00e8 necessario aggiungere il seguente codice:<\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">AuthUserFile \/full\/path\/to\/.htpasswd AuthType Basic AuthName &quot;My Secret Page&quot; # deny * everything * &lt;FilesMatch &quot;. *&quot;&gt; Order Allow, Nega Nega da tutti &lt;\/ FilesMatch&gt; # Permettere solo * alcuni * file necessari: &lt;FilesMatch &quot;. * \\. (Php | html | css | js | JS | CSS) $&quot;&gt; Ordine Consenti, Nega Consenti da tutti &lt;\/ FileMatch&gt;<\/pre>\n<\/blockquote>\n<p>Qui, per prima cosa stiamo limitando l&#39;accesso a tutto usando &lt;FilesMatch &quot;. *&quot;&gt; E dopo questo stiamo consentendo l&#39;accesso a determinati file (php, html, css, js) usando &lt;FilesMatch &quot;. * \\. (Php | html | css | js | JS | CSS) $ &quot;&gt; Il nostro esempio non consente l&#39;accesso ad altri file per es. .jpg, .png, ecc. Puoi anche consentire l&#39;accesso da un indirizzo IP specifico usando &quot;<strong>consentire da 12.34.56.78<\/strong>&quot; invece di usare &quot;<strong>consentire da tutti<\/strong>&#8220;.<\/p>\n<p><strong>3.<\/strong> Per aggiungere la password htaccess solo per i tipi specifici di file \u00e8 necessario aggiungere il seguente codice:<\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">AuthType Basic AuthName &quot;area riservata&quot; AuthUserFile C: \/wamp64\/www\/test_project\/self_stitch\/.htpasswd # ma ora consentono solo * alcuni * file necessari: &lt;FilesMatch &quot;. * \\. (Txt) $&quot;&gt; richiede utente valido &lt; \/ FilesMatch&gt;<\/pre>\n<\/blockquote>\n<p>Usando il codice sopra tutti i file saranno accessibili senza password ma i file con estensione .txt avranno bisogno di username e password per accedere.<\/p>\n<p><strong>4.<\/strong> Se \u00e8 necessario applicare la password htaccess per tutti i file tranne uno di aggiungere il seguente codice:<\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">AuthType Basic AuthName &quot;area riservata&quot; AuthUserFile C: \/wamp64\/www\/test_project\/self_stitch\/.htpasswd &lt;FilesMatch &quot;. *&quot;&gt; Richiedi utente valido &lt;\/ FilesMatch&gt; # ma ora consente solo * alcuni * file necessari: &lt;FilesMatch &quot; . * \\. (txt) $ &quot;&gt; Richiede tutto garantito &lt;\/ FileMatch&gt;<\/pre>\n<\/blockquote>\n<p>Nell&#39;esempio sopra, ad eccezione dei file .txt, tutti gli altri file avranno bisogno del nome utente e della password a cui accedere.<\/p>\n<p><strong>iv.)<\/strong> <strong>richiedere<\/strong><\/p>\n<p>La linea &quot;<strong>richiedono valid-user<\/strong>&quot;significa che qualsiasi utente specificato nel tuo<br \/>\n<strong>Passo 3.<\/strong> Aggiungi il nome utente e la password nel file .htpasswd come descritto di seguito:<\/p>\n<p><strong>Il codice .htpasswd<\/strong><\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">john:$apr1$DObQIej5$0ZmEaLN42GEz\/XJEiJXh9.<\/pre>\n<\/blockquote>\n<p><strong>io.)<\/strong> Il<\/p>\n<p><strong>ii.)<\/strong> Le password sono crittografate usando MD5 per motivi di sicurezza.<\/p>\n<p><strong>iii.)<\/strong> Come si pu\u00f2 vedere sopra, \u00e8 consentito solo l&#39;utente 1, ad esempio john con la password: Password effettiva: egypt4721 Password crittografata: $ apr1 $ DObQIej5 $ 0ZmEaLN42GEz \/ XJEiJXh9. (Crittografato con MD5).<\/p>\n<p><strong>iv.)<\/strong> Per generare il file .htpasswd usa il link di seguito:<\/p>\n<p><a href=\"https:\/\/www.htaccesstools.com\/htaccess-authentication\/\" target=\"_blank\">https:\/\/www.htaccesstools.com\/htaccess-authentication\/<\/a><\/p>\n<p>Dopo aver creato il file .htaccess e .htpasswd nella directory che si desidera proteggere, verr\u00e0 visualizzato un avviso quando si apre il sito Web. Si prega di fare riferimento allo screenshot qui sotto:<\/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=\"La protezione con password\" 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\">Clicca qui<\/a> per scaricare un progetto di esempio con .htaccess protetto da password.<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 309ms visit https:\/\/gtranslate.io --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduzione \u00c8 sempre consigliabile aggiungere una protezione tramite password a qualsiasi cartella \/ pagina web del sito Web se si desidera limitare l&#39;accesso a tali siti. Il metodo per applicare lo stesso \u00e8 pi\u00f9 importante. Possiamo usare PHP per autorizzare le informazioni su ogni pagina, ma questo non protegge le tue immagini o altri media, [&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":[3244],"tags":[13860,13859,13858],"class_list":["post-28205","post","type-post","status-publish","format-standard","hentry","category-suggerimenti","tag-htaccess","tag-consigli-tecnici","tag-protezione-della-password"],"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\/it\/suggerimenti\/password-protection-withhtaccess\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\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=\"Introduzione \u00c8 sempre consigliabile aggiungere una protezione tramite password a qualsiasi cartella \/ pagina web del sito Web se si desidera limitare l&#039;accesso a tali siti. Il metodo per applicare lo stesso \u00e8 pi\u00f9 importante. Possiamo usare PHP per autorizzare le informazioni su ogni pagina, ma questo non protegge le tue immagini o altri media, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knowband.com\/blog\/it\/suggerimenti\/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\\\/it\\\/suggerimenti\\\/password-protection-withhtaccess\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/suggerimenti\\\/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\\\/it\\\/suggerimenti\\\/password-protection-withhtaccess\\\/\"},\"wordCount\":716,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/suggerimenti\\\/password-protection-withhtaccess\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/Picture1-1-300x104.png\",\"keywords\":[\".htaccess\",\"consigli tecnici\",\"protezione della password\"],\"articleSection\":[\"Suggerimenti\"],\"inLanguage\":\"it-IT\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/suggerimenti\\\/password-protection-withhtaccess\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/suggerimenti\\\/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\\\/it\\\/suggerimenti\\\/password-protection-withhtaccess\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/suggerimenti\\\/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\\\/it\\\/suggerimenti\\\/password-protection-withhtaccess\\\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/suggerimenti\\\/password-protection-withhtaccess\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/it\\\/suggerimenti\\\/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\\\/it\\\/suggerimenti\\\/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\":\"it-IT\"},{\"@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\":\"it-IT\",\"@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\":\"it-IT\",\"@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\\\/it\\\/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\/it\/suggerimenti\/password-protection-withhtaccess\/","og_locale":"it_IT","og_type":"article","og_title":"Password Protection with?htaccess - Knowband Blog | Ecommerce Modules","og_description":"Introduzione \u00c8 sempre consigliabile aggiungere una protezione tramite password a qualsiasi cartella \/ pagina web del sito Web se si desidera limitare l&#39;accesso a tali siti. Il metodo per applicare lo stesso \u00e8 pi\u00f9 importante. Possiamo usare PHP per autorizzare le informazioni su ogni pagina, ma questo non protegge le tue immagini o altri media, [&hellip;]","og_url":"https:\/\/www.knowband.com\/blog\/it\/suggerimenti\/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\/it\/suggerimenti\/password-protection-withhtaccess\/#article","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/it\/suggerimenti\/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\/it\/suggerimenti\/password-protection-withhtaccess\/"},"wordCount":716,"commentCount":0,"publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/it\/suggerimenti\/password-protection-withhtaccess\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/01\/Picture1-1-300x104.png","keywords":[".htaccess","consigli tecnici","protezione della password"],"articleSection":["Suggerimenti"],"inLanguage":"it-IT"},{"@type":"WebPage","@id":"https:\/\/www.knowband.com\/blog\/it\/suggerimenti\/password-protection-withhtaccess\/","url":"https:\/\/www.knowband.com\/blog\/it\/suggerimenti\/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\/it\/suggerimenti\/password-protection-withhtaccess\/#primaryimage"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/it\/suggerimenti\/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\/it\/suggerimenti\/password-protection-withhtaccess\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knowband.com\/blog\/it\/suggerimenti\/password-protection-withhtaccess\/"]}]},{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/www.knowband.com\/blog\/it\/suggerimenti\/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\/it\/suggerimenti\/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":"it-IT"},{"@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":"it-IT","@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":"it-IT","@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\/it\/author\/aparajitasingh\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/posts\/28205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/comments?post=28205"}],"version-history":[{"count":0,"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/posts\/28205\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/media?parent=28205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/categories?post=28205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/it\/wp-json\/wp\/v2\/tags?post=28205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}