CodeIgniter Forums
403 files in controllers, libraries, models, views folders - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: 403 files in controllers, libraries, models, views folders (/showthread.php?tid=8928)



403 files in controllers, libraries, models, views folders - El Forum - 06-05-2008

[eluser]AtlantixMedia[/eluser]
Hello,

is it necessary to have 403 html files in those folders and any subfolders to prevent directory access? I have a custom setup where a 404 splash page is served when a page is not found which seems to be a lot better and more anonymous than a 403 error. which one is considered best practice?

thanks


403 files in controllers, libraries, models, views folders - El Forum - 06-05-2008

[eluser]xwero[/eluser]
I think it's more a precaution against open dirs than a necessity. If you keep the framework above the root the files have no purpose.