{"id":571,"date":"2008-06-14T11:50:26","date_gmt":"2008-06-14T11:50:26","guid":{"rendered":"https:\/\/www.amitbhawani.com\/blog\/?p=571"},"modified":"2008-06-14T11:35:51","modified_gmt":"2008-06-14T11:35:51","slug":"how-to-build-a-password-protected-website","status":"publish","type":"post","link":"https:\/\/www.amitbhawani.com\/blog\/how-to-build-a-password-protected-website\/","title":{"rendered":"How to Build a Password Protected Website?"},"content":{"rendered":"<p>I want to put some stuffs online for only my friends. I don\u2019t want that anybody else gets access to them. I know that this is possible, but as I am completely a non technical person and have very little knowledge about computers I can not provide my website a password protection. Can you please tell me the way of making my website password protected? Oh Sorry I forgot to mention that my website run on Apache Web Server.<\/p>\n<p><strong>Is the Process Simple?<\/strong><br \/>\nYou have more than one option for making your website password protected. Some are simple and some are tough. As you have told that you are not a technical person, the simpler processes will suit you more. So, let us discuss one of the simple methods for making your website password protected.<\/p>\n<p><strong>Elaborate a Simple Process for me.<\/strong><br \/>\nYou have told that your website runs on Apache Web server. This is the most common server for websites. You the use in-built Apache&#8217;s file accessing commands for protecting any of your directories. The config file of Apache, i.e. httpd.conf, carries information about all the directories of your website. You can easily alter this file. Restart Apache every time you modify the configuration. Luckily, you can configure the Apache for checking all the directories. Changes made to the directories are employed every time the Apache uses the directory.<\/p>\n<p>Another thing you may need to do is modifying the httpd.conf files, for enabling this directory control. You can enable the .htaccess file through the system administrator or, when you can access the config file yourself, put in the lines given below into the directories, with the .html files.<\/p>\n<p style=\"text-align: center;\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i0.wp.com\/www.amitbhawani.com\/Images\/F\/File-Directory-Listing.PNG\" alt=\"File Directory Listing\" \/><\/p>\n<p>After that you will have to restart the Apache. This will inform the server to perform a complete directory check of public_html along with all the subdirectories for the access-control file. The name provided by default to that file having access-control is .htaccess. This file reads as:<\/p>\n<p style=\"text-align: center;\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i0.wp.com\/www.amitbhawani.com\/Images\/A\/Access-Control-File.PNG\" alt=\"Access Control File\" \/><\/p>\n<p>Use the term &#8220;valid user&#8221; for allowing anybody in .htpasswd file for logging in. If you want more security than this, you will need to have a definite user name for example, \u201cdamson link\u201d, which will keep all the others out. M<\/p>\n<p>You will have to ensure that the .htaccess file is world readable and to make it so, type the command below:<br \/>\nNow, finally you will require generating a password file, with the extension .htpassword. You can make use of this program, by typing:<br \/>\nYou will get prompts for password. Then add some more names by the following command:<\/p>\n<p style=\"text-align: center;\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i0.wp.com\/www.amitbhawani.com\/Images\/C\/chmod-htaccess-username.PNG\" alt=\"Chmod Htaccess Password\" \/><\/p>\n<p>Now edit the .htpasswd file by any text to delete the users. After completing the process when you will try to enter the directory, you will require to type a password before logging in. Thus your website has become password protected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I want to put some stuffs online for only my friends. I don\u2019t want that anybody else gets access to them. I know that this is possible, but as I am completely a non technical person and have very little knowledge about computers I can not provide my website a password protection. Can you please [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":18287,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_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":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[228],"tags":[],"class_list":{"0":"post-571","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-how-to","8":"entry"},"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/12\/File-Directory-Listing.png?fit=316%2C84&ssl=1","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":512,"url":"https:\/\/www.amitbhawani.com\/blog\/how-to-crack-a-password-protected-word-document\/","url_meta":{"origin":571,"position":0},"title":"How to Crack a Password Protected Word Document?","author":"Amit Bhawani","date":"May 24, 2008","format":false,"excerpt":"I am a home based job professional. Yesterday I received some assignments from one of my clients, all of those files were password protected read only word files. The client is now out of station and I can\u2019t ask him to unlock the files for me or tell him to\u2026","rel":"","context":"In &quot;How to Guide&quot;","block_context":{"text":"How to Guide","link":"https:\/\/www.amitbhawani.com\/blog\/category\/how-to\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4859,"url":"https:\/\/www.amitbhawani.com\/blog\/reset-linksys-router-password\/","url_meta":{"origin":571,"position":1},"title":"How do I reset a LinkSys router default password?","author":"Amit Bhawani","date":"July 1, 2009","format":false,"excerpt":"LinkSys routers is one of the most popular router design and manufacturing brand and is widely used by many industries, companies and individuals who want a clean, neat router that does its job. Cisco is the manufacturer of the LinkSys routers (they acquired LinkSys in 2003). They also manufacture wireless\u2026","rel":"","context":"In &quot;Tips &amp; Tweaks&quot;","block_context":{"text":"Tips &amp; Tweaks","link":"https:\/\/www.amitbhawani.com\/blog\/category\/tips-tweaks\/"},"img":{"alt_text":"LinkSys Router","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/Images\/L\/Linksys-Router.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":490,"url":"https:\/\/www.amitbhawani.com\/blog\/how-to-create-a-password-protected-ms-word-document\/","url_meta":{"origin":571,"position":2},"title":"How to Create a password protected MS word Document","author":"Amit Bhawani","date":"May 19, 2008","format":false,"excerpt":"Many times we need our documents to be protected. It is mainly because of the security reason for which we need to install some added security features to our documents. Microsoft allows us to protect our MS Word file by using few simple security features. With the help of this\u2026","rel":"","context":"In &quot;How to Guide&quot;","block_context":{"text":"How to Guide","link":"https:\/\/www.amitbhawani.com\/blog\/category\/how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/12\/Microsoft-Office-Word-2007.jpg?fit=463%2C479&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":500,"url":"https:\/\/www.amitbhawani.com\/blog\/how-to-password-protect-windows-xp-screen-saver\/","url_meta":{"origin":571,"position":3},"title":"How to Password Protect Windows XP Screen Saver?","author":"Amit Bhawani","date":"May 23, 2008","format":false,"excerpt":"Screen savers are able to help you out in protecting the monitor of your PC from damage by presenting a continually changing display. This display is shown only during the phase you\u2019re your computer is not in use. Using password is always a good habit even in case of single\u2026","rel":"","context":"In &quot;How to Guide&quot;","block_context":{"text":"How to Guide","link":"https:\/\/www.amitbhawani.com\/blog\/category\/how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/12\/Windows-Start-Link.jpg?fit=426%2C332&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2674,"url":"https:\/\/www.amitbhawani.com\/blog\/password-microsoft-office\/","url_meta":{"origin":571,"position":4},"title":"How to Set Password to Microsoft Office Files","author":"Amit Bhawani","date":"December 16, 2008","format":false,"excerpt":"In order to make sure your important office files are not easily accessed by others, you can add a password to these files using the following process. Iam a user of Microsoft Office 2007, hence this post would be for the users of this version. Preparing your File for Password\u2026","rel":"","context":"In &quot;Microsoft Blog&quot;","block_context":{"text":"Microsoft Blog","link":"https:\/\/www.amitbhawani.com\/blog\/category\/microsoft\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/12\/Encrypt-MS-Office-File.jpg?fit=426%2C473&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2015,"url":"https:\/\/www.amitbhawani.com\/blog\/count-words-website-broken-links-spell-check\/","url_meta":{"origin":571,"position":5},"title":"Count Total Words in website, Broken Links &#038; Spell Check","author":"Amit Bhawani","date":"November 10, 2008","format":false,"excerpt":"You can always count the number of words in a blog post while writing or using a plugin which can show you the complete stats like number of words in the whole blog etc, but what if your website is not a blog and you just want to total up\u2026","rel":"","context":"In &quot;Tips &amp; Tweaks&quot;","block_context":{"text":"Tips &amp; Tweaks","link":"https:\/\/www.amitbhawani.com\/blog\/category\/tips-tweaks\/"},"img":{"alt_text":"Broken Links Website Report","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/Images\/B\/Broken-Links-Website-Report.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/posts\/571","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/comments?post=571"}],"version-history":[{"count":0,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/posts\/571\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/media\/18287"}],"wp:attachment":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/media?parent=571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/categories?post=571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/tags?post=571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}