Christmas Again

So I guess I could say Merry Christmas. Then again, I WANT to say, “Hey it’s that time of year where I break out my Christmas theme for a blog!” I haven’t done this in a long while, and given that I’ve moved over to WordPress, I wonder if it’s possible.

Stay tuned for theme-like edits in the next day or two. As soon as I find time to break out my old copy of Photoshop and a few stupid photos of myself which I may already have somewhere on this server, I’ll drop in a new banner image of some sort!

Manual letsEncrypt for CPanel

At work I recently collaborated with our hosting provider to move our company website to a version of cPanel. Up until this time, there has been no way of running our site on SSL/TLS, and it’s been quite frustrating, having discovered LetsEncrypt and its ease of use. Basically, with this certificate signer, I have no reason to actually figure out the handshaking and signing process as was required in old command-line versions of SSL.

Continue reading “Manual letsEncrypt for CPanel”

PHP Access Control List

A quick little Access Control List (ACL) snippet I made for PHP/HTML. Enjoy!

<?php

$acl = array(
    // Populate with IP/Subnet Mask pairs.
    // Any zero bit in the subnet mask acts as a wildcard in the IP address check.
    array("192.168.10.24","255.255.255.255"),
);

$acl_allow = false;
for ($i = 0; $i < count($acl); $i++) {
    $ip2chk = (ip2long($acl[$i][0]) & ip2long($acl[$i][1]));

    if ((ip2long($_SERVER['REMOTE_ADDR']) & $ip2chk) == $ip2chk) {
        $acl_allow=true;
    }
}

if ($acl_allow) {
    // Put all test stuff here!! Only visible to ACL.
    phpInfo();
} else {
    echo "<a href='http://this-page-intentionally-left-blank.org/whythat.html' target='_blank'>This page intentionally left blank.</a>";
}

?>

 

Expired Domains – A Headache (but a learning experience)

Hey all! It’s been a few months, I know. But I wanted to share an experience I had with my recent domain name headache.

So as you may or may not know, I’ve owned ppsstudios.com since May 2013. I purchased it via Google Apps which in turn set my registrar to eNom. Both are useful services and work reasonably well. I was attracted mostly to the (back in 2013) $10/year with free ID protection deal that Google Apps offered. Since then they’ve gone up to $12/year, but that’s not really an issue.

Continue reading “Expired Domains – A Headache (but a learning experience)”