codeigniter : the security and the magic of hook

17
CodeIgniter The Security & The Magic of Hook Abdul Malik Ikhsan

Upload: abdul-malik-ikhsan

Post on 05-Dec-2014

4.969 views

Category:

Technology


0 download

DESCRIPTION

Codeigniter : the security and the magic of hook

TRANSCRIPT

Page 1: Codeigniter : the security and the magic of hook

CodeIgniter The Security & The Magic of Hook

Abdul Malik Ikhsan

Page 2: Codeigniter : the security and the magic of hook

Security Class

Page 3: Codeigniter : the security and the magic of hook

Security Class ~ CSRF Protection (1)

Activate It

Page 4: Codeigniter : the security and the magic of hook

Security Class ~ CSRF Protection (2)

Page 5: Codeigniter : the security and the magic of hook

Security Class ~ CSRF Protection (3)

Page 6: Codeigniter : the security and the magic of hook

Security Class ~ CSRF Protection (4)

First Request

Second Request

Page 7: Codeigniter : the security and the magic of hook

Security Class ~ XSS Filtering (1)

Activate It

Page 8: Codeigniter : the security and the magic of hook

Security Class ~ XSS Filtering (2)

Testing…

Page 9: Codeigniter : the security and the magic of hook

Security Class ~ XSS Filtering (3)

Dan Hasilnya…

Page 10: Codeigniter : the security and the magic of hook

Security Helper

xss_clean() sanitize_filename() do_hash() strip_image_tags() encode_php_tags()

Page 11: Codeigniter : the security and the magic of hook

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

The Hook ( 2 ) Enable It

Page 13: Codeigniter : the security and the magic of hook

The Hook ~ The Example ( 1 )

Page 14: Codeigniter : the security and the magic of hook

The Hook ~ The Example ( 2 ) Tambahkan pada hooks config

Page 15: Codeigniter : the security and the magic of hook

The Hook ~ The Example ( 3 )

Page 16: Codeigniter : the security and the magic of hook

Terima Kasih

Page 17: Codeigniter : the security and the magic of hook

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