Then, we can use it to close the window. The code is as follows:
〈script〉
〈!--
();
--〉
〈/script〉
So, now we merge the two parts of the code. Now, the result is that a window without a menu bar is opened directly. Because the computer processes very quickly, if we write these two pieces of code together immediately, we can only see the newly created window. The code is as follows:
〈script〉
〈!--
("", "red", "resizable=yes,width=500,height=300");
();
--〉
〈/script〉
And the original window has been closed without us noticing it. In this way, let alone view the source code of the web page. Here, the web page with the above source code serves as a springboard. But here we need to pay attention to a few points. First, the web page used as a springboard should not be named. Change it to a new name, and then change the name of the default homepage to the changed name. In this way, the browser can automatically access the page after entering the network. And not let the other party know the name of the page. If you don't do this, it will cause the other party to guess the location of the page. For example: 172.0.0.0/. In this way, you can see the source code of the page by submitting: View-Source:Http://172.0.0.0/ in your browser.
After blocking the menu bar and toolbar, we thought, how good would it be if there was no window bar at the top? What we want to do below has the premise, which is after using the springboard page to open a window without a menu bar. What are we going to do? The window where we display the content of the website only displays the content (yes, isn’t the website just for others to browse? What do you want so many functions of browsers and windows to do...) As long as the content is, the rest will be removed. We can do it through a piece of Javascript. The following code is used to define code without any window characteristics:
〈script〉
function open1(url){
newwin=(url,'newwindow','fullscreen=1')
(800,600)
(/0-800,/0-600)
}
〈/script〉
Among them, function open1(url) defines how to write hyperlinks. Therefore, when we write the address of the link, we should write this way: javascript:open1(url). For example, if I want to open a Sina homepage without window features, I should write it in the hyperlink of the text or picture: javascript:open1('http:'). Of course, relative paths are also supported in brackets. The final format should be:
〈script〉
function open1(url){
newwin=(url,'newwindow','fullscreen=1')
(800,600)
(/0-800,/0-600)
}
〈/script〉
〈body oncontextmenu==false onselectstart="return false"〉
〈td width="100%"〉〈a href="javascript:open1(''),()"〉〈img border="0" src="pic/" style="position: absolute; left: 556; top: 142" width="169" height="57"〉〈/a〉〈/td〉
〈/body〉
In this way, we have reached the opening of the web page without windows. Moreover, in this web page, scroll bars will be automatically added, so that the following content will not be visible like before.
The last thing we have to do is to encrypt every page, or the pages you think are important and critical, and that's OK. I don’t need to say more about how to encrypt the source code of a web page? It is available everywhere on the Internet, you can use tools or write an htm file to convert it yourself. For encryption software, I recommend "Batch HTML Encryptor", go to Google to find it. There are also codes for converting encrypted web pages as follows:
〈HTML〈HEAD〈TITLE〉Web page encryption and decryption〈/TITLE〉
〈META http-equiv=Content-Type content="text/html; charset=gb2312"〉
〈META content="MSHTML 6.00.2600.0" name=GENERATOR〉〈!-- Dadi Software Studio--〈LINK
href="/" 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=()?1:0;
var ns=()?1:0;
function initStyleElements() /* Styles for Buttons Init */
{
var c = ;
if (ie)
{
//="#DDDDDD";
="#C0C0A8";
="hand";
="#C0C0A8";
="hand";
="#C0C0A8";
="hand";
="#C0C0A8";
="hand";
="#C0C0A8";
="hand";
}
else return;
}
/* Buttons Enlightment of "Compilation" panel */
function LightOn(what)
{
if (ie) = '#E0E0D0';
else return;
}
function FocusOn(what)
{
if (ie) = '#EBEBEB';
else return;
}
function LightOut(what)
{
if (ie) = '#C0C0A8';
else return;
}
function FocusOff(what)
{
if (ie) = '#DDDDDD';
else return;
}
/* Buttons Enlightment of "Compilation" panel */
function generate() /* Generation of "Compilation" */
{
code = ;
if (code)
{
='Compiling...Please wait!';
setTimeout("compile()",1000);
}
else alert('First enter something to compile and then press CompileIt')
}
function compile() /* The "Compilation" */
{
='';
compilation=escape(code);
="/〈script〉\n〈!--\(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(〉0)
{
();
();
}
else alert('Nothing for be selected!')
}
function preview() /* Preview for the "Compilation" */
{
if(〉0)
{
pr=("","Preview","scrollbars=1,menubar=1,status=1,width=700,
height=320,left=50,top=110");
();
}
else alert('Nothing for be previewed!')
}
function uncompile() /* Decompiling a "Compilation" */
{
if (〉0)
{
source=unescape();
=""+source+"";
}
else alert('You need compiled code to uncompile it!')
}
// --〉
〈/SCRIPT〉
〈BR〈B〉〈FONT color=#333333〉Web page HTML source code encryption and decryptor〈/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〉 Just paste your source code into the editing area〈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=encryption name=compileIt〉
〈INPUT onmouseover=LightOn(this) onclick=selectCode() onmouseout=LightOut(this) type=button value=select all name=select〉
〈INPUT onmouseover=LightOn(this) onclick=preview() onmouseout=LightOut(this) type=button value=preview name=view〉
〈INPUT onmouseover=LightOn(this) onclick=uncompile() onmouseout=LightOut(this) type=button value=Decryption name=retur〉
〈INPUT onmouseover=LightOn(this) onmouseout=LightOut(this) type=reset value=Clear 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〉
To summarize... According to my idea, blocking web page source code is mainly divided into the following steps:
1. Make a web page springboard, pop up the ad strip page to be protected and close itself to avoid leaking the address of the web page that needs to be protected.
2. Since the above conditions block the source code of the web page in the ad strip, this web page can be used as a welcome page.
3. In the welcome page, use Javascript to open a new window without windows to display the website content in a hyperconnected form.
4. Encrypt the source code for each page or important and critical pages and add a lock to the source code. (Some people say that encrypting the source code is useless, but I think it is enough to use alternative encryption methods. For example, the encryption method of the software is very ordinary. However, the source code encrypted with the htm file I wrote myself cannot be decrypted by general software. If you are interested, you can try it.)
5. The last thing I have to mention is the temporary folder of the Windows web page, where the source code will be recorded. But don’t be afraid, add a kind of code to make Windows not download the source code of the web page and browse directly. You can go and search.
Some things to pay attention to:
1. The statement mentioned in the article that automatically closes a web page: () has a disadvantage. It means that before closing the window, it will ask whether to close the window. If you choose No, the purpose will still not be achieved.
2. All of the above are only effective for IE browser. If you use other browsers to browse, there may be unsuccessful blocking.
3. Regarding web source code blocking, it has always been out of reach. I just wrote down my ideas, and the specific implementation depends on everyone's own research.