当前位置: 首页 > 工具软件 > N简单CMS > 使用案例 >

P****cms简单去版权,不逆向dll,只是简单的隐藏掉而已

束俊材
2023-12-01

留给自己看的,备忘用,逆向自己水平还有待提高,继续学习

头部隐藏方法:

修改web_top.ascx

<head>
<title><%=PaTitle%><%=(!string.IsNullOrEmpty(PaTitle) && !string.IsNullOrEmpty(PaName))?"-":""%><%=PaName%><%=TC%></title><%=string.IsNullOrEmpty(PaKeyWords)?"":"\r\n<meta name=\"keywords\" content=\""+Server.HtmlEncode(PaKeyWords)+"\" />"%><%=string.IsNullOrEmpty(PaDescription)?"":"\r\n<meta name=\"description\" content=\""+Server.HtmlEncode(PaDescription)+"\" />"%>
<meta name="Author" content="PageAdmin CMS" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link href="<%=CssPath%>" type="text/css" rel="stylesheet" />
<script src="/e/js/jquery.min.js" type="text/javascript"></script>
<script src="/e/js/comm.js" type="text/javascript"></script><%if(Is_Member==1){%><link href="/e/member/member.css" type="text/css" rel="stylesheet" /><script src="/e/js/member.js" type="text/javascript"></script><%}%>
<%=Zdy_Head%>
<div> <script language="javascript">
        var strValue = "";
        var strTitle = document.title;
        document.title = strTitle.replace("-Powered by PageAdmin CMS", strValue);</script>
</div>
</head>

在标题头层最后加js替换掉了版权后缀,缺点搜索隐藏收录还是有版权后缀

隐藏底部版权方法:

修改web_bottom.ascx

<%@ Control language="c#" Inherits="PageAdmin.web_bottom"%>
<script>
$(document).ready(function () {
$("[href='http://www.pageadmin.net']").parent().hide();
})
</script>

在页面加载完成后隐藏对应版权的父对象以达到隐藏底部版权

 类似资料: