加密对网页代码进行加密(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.

腾讯云2核4GB内存8M带宽 年74元

一般大厂都是通过首年才有可以享受爆款活动,然后吸引我们注册他们商家达到持续续费和购买的目的。一般只有大厂才能有这样的魄力和能力首年亏本,但是对于一般的公司和个人厂家确实难过,这几年确实看到不少的同类商家难以生存。这里我们可以看到有对应的套餐方案。不过这两个套餐都是100%CPU独享的,不是有某云商家限制CPU的。但是轻量服务器有个不好的就是带宽是较大且流量是限制的额,分别是1GB和1.2TB月流量...

Megalayer美国独立服务器新用户首月优惠350元(30M优化不限流量)

Megalayer 商家在开始看到有提供香港服务器、香港站群服务器的时候有介绍过,后来就一直没有怎么关注。但是前几天有看到网友使用到他们家的美国独立服务器问其如何的,但是我没有使用过就不好评论,这不前几天也有介绍到Megalayer美国独立服务器。以及我们也有看到商家有提供美国站群服务器和美国大带宽服务器产品,可选30M不限制流量CN2优化线路,以及100M不限制流量国际带宽线路。新年元旦后,Me...

瓜云互联-美国洛杉矶高防CN2高防云服务器,新老用户均可9折促销!低至32.4元/月!

瓜云互联一直主打超高性价比的海外vps产品,主要以美国cn2、香港cn2线路为主,100M以内高宽带,非常适合个人使用、企业等等!安全防护体系 弹性灵活,能为提供简单、 高效、智能、快速、低成本的云防护,帮助个人、企业从实现网络攻击防御,同时也承诺产品24H支持退换,不喜欢可以找客服退现,诚信自由交易!官方网站:点击访问瓜云互联官网活动方案:打折优惠策略:新老用户购买服务器统统9折优惠预存返款活动...

网页加密为你推荐
popmundofuck是什么意思weipin唯品会的唯品钱包里的钱怎么用手游运营手册堡垒之夜新武器是什么 堡垒之夜新武器介绍图文解析博客外链博客外链怎么做好中国论坛大全中国十大网站是?吴晓波频道买粉吴晓波频道学习卡资费?渗透测试网站渗透测试怎么做?1433端口如何打开SQL1433端口照片转手绘如何把真人图片用photoshop做成手绘图片arm开发板想购买一个ARM开发板,选什么类型的好
西安域名注册 域名查询软件 132邮箱 百度云100as cve-2014-6271 http500内部服务器错误 lighttpd html空间 福建天翼加速 vip购优汇 阿里校园 上海电信测速网站 带宽租赁 下载速度测试 免费asp空间 net空间 hdsky register.com ipower 服务器机柜 更多