{"id":632,"date":"2012-04-15T10:34:09","date_gmt":"2012-04-15T10:34:09","guid":{"rendered":"http:\/\/www.withinweb.com\/info\/?p=632"},"modified":"2012-04-15T10:34:09","modified_gmt":"2012-04-15T10:34:09","slug":"how-to-create-htaccess-htpasswd","status":"publish","type":"post","link":"https:\/\/www.withinweb.com\/info\/how-to-create-htaccess-htpasswd\/","title":{"rendered":"How to create htaccess \/ htpasswd"},"content":{"rendered":"<p>Here is a simplified description on how to create an htaccess \/ htpasswd file :<\/p>\n<p>To protect your admin area you can create an htaccess \/ htpasswd file.<\/p>\n<p>(1) Create an .htaccess file<\/p>\n<p>Go to <a rel=\"nofollow\" href=\"http:\/\/www.htaccesstools.com\/htaccess-authentication\/\" target=\"_blank\">http:\/\/www.htaccesstools.com\/htaccess-authentication\/<\/a><\/p>\n<p>In the first box enter some optional text which gets displayed in the login box<\/p>\n<p>In the second box you need to enter the file path name to a second file htpasswd file.\u00a0 The htpasswd file is where the list of users \/ passwords are to be located.<\/p>\n<p>Click on the button, copy the text and place it into a text file.\u00a0 Name  this file .htaccess and upload it to the folder that you want to  protect.\u00a0 In this case this would be the \/admin\/ folder.<\/p>\n<p>(2) Create the .htpasswd username \/ password file<\/p>\n<p>Go to <a rel=\"nofollow\" href=\"http:\/\/www.htaccesstools.com\/htpasswd-generator\/\" target=\"_blank\">http:\/\/www.htaccesstools.com\/htpasswd-generator\/<\/a><\/p>\n<p>In the first box enter the username.<\/p>\n<p>In the second box enter the password.<\/p>\n<p>Click the button, copy the text and place it into a text file.\u00a0 Name  this file .htpasswd and upload it to a suitable location on your  server.\u00a0 This can be anywhere on your server, but usually in a defined  folder.\u00a0 The location is the same location as was entered  in (1) above.<\/p>\n<p>The folder as defined in (1) should now be protected by the username \/ password as defined in (2)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a simplified description on how to create an htaccess \/ htpasswd file : To protect your admin area you can create an htaccess \/ htpasswd file. (1) Create an .htaccess file Go to http:\/\/www.htaccesstools.com\/htaccess-authentication\/ In the first box<span class=\"ellipsis\">&hellip;<\/span><\/p>\n<div class=\"read-more\"><a href=\"https:\/\/www.withinweb.com\/info\/how-to-create-htaccess-htpasswd\/\">Read more <span class=\"screen-reader-text\">How to create htaccess \/ htpasswd<\/span><span class=\"meta-nav\"> &#8250;<\/span><\/a><\/div>\n<p><!-- end of .read-more --><\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-632","post","type-post","status-publish","format-standard","hentry","category-general-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to create htaccess \/ htpasswd - PHP Web Applications<\/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.withinweb.com\/info\/how-to-create-htaccess-htpasswd\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create htaccess \/ htpasswd - PHP Web Applications\" \/>\n<meta property=\"og:description\" content=\"Here is a simplified description on how to create an htaccess \/ htpasswd file : To protect your admin area you can create an htaccess \/ htpasswd file. (1) Create an .htaccess file Go to http:\/\/www.htaccesstools.com\/htaccess-authentication\/ In the first box&hellip;Read more How to create htaccess \/ htpasswd &#8250;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.withinweb.com\/info\/how-to-create-htaccess-htpasswd\/\" \/>\n<meta property=\"og:site_name\" content=\"PHP Web Applications\" \/>\n<meta property=\"article:published_time\" content=\"2012-04-15T10:34:09+00:00\" \/>\n<meta name=\"author\" content=\"paulv\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"paulv\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/how-to-create-htaccess-htpasswd\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/how-to-create-htaccess-htpasswd\\\/\"},\"author\":{\"name\":\"paulv\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\"},\"headline\":\"How to create htaccess \\\/ htpasswd\",\"datePublished\":\"2012-04-15T10:34:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/how-to-create-htaccess-htpasswd\\\/\"},\"wordCount\":220,\"commentCount\":0,\"articleSection\":[\"General PHP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.withinweb.com\\\/info\\\/how-to-create-htaccess-htpasswd\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/how-to-create-htaccess-htpasswd\\\/\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/how-to-create-htaccess-htpasswd\\\/\",\"name\":\"How to create htaccess \\\/ htpasswd - PHP Web Applications\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#website\"},\"datePublished\":\"2012-04-15T10:34:09+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/how-to-create-htaccess-htpasswd\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.withinweb.com\\\/info\\\/how-to-create-htaccess-htpasswd\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/how-to-create-htaccess-htpasswd\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create htaccess \\\/ htpasswd\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#website\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/\",\"name\":\"PHP Web Applications\",\"description\":\"Information and support for products of WithinWeb.com\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\",\"name\":\"paulv\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/author\\\/paulv\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create htaccess \/ htpasswd - PHP Web Applications","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.withinweb.com\/info\/how-to-create-htaccess-htpasswd\/","og_locale":"en_US","og_type":"article","og_title":"How to create htaccess \/ htpasswd - PHP Web Applications","og_description":"Here is a simplified description on how to create an htaccess \/ htpasswd file : To protect your admin area you can create an htaccess \/ htpasswd file. (1) Create an .htaccess file Go to http:\/\/www.htaccesstools.com\/htaccess-authentication\/ In the first box&hellip;Read more How to create htaccess \/ htpasswd &#8250;","og_url":"https:\/\/www.withinweb.com\/info\/how-to-create-htaccess-htpasswd\/","og_site_name":"PHP Web Applications","article_published_time":"2012-04-15T10:34:09+00:00","author":"paulv","twitter_card":"summary_large_image","twitter_misc":{"Written by":"paulv","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.withinweb.com\/info\/how-to-create-htaccess-htpasswd\/#article","isPartOf":{"@id":"https:\/\/www.withinweb.com\/info\/how-to-create-htaccess-htpasswd\/"},"author":{"name":"paulv","@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c"},"headline":"How to create htaccess \/ htpasswd","datePublished":"2012-04-15T10:34:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.withinweb.com\/info\/how-to-create-htaccess-htpasswd\/"},"wordCount":220,"commentCount":0,"articleSection":["General PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.withinweb.com\/info\/how-to-create-htaccess-htpasswd\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.withinweb.com\/info\/how-to-create-htaccess-htpasswd\/","url":"https:\/\/www.withinweb.com\/info\/how-to-create-htaccess-htpasswd\/","name":"How to create htaccess \/ htpasswd - PHP Web Applications","isPartOf":{"@id":"https:\/\/www.withinweb.com\/info\/#website"},"datePublished":"2012-04-15T10:34:09+00:00","author":{"@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c"},"breadcrumb":{"@id":"https:\/\/www.withinweb.com\/info\/how-to-create-htaccess-htpasswd\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.withinweb.com\/info\/how-to-create-htaccess-htpasswd\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.withinweb.com\/info\/how-to-create-htaccess-htpasswd\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.withinweb.com\/info\/"},{"@type":"ListItem","position":2,"name":"How to create htaccess \/ htpasswd"}]},{"@type":"WebSite","@id":"https:\/\/www.withinweb.com\/info\/#website","url":"https:\/\/www.withinweb.com\/info\/","name":"PHP Web Applications","description":"Information and support for products of WithinWeb.com","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.withinweb.com\/info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c","name":"paulv","url":"https:\/\/www.withinweb.com\/info\/author\/paulv\/"}]}},"_links":{"self":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/632","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/comments?post=632"}],"version-history":[{"count":2,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/632\/revisions"}],"predecessor-version":[{"id":634,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/632\/revisions\/634"}],"wp:attachment":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/media?parent=632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/categories?post=632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/tags?post=632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}