ncdu / du and df show different sizes: du is reading information from the directory tree, it is more accurate than df but slower.df reads meta data of the file system therefore it is faster, but not that accurate because it works with blocks...
From the terminal (SSH): grep -Ril "find /home/username/public_html/ -type f -mtime -2" From a .php file: <?php $last=shell_exec('grep -Ril "find /home/username/public_html/ -type f -mtime -2"'); echo "<pre>$last</pre>"; ?> The...
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...
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: <?php echo "Today is " . date("Y/m/d") . "<br>"; echo "The...
Here is a simple PHP script that you can use to test if a port is open on the server or not. <?php $host = $_SERVER['SERVER_ADDR']; $ports = array(21, 25, 80, 81, 110, 443, 3306); foreach ($ports as $port) { $connection = @fsockopen($host...
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...
If you’ve installed the official CentOS image, after trying to login as root you will see the following message: “Please login as the user “centos” rather than the user “root”. Here is how to permit root login in...
Here is yet another PHP Shell which I stumbled upon today. It’s pretty basic and allows an attacker to do pretty much the same as with any other shell. And here is the obfuscated code for the b374k shell 3.2: <?php function...
Quick List of the Best Web Hosting Control Panels OpenPanel – a robust hosting panel designed to provide your users with a VPS-like experience. cPanel – Best Linux-only web hosting control panel for users who want a control panel...
On a WordPress website that is protected with ModSecurity, when admin edits pages using Elementor or Gutenber in wp-admin dashboard, ModSecurity may falsely detect it as XSS attack. What we usually do is disable specific rules that create this false...