Welcome Guest, Not a member yet? Register   Sign In
Prevent direct access to views
#2

[eluser]Christophe28[/eluser]
I use nGinx so I'm not familiar with Apache, but if you want users to not be able to access views, controllers, models, or whatever there is in your public folder, just move it out of the public folder except the index.php

So the server path to your system folder will be something like this:
System: /var/www/site.com/system/
Public: /var/www/site.com/public/

Then in your index.php you have to change the path to your system and application folder like this:

Code:
$system_folder = "../system";
$application_folder = "../application";

My application folder is not in my system folder, otherwise it will be something like this:

Code:
$system_folder = "../system";
$application_folder = "../system/application";

Best,
Christophe


Messages In This Thread
Prevent direct access to views - by El Forum - 11-03-2010, 05:31 AM
Prevent direct access to views - by El Forum - 11-03-2010, 05:54 AM
Prevent direct access to views - by El Forum - 11-03-2010, 05:56 AM
Prevent direct access to views - by El Forum - 11-03-2010, 06:26 AM
Prevent direct access to views - by El Forum - 11-03-2010, 06:29 AM
Prevent direct access to views - by El Forum - 11-03-2010, 06:42 AM
Prevent direct access to views - by El Forum - 11-03-2010, 07:24 AM
Prevent direct access to views - by El Forum - 11-03-2010, 08:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB