Welcome Guest, Not a member yet? Register   Sign In
Is it best practice to restrict direct access to view files?
#1

[eluser]rei[/eluser]
Is it best practice to restrict direct access to view files? Or I just need to restrict direct access to my controllers and models? Please give me suggestions.thanks Smile
#2

[eluser]Aken[/eluser]
If your views are in the application folder, they are already restricted.
#3

[eluser]Daniel Moore[/eluser]
Yes, it is best practice (just to confirm that part.) But as Aken said, if the views are in the application folder, they are already restricted.

I generally set up my application to where everything except index.php and my assets folder (images and css) are outside of the web root in order to make securing it all a bit easier.
#4

[eluser]CroNiX[/eluser]
[quote author="Aken" date="1344404932"]If your views are in the application folder, they are already restricted.[/quote]Assuming you are on an Apache server.
#5

[eluser]carllawl[/eluser]
Yeah they should already be restricted by default! :gulp:
#6

[eluser]rei[/eluser]
Thank you very much for all ur help guys! Smile So it means I dont need to restrict it manually because it is safe when it is in the applications folder Smile




Theme © iAndrew 2016 - Forum software by © MyBB