codeigniter : the security and the magic of hook
DESCRIPTION
Codeigniter : the security and the magic of hookTRANSCRIPT
![Page 1: Codeigniter : the security and the magic of hook](https://reader034.vdocuments.site/reader034/viewer/2022052618/5489acecb47959ce0c8b5a03/html5/thumbnails/1.jpg)
CodeIgniter The Security & The Magic of Hook
Abdul Malik Ikhsan
![Page 2: Codeigniter : the security and the magic of hook](https://reader034.vdocuments.site/reader034/viewer/2022052618/5489acecb47959ce0c8b5a03/html5/thumbnails/2.jpg)
Security Class
![Page 3: Codeigniter : the security and the magic of hook](https://reader034.vdocuments.site/reader034/viewer/2022052618/5489acecb47959ce0c8b5a03/html5/thumbnails/3.jpg)
Security Class ~ CSRF Protection (1)
Activate It
![Page 4: Codeigniter : the security and the magic of hook](https://reader034.vdocuments.site/reader034/viewer/2022052618/5489acecb47959ce0c8b5a03/html5/thumbnails/4.jpg)
Security Class ~ CSRF Protection (2)
![Page 5: Codeigniter : the security and the magic of hook](https://reader034.vdocuments.site/reader034/viewer/2022052618/5489acecb47959ce0c8b5a03/html5/thumbnails/5.jpg)
Security Class ~ CSRF Protection (3)
![Page 6: Codeigniter : the security and the magic of hook](https://reader034.vdocuments.site/reader034/viewer/2022052618/5489acecb47959ce0c8b5a03/html5/thumbnails/6.jpg)
Security Class ~ CSRF Protection (4)
First Request
Second Request
![Page 7: Codeigniter : the security and the magic of hook](https://reader034.vdocuments.site/reader034/viewer/2022052618/5489acecb47959ce0c8b5a03/html5/thumbnails/7.jpg)
Security Class ~ XSS Filtering (1)
Activate It
![Page 8: Codeigniter : the security and the magic of hook](https://reader034.vdocuments.site/reader034/viewer/2022052618/5489acecb47959ce0c8b5a03/html5/thumbnails/8.jpg)
Security Class ~ XSS Filtering (2)
Testing…
![Page 9: Codeigniter : the security and the magic of hook](https://reader034.vdocuments.site/reader034/viewer/2022052618/5489acecb47959ce0c8b5a03/html5/thumbnails/9.jpg)
Security Class ~ XSS Filtering (3)
Dan Hasilnya…
![Page 10: Codeigniter : the security and the magic of hook](https://reader034.vdocuments.site/reader034/viewer/2022052618/5489acecb47959ce0c8b5a03/html5/thumbnails/10.jpg)
Security Helper
xss_clean() sanitize_filename() do_hash() strip_image_tags() encode_php_tags()
![Page 11: Codeigniter : the security and the magic of hook](https://reader034.vdocuments.site/reader034/viewer/2022052618/5489acecb47959ce0c8b5a03/html5/thumbnails/11.jpg)
The Hook ( 1 ) Fitur Hook memungkinkan kita
memanggil “script” pada saat sebelum sistem flow berjalan, sebelum action controller dipanggil, setelah action controller dipanggil, ataupun setelah sistem flow berjalan.
![Page 12: Codeigniter : the security and the magic of hook](https://reader034.vdocuments.site/reader034/viewer/2022052618/5489acecb47959ce0c8b5a03/html5/thumbnails/12.jpg)
The Hook ( 2 ) Enable It
![Page 13: Codeigniter : the security and the magic of hook](https://reader034.vdocuments.site/reader034/viewer/2022052618/5489acecb47959ce0c8b5a03/html5/thumbnails/13.jpg)
The Hook ~ The Example ( 1 )
![Page 14: Codeigniter : the security and the magic of hook](https://reader034.vdocuments.site/reader034/viewer/2022052618/5489acecb47959ce0c8b5a03/html5/thumbnails/14.jpg)
The Hook ~ The Example ( 2 ) Tambahkan pada hooks config
![Page 15: Codeigniter : the security and the magic of hook](https://reader034.vdocuments.site/reader034/viewer/2022052618/5489acecb47959ce0c8b5a03/html5/thumbnails/15.jpg)
The Hook ~ The Example ( 3 )
![Page 16: Codeigniter : the security and the magic of hook](https://reader034.vdocuments.site/reader034/viewer/2022052618/5489acecb47959ce0c8b5a03/html5/thumbnails/16.jpg)
Terima Kasih
![Page 17: Codeigniter : the security and the magic of hook](https://reader034.vdocuments.site/reader034/viewer/2022052618/5489acecb47959ce0c8b5a03/html5/thumbnails/17.jpg)
This presentation contained copyrighted material licensed under various creative commons licenses unless otherwise noted:
Photos http://images2.wikia.nocookie.net/__cb20070120193457/uncyclopedia/images/a/af/Class.jpg http://www.flagship-housing.co.uk/image/Help%20and%20support/help.jpg
References CodeIgniter User Guide http://samsonasik.wordpress.com