I am a CodeIgniter user and I am looking at Cohan. The first thing I noticed is that in the documentation, each fragment starts with:
<?php defined('SYSPATH') or die('No direct script access.');
Assuming I will use .htaccess to rewrite addresses, is this really necessary? Is an .htaccess alternative for purpura avoiding direct access? Is it just good practice to “protect in depth”?
source
share