国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網(wǎng)站 > WEB開發(fā) > 正文

關(guān)于網(wǎng)頁源代碼屏蔽(3)

2024-04-27 13:52:52
字體:
供稿:網(wǎng)友
  最后我們要做的工作,就是把每一頁,或者你認為重要的關(guān)鍵的頁面進行加密,就OK啦。怎樣對網(wǎng)頁的源代碼進行加密就不用我多說了吧?網(wǎng)上到處都有,可以用工具,也可以自己寫一個htm文件來轉(zhuǎn)換。加密軟件,我推薦“Batch HTML Encryptor”,去google找吧。還有轉(zhuǎn)換加密網(wǎng)頁的代碼如下:

〈HTML〉〈HEAD〉〈TITLE〉網(wǎng)頁加密解密〈/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〉〈!--document.write(unescape("""+compilation+"""));//--〉〈/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〉網(wǎng)頁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〉將你的源代碼貼到編輯區(qū)域即可〈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〉

  總結(jié)一下……按我的思路,屏蔽網(wǎng)頁源代碼主要分為以下幾個步驟:

  1.  做一個網(wǎng)頁跳板,彈出要保護的廣告條狀頁面,并將自身關(guān)閉,以避免泄露需保護網(wǎng)頁的地址。

  2.  由于上述條件屏蔽了廣告條內(nèi)網(wǎng)頁的源代碼,所以可以用這個網(wǎng)頁作為歡迎頁。

  3.  在歡迎頁中,利用javascript以超連接的形式來打開無窗口邊的新窗口顯示網(wǎng)站內(nèi)容。

  4.  對每一個頁面或者對重要的關(guān)鍵的頁面進行源代碼加密,為源代碼加一把鎖。(有些人說對源代碼進行加密沒有用,但是我覺得要使用另類點的加密方法就可以了,比如軟件的加密方法就很普通。但是用我自己寫的htm文件加密的源代碼,一般軟件是不能進行解密的。大家有興趣的話可以試試。)

  5.  最后不得不提的就是windows網(wǎng)頁臨時文件夾了,那里面會把源代碼紀錄的。但是不用怕,加入一種代碼,就可以使windows不下載網(wǎng)頁的源代碼,直接瀏覽。可以去找找。

  有些東西要注意的:

  1.  在文中所說的自動關(guān)閉網(wǎng)頁的語句:window.close()有一個弊病。就是會在關(guān)閉窗口之前詢問是否關(guān)閉窗口,如果選擇否的話目的還是達不到。

  2.  以上一切都只對IE瀏覽器有效用,如果用別的瀏覽器來瀏覽,就有可能出現(xiàn)屏蔽不成功的現(xiàn)象。

  3.  關(guān)于網(wǎng)頁源代碼屏蔽,一直以來是可望而不可及的。我只是把思路寫下來,具體實現(xiàn),還是要靠大家自己研究的啦。
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 廊坊市| 逊克县| 囊谦县| 富顺县| 巴马| 星座| 榆树市| 阿拉善右旗| 栖霞市| 定州市| 闻喜县| 太保市| 富民县| 台东市| 岳普湖县| 青浦区| 泽库县| 抚顺市| 宽城| 永平县| 五峰| 巴林右旗| 清河县| 修水县| 西乌珠穆沁旗| 武胜县| 静海县| 屏东县| 新和县| 兖州市| 万源市| 柳河县| 开平市| 安顺市| 宜君县| 赣榆县| 当涂县| 来安县| 磴口县| 嘉黎县| 城步|