{"id":23874,"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-htaccess","status":"publish","type":"post","link":"https:\/\/www.knowband.com\/blog\/tips\/password-protection-htaccess\/","title":{"rendered":"Password Protection with\u00a0htaccess"},"content":{"rendered":"<h2 style=\"font-size: 22px; margin-bottom: 15px; text-align: justify;\"><strong>Introduction<\/strong><\/h2>\n<p>It is always a good idea to add password protection to any of the folders\/webpages of your website if you want to restrict access on them. The method for applying the same is more important. We can use PHP for authorizing the information on each page, but that doesn&#8217;t protect your images or any other media, does it? So we can use another method known as <strong>htaccess password protection<\/strong>\u00a0or <strong>htaccess authentication<\/strong>. It is reliable and much easier.<\/p>\n<h3 style=\"font-size: 18px; margin-bottom: 15px; text-align: justify;\"><strong>Objective<\/strong><\/h3>\n<p>This blog help you know about how to restrict the access to the website from unauthorized users.<\/p>\n<p><strong>Please follow the steps mentioned below:<\/strong><\/p>\n<p><strong>Step 1.<\/strong> To use <strong>htaccess password protection<\/strong> we need to create two files in the directory in which you want to restrict access:-<\/p>\n<p><strong>1)<\/strong> .htaccess\u00a0file<br \/>\n<strong>2)<\/strong> .htpasswd file<\/p>\n<p><strong>Step 2.<\/strong> Add the following code in .htaccess file that you have created in step 1.<\/p>\n<p><strong>The .htaccess Code<\/strong><\/p>\n<pre class=\"brush: actionscript3; gutter: true\">AuthType Basic\r\nAuthName&quot;No Access&quot;\r\nAuthUserFile C:\/wamp64\/www\/test_project\/self_stitch\/.htpasswd\r\nrequire valid-user<\/pre>\n<p><strong>Note:<\/strong> You can replace \u201cC:\/wamp64\/www\/test_project\/\u201d with your own directory structure.<\/p>\n<p>The above code (directives) is described below:<\/p>\n<p><strong>i.)<\/strong> AuthType<\/p>\n<p>From AuthType directive you can select the method that is used to authenticate the user.<\/p>\n<p><strong>ii.)<\/strong> AuthName<\/p>\n<p>Replace &#8220;<strong>No Access<\/strong>&#8221; to any name as per your requirement. This name will be displayed in the alert box, when the user attempts to open a htaccess protected page.<\/p>\n<p>The\u00a0<a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/mod\/mod_authn_core.html#authname\" target=\"_blank\">AuthName<\/a>\u00a0directive sets the\u00a0domain\u00a0to be used in the authentication.<\/p>\n<p>Once a client has passed the authentication in the\u00a0&#8220;<strong>No Access<\/strong>&#8221; zone, then there is no need to enter the password to access any other file in the same zone on the same server. Therefore, to prevent a user from entering the password again and again by letting multiple restricted areas to share the same domain.<\/p>\n<p><strong>iii.) AuthUserFile<\/strong><\/p>\n<ul>\n<li>You need to add your .htpasswd path in place of \u201cC:\/wamp64\/www\/test_project\/self_stitch\/.htpasswd\u201d.<\/li>\n<li>The &#8220;<strong>AuthUserFile<\/strong>&#8221; value is always specific to your host configuration.<\/li>\n<li>If you don&#8217;t know what the value should be, do a\u00a0phpinfo()\u00a0and check the\u00a0DOCUMENT_ROOT\u00a0value.<\/li>\n<li>For this you just need to add the line &#8220;&lt;?php phpinfo(); ?&gt;&#8221; in phpinfo.php file. You can find phpinfo.php file at your root folder (www for localhost) and then run the phpinfo.php file on the browser. For Example, on localhost, run localhost\/phpinfo.php<\/li>\n<\/ul>\n<p><strong>NOTE:<\/strong><\/p>\n<p><strong>1.\u00a0<\/strong>To password protect more than one file in the same folder, just create more &lt;Files&gt;&lt;\/Files&gt; blocks within the same .htaccess file &#8211; for example:<\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">AuthUserFile \/full\/path\/to\/.htpasswd\r\nAuthType Basic\r\nAuthName &quot;My Secret Page&quot;\r\n\r\n&lt;Files &quot;mypage.html&quot;&gt;\r\nRequire valid-user\r\n&lt;\/Files&gt;\r\n\r\n&lt;Files &quot;myotherpage.html&quot;&gt;\r\nRequire valid-user\r\n&lt;\/Files&gt;<\/pre>\n<\/blockquote>\n<p><strong>2.<\/strong> To Allow only the specific types of files to be accessed by the users, you need to add the following code:<\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">AuthUserFile \/full\/path\/to\/.htpasswd\r\nAuthType Basic\r\nAuthName &quot;My Secret Page&quot;\r\n\r\n# deny *everything*\r\n&lt;FilesMatch &quot;.*&quot;&gt;\r\nOrder Allow,Deny\r\nDeny from all\r\n&lt;\/FilesMatch&gt;\r\n\r\n# Allowing just *certain* necessary files:\r\n&lt;FilesMatch &quot;.*\\.(php|html|css|js|JS|CSS)$&quot;&gt;\r\nOrder Allow,Deny\r\nAllow from all\r\n&lt;\/FilesMatch&gt;<\/pre>\n<\/blockquote>\n<p>Here, first we are restricting access to everything using &lt;FilesMatch &#8220;.*&#8221;&gt; and after that we are allowing only certain files (php, html,css,js) to be accessed using &lt;FilesMatch &#8220;.*\\.(php|html|css|js|JS|CSS)$&#8221;&gt;<\/p>\n<p>Our example does not allow access to other files for eg. .jpg, .png, etc.<br \/>\nYou can also allow access from a specific IP address using &#8220;<strong>allow from 12.34.56.78<\/strong>&#8221; instead of using &#8220;<strong>allow from all<\/strong>&#8220;.<\/p>\n<p><strong>3.<\/strong> To add htaccess password for only the specific types of files you need to add the following code:<\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">AuthType Basic\r\nAuthName &quot;restricted area&quot;\r\nAuthUserFile C:\/wamp64\/www\/test_project\/self_stitch\/.htpasswd\r\n\r\n# but now allow just *certain* necessary files:\r\n&lt;FilesMatch &quot;.*\\.(txt)$&quot;&gt;\r\nrequire valid-user\r\n&lt;\/FilesMatch&gt;<\/pre>\n<\/blockquote>\n<p>Using the above code all the files will be accessed without a password but the files with extension .txt will need username and password to be accessed.<\/p>\n<p><strong>4.<\/strong> If you need to apply htaccess password for all the files except one than add the folllowing code:<\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">AuthType Basic\r\nAuthName &quot;restricted area&quot;\r\nAuthUserFile C:\/wamp64\/www\/test_project\/self_stitch\/.htpasswd\r\n\r\n&lt;FilesMatch &quot;.*&quot;&gt;\r\nRequire valid-user\r\n&lt;\/FilesMatch&gt;\r\n\r\n# but now allow just *certain* necessary files:\r\n&lt;FilesMatch &quot;.*\\.(txt)$&quot;&gt;\r\nRequire all granted\r\n&lt;\/FilesMatch&gt;<\/pre>\n<\/blockquote>\n<p>In the above example, except .txt files all the other files will need the username and password to be accessed.<\/p>\n<p><strong>iv.)<\/strong> <strong>require<\/strong><\/p>\n<p>The line &#8220;<strong>require valid-user<\/strong>&#8221; means that any user specified in your\u00a0.htpasswd\u00a0(ie, password) file will be able to access your website.<\/p>\n<p>If your password file contains many users, but you only want specific users (Like John and Pamela) to be able to access the website then, change the &#8220;require valid-user&#8221; to:<br \/>\n&#8220;require user John Pamela&#8221;<br \/>\n<strong>Step 3.<\/strong> Add the username and password in .htpasswd file as described below:<\/p>\n<p><strong>The .htpasswd Code<\/strong><\/p>\n<blockquote>\n<pre class=\"brush: actionscript3; gutter: true\">john:$apr1$DObQIej5$0ZmEaLN42GEz\/XJEiJXh9.<\/pre>\n<\/blockquote>\n<p><strong>i.)<\/strong> The\u00a0.htpasswd\u00a0file contains the usernames and passwords of allowed users.<\/p>\n<p><strong>ii.)<\/strong> The passwords are encrypted using MD5 for security purposes.<\/p>\n<p><strong>iii.)<\/strong> As you can see above, only 1 user is allowed i.e. john with the password:<\/p>\n<p>Actual password: egypt4721<\/p>\n<p>Encrypted password: $apr1$DObQIej5$0ZmEaLN42GEz\/XJEiJXh9.(encrypted using MD5).<\/p>\n<p><strong>iv.)<\/strong> To generate .htpasswd file use the link given below:<\/p>\n<p><a href=\"https:\/\/www.htaccesstools.com\/htaccess-authentication\/\" target=\"_blank\">https:\/\/www.htaccesstools.com\/htaccess-authentication\/<\/a><\/p>\n<p>After creating .htaccess and .htpasswd file in the directory you want to protect, an alert will be displayed when you open your website. Please refer to the screenshot below:<\/p>\n<p>&nbsp;<\/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=\"Password protection\" 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\">Click Here<\/a> to download a sample project with .htaccess password protected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction It is always a good idea to add password protection to any of the folders\/webpages of your website if you want to restrict access on them. The method for applying the same is more important. We can use PHP for authorizing the information on each page, but that doesn&#8217;t protect your images or any [&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":[1111],"tags":[8682,8680,8681],"class_list":["post-23874","post","type-post","status-publish","format-standard","hentry","category-tips","tag-htaccess","tag-password-protection","tag-technical-tips"],"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\u00a0htaccess - 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\/tips\/password-protection-htaccess\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Password Protection with\u00a0htaccess - Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"og:description\" content=\"Introduction It is always a good idea to add password protection to any of the folders\/webpages of your website if you want to restrict access on them. The method for applying the same is more important. We can use PHP for authorizing the information on each page, but that doesn&#8217;t protect your images or any [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knowband.com\/blog\/tips\/password-protection-htaccess\/\" \/>\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\\\/tips\\\/password-protection-htaccess\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/password-protection-htaccess\\\/\"},\"author\":{\"name\":\"Aparajita Singh\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/7f6731df6c49b884493e2b8e92c7c33c\"},\"headline\":\"Password Protection with\u00a0htaccess\",\"datePublished\":\"2019-01-24T12:16:38+00:00\",\"dateModified\":\"2019-01-24T12:40:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/password-protection-htaccess\\\/\"},\"wordCount\":772,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/password-protection-htaccess\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/Picture1-1-300x104.png\",\"keywords\":[\"htaccess\",\"password protection\",\"technical tips\"],\"articleSection\":[\"Tips\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/password-protection-htaccess\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/password-protection-htaccess\\\/\",\"name\":\"Password Protection with\u00a0htaccess - Knowband Blog | Ecommerce Modules\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/password-protection-htaccess\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/password-protection-htaccess\\\/#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\\\/tips\\\/password-protection-htaccess\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/password-protection-htaccess\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/password-protection-htaccess\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/Picture1-1.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/Picture1-1.png\",\"width\":1150,\"height\":397,\"caption\":\"Password protection\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/tips\\\/password-protection-htaccess\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Password Protection with\u00a0htaccess\"}]},{\"@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\":\"en-US\"},{\"@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\":\"en-US\",\"@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\":\"en-US\",\"@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\\\/author\\\/aparajitasingh\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Password Protection with\u00a0htaccess - 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\/tips\/password-protection-htaccess\/","og_locale":"en_US","og_type":"article","og_title":"Password Protection with\u00a0htaccess - Knowband Blog | Ecommerce Modules","og_description":"Introduction It is always a good idea to add password protection to any of the folders\/webpages of your website if you want to restrict access on them. The method for applying the same is more important. We can use PHP for authorizing the information on each page, but that doesn&#8217;t protect your images or any [&hellip;]","og_url":"https:\/\/www.knowband.com\/blog\/tips\/password-protection-htaccess\/","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\/tips\/password-protection-htaccess\/#article","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/password-protection-htaccess\/"},"author":{"name":"Aparajita Singh","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/7f6731df6c49b884493e2b8e92c7c33c"},"headline":"Password Protection with\u00a0htaccess","datePublished":"2019-01-24T12:16:38+00:00","dateModified":"2019-01-24T12:40:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/password-protection-htaccess\/"},"wordCount":772,"commentCount":0,"publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/password-protection-htaccess\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/01\/Picture1-1-300x104.png","keywords":["htaccess","password protection","technical tips"],"articleSection":["Tips"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knowband.com\/blog\/tips\/password-protection-htaccess\/","url":"https:\/\/www.knowband.com\/blog\/tips\/password-protection-htaccess\/","name":"Password Protection with\u00a0htaccess - Knowband Blog | Ecommerce Modules","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/password-protection-htaccess\/#primaryimage"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/tips\/password-protection-htaccess\/#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\/tips\/password-protection-htaccess\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knowband.com\/blog\/tips\/password-protection-htaccess\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knowband.com\/blog\/tips\/password-protection-htaccess\/#primaryimage","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/01\/Picture1-1.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2019\/01\/Picture1-1.png","width":1150,"height":397,"caption":"Password protection"},{"@type":"BreadcrumbList","@id":"https:\/\/www.knowband.com\/blog\/tips\/password-protection-htaccess\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knowband.com\/blog\/fr\/"},{"@type":"ListItem","position":2,"name":"Password Protection with\u00a0htaccess"}]},{"@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":"en-US"},{"@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":"en-US","@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":"en-US","@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\/author\/aparajitasingh\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/23874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/comments?post=23874"}],"version-history":[{"count":8,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/23874\/revisions"}],"predecessor-version":[{"id":23900,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/23874\/revisions\/23900"}],"wp:attachment":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/media?parent=23874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/categories?post=23874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/tags?post=23874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}