Search in This Blog

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;
Previous
Next Post »