How to block an IP address or domain from accessing your website via cPanel
If you've found a malicious IP address trying to access your website, or just want to block a specific IP address, IP range, or even a domain name from accessing your website, this can be easily be blocked via the IP Blocker feature within your cPanel hosting.
Adding an IP address, range or domain name to the cPanel IP Blocker:
Firstly, 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', Then once logged in - under the Security heading, click on IP Blocker.
On the IP Blocker page, you will now want to enter the IP address, IP Range or domain name you wish to block in to the IP Address or Domain box.
In this example we will enter the IP: 192.168.0.1 however cPanel provides a few examples beneath the IP Address or Domain box as to what IP address or IP range formats are accepted.
You can also add a fully qualified domain name instead in to the IP Address or Domain box (for example: google.com ). cPanel will then look up this domain and block the IP address that the domain resolves to.
Once you have entered your IP address, range or domain name click on the Add button to block this.
cPanel will then confirm that the IP address, range, or domain you have entered, is now blocked and no longer able to view your website.
Removing an IP address, range or domain from the cPanel IP Blocker:
If you no longer need cPanel to block the IP address, range or domain you have added, this can be removed just as easily.
Firstly you will want to go back to the IP Blocker page on your cPanel, found under the Security heading.
At the bottom of the IP Blocker page, you will then see the IP address or Range you have previously added. In this example we have the IP address: 192.168.0.1 currently blocked
Click on the Delete button to the right of the IP address or range that you would like to remove.
You will then be asked to confirm that you are sure you wish to delete your chosen IP.
Click on Remove IP to continue.
cPanel will then confirm that the IP address has been removed, and is now able to view your website.
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...