Automatic Updating

So not sure how often it does do this but according to WordPress you are able to add some filters so that updates automatically happen.¬† It is best to add these into your child's functions.php file. add_filter( ‘auto_update_core', ‘__return_true' );...

Bad Bot Blocker – .htaccess

Here is a basic bad block blocker for the .htaccess file.   RewriteEngine On RewriteCond %{HTTP_USER_AGENT} ^.*(Baiduspider|HTTrack|Yandex|mj12bot|bingbot).*$ [NC] RewriteRule .* – [F,L]    

Bad bots exclusion via .htaccess

I found this floating around on the web so I can't take full credit for it but I have been adding to it. Options All -Indexes RewriteEngine on # Block Bad Bots & Scrapers SetEnvIfNoCase User-Agent “Aboundex” bad_bot SetEnvIfNoCase User-Agent...

Change Permissions or Ownership of Files or Directories Recursively

So I am always looking for the way to change all files or directories in a directory to a certain set of permissions.  Here are the following shell commands that you can use to accomplish it. # For Directories find ./ -type d -exec chmod 755 {} + # For Files find ./...

Checking Active Processes

So this is a way to get a list of processes running for a specified user pstree -apu | grep username or ps aux | grep username