System->System Basic Parameters->Site Settings->Template Default Style->default"; then change "default" to a new name; then enter "FTP" and Just change the "default" name to be consistent."/> System->System Basic Parameters->Site Settings->Template Default Style->default"; then change "default" to a new name; then enter "FTP" and Just change the "default" name to be consistent.">
search
HomeCMS TutorialDEDECMSHow to prevent theft in DedeCms templates

How to prevent theft in DedeCms templates

How to prevent theft of DedeCms template?

For now, DedeCms is the most popular content management system among webmasters. It is used by many people and studied by many people. So how can website templates be anti-theft and safe? Sexual issues need to be taken seriously.

Recommended study: 梦Weavercms

We spent money to make beautiful DreamWeaver templates, but if they are stolen by others, you have no choice but to admit defeat. This kind of thing happens all the time on the Internet, so we need to take precautions before it happens. We need to prevent template theft before the website goes online.

Note: The anti-theft security settings of this template are for the dedecms program itself and do not involve other security settings.

Qingyuan will tell you about the common methods below. These methods can play a role in preventing template theft for people with limited skills. For real experts, most websites cannot imitate them. , everyone needs to know this.

Method 1: Modify the system default template folder name, the simplest and most practical

Steps: Backstage->System->System Basic Parameters-> ;Site Settings->Template Default Style->default

Change default to your own name, then enter FTP, open the templates folder, and change the default name to be the same so that others will not know The name of your website template folder.

Method 2: Change the name of the system default .htm template file.

Everyone knows the names of the default template files, such as index.htm (homepage), list_article.htm (article list page), article_article.htm (article content page), etc., just pick them out.

So, we change these default names, then go to the column management office and re-specify the template file to increase the security of the template.

1. Get to know the name and function of the default template file

Homepage template:/templets/default/index.html

Article channel homepage:/templets/default/index_article .htm

Article list page:/templets/default/list_article.htm

Article content page:/templets/default/article_article.htm

Gallery channel homepage:/ templets/default/index_image.htm

Atlas list page:/templets/default/list_image.htm

…..

Specific template name introduction: Dreamweaver template dedecms File name introduction and description http://www.mubanzhijia.com/jishujiaocheng/147.html

2. Different columns specify different templates

Steps: Core->Common operations- >Website column management->Click the "Change" link of the corresponding column on the right->Advanced options->Manually specify the template

Detailed operation method: How to customize the Dreamweaver column to use different template files http ://www.mubanzhijia.com/jishujiaocheng/178.html

3. Complete the above 2 steps and just generate and update the column.

Method 3: This method is a combination of the previous two, and it is simple to say.

1. Do not modify the name of the default template style default in the background, in the templates folder Create a new folder inside and name it yourself.

2. Upload the template files used to this folder;

There is one thing to note here, because the default template style location has not been modified in the background, including homepage, list, and content. The common header (head.html) and footer (footer.htm) referenced by the template file need to be modified, otherwise the header and footer will not be displayed. The method is as follows: (PS: T Good PHP Q buckle :276167802, verification: csl)

{dede:include filename="123456/head.htm"/}

If the name of the template folder you created is 123456, the calling code will Write 123456.

The search page and tag page are placed in the default default. If they are placed in a folder created by yourself, the system will not recognize them.

3. Follow the steps of Method 2 to manually specify the templates for each column.

Many novices do not pay attention to this when using dedecms to build a website. They only find out when the template is stolen, which is very annoying. Therefore, we must make these anti-theft preparations in advance to improve the security of the template. .

The above is the detailed content of How to prevent theft in DedeCms templates. For more information, please follow other related articles on the PHP Chinese website!

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

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.