Welcome Guest, Not a member yet? Register   Sign In
How to avoid running php files using htaccess?
#1

[eluser]borisoff[/eluser]
To do this I write in every php file(controllers, views, etc.)
Code:
if (!defined('BASEPATH')) exit('No direct script access allowed');
But sometimes I forget to write it. Is there a way to protect php files from executing using only htaccess file? I know that I can move my files in a different, not visible directory but this is not possible right now.


Messages In This Thread
How to avoid running php files using htaccess? - by El Forum - 06-08-2009, 01:43 PM
How to avoid running php files using htaccess? - by El Forum - 06-08-2009, 02:05 PM
How to avoid running php files using htaccess? - by El Forum - 06-08-2009, 03:48 PM
How to avoid running php files using htaccess? - by El Forum - 06-11-2009, 06:32 PM
How to avoid running php files using htaccess? - by El Forum - 06-18-2009, 12:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB