Data Leakage in cPanel and WHM Browser Storage

On cPanel and WHM servers, sensitive data may remain stored in the browser after logging into the panel. This can allow anyone who later accesses the same domain from the same browser to view potentially sensitive information, such as usernames...

Auto clear SWAP in Linux

This script will simply drop cache and clear SWAP, you can use it by scheduling it on a daily basis: # crontab -e 0 2 * * * echo 1 > /proc/sys/vm/drop_caches & & swapoff -a & & swapon -a Check if SWAP is more than 20% Set the...

How to Monitor and Block Syn flood attacks – SYN_RECV Connections

This command will display all current SYN_RECV connections: netstat -tuna | grep SYN_RECV SYN_RECV Connections and to count them: netstat -tuna | grep SYN_RECV | wc -l To block on the firewall all IPs that are sending multiple SYN_RECV connections...

Blocking DDoS attacks on cPanel server IP :443

To block attacks to server_ip and port 443, add the following code to /etc/apache2/conf.d/includes/pre_virtualhost_global.conf <VirtualHost IP_HERE:443> <Location /> Deny from all Redirect "/" "" </Location> </VirtualHost>...

whmcs spam orders - Dealing with fake/spam WHMCS orders

Dealing with fake/spam WHMCS orders

Startng July 2024 there are numerous reports of fake/spam orders on WHMCS. Most of the orders have - or + in the email address and set country code to US, so we can block based on that. In your installation directory navigate to: /includes/hooks/...

WHM Administration Certification Exam (CWA) Answers 2024

Given the following options, which indicates the ideal source from which you should obtain your server’s resolver IP addresses? Your hosting provider or data center. What happens when a domain with two NS records in its zone is queried for its...

cPanel & WHM Systems Administrator II Exam (CWSA-2) Answers 2024

All of the following resource limits may be set in a package except … cPanel accounts Which API allows you to manage cPanel licenses Manage2 API What is the purpose of the template file in a Plugin? Displays UI content The location of the...