{"id":194,"date":"2009-11-04T11:57:40","date_gmt":"2009-11-04T09:57:40","guid":{"rendered":"http:\/\/blog.ansuz.nl\/?p=194"},"modified":"2009-11-04T11:57:40","modified_gmt":"2009-11-04T09:57:40","slug":"htaccess-trickery","status":"publish","type":"post","link":"http:\/\/blog.ansuz.nl\/index.php\/2009\/11\/04\/htaccess-trickery\/","title":{"rendered":"htaccess trickery"},"content":{"rendered":"<p>I was looking the other day for a way to make a directory that is behind a .htaccess password protected directory accessible for anybody. Does that make any sense? For instance: www.somedomain.com\/protected is password protected directory. I wanted anybody to be able to access www.somedomain.com\/protected\/notthisone\/ without a password. After a little searching I found the following trick:<\/p>\n<blockquote><p>AuthType Basic<br \/>\nAuthName &#8220;Anybody&#8221;<br \/>\nAuthUserFile \/path\/to\/some\/autfile<\/p>\n<p>Require valid-user<\/p>\n<p>Allow from All<br \/>\nSatisfy Any<\/p><\/blockquote>\n<p>I&#8217;m actually not sure if I need all of the above or if I can just get away with &#8220;Allow from All&#8221; and &#8220;Satisfy Any&#8221;.<\/p>\n<p>So basically by adding &#8220;Allow from All&#8221; you say anybody is allowed to access this directory. The &#8220;Satisfy Any&#8221; makes sure that you can access it either when you have already entered the password or when you don&#8217;t have a password.<\/p>\n<p>A nice way to circumvent .htaccess directory protection.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>I was looking the other day for a way to make a directory that is behind a .htaccess password protected directory accessible for anybody. Does that make any sense? For instance: www.somedomain.com\/protected is password protected directory. I wanted anybody to &hellip; <a href=\"http:\/\/blog.ansuz.nl\/index.php\/2009\/11\/04\/htaccess-trickery\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-194","post","type-post","status-publish","format-standard","hentry","category-random"],"_links":{"self":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts\/194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/comments?post=194"}],"version-history":[{"count":1,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts\/194\/revisions"}],"predecessor-version":[{"id":195,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts\/194\/revisions\/195"}],"wp:attachment":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/media?parent=194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/categories?post=194"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/tags?post=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}