News Feed
Jobs Feed
Sections




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

NetTuts.com:
Protect a CodeIgniter Application Against CSRF
April 22, 2011 @ 12:52:48

In a recent post to NetTuts.com, they show you how to protect your CodeIgniter application from cross-site request forgery (CSRF) attacks by using tokens in your forms and pages to make things more "one time" and unique to the site.

In today's tutorial, we will learn how to painlessly protect your CodeIgniter (pre 2.0) application against Cross-Site Request Forgery attacks. The library we'll be creating today will automate all of the protection mechanisms, making your site stronger and more secure.

They've broken it up into a few different sections to dole it out in easy to follow chunks:

  • Understanding the Attack Vector
  • Planning
  • Token Generation
  • Token Validation
  • Inject Tokens into the Views
  • Hooks

You can also download the full source of the library.

0 comments voice your opinion now!
csrf codeigniter tutorial token library


blog comments powered by Disqus

Similar Posts

Gonzalo Ayuso's Blog: Moving singleton and factory patterns to Abstract with php 5.3

Chris Jones: Using the PHP CLI Webserver to Identify and Test Memory Issues in PHP

PHPMaster.com: MongoDB Indexing, Part 1

PHPBuilder.com: Securing Data Sent Via GET Requests

DevShed: The Basics of Using the Factory Pattern in PHP 5


Community Events











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


hhvm language podcast introduction performance application hack unittest component database install facebook package release security symfony2 series framework opinion composer

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