Jump to content

How do I make my site secure?


johnnyk

Recommended Posts

I'm gonna start work on a website soon. It's gonna involve a good amount of people interacting with a DB (logging in, adding comments, voting, what not). I'm gonna write the site in PHP/MySQL.

 

The only thing is that I've never made a website with this much DB interaction before and I'm worrying that it won't be secure. Does anyone have any suggested reading for someone who is an intermediate PHP/MySQL programmer but knows almost nothing about security?

Link to comment
Share on other sites

Essential PHP Security (Chris Shiflett, O'Reilly)

ISBN: 0-596-00656-X

 

The first thing you should understand is the concept of "tainted" data.  This is well-explained in that book, but in a nutshell: if you don't create the data in your PHP application, you should assume the data is an attack until you have successfully verified it is safe or rendered it neutral.  You definitely need to understand script and SQL injection attacks and how data inspection and filtering are used to protect your application and data.  This is covered in Essential PHP Security, as well as other topics, such as session hijacking.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.