News Feed
Sections




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

Stefan Mischook's Blog:
Defending against SQL Injection attacks
December 03, 2009 @ 11:35:36

In this new post to his KillerPHP.com blog Stefan Mischook looks at a few of the basic steps you can take to help prevent SQL injection attacks in your application.

You should protect your relational databases (like MySQL) from the dreaded SQL injection attack. These attacks are conducted by evil sniveling nerds, trying to insert damaging SQL code into your HTML form fields (and query strings too) to do things like drop database tables or even wipe out your database altogether!

There's three things he recommends as good places to start - mysql_real_escape_string, using an ORM layer with its own escaping and using something like PDO that cleans up the input for you.

0 comments voice your opinion now!
defend sql injection attack


blog comments powered by Disqus

Similar Posts

SecWatch.org: CJ Tag Board Multiple Parameter Handling PHP Code Injection Vulnerabilities

Christian Wenz's Blog: SANS Top-20 Internet Security Attack Targets (2006 Annual Update)

Sam Hennessy's Blog: A Dependency Injection for PHP Manifesto – Part 2 (Why I Want It)

International PHP Magazine: IPM Poll Question: Which One is Most Dangerous?

Community News: WordPress 2.0.6 Released to Resolve Security Issues


Community Events

Don't see your event here?
Let us know!


series api extension opinion podcast community wordpress conference library psr7 framework voicesoftheelephpant unittest laravel language laravel5 interview introduction development release

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework