您的位置:首页 > CMS系统 > > 正文

dedecms织梦系统(织梦CMS去除powered by dedecms网站版权信息的方法)

更多 时间:2021-09-30 00:37:57 类别:CMS系统 浏览量:1357

dedecms织梦系统

织梦CMS去除powered by dedecms网站版权信息的方法

织梦dedecms调用网站版权信息是会出现powered by dedecms链接到www.dedecms.com这个网址,站在优化角度上来说,这种单向链出链接对我们来说多少有些不利,这里也是用织梦建站我们手动修改的一个地方,下面说说教程:

dedecms织梦系统(织梦CMS去除powered by dedecms网站版权信息的方法)

去掉powered by dedecms网站版权信息教程:

找到include/dedesql.class.php文件,用Notepad++或者DW(Dreamweaver)打开文件。

Ctrl+f查找$arrs1 = array应该588行左右,将下面内容注释掉或者删掉即可:

  1. $arrs1 = array(0x63,0x66,0x67,0x5f,0x70,0x6f,0x77,0x65,0x72,0x62,0x79); 
  2.  
  3. $arrs2 = array(0x20,0x3c,0x61,0x20,0x68,0x72,0x65,0x66,0x3d,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f, 
  4.  
  5. 0x77,0x77,0x77,0x2e,0x64,0x65,0x64,0x65,0x63,0x6d,0x73,0x2e,0x63,0x6f,0x6d,0x20,0x74,0x61,0x72, 
  6.  
  7. 0x67,0x65,0x74,0x3d,0x27,0x5f,0x62,0x6c,0x61,0x6e,0x6b,0x27,0x3e,0x50,0x6f,0x77,0x65,0x72,0x20, 
  8.  
  9. 0x62,0x79,0x20,0x44,0x65,0x64,0x65,0x43,0x6d,0x73,0x3c,0x2f,0x61,0x3e); 

注释用法:

  1. //$arrs1 = array(0x63,0x66,0x67,0x5f,0x70,0x6f,0x77,0x65,0x72,0x62,0x79); 
  2.  
  3. //$arrs2 = array(0x20,0x3c,0x61,0x20,0x68,0x72,0x65,0x66,0x3d,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f, 
  4.  
  5. //0x77,0x77,0x77,0x2e,0x64,0x65,0x64,0x65,0x63,0x6d,0x73,0x2e,0x63,0x6f,0x6d,0x20,0x74,0x61,0x72, 
  6.  
  7. //0x67,0x65,0x74,0x3d,0x27,0x5f,0x62,0x6c,0x61,0x6e,0x6b,0x27,0x3e,0x50,0x6f,0x77,0x65,0x72,0x20, 
  8.  
  9. //0x62,0x79,0x20,0x44,0x65,0x64,0x65,0x43,0x6d,0x73,0x3c,0x2f,0x61,0x3e); 

然后覆盖原来文件即可,这样dedecms程序建站调用网站版权信息的时候就不会出现powered by dedecms和链接了。

您可能感兴趣