Here are different methods to check if an IP address is blocked in Config Server Firewall (CSF). Check if an IP is blocked in CSF from the WHM WHM > Config Server Firewall > Search for IP 2. Check if an IP is blocked in CSF from the terminal: csf -g...
From the terminal (SSH):
grep -Ril "find /home/username/public_html/ -type f -mtime -2"
From a .php file:
Here is how to delete all emails older than 6 months from cPanel using a cronjob. First, we need to know the exact location where emails are stored. On cPanel, emails are stored in 3 folders: new – incoming emails are received in this foldercur –...
Content Security Policy (CSP) is a security layer that can help you detect and mitigate Cross Site Scripting (XSS) and data injection attacks. If your web application displays and stores custom HTML/CSS from user input, then you most certainly need...
Here in how to change the default Time Zone permanently in cPanel using the .htaccess file Step 1. First, check you current time yone settings using a simple .php script like this: save it as timezone.php on your server and open the file in your...
I was recently looking into the source code of the cpanel installation script in order to gain a better grasp of the installation process and possibly examine the security of all the sources that this script takes from the cpanel.net website. While...
Here is a simple PHP script that you can use to test if a port is open on the server or not. And if you want to check for open ports on another server, get it’s IP address and put it instead of the $_SERVER[‘SERVER_ADDR’]; like this: $host =...
If you use dynamic DNS privately and need to whitelist a hostname or domain name in cPanel/WHM, you can use the DYNDNS feature of ConfigServer Security and Firewall plugin. csf.dyndns is a file that is specifically used for allowing hostnames in CSF...
If clients are complaining for dozens of LFD alerts from their VPS’s running cPanel here is how to completely disable those email alerts. Here are two ways to disable LFD alerts: From WHM > ConfigServer Security & FirewallFrom the Terminal (SSH)...
Here is a list of the top 10 most useful browser extensions that I use daily, and hopefully some other System Administrators and Web Developers will find them useful as well. AdBlocker Number one of this list is the first extension that I always...









