When using the weaving dream to build a station, the copyright information called at the bottom of the site will eventually be more than a power by dedecms link, this link is the default in the dream system of Weaving dream website of the outside chain. In this paper, we introduce two methods to remove this outer chain.
1. Why to remove power by dedecms
Before explaining how to remove power by dedecms, you need to understand why you want to remove the chain. Novice webmaster may feel the matter, is not to weave dream website to do a chain, as a good thing, there is no need to bother to get rid of this link.
In fact, your site is best to remove this link, there are two reasons.
(1) The official website at the bottom of the copyright information, should be displayed their own information, copyright information with someone else's information, it will appear that their website is not professional. (Simply put, face problem)
(2) Weaving dream as the highest rate of domestic use of the system, the disadvantage is often hacked, before hackers attack, the first to determine what the site is the system, if the copyright information on the display power by DEDECMS, hackers will be a glance to determine the dream is woven. (Simply put, it's a security issue)
Therefore, it is necessary to remove power by DEDECMS, it is recommended to remove the link after the website is built.
2, the Dream Power by Dedecms is how to call out
(1) The first thing to understand is that power by DEDECMS is behind the copyright information, so let's take a look at the method of invoking the copyright information.
Dream Backstage-System-system Setup-system basic Parameters-Site Settings-site copyright information, in which to add copyright information, such as:
(2) using the {dede:global.cfg_powerby/} tag to invoke copyright information in the footer.htm template. Such as:
(3) The Power by Dedecms Link is the code that comes with the {dede:global.cfg_powerby/} tag, so we have two ideas for removing this link:
Method One: We do not have {dede:global.cfg_powerby/} tag, with other weaving dream tag call copyright can not, hehe.
Method Two: Since the {dede:global.cfg_powerby/} has its own power by dedecms link, then we will go directly to the system file, find the corresponding code, this comes with the power by Dedecms Delete, it is possible.
3. How to remove power by dedecms
Method One: Without the {dede:global.cfg_powerby/} tag, create a new dream label to invoke the copyright.
(1) Adding a new variable
Dream Backstage--system--system configuration--system basic parameters--Add new variables, such as:
(2) In, fill in the following:
Variable name: Cfg_banquan
Variable value: (Can be empty)
Variable type: Multiple lines of text
Parameter description: My Copyright information
Owning group: Site Settings
Note: The above values can actually be customized to their favorite content, but if the novice is unfamiliar with the method of adding new variables to the dream, follow the above method to define it.
(3) After the completion of the new variable added, in the system basic parameters interface under the newly added "My Copyright information", you can fill in the copyright information. Such as:
(4) in the place where the template needs to display the copyright information, call the new tag {dede:global.cfg_banquan/}, and then find the copyright information that the new tag is calling, without power by DEDECMS.
Note: This method does not involve changing the system files, the code changes involved are very few, mainly in the background of the operation of the dream, so more suitable for beginners.
-
Method Two: Since {dede:global.cfg_powerby/} has its own power by dedecms link, Then we go directly to the system file, find the corresponding code, this comes with the power by dedecms Delete, it is possible.
(1) Open file: Web site root/include/dedesql.class.php
(2) After opening dedesql.class.php, typically 588-592 lines have the following code:
$arrs 1 = array (0x63,0x66,0x67,0x5f,0x70,0x6f,0x77,0x65,0x72,0x62,0x79);
$arrs 2 = Array (0x20,0x3c,0x61,0x20,0x68,0x72,0x65,0x66,0x3d,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,
0x77, 0x77,0x77,0x2e,0x64,0x65,0x64,0x65,0x63,0x6d,0x73,0x2e,0x63,0x6f,0x6d,0x20,0x74,0x61,0x72,
0x67,0x65, 0x74,0x3d,0x27,0x5f,0x62,0x6c,0x61,0x6e,0x6b,0x27,0x3e,0x50,0x6f,0x77,0x65,0x72,0x20,
0x62,0x79,0x20, 0X44,0X65,0X64,0X65,0X43,0X6D,0X73,0X3C,0X2F,0X61,0X3E);
Change this code to the following code:
$arrs 1 = array ();
$arrs 2 = array ();
After the website, look at the bottom of the copyright power by dedecms is removed.
-
Solemnly declare: There are similar methods on the web, not change these two variables, but directly comment out the two variables, never comment out the variable, because that will form a variable overwrite the vulnerability, Hackers will use the attack, if your site exists such a loophole, in the use of dream stubborn Trojan Kill tool scan, you can find this vulnerability, the vulnerability prompt such as:
Note: This method does not need to add a new variable, but instead directly changes the system files, if you want to change the system files, please back up the appropriate files before you make the change operation.
This chapter is excerpted from Baidu