====== Securing PHP ====== Here is my configuration / notes about securing a php installation. ===== Avoid common exploits ===== These configuration rules are taken from the .htaccess file configuration of Joomla, and I've adapted it for apache. They address some common exploits. RewriteEngine On ## Begin - Rewrite rules to block out some common exploits. # If you experience problems on your site block out the operations listed be # This attempts to block the most common type of exploit `attempts` to Jooml # # Block out any script trying to base64_encode data within the URL. RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR] # Block out any script that includes a