5G Blacklist 2013 by perishablepress.com

This is something I came across on perishablepress.com was a way to help protect your website though the .htaccess file. 5G Blacklist/Firewall 2013 PHP # 5G BLACKLIST/FIREWALL (2013) # @ https://perishablepress.com/5g-blacklist-2013/ # 5G:[QUERY STRINGS] RewriteEngine...

Adding Validation to a WordPress Creation Toolkit Field

So I ran into a need to validate an email address for a frontend posting of a custom post type using Cozmos Labs WordPress Creation Toolkit.  Here is the code that I used to be able to accomplish that.  There is some commented out code that allows for you to see what...

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. Automatic Updates add_filter( 'auto_update_core', '__return_true' );...

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. PERISHABLE PRESS ULTIMATE USER-AGENT BLACKLIST Options All -Indexes RewriteEngine on # Block Bad Bots & Scrapers SetEnvIfNoCase User-Agent "Aboundex" bad_bot...

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. chmod files or directories recursively Shell # For Directories find ./ -type...