Posts

Showing posts from 2018

CodeIgniter – Security

CodeIgniter – Security XS S P r e v e nt i o n   XSS   means   cr o s s -s i te   s c r i p t i ng.   Co d e I g n i t e r   comes   w i th   XSS   f i l t e r i n g   s e cur i ty.   T h i s   f i lt e r w ill   pr e v e nt   a n y   mal i c i o u s   JavaS c r i pt   c o de   o r   a n y   o th e r   c o d e   that   a tt e m p t s   to   hijack co o k i e     a n d     do     mal i c i o u s     act i v i t i e s.     T o     f i lt e r     data     th ro u gh     th e     X S S     f i lt e r ,     u se     th e x s s _c l e a n ( ) meth o d as s h ow n b e l ow. $data=$ t his- > secur i t y - >xss_cl e an($ d ata); Yo u   shou l d   u se   th i s   f u nct...