PHP Snippets

PHP Snippets

 Useful Stuff A collection of snippets used for editing arrays. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 // Lock Page/Admin Access to Specific list of IPs   // static IP list $whitelistedIps = array( '1.1.1.1.', '2.2.2.2',...
Public IP Blacklists

Public IP Blacklists

This is an on going list of IPs that should be blocked from accessing your servers, web apps and work in general. If you know of more, please leave a link in a comment. I will credit it to you. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 // Get drupal's root url...
PHP Version History

PHP Version History

I recently stumbled across a client server that is still running PHP5.3. This is worrying as their SLA stipulates that they are to be provided with a secure server. As you can see, in the diagram above, there is no long any support for PHP5.3. Any further security issues exposed in PHP5.3 will never be fixed.