Popular Posts
All posts ordered by popularity
Whitelist File Names via Apache/.htaccess
I’ve posted tons of tutorials showing how to block things with Apache/.htaccess. Generally blocking involves defining a list and then forbidding access to it. In this quick post, we’re going to change it up, by defining a list and forbidding access to anything that is not included. The list can be anything, IP addresses, request […]
PHP Simple Random String Generator
Here is a simple function for generating a random string via PHP. Oh I can hear it now, all the “random-things” experts out there crying out in pain because the function doesn’t return actual true random numbers. And they are right, true “randomness” is difficult to measure and achieve, especially with PHP. So for this […]