大雀软件园

首页 软件下载 安卓市场 苹果市场 电脑游戏 安卓游戏 文章资讯 驱动下载
技术开发 网页设计 图形图象 数据库 网络媒体 网络安全 站长CLUB 操作系统 媒体动画 安卓相关
当前位置: 首页 -> 网页设计 -> HTML/CSS -> 关于网页源代码屏蔽(3)

关于网页源代码屏蔽(3)

时间: 2021-07-31 作者:daque

结果咱们要做的处事,即是把每一页,大概你觉得要害的要害的页面举行加密,就ok啦。还好吗对网页的源代码举行加密就不必我多说了吧?网上四处都有,不妨用功具,也不妨本人写一个htm文献来变换。加密软硬件,我引荐“batch html encryptor”,去google找吧。再有变换加密网页的代码如次: 〈html〉〈head〉〈title〉网页加密解密〈/title〉 〈meta http-equiv=content-type content="text/html; charset=utf8"〉 〈meta content="mshtml 6.00.2600.0" name=generator〉〈!-- 地面软硬件处事室--〉〈link href="style.css" rel=stylesheet〉    〈meta content="microsoft frontpage 4.0" name=generator〉 〈/head〉 〈body bgcolor=#ffffff leftmargin=0 topmargin=0 onload=initstyleelements()〉 〈div style="left: 139px; width: 106px; position: absolute; top: 52px; height: 36px"〉 〈table cellspacing=0 cellpadding=0 width=760 align=center border=0〉〈!--dwlayouttable--〉  〈tbody〉  〈tr〉   〈td valign=top align=middle width=760 height=310〉    〈div align=center〉    〈h2〉    〈script language=javascript〉 〈!-- var i=0; var ie=(document.all)?1:0; var ns=(document.layers)?1:0; function initstyleelements() /* styles for buttons init */ { var c = document.pad; if (ie) { //c.text.style.backgroundcolor="#dddddd"; c.compileit.style.backgroundcolor="#c0c0a8"; c.compileit.style.cursor="hand"; c.select.style.backgroundcolor="#c0c0a8"; c.select.style.cursor="hand"; c.view.style.backgroundcolor="#c0c0a8"; c.view.style.cursor="hand"; c.retur.style.backgroundcolor="#c0c0a8"; c.retur.style.cursor="hand"; c.clear.style.backgroundcolor="#c0c0a8"; c.clear.style.cursor="hand"; } else return; } /* buttons enlightment of "compilation" panel */ function lighton(what) { if (ie) what.style.backgroundcolor = '#e0e0d0'; else return; } function focuson(what) { if (ie) what.style.backgroundcolor = '#ebebeb'; else return; } function lightout(what) { if (ie) what.style.backgroundcolor = '#c0c0a8'; else return; } function focusoff(what) { if (ie) what.style.backgroundcolor = '#dddddd'; else return; } /* buttons enlightment of "compilation" panel */ function generate() /* generation of "compilation" */ { code = document.pad.text.value; if (code) { document.pad.text.value='compiling...please wait!'; settimeout("compile()",1000); } else alert('first enter something to compile and then press compileit') } function compile() /* the "compilation" */ { document.pad.text.value=''; compilation=escape(code); document.pad.text.value="〈script〉\n〈!--\ndocument.write(unescape(\""+compilation+"\"));\n//--〉\n〈\/script〉"; i++; if (i=1) alert("page compiled 1 time!"); else alert("page compiled "+i+" times!"); } function selectcode() /* selecting "compilation" for copying */ { if(document.pad.text.value.length〉0) { document.pad.text.focus(); document.pad.text.select(); } else alert('nothing for be selected!') } function preview() /* preview for the "compilation" */ { if(document.pad.text.value.length〉0) { pr=window.open("","preview","scrollbars=1,menubar=1,status=1,width=700,height=320,left=50,top=110"); pr.document.write(document.pad.text.value); } else alert('nothing for be previewed!') } function uncompile() /* decompiling a "compilation" */ { if (document.pad.text.value.length〉0) { source=unescape(document.pad.text.value); document.pad.text.value=""+source+""; } else alert('you need compiled code to uncompile it!') } // --〉 〈/script〉    〈br〉〈b〉〈font color=#333333〉网页html源代码加密解密器〈/font〉〈/b〉〈/h2〉〈/div〉    〈table cellspacing=0 bordercolordark=#000000 cellpadding=10 width=750    align=center bordercolorlight=#ffffff border=2〉     〈tbody〉     〈tr〉      〈td〉       〈div align=center〉〈br〉将你的源代码贴到编纂地区即可〈br〉〈br〉       〈table cellspacing=0 cellpadding=0 width="100%" border=0〉        〈tbody〉        〈tr〉         〈td width="100%"〉〈!-- compilation panel --〉          〈form name=pad method=post align="center"〉          〈div align=center〉〈textarea style="width: 95%; background-color: #ebebeb" name=text rows=11 cols=58〉〈/textarea〉          〈br〉〈br〉〈br〉〈input onmouseover=lighton(this) onclick=generate() onmouseout=lightout(this) type=button value=加密 name=compileit〉 〈input onmouseover=lighton(this) onclick=selectcode() onmouseout=lightout(this) type=button value=全选 name=select〉  〈input onmouseover=lighton(this) onclick=preview() onmouseout=lightout(this) type=button value=预览 name=view〉  〈input onmouseover=lighton(this) onclick=uncompile() onmouseout=lightout(this) type=button value=解密 name=retur〉  〈input onmouseover=lighton(this) onmouseout=lightout(this) type=reset value=废除 name=clear〉           〈/div〉〈/form〉〈!-- compilation panel --〉〈/td〉〈/tr〉〈/tbody〉〈/table〉〈/div〉〈/td〉〈/tr〉〈/tbody〉〈/table〉    〈div align=center〉〈br〉〈/div〉    〈div align=center〉〈/div〉 〈/td〉〈/tr〉〈/tbody〉〈/table〉 〈/div〉 〈div〉〈/div〉〈/body〉〈/html〉   归纳一下……按我的思绪,樊篱网页源代码重要分为以次几个办法:   1.  做一个网页跳板,弹出要养护的告白条状页面,并将自己封闭,以制止揭发需养护网页的地方。   2.  因为上述前提樊篱了告白条内网页的源代码,以是不妨用这个网页动作欢送页。   3.  在欢送页中,运用javascript以超贯穿的情势来翻开无窗口边的新窗口表露网站实质。   4.  对每一个页面大概对要害的要害的页面举行源代码加密,为源代码加一把锁。(有些人说对源代码举行加密没有效,然而我感触要运用另类点的加密本领就不妨了,比方软硬件的加密本领就很普遍。然而用我本人写的htm文献加密的源代码,普遍软硬件是不许举行解密的。大师有爱好的话不妨试试。)   5.  结果不得不提的即是windows网页偶尔文献夹了,那内里会把源代码记录的。然而不必怕,介入一种代码,就不妨使windows不载入网页的源代码,径直欣赏。不妨去找找。   有些货色要提防的:   1.  在文中所说的机动封闭网页的语句:window.close()有一个弊端。即是会在封闭窗口之前咨询能否封闭窗口,即使采用否的话手段仍旧达不到。   2.  之上十足都只对ie欣赏器有功效,即使用其余欣赏器来欣赏,就有大概展示樊篱不可功的局面。   3.  对于网页源代码樊篱,从来此后是可望而不行及的。我不过把思绪写下来,简直实行,仍旧要靠大师本人接洽的啦。

热门阅览

最新排行

Copyright © 2019-2021 大雀软件园(www.daque.cn) All Rights Reserved.