Welcome Guest, Not a member yet? Register   Sign In
General question about CSRF for a newbie
#1

[eluser]boltsabre[/eluser]
Hi guys, just a really quick question about CSRF in CI (note, I'm using CI V2, not the old one).

Is all I have to do to set it up is this line of code?
Code:
$config['csrf_protection'] = TRUE;

And ensure I use the
Code:
form_open()
on all my forms...

So is it really this simple to implement and use (ie, my site is now protected from CSRF attacks?), or is there other stuff you have to handle in the controllers/models for it to work? If so, does anyone have a link to a good tutorial.

Thanks in advance.
#2

[eluser]toopay[/eluser]
Here some basic : http://www.learnphponline.net/protect-a-...inst-csrf/




Theme © iAndrew 2016 - Forum software by © MyBB