Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Techie Talks Blog:
Building Secured Web Applications Using PHP - The Basics
Jun 24, 2011 @ 16:06:11

On the Techie Talks blog today there's a post from Idrish Laxmidhar with a few simple reminders of things you can do to help with the basic security of your PHP applications, mostly surrounding filtering and escaping.

The list includes some of the basics like:

  • Avoiding $_REQUEST when possible because of the ambiguity of where the information could come from
  • Keep register_globals off (thankfully a default!)
  • Checking values for specific data types before using them
  • Filtering user input
  • Disabling the error output (turning down the reporting levels) on a production environment

For some more good recommendations on good security practices in PHP applications, check out this list or some of the recommendations from the PHP manual itself.

tagged: security web application basics

Link:


Trending Topics: