修改templets目录名,可以提高织梦模板安全、织梦系统安全、织梦网站安全等等。好了,废话少说,直接上教程。
一、打开 /include/common.inc.php 搜索
/templets
改为
/templetg
有2处,就随便改改,把 templets 目录改为 templetg 目录,当然了,你可以随意改名。
二、打开 /include/dedetag.class.php 搜索
/templets
改为
/templetg
有4处,就随便改改,把 templets 目录改为 templetg 目录,当然了,你可以随意改名。
三、看到程序目录,直接改templets目录名,改为templetg就完成了,是不是超级简单呀。
完成。
+62 62 个回复 | 最后更新于 2025-01-16
登录后方可回帖