当前位置:网站首页>织梦DEDECMS安全设置指南
织梦DEDECMS安全设置指南
2022-04-23 16:41:00 【花少尊者】
很多安装了织梦的朋友,对织梦的安全都很烦恼,经常遭遇挂马,被挂暗链等事情,织梦猫也遇到过,通过百度搜索,总结了一些提升织梦安全性的办法,通过以下设置可以显著的提高织梦的安全性。
推荐安装织梦安全助手
一、基础篇(60分)
只要完成基础篇的设置,那么恭喜你,你的织梦安全已经及格了,相反,如果你没有按照基础篇的做,那么你的网站岌岌可危。
1 删除不必要的目录
安装好织梦后,需要立即删除install目录,如果不需要使用会员、专题(99%的用户都用不到),可以直接删除member、special目录。
2 删除不必要的文件
plus文件建议只保留如下文件:ad_js.php,count.php,list.php,search.php,view.php,其余的删除。
plus文件夹中的文件功能如下表,如果没用到可以删除。
文件名 |
文件说明 |
建议 |
guestbook文件夹 |
留言板 |
删除 |
img文件夹 |
图片 |
删除 |
task文件夹 |
计划任务 |
删除 |
ad_js.php |
调用广告,如果你的广告不是通过后台“广告管理”设置的,可以删除该文件 |
保留 |
advancedsearch.php、heightsearch.php |
高级搜索,一般只用到search.php |
删除 |
arcmulti.php |
异步方式调用指定的tag列表,用不到,删除吧 |
删除 |
bookfeedback.php、bookfeedback_js.php |
图书评论和评论调用文件,存在注入漏洞,不安全 |
删除 |
car.php、posttocar.php、carbuyaction.php |
购物车 |
删除 |
comments_frame.php |
调用评论,存在安全漏洞(现在一般都用第三方评论,不再用织梦自带的评论) |
删除 |
count.php |
统计文章阅读次数 |
保留 |
digg_ajax.php、digg_frame.php |
文章的顶踩功能 |
删除 |
disdls.php、download.php |
下载次数统计、下载功能 |
删除 |
diy.php |
自定义表单 |
保留 |
erraddsave.php |
文章纠错 |
删除 |
feedback.php、feedback_ajax.php、feedback_js.php |
评论相关功能 |
删除 |
flink.php、flink_add.php |
友情链接、友情链接添加(建议删除,否则容易暴露模板路径) |
删除 |
freelist.php |
自由列表 |
删除 |
guestbook.php |
留言 |
删除 |
list.php |
动态浏览栏目页 |
保留 |
mytag_js.php |
自定义标签js调用方式(如果没用到后台的自定义宏标记,请删除) |
删除 |
qrcode.php |
生成二维码 |
删除 |
recommend.php |
信息推荐 |
删除 |
rss.php |
RSS列表页 |
删除 |
search.php |
搜索 |
保留 |
showphoto.php |
显示大图片(图集模型会用到) |
删除 |
stow.php |
收藏文章 |
删除 |
view.php |
动态浏览文章 |
保留 |
vote.php |
投票 |
删除 |
3 修改默认后台文件夹名称
默认的后台通过域名/dede访问,请修改为其他名称,越不容易被猜出来越好,可以使用英文+数字等形式。修改方式为直接重命名dede文件夹的名称即可。
4 后台新建新的管理员账户,删除默认的admin用户
4.1 新建管理员账户
点击系统->系统用户管理->增加管理员,填写登录账户及密码等信息,用户组选择‘超级管理员’
4.2 删除默认的admin用户
点击系统->SQL命令行工具,运行SQL命令:delete from dede_admin where id = 1;
5 迁移data目录到web目录外
data目录存在比较严重的安全隐患,很有必要将data目录移动到站点目录以外。具体迁移办法可以查看此篇文章:域名。com/study/78.html
实在没有条件迁移到站外的同学,也请一定要将data目录改一个名字。
版权声明
本文为[花少尊者]所创,转载请带上原文链接,感谢
https://www.seoxiehui.cn/article-342939-1.html
边栏推荐
- Report FCRA test question set and answers (11 wrong questions)
- Sail soft segmentation solution: take only one character (required field) of a string
- Solution of garbled code on idea console
- Qipengyuan horizon credible meta universe social system meets diversified consumption and social needs
- Modify the test case name generated by DDT
- 1959年高考数学真题
- Redis "8" implements distributed current limiting and delay queues
- Use case execution of robot framework
- 英语 | Day15、16 x 句句真研每日一句(从句断开、修饰)
- MySql主从复制
猜你喜欢

Kunteng full duplex digital wireless transceiver chip kt1605 / kt1606 / kt1607 / kt1608 is suitable for interphone scheme

How magical is the unsafe class used by all major frameworks?

Hyperbdr cloud disaster recovery v3 Release of version 3.0 | upgrade of disaster recovery function and optimization of resource group management function

Sail soft calls the method of dynamic parameter transfer and sets parameters in the title

【PIMF】OpenHarmony啃论文俱乐部—在ACM Survey闲逛是什么体验

各大框架都在使用的Unsafe类,到底有多神奇?

Force buckle-746 Climb stairs with minimum cost

Set the color change of interlaced lines in cells in the sail software and the font becomes larger and red when the number is greater than 100

Use if else to judge in sail software - use the title condition to judge

On the security of key passing and digital signature
随机推荐
Introduction notes to PHP zero Foundation (13): array related functions
Download and install mongodb
Disk management and file system
VMware Workstation cannot connect to the virtual machine. The system cannot find the specified file
批量制造测试数据的思路,附源码
欣旺达:HEV和BEV超快充拳头产品大规模出货
loggie 源码分析 source file 模块主干分析
5分钟NLP:Text-To-Text Transfer Transformer (T5)统一的文本到文本任务模型
RAID磁盘阵列与RAID5的创建
Hyperbdr cloud disaster recovery v3 Release of version 3.0 | upgrade of disaster recovery function and optimization of resource group management function
Take according to the actual situation, classify and summarize once every three levels, and see the figure to know the demand
Creation of RAID disk array and RAID5
Gartner 發布新興技術研究:深入洞悉元宇宙
Execution plan calculation for different time types
PyTorch:train模式与eval模式的那些坑
∑GL-透视投影矩阵的推导
ESXi封装网卡驱动
Use case labeling mechanism of robot framework
MySQL personal learning summary
Project framework of robot framework