How to set up password protected areas directories in hosting
How to set up password protected areas directories in hosting
How to set up password protected areas directories in hosting
The password protected directories, also known as password protected areas, refer to a service empowering users to limit access to a certain web page within their website or to the entire website itself. This is done by assigning certain log-in credentials (username and password) for a specific URLto a limited number of users only.When a visitor tries to open a protected URL, he/she will not be able to do so unless the necessary log-in details are supplied in the pop-up window.JavaScript is the easiest way to password protect a single page on your website but is not considered very secure because some search engines can still manage to find your page. Protecting an entire directory on your hosting server is secure. UseFTP softwareto create a new directory on your hosting server.
You must edit all the website pages that you intend to put in the new directory to make them work. There are two ways to do this. To understand how this works, go through these steps. Make a sub directory of your website directory on your local hard drive. Put the HTML pages you want protected in the new directory. Open any page you put in the sub directory in your browser. You can drag it into your browser to open it. You will notice that you will see no images and no header and the entire page is missing areas. This is because all the support files are up one directory. Copy all the .js files and .swf files and the flash.txt and your "picts" directory into the new directory. However, some links may no longer work and you better maintain two sets of everything. After that just upload the edited pages you want to protect into the new directory you created on your server and protect your directory.