{"id":499,"date":"2011-08-02T22:23:58","date_gmt":"2011-08-03T08:23:58","guid":{"rendered":"http:\/\/mymonkeydo.com\/?p=499"},"modified":"2020-05-03T16:29:07","modified_gmt":"2020-05-04T02:29:07","slug":"godaddy-password-protect-home-directory","status":"publish","type":"post","link":"https:\/\/mymonkeydo.com\/godaddy-password-protect-home-directory\/","title":{"rendered":"GoDaddy Password Protect Home Directory"},"content":{"rendered":"
GoDaddy makes it simple to password protect a directory. \u00a0You just go to their file manager, click on a directory, click on Permissions, fill out a user and password and you’re done. \u00a0Bad thing is that you can’t password protect anything in the public root folder.<\/p>\n
<\/p>\n
Easiest solution is to password protect a subdirectory, open .htaccess, copy the code there and paste it into \u00a0your .htaccess in the root public folder and then wait a few hours. \u00a0Seriously, just wait. \u00a0I followed these steps and didn’t wait, got worried it wasn’t working and undid everything. \u00a0a few hours later I ran into this post: \u00a0http:\/\/www.besthostratings.com\/articles\/http-auth-php-cgi.html<\/p>\n
With that post I felt that I could hackily get the authenticated username and password and then use PHP to determine whether the username\/password is correct or not. \u00a0Then I could show or not show what I needed. \u00a0After all, this was only temporary until the client’s site went live. \u00a0I soon found out however that the first solution worked this time. \u00a0Go figure.<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[6],"tags":[9,24,29,30],"yoast_head":"\n