By davidwalsh
via php.dzone.com
Published: Jan 30 2008 / 19:16
Even if my scripts are secure (meaning I use proper validation to make sure they've been called correctly), a user/hacker has no business calling an include file. Using .htaccess, we can prevent any attempt by a user to reach an include file.
Comments
jawngee replied ago:
Better yet, put your include files outside the public directory.
samus replied ago:
Definitely. .htaccess files are read and parsed for every request. Who needs that unnecessary overhead?
Voters For This Link (8)
Voters Against This Link (3)