加密对网页代码进行加密(Encryption of web code)

网页加密  时间:2021-02-15  阅读:()

对网页代码进行加密Encryption of web code

"Save pages as code" is forbidden

Nowadays, the plagiarism on the Internet is becoming more andmore serious, and his webpage works are often borrowed byothers". In fact, we do not have this trouble, as long as the"add some code or use a special encryption tool on the web pagesource code, images, text encryption, so that others can notmove your web page!

Clever code

Adding a few lines of simple code to the HTML page preventsothers from using the right mouse button and"save as" command.First, shielding the right mouse button

Modify the page label to the following code:

"Body only nselectstart=ncontextmenu=self.event.returnValue=false only" return false"

.

Now click the right mouse button and there won't be anyreaction.

Two, prohibit "save as" command

Add the following code between<body >. . . </body> tag to makethe "save as" command can not be executed smoothly.

< noscr > Pt

< iframe, scr=, *.htm > < /i frame >

< /noscr > Pt

When you add the above code, when the"save as"command is issued,the dialog box will appear when the page is saved.

Using Html Guard

The above method can only protect the security of web pages toa certain extent. If you want to completely prevent others fromcopying, you can use the two methods of code and softwaresimultaneously. The following introduces the use of Html Guardto encrypt the web page.

Html Guard file

Latest edition: 2.3

Software size: 1054KB

Software type: shareware

Applicable system: Win9X/Me/2000/NT/XP

Download address: http://www. skycn.com/soft/6588.htmlStart the software after the installation is complete. Itsoperation interface is mainly composed of five function tags

and settings area (Figure 1) .

First, select the web page file

Click the "Input" tab in the main interface. The selection of"Protect all files a directory in"will encrypt the entire pagefile in the folder. If the files in the sub folder need to beencrypted, the "Include sub directories" item should beselected. If you want to encrypt a single page, you shouldchoose "Protect following HTML files" item, and use the "Add"button to add.

Two, set the output

Use the "Browse" button after the "Output" tag "Copy tofollowing directory" to set the location of encrypted files.Usually we have to choose the "Copy Linked Files" item, so thatwe can copy the linked files of the web page to the outputdirectory. The term"Overwrite existing files" means that theencrypted file overwrites the source file. The author suggestsnot to use this item.

If you don't want to see the output, you can use the "Uploadto server via FTP" item to upload the encrypted file to theserver directly. Click the "FTP-Settings" button, set up theserver address, user name, user password and so on in the pop-updialog box.

Check "Create backup copies of unmodified files beforeoverwriting HTML pages the" under "Backup", which means tocreate a backup before encrypting information into the web page.

In the original folder "Place in the should create a backuporiginal directory".

Three, encryption source code

In the "Source code" page (Figure 2) , there are three ways toencrypt the source code.

1.Encode source code (compiled source code) . When you use thisitem, when someone opens the page with a web editor, it willdisplay garbled code. Because the compiler is based on JavascrPt technology,

So the compiled page must be run in support of Javascr Pt morethan 1 of the browser. If you are worried that people won' t seeyou", then the" Include <noscr Pt > section "is selected, andunder it, the column added that. For example: to view the page,you must have Javascr support Pt more than 1 of the browser.

2.Squeeze source code (compressed source code) . The mainpurpose of this is to remove the empty lines in code and makethe code more compact. In addition to making it difficult forthe pirate to read the source code, it can also reduce the sizeof the page file and effectively reduce the call in time.

3. Insert blank lines (insert blank lines) . The role ofinserting empty lines is also to make it difficult for peopleto find source code. Check the "At the beginning" ("front end")or"At the end (at the end") to determine the location of addingempty lines, and then adjust the value of "Number of lines" todetermine the number of inserted empty lines. In addition, you

can also use the "Insert the following text the top at" itemin the upper end of the web code to add such as "source codenot available (the web code is not available)"and other warninginformation. It is important to note that inserting ablank lineat each time will increase the size of the page file by twobytes.

Four, protect images and text

"Images/Texts options" tab in the following functions: "rightclick menu to help you lock" Lock the menu on the right mousebutton";"Block text selection"no text is selected (the entryinto force of the function can only be above IE4.0 browser) ;"Do not display links in status bar "display links in in thestatus bar;" Deactivate browser`s print function "from thebrowser print function;" Disable Clipboard "from" Disableimage clipboard function; caching in browser banned browserimage cache.

Five, check the results

Click on the "Protect files" button on the right of theinterface to complete the encryption of the web page file (ifyou pop up the warning window and click the "Continue" buttonto continue the work) . Then click the page you want to see inthe "Result" tab, and select "Load in browser" in the expansionitem to see the encrypted effect. Of course, you can also usethe"Path"and"Show source code" commands in the expansion itemto open the encrypted files stored in the folder and view theencrypted source code (Figure 3) .

Now I believe you've basically mastered the software. Quicklyhold up the rights of weapons, protect our legitimate interestswithout infringement.

香港最便宜的vps要多少钱?最便宜的香港vps能用吗?

香港最便宜的vps要多少钱?最便宜的香港vps能用吗?香港vps无需备案,整体性能好,而且租用价格便宜,使用灵活,因为备受站长喜爱。无论是个人还是企业建站,都比较倾向于选择香港VPS。最便宜的香港vps能用吗?正因为有着诸多租用优势,香港VPS在业内颇受欢迎,租用需求量也在日益攀升。那么,对于新手用户来说,香港最便宜的vps租用有四大要点是务必要注意的,还有易探云香港vps租用最便宜的月付仅18元...

Webhosting24:€15/年-AMD Ryzen/512MB/10GB/2TB/纽约&日本&新加坡等机房

Webhosting24是一家始于2001年的意大利商家,提供的产品包括虚拟主机、VPS、独立服务器等,可选数机房包括美国洛杉矶、迈阿密、纽约、德国慕尼黑、日本、新加坡、澳大利亚悉尼等。商家VPS主机采用AMD Ryzen 9 5950X CPU,NVMe磁盘,基于KVM架构,德国机房不限制流量,网站采用欧元计费,最低年付15欧元起。这里以美国机房为例,分享几款套餐配置信息。CPU:1core内存...

易探云香港云服务器价格多少钱1个月/1年?

易探云怎么样?易探云是目前国内少数优质的香港云服务器服务商家,目前推出多个香港机房的香港云服务器,有新界、九龙、沙田、葵湾等机房,还提供CN2、BGP及CN2三网直连香港云服务器。近年来,许多企业外贸出海会选择香港云服务器来部署自己的外贸网站,使得越来越多的用户会选择易探云作为网站服务提供平台。今天,云服务器网(yuntue.com)小编来谈谈易探云和易探云服务器怎么样?具体香港云服务器多少钱1个...

网页加密为你推荐
伪装微信地理位置怎么伪装微信地理位置?刷网站权重提升百度权重的几个方法主页改不了浏览器主页改不了 怎么办啊spgnux怎么安装思普操作系统免费开通黄钻能免费开通黄钻吗??微信如何建群微信可以建立两个人的群吗?有一个是自己手机区号手机号码安卓应用平台安卓手机下软件哪个网站好ios7固件下载iphone自动下载IOS7固件版本怎么删除qq空间打扮如何打扮QQ空间?
域名备案批量查询 域名解析文件 域名停靠一青草视频 linode日本 diahosting wdcp 商家促销 免费申请网站 网站加速软件 ebay注册 美国盐湖城 域名转入 云销售系统 蓝队云 web是什么意思 认证机构 服务器是什么意思 ping值 asp简介 低价 更多