Posted By

AzizLight on 12/18/09


Tagged

security codeigniter


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

dantreacy
jatap
murrake


Restrict direct access to a file in a CodeIgniter


 / Published in: PHP
 

Put this at the top of your CodeIgniter models, controllers, libraries and helpers to restrict direct access to them.

  1. if (!defined('BASEPATH')) exit('No direct script access allowed');

Report this snippet  

You need to login to post a comment.