加密对网页代码进行加密(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 2H5G独享20M 仅售19.8/月  年付仅需148

快云科技已稳步运行进两年了 期间没出现过线路不稳 客户不满意等一系列问题 本司资质齐全 持有IDC ICP ISP等正规手续 有独特的网站设计理念 在前几天刚是参加过魔方系统举行的设计大赛拿获最佳设计奖第一名 本公司主营产品 香港弹性云服务器,美国vps和日本vps,香港物理机,国内高防物理机以及美国日本高防物理机 2020年的国庆推出过一款香港的回馈用户特惠机 已作为传家宝 稳定运行 马上又到了...

BuyVM老牌商家新增迈阿密机房 不限流量 月付2美元

我们很多老用户对于BuyVM商家还是相当熟悉的,也有翻看BuyVM相关的文章可以追溯到2014年的时候有介绍过,不过那时候介绍这个商家并不是很多,主要是因为这个商家很是刁钻。比如我们注册账户的信息是否完整,以及我们使用是否规范,甚至有其他各种问题导致我们是不能购买他们家机器的。以前你嚣张是很多人没有办法购买到其他商家的机器,那时候其他商家的机器不多。而如今,我们可选的商家比较多,你再也嚣张不起来。...

WHloud Date鲸云数据($9.00/月), 韩国,日本,香港

WHloud Date(鲸云数据),原做大数据和软件开发的团队,现在转变成云计算服务,面对海内外用户提供中国大陆,韩国,日本,香港等多个地方节点服务。24*7小时的在线支持,较为全面的虚拟化构架以及全方面的技术支持!官方网站:https://www.whloud.com/WHloud Date 韩国BGP云主机少量补货随时可以开通,随时可以用,两小时内提交退款,可在工作日期间全额原路返回!支持pa...

网页加密为你推荐
暴风影音怎么截图请问如何在暴风影音上截图网站联盟百度网盟是什么,怎么加入申请证书手机申请证书免费免费建站电脑上有真正免费的网站吗??分词技术百度的中文分词原理是什么?与IK分词有区别吗?srv记录如何验证是否为域控制器创建了 SRV DNS 记录什么是云平台什么是家庭云平台?域名库求解:请将您的域名:别名(CNAME)主机解析到idc1.xiaodoutao.com263企业邮箱设置263企业邮箱如何添加新的信箱?如何修改ie主页怎么修改自己的IE主页
vps安全设置 bbr ixwebhosting godaddy域名转出 免费ddos防火墙 铁通流量查询 空间技术网 银盘服务是什么 新世界服务器 网通服务器 www789 数据库空间 腾讯数据库 免费赚q币 酷锐 websitepanel web服务器 e-mail 删除域名 一句话木马 更多