By default, CXS daily and weekly scans will let you know which directories are world writable (777), but it won’t change these. You need to instruct CXS in the scan…
Change CXS scan to automatically change folder permissions from 777 to 755
Append text to file if it doesn’t exist Sed terminal
Assume you wanted to add the text “mytext” to a file if it doesn’t exist: -i writes the output to the input file. If this isn’t specified, output is written…
Replace text in file with Sed terminal
Assume you wanted to replace “abc” with “def” in a file, you can do so using sed as follows: -i tells sed to write the contents to the input file.
WordPress – redirect wp-admin to your homepage without plugin
Hackers often use automated scripts to check if a site is running WordPress by simply calling https://yoursite.com/wp-admin and this will let them know you’re running WordPress. You can redirect any…
Change WordPress wp-login.php url without plugin
There are so many confusing guides online to achieve something quite simple: change the login url from wp-login.php to something different so as to prevent automated attempts to brute force…
How to enable/disable CageFS for user in CloudLinux
To DISABLE CageFS for a particular user on CloudLinux you can running the following command: To ENABLE CageFS for a particular user on CloudLinux you can running the following command:
Convert reseller to user DirectAdmin
Converting a reseller account to a user account should be done through the terminal: <user> is the name of the reseller account you would like to convert to a user…
How to update Docker CE Ubuntu
Its always good to test things first, so let’s do a dry run to see if the update succeeds: If all looks good, let’s perform the actual update of docker-ce:
Log file paths for CSF on Ubuntu
The log file paths in Ubuntu are slightly different to those of CentOS, and as such need to be adjusted in CSF. You might have noticed this if you’ve been…
How to find Gmail IP ranges
It is useful to know Gmail’s IP ranges for whitelisting in your firewall. You’ll notice that 3 results are returned _netblocks.google.com, _netblocks2.google.com and _netblocks3.google.com. You’ll need to query each of…









