| 域名空间 下载中心 社区论坛 信息公告 my小屋 |
![]() |
联系我们 设为首页 加入收藏 |
|
首页 | 新闻资讯 | 编程开发 | 网页设计 | 图形图象 | 网络媒体 | 网站模板 | 数 据 库 | 投稿 论坛 | 操作系统 | 系统优化 | 网络安全 | 黑客技术 | 硬件学堂 | 硬件报价 | 服 务 器 | 地图 专题 | 应用软件 | 聊天通讯 | q q 专栏 | 建站经验 | 在线工具 | 站长club | 注 册 表 | 旧版 社会 | 游戏娱乐 | 设计欣赏 | 疑难解答 | 社区论坛 | 韩国素材 | 素材图库 | 广告服务 | 服务 |
| 新版上线![旧版] | |||||
注:打开慢时请稍等
关于网页源代码屏蔽(3)http://www.iyit.net 日期:2006-5-27 9:17:09 来源:转载 点击: |
〈html〉〈head〉〈title〉网页加密解密〈/title〉 〈meta http-equiv=content-type content="text/html; charset=gb2312"〉 〈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. 关于网页源代码屏蔽,一直以来是可望而不可及的。我只是把思路写下来,具体实现,还是要靠大家自己研究的啦。 编辑:黑鹰 [发送给好友] [打印本页] [关闭窗口] [返回顶部] 上一篇:html组件之:html行为和htc行为 下一篇:关于网页源代码屏蔽(2) 转载请注明来源:www.iyit.net 特别声明: 本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。 |
| 相关文章 | ||||
| 友情链接 | ||||||
| 设置首 页 - 版权声明 - 广告服务 - 关于我们 - 联系我们 - 友情连接 |
| |||||||