IP Geolocation Script

This repository contains a small script that you can use when you need to geolocate a bunch of IP addresses. It uses the IP2C API, which is free and doesn’t require any registration or API key. It takes a file containing a list of IPs as an input, and outputs a CSV friendly format. Input … Read more

Replace WordPress with a Know Good Copy

Here is a way to replace wordpress files with known good copies. Download WordPress files from GitHub repository The wp-content folder and the wp-config.php file are the only unique items in wordpress. (with the exception of domain verification files.) It contains media, plugins, and themes. Download a fresh copy of the WordPress files from the … Read more

Set up A site Maintenance Page

This is an easy site maintenance page to use to set a site for maintenance. We will move html to backup. The install a new html folder. You can replace the html folder as needed (i.e., cPanel public_html). And here it is… To restore the site.

How to Test a Slow Website

Curl Output: A brief explanation of each option is shown below: time_connect – Display the time in seconds from the connect was noticed by curl until the first byte arrived.time_namelookup – Display the time in seconds it took from the start until the name resolving was completed.time_pretransfer – Display the time in seconds it took … Read more

How to change the Magento administrative session timeout interval

Changing the session timeout interval By default, Magento automatically logs out administrators when connections are idle for a certain amount of time (specifically, the value of the session.gc_maxlifetime PHP directive). However, you can increase or decrease this interval according to your own requirements. To determine the current value of the session.gc_maxlifetime PHP directive on your … Read more

WHAT IS AHREFSBOT AND HOW TO BLOCK IT?

Method 1: Block Ahrefsbot With robots.txtAhrefs says that Ahrefsbot follows robots.txt rules. You can block Ahrefsbot by adding new rules to your robots.txt file. You have two options here: Change the frequency Ahrefsbot can visit your siteCompletely block Ahrefsbot from visiting your siteTo change the frequency of Ahrefsbot visiting your site, add the following code … Read more

Change permissions using find command

To change permissions using find command. On a Linux server, if you are in need of changing the permissions of a bulk amount of files or directories recursively, we can use the ‘find’ command to do it. The steps are explained below: Change to the directory in which you need to change the permissions. Changing … Read more

Apache vhosts are not segmented or chroot()ed. Enable “mod_ruid2” in the “EasyApache 4” area

When running the Security Advisor in cPanel at Home / Security Center / Security Advisor, I received this error:

Apache vhosts are not segmented or chroot()ed. Enable “mod_ruid2” in the “EasyApache 4” area, enable “Jail Apache” in the “Tweak Settings” area, and change users to jailshell in the “Manage Shell Access” area. Consider a more robust solution by using “CageFS on CloudLinux”. Note that this may break the ability to access mailman via Apache.

Read more