For smart Primates & ROBOTS (oh and ALIENS ).

Blogroll

Sunday, March 29, 2015

Prevent XSS in CodeIgniter

Problem:

How to prevent XSS Cross Site Scripting in CodeIgniter

Solution:

use $this->security->xss_clean($input_data); method
OR
set $config['global_xss_filtering']=TRUE;

Example:

$input_data = $this->security->xss_clean($input_data);
or add this line in config.php file
$config['global_xss_filtering'] = TRUE;
Share:

0 comments:

Post a Comment

How to make center align child div

 How to make center align child div?   Suppose you have 2 Div tag. And want the make inner tag center <div id="d1">      ...

Ads Inside Post

Powered by Blogger.

Arsip

Blog Archive