i 有一个问题。
i want to disable the direct access to my included files. (example header.tpl.php, footer.tpl.php, confic.inc.php, db-connect.inc.php ect.)
but first let me explain what i wanna do i want to all allow the access for my included files (index.php) and disable the files with a 404 header for direct access.
现在,我发现了一些冷却器(404头盔,404只包括)
页: 1 网址是:
define( MY_APP ,true);
我的模板文件是:
if(!defined( MY_APP )) {
header( HTTP/1.1 404 Not Found );
include( ./../error/404.php );
die; }
你们看看看该法典有什么安全或其他问题?
best regards bernte