cPanel is a Linux-based graphical interface that serves as a control panel for managing servers, virtual private servers, and websites. It is typically pre-installed by the web host and includes tools for configuring email accounts, installing SSL certificates, creating subdomains, and more.

Websites are frequently targeted by hackers, so if you want to ensure that your data and your visitors’ data are protected, you have to choose a reliable control panel. Securing your cPanel is like putting a strong lock on the backstage door of your website. Worry not; this guide shows you how to lock things down tight by blocking cPanel access and closing all the doors (ports) with Cloudflare’s powerful tools.

Step 1: Log in to your Cloudflare Account

Begin by logging into your Cloudflare account. If you don’t have an account yet, sign up for one – it’s free and easy to set up.

Step 2: Navigate to Firewall Settings

Once logged in, find the ‘Security’ section in your Cloudflare dashboard. Here, you’ll be able to configure rules and settings to control the traffic to your website.

Step 3: Create a New Rule

Craft a new firewall rule specifically targeting cPanel access. Use the following expression:

(cf.edge.server_port == 2082 or cf.edge.server_port == 2083 or cf.edge.server_port == 2087 or cf.edge.server_port == 2086 or cf.edge.server_port == 2095 or cf.edge.server_port == 2096 or cf.edge.server_port == 2087)

Choose the ‘Block’ action and then click on Deploy. This rule ensures that access to the above ports is restricted

READ
Understanding CrowdStrike: The Company Behind the Recent Global Outage

Verifying Your Settings

Now, test your website to confirm that cPanel access is restricted. Enter your website address in the search bar along with the port, for example, https://www.abijita.com:2083.

Buy Me A Coffee

Applying this firewall rule will also block your access to cPanel. Whenever you need to access cPanel, briefly disable the rules. Once you’re finished, re-enable the rules to ensure the utmost security of cPanel. Additionally, don’t forget to remove the following A records from the DNS section of Cloudflare: whm.example.com, webdisk.example.com, webmail.example.com, and cpanel.example.com.

Now, create another rule as shown in the picture below:

This rule will block the www.example.com/cpanel URL.

The standard ports and network protocols for commonly used services are listed below.

By going through these steps, you’ve really stepped up your website’s security game. Putting the brakes on cPanel access and shutting down those ports – those are key moves. And with Cloudflare in your corner, it’s like having a trusty sidekick. Just remember to give your security settings a once-over now and then. Stay on top of things, and you’ll keep your online turf safe and sound.

READ
How to Send Photos and Videos from iPhone to Android Without Losing Quality