by greg | Oct 30, 2017
So there are times that I am in the need to encrypt data with the capability of decryption afterwards so md5 is not capable for me to use. $data = “Data to encrypt.”; $encryption_key = md5( $pass ); $encrypted_data = encrypt( $data, $encryption_key );...
by greg | Nov 3, 2016
So I came across this snippet of code recently when I was trying to find a way to give a user access to a form's entries based on a user role. I did find that I needed to modify it a little bit for the menu side of things so that when you go to the view entries page...
by greg | Mar 24, 2017
http://www.ipaddressguide.com/cidr is a great tool that allows you to see what IP range a CIDR notation is. Giving you the First IP address and Last IP address based upon the Classless Inter-Domain Routing. For instance Cloudflare uses the following IP addresses...
by greg | Oct 28, 2016
So I am trying to build a good robots.txt file that allows good bots while blocking others. User-Agent: * Disallow: / User-Agent: Googlebot User-Agent: Googlebot-Mobile User-Agent: Googlebot-Image User-Agent: Mediapartners-Google User-Agent: Adsbot-Google User-Agent:...
by greg | Apr 25, 2016
Sometimes securing a site also requires you to lock it down as to who can access the admin area. Here is a modification that can be done to the .htaccess file that will lock down the wp-login.php and also the wp-admin directory to specific IP addresses. Real easy to...