请问如何隐藏页面的源代码?
我想隐藏页面源代码,应该怎样实现呢? 问题点数:0、回复次数:8Top
1 楼shenanigan(宝宝)回复于 2002-12-03 23:37:07 得分 0
屏蔽右键<body oncontexmenu = "return false">
网页不能另存为<noscript><iframe src=*.html></iframe></noscript>
这两个是一点方法,只能隐藏
要真想看源代码,还是一样可以看的~
你可以把你觉得一些重要的函数或其他,放到*.js文件里
这样可以提高安全性Top
2 楼abigfrog(千年精灵)(★JAVA★)回复于 2002-12-03 23:44:07 得分 0
有一个软件,可以把你鼠标经过之处或者选定的部分的源代码显示出来,呵呵
-----------------------------
千年精灵( Millennium Genius )
Top
3 楼zZing()回复于 2002-12-04 00:08:23 得分 0
隐藏根本没用Top
4 楼knightisso(藤井树)回复于 2002-12-04 09:48:49 得分 0
我记得可以把asp源代码全部变成乱码,但是执行没有问题。就是你不能看。说是要一个什么软件。。。有没有高手知道。
—————————————————————————————————
┏━★━━◆━━★━┓
♂欢|◢CSDN◣|使♂ ▲自由保存帖子,浏览,关注检测
┃迎|◥论坛助手◤|用┃ ▲完善的CSDN客户端工具
┗━☆━━◇━━━☆┛ ▲自动添加签名......
让你更快,更爽,更方便地上CSDN...
http://www.csdn.net/expert/topic/573/573604.xml
http://www.chinaok.net/csdn/csdn.zip
Top
5 楼gjd111686(数字金刚)回复于 2002-12-04 10:15:09 得分 0
不知你手头有没有[程序员大本营],ASP版的第二张碟,微软有一个ASPEdit2000的文本编辑器带有一个scrinc.exe的文件可以加密ASP,很好用的.Top
6 楼dgseamaple(笨牛(我很笨但是我很勤奋))回复于 2002-12-04 10:18:55 得分 0
楼上的兄台,可不可以发一个scrinc.exe给我???愿出100分,谢谢!Top
7 楼downkey(可飞)回复于 2002-12-04 10:44:10 得分 0
我有,你留下你的E_mailf或给我来信,chengduzhao@263.net,邮件主题注明关于"关于隐藏源代码"Top
8 楼wgrabob1(飞天)回复于 2002-12-04 11:36:00 得分 0
送你个加密器
你再改改,:)效果不错
<html>
<head>
<title>源代码解密</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function viewSource() {
document.getSource.view.value="Please wait!";
setTimeout("document.getSource.view.value='View Source!'",6000);
window.location.href= "view-source:" + document.getSource.url.value;
return false;
}
// End -->
</script>
</head>
<body bgcolor="#000000" text="#999999" link="#33FF33" vlink="#33FF33" alink="#33FF33">
<center>
<form name=getSource onSubmit="return viewSource();">
<font size=2> 输入网址按查看钮 </font>
<input type=text name=url value="http://">
<input type=submit name=view value="查看">
</form>
</center>
<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('请先把需待加密的代码copy到此框中')
}
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("代码已编译1次!");
else alert("代码已编译"+i+"次!");
}
function selectCode() /* Selecting "Compilation" for Copying */
{
if(document.pad.text.value.length>0)
{
document.pad.text.focus();
document.pad.text.select();
}
else alert('无任何内容被选中!')
}
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('无任何内容可供预览!')
}
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('请把需待还原的代码copy到此框中!')
}
// -->
</SCRIPT>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD width="100%">
<FORM method=post name=pad align="center">
<div align="center">
<TEXTAREA cols=58 name=text rows=20 style="BACKGROUND-COLOR: #ebebeb; WIDTH: 95%"></TEXTAREA>
<BR>
<INPUT name=compileIt onclick=generate() onmouseout=LightOut(this) onmouseover=LightOn(this) type=button value=加密>
<INPUT name=select onclick=selectCode() onmouseout=LightOut(this) onmouseover=LightOn(this) type=button value=选中>
<INPUT name=view onclick=preview() onmouseout=LightOut(this) onmouseover=LightOn(this) type=button value=预览>
<INPUT name=retur onclick=uncompile() onmouseout=LightOut(this) onmouseover=LightOn(this) type=button value=还原>
<INPUT name=clear onmouseout=LightOut(this) onmouseover=LightOn(this) type=reset value=清除>
</div>
</FORM></TD></TR></TBODY></TABLE>
</body>
</html>Top




