Extremely Tiny Application Firewall Class

This is a small IP address blocking “firewall” for an old PHP based website. It’s totally basic, with no features at all. This is for those annoying situations when old software contains security holes, and you find out in the logs, when you see some queries with a long string of SQL-like code.

Continue reading Extremely Tiny Application Firewall Class

Fixing a Static Archive of a Drupal Site to Redirect Old URLs with Mod Rewrite

The new Google Search Console shows you what URLs were are causing 404 errors, and not in the index. A static archive of this old Drupal site worked okay, but I needed to redirect old URLs so they’d work again.

Continue reading Fixing a Static Archive of a Drupal Site to Redirect Old URLs with Mod Rewrite

Rewriting and Refactoring Hamurabi.bas Part 3.6 More Random Testing

Porting Hamurabi to Javascript has been pretty easy, but I got into the weeds writing tests, and then hit a swamp testing the few lines of game logic. Enter random testing, throwing semi-random data at the function, and seeing what comes out.

Continue reading Rewriting and Refactoring Hamurabi.bas Part 3.6 More Random Testing