Secure and Harden WordPress

WordPress is a great piece of software supported by a large open source community. It is quick to deploy, easy to configure, and easy to use. When it comes to simple content management, WordPress is the way to go. However, some of us have had the unfortunate event of getting our WordPress site hacked or defaced.
Sanitize Text for SQL mglaman Sat, 11/26/2011 - 10:19
Cross Site Scripting (XSS) and SQL Injections are some of the biggest security threats to a PHP application.  Every developer has different ways of preventing SQL Injections or malicious JavaScript from being inserted into the database. Here are some easy solutions to help safeguard your PHP applications.


mysql_real_escape_string() should always be used on data being placed into your SQL database.
Setting Cookies with PHP mglaman Sat, 11/26/2011 - 06:05
If you plan on building a PHP application, you'll probably end up using cookies, especially if there are user accounts. Cookies will allow you to store specific data for a certain amount of time.