search
HomeBackend DevelopmentPHP TutorialThree recommended methods to enhance the security of DreamWeaver CMS_PHP Tutorial

Since I have been doing web development, the author has often been tasked with doing security upgrades for other people’s websites. Most of the tasks I have received are for websites built through DreamWeaver CMS. Due to being attacked Cause problems like this. The author below recommends several simple and effective security practices for websites built using DreamWeaver CMS. Your corrections are welcome.

1. Change the prefix wildcard character of the database table

The prefix wildcard mentioned here does not refer to the prefix of the database table name entered during installation, but refers to the "#@_" string in the system source code.

I once saw a lot of code for directly operating the database written in a lot of unknown files on a hacked website. Among them, the operations on the table all contained the "#@_" string. If We have modified the "#@_" string in the source code, so these files with unknown origins will not work.

2. Change the background management directory name

To invade a website, hackers usually use SQL injection to crack the website administrator account and password, then log in to the backend, upload Trojans, obtain webshells, and escalate privileges until they completely control the entire website. If we can modify the name of the administrator table and the name of the website's backend management directory, hackers will not be able to crack the website's administrator account. Even if they obtain the administrator account, they may not be able to log in and give up because they cannot know the website's backend management directory. .

When modifying the administrator table name and background management directory, try not to have the admin or manager keywords, which can greatly increase the difficulty for hackers to crack. It should be noted that after modifying the administrator table name in the database, the corresponding table name in the source code must be modified. There are a total of 27 modifications in Dreamweaver V5.7. You can search for "dede_admin" to replace them, so I won't point them out one by one.

3. Repair database initial connection configuration file

In the data/common.inc.php file of DreamWeaver, the database connection information is recorded, and this information is in clear text and is very unsafe. Here are two ways to make it relatively safer.

(1) Add multiple variables (dozens or even hundreds). Only six of these variables are really effective, and the others are used to confuse the hacker's judgment.

(2) Encrypt data, but this requires webmasters to have certain programming skills. No matter which method is used, corresponding modifications need to be made in the database initialization class, but the first method only needs to change a few variable names, which is relatively simple.

The above three methods can play a very important role in the security of Dreamweaver CMS system, but many webmaster friends have no idea how to improve website security. I hope this article can be helpful to the majority of webmaster friends in their dream weaving website security!

A few other points that need to be noted are:

1. After the installation is complete, delete the member, special, and install folders in the root directory
2. Set uploads, images, data, and templets to be readable, writable, and not executable
3. Set include, plus, and background files (default is dede) to be readable, executable, but not writable
4. Set data/common.inc.php to be read-only
5. Turn off background watermark
6. 404 page settings

Articles you may be interested in

  • DedeCMS (Dreamweaver) website server directory security setting experience sharing
  • How to enhance Linux and Unix servers System Security
  • PHP object-oriented introductory tutorial recommended
  • PHP determines the safest and most realistic solution for uploading file types
  • Upload FILETYPE NOT ALLOW error occurs when dedeCMS uploads images Solution
  • How to use constants defined by define in the program in smarty templates
  • How to remove ads on dedeCMS background login page
  • Javascript string encoding functions escape, encodeURI , encodeURIComponent comparison and analysis

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/764141.htmlTechArticleSince doing web development, the author has often been asked to do security upgrades for other people’s websites, and these Most of the work was done through websites built through DreamWeaver CMS. Due to attacks,...
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
织梦cms忘记密码怎么办织梦cms忘记密码怎么办Mar 08, 2023 am 09:39 AM

织梦cms忘记密码的解决办法:1、登录MySql,找到网站对应的数据库的名称,点击进入该数据库;2、找到dede_admin表,然后找到管理员相关信息行并选中;3、通过还原的方式将密码还原为初始值,将pwd的值修改为默认的“f297a57a5a743894a0e4”即可。

Win10麦克风加强拉不动怎么办Win10麦克风加强拉不动怎么办Jul 05, 2023 pm 06:13 PM

  Win10麦克风加强拉不动怎么办?很多小伙伴在使用电脑的时候经常会用到麦克风,而且其中一部分用户在准备加强麦克风的时候却频繁出现了拉不动的情况,那么我们在遇到这种情况的时候应该怎么办呢?下面就跟着小编一起来看看Win10麦克风加强拉不动解决方法吧。  Win10麦克风加强拉不动解决方法  1、可以重新更新一下驱动试一下。  2、WIN7以上的系统,右下角的小喇叭右键录音设备在录制里把现有麦克风调成默认设备。然后双击麦克风或点属性在级别里可以调麦克风的音量大小和麦克风加强(这个适当调节,调大有

织梦cms系统有收费的吗织梦cms系统有收费的吗Aug 11, 2023 pm 01:57 PM

织梦cms系统没有收费。织梦CMS是一款开源的内容管理系统,其核心代码是免费提供的,用户可以免费下载最新版本的织梦CMS,并且还可以获取相关的技术支持和文档。但在使用过程中,用户可能需要购买额外的功能模块或者主题模板,这些是收费的,购买这些收费的模块和模板,价格根据具体的功能和设计复杂度而定。

织梦cms安全性怎么样织梦cms安全性怎么样Jul 27, 2023 pm 05:32 PM

织梦cms安全性相对比较好,其原因有:1、漏洞修复速度快;2、CSRF(跨站点请求伪造)保护;3、XSS(跨站脚本攻击)保护;4、SQL注入保护;5、代码审计。

织梦cms是什么语言写的织梦cms是什么语言写的Feb 21, 2023 am 09:45 AM

织梦cms是用PHP语言写的。织梦CMS(DedeCMS)是一个PHP开源网站管理系统,作用是构建中小型网站;它采用PHP+MySQL技术开发,可同时使用于windows、linux、unix平台。

织梦cms连接数据库失败怎么办织梦cms连接数据库失败怎么办Jul 20, 2023 pm 02:22 PM

织梦cms连接数据库失败解决方法:1、检查数据库配置,确保在织梦CMS的根目录下的 /data/config.php 文件中正确设置了数据库的相关信息;2、测试数据库连接,通过创建一个简单的PHP脚本来测试数据库连接是否成功;3、检查数据库服务器状态,在织梦CMS的根目录下的 /data/config.php 文件中更换数据库服务器地址;4、检查网络连接。

织梦cms备案号位置怎么更改织梦cms备案号位置怎么更改Feb 27, 2023 am 09:46 AM

织梦cms备案号位置的更改方法:1、进入织梦后台,然后找到“模板”分类;2、点击“默认模板管理”;3、找到“footer.htm”,并点击修改;4、找到“{dede:global.cfg_powerby/}”,然后填写备案号即可。

织梦cms主要是做什么的织梦cms主要是做什么的Aug 08, 2023 pm 03:24 PM

织梦cms主要是做网站的建设、管理和维护。1、网站建设,织梦CMS提供了丰富的模板和插件资源,用户可以根据自己的需求选择合适的模板和插件,快速搭建自己的网站;2、网站管理,织梦CMS提供了简单易用的管理后台界面,用户可以通过浏览器登录后台进行网站管理;3、网站维护,织梦CMS提供了自动备份和数据库管理等功能,保证网站的安全和稳定运行。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor