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.">
Home >CMS Tutorial >DEDECMS >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!