If you would like to restrict access to certain parts of your website, you can do so by password protecting the respective directories through your cPanel control panel section.
The first step is to log into your cPanel account. If you are unsure on how to do this, please view the following help article - 'How to log into cPanel'.
Scroll down to the 'Files' section and choose 'Directory Privacy'.
In the direct privacy section, you will see the folders that exist on your account. Choose the folder from the list that you would like to password protect.
Tick the option 'Password protect this directory' and type in an alais name to describe the folder in the 'Enter a name for the protected directory' section.
Choose 'Save' to set up the password protection.
The process will now confirm that the password protection permission was successfully set on the chosen directory. We now need to setup a user who can access the directory. Select 'Go Back' to return to the directory privacy options.
Scroll down to the 'Create User' section. A user now needs to be created with a password who can have access to the folder. Enter your chosen username in the 'Username' section along with the password in 'New Password' and 'Confirm Password'.
There is a 'Password Generator' option if you would like the process to automatically create a password for you.
To create the user, select the 'Save' option.
The process will now confirm that the user has been successfully created and confirm back to you what password you chose. It is recommended at this point to write this information down, if required later to access the folder.
You can repeat this process again on as many folders as you choose. You can also create multiple users who will have access if required.
The process to password protect a folder is now complete.
Truth be told, it’s difficult for a web application that doesn’t have some kind of identification, even if you don’t see it as a security measure in and of itself. The Internet is a kind of lawless land, and even on free services like Google’s, authentication ensures that abuses will...
Although data persistence is almost always a fundamental element of applications, Node.js has no native integration with databases. Everything is delegated to third-party libraries to be included manually, in addition to the standard APIs. Although MongoDB and other non-relational databases are the most common choice with Node because if you...