CN106446617A - Static webpage access method with active file protection function - Google Patents

Static webpage access method with active file protection function Download PDF

Info

Publication number
CN106446617A
CN106446617A CN201610837216.2A CN201610837216A CN106446617A CN 106446617 A CN106446617 A CN 106446617A CN 201610837216 A CN201610837216 A CN 201610837216A CN 106446617 A CN106446617 A CN 106446617A
Authority
CN
China
Prior art keywords
client
page
server
static
coordinates regional
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610837216.2A
Other languages
Chinese (zh)
Other versions
CN106446617B (en
Inventor
王剑
乔阔远
张志勇
赵长伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Henan University of Science and Technology
Original Assignee
Henan University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Henan University of Science and Technology filed Critical Henan University of Science and Technology
Priority to CN201610837216.2A priority Critical patent/CN106446617B/en
Publication of CN106446617A publication Critical patent/CN106446617A/en
Application granted granted Critical
Publication of CN106446617B publication Critical patent/CN106446617B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/12Protecting executable software
    • G06F21/121Restricting unauthorised execution of programs
    • G06F21/125Restricting unauthorised execution of programs by manipulating the program code, e.g. source code, compiled code, interpreted code, machine code
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Technology Law (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a static webpage access method with an active file protection function. The method includes that when a client sends a webpage access requires to a server, the server parses the webpage into a static picture, extracts and stores a coordinate region set of accessible links on the webpage and a corresponding link address set thereof, then sends a response message containing the static picture and the coordinate region set thereof to the client, and displays the webpage on the client in a static picture form; when the client requests to access the link at the clicked position on the static picture, the server acquires the coordinate region according to the clicked position, extracts and stores the coordinate region set and the corresponding link address set thereof of the accessible links on the webpage, and displays the static picture on the client. The server does not forward HTML (hypertext markup language) files that the website domain name points to the client directly, so that secondary development of the unauthorized page can be prevented effectively; the static webpage access method has functions of crawler, virus and phishing prevention and the like.

Description

A kind of static page access method with source file defencive function
Technical field
The present invention relates to Internet technical field, especially with respect to a kind of static page interview with source file defencive function Ask method.
Background technology
Common page access process is that the browser of client sends accessing page request to server, and server should The html document of the page returns to client, is explained by client browser and executes and show in the window, presents to terminal and uses Family.The drawbacks of do so is to comprise a large amount of hyperlinked informations in the html document that client obtains, in addition logical code so that The rogue programs such as malice page analysis, web crawlers, page virus are had an opportunity to take advantage of.
Content of the invention
The main object of the present invention is to provide a kind of static page access method with source file defencive function, overcomes existing With the presence of the problem of method, effective protection source code, prevent unauthorized page secondary development.
The technical scheme is that:A kind of static page access method with source file defencive function, works as client During to server transmission accessing page request, page parsing is generated static images by server, extracts and preserves and can visit on the page Ask coordinates regional set and its set of corresponding chained address of link, then send to client and comprise static images and its seat The response message of mark regional ensemble, the page is shown in client in the form of static images;When client request accesses static state On picture during the link of institute's click location, server obtains the coordinates regional at its place according to click location, then by this coordinate The page parsing that the corresponding chained address in region is pointed to generates new static images, extracts and preserve addressable link on this page Coordinates regional set and its set of corresponding chained address, show this new static images in client.
Before client request accesses the link of institute's click location on static images, client first click to be judged Position whether in the coordinates regional set of static images, if it was not then not responding request, if client is to clothes Business device sends the accessing page request message comprising click position.
When request access the page on have Dynamic Graph when, server extract the page on all Dynamic Graphs resource address and its Coordinates regional set is simultaneously sent to client, and client, according to the coordinates regional of each Dynamic Graph, all dynamic map combining is existed Static images relevant position carries out Dynamic Announce.
The coordinates regional of described Dynamic Graph is the coordinate in its upper left corner and the width of this coordinates regional and height.
When server parsing generates new static images, coordinates regional set and its set of corresponding chained address, clothes Business device covers replacement raw content and is stored.
Static images, coordinates regional set and its set of corresponding chained address that all parsings are generated by server preserve Each access under this conversation element store path and link in corresponding catalogue, use for client backward reference.
Compared with prior art, the present invention at least has and has the advantage that and beneficial effect:
The html file that in the present invention, network address domain name is not directly pointed to by server is transmitted to client, but to this html file Parsed, client after proposing page request, picture after the only server parsing of the feedback that obtains and mouse can occur The coordinates regional of event, display effect in client window for the picture after the parsing that client receives with adopt existing method Html document by browser window, the effect of display is identical after client interpretation, the present invention is primarily directed to not contain The analytic method of the static page of the input frames such as list, but can have small video on the static images page, the Dynamic Graph such as little animation, According to Dynamic Graph in the coordinates regional of static images, all dynamic map combining are shown in the enterprising Mobile state of static images, this Bright method can effectively prevent the html document of the page from being obtained by client, protect source code it is therefore prevented that the unauthorized page Secondary development, has the functions such as anti-reptile, anti-virus, anti-fishing website.
Brief description
Fig. 1 is the page access process chart first of one embodiment of the invention;
Fig. 2 is the mouse click event process chart of one embodiment of the invention.
Specific embodiment
The present invention is further described with reference to the accompanying drawings and examples.
When the core concept of the present invention is when browser input network address, the HTML literary composition that domain name is not directly pointed to by server Part is transmitted to client, but this html file is parsed, be sent to client be parsing after static images and its The coordinates regional set of mouse click event can occur.
When client passes through browser to server transmission accessing page request, with reference to the flow chart of Fig. 1, concrete grammar It is:
(1)Page parsing is generated initial static images PIC_INIT by server(Jpg form), extract and chain be may have access on the page The coordinates regional set ListArea connecing and its corresponding chained address set href, static images are aobvious in browser window Show effect with using existing method html document by after client interpretation on browser window the effect of display identical;
(2)Server sends to client and comprises initial static images PIC_INIT's and its coordinates regional set ListArea Response message ResponseMessage (PIC_ INIT, ListArea);
(3)After client receives initial static images PIC_INIT and its ListArea, PIC_INIT is shown in browser On;
(4)Server is by the copy of static images PIC_INIT, coordinates regional set ListArea and its corresponding chained address Set href is saved in this conversation element(Session)Under store path, set up a storing directory with storage after distinguishing Different pictures.
When client request accesses the link of click position on initial static images PIC_INIT, with reference to Fig. 2 Flow chart, concrete grammar is:
(1)Client obtains the coordinate Location of click position, judges whether Location is included in this initial static In the coordinates regional set ListArea of picture PIC_INIT, if not existing, do not respond request;If sending to server Comprise accessing page request message RequestMessage (Location) of click position;
(2)Server obtains the coordinates regional at its place according to the coordinate Location of click position, then by this coordinate The page parsing that the corresponding chained address in region is pointed to generates new static images PIC_EXE to be visited, and extracting can on this page Access the coordinates regional set ListArea ' and its corresponding chained address set href ' of link;
(3)Server will comprise the response message of static images PIC_EXE to be visited and its coordinates regional set ListArea ' ResponseMessage (PIC_EXE, ListArea ') it is sent to client;
(4)After client receives PIC_EXE and its ListArea ', PIC_EXE is shown on a web browser;
(5)Server is by the copy of static images PIC_EXE, coordinates regional set ListArea ' and its corresponding chained address Set href ' is saved in this conversation element(Session)Under store path, a newly-built storing directory is to preserve before distinguishing Content.
It should be noted that when having the Dynamic Graphs such as gif, flash on the page that request accesses, server extracts on the page The resource address of all Dynamic Graphs and its coordinates regional set be sent to client, client when showing static images, According to the coordinates regional of each Dynamic Graph, all dynamic map combining are carried out Dynamic Announce in static images relevant position.Dynamically The coordinates regional of figure be the width of the coordinate in its upper left corner and this coordinates regional and height or other can accurately express its position Coordinates regional set(Coordinate as four angles).
In addition, when server update parses new static images, coordinates regional set and its corresponding chained address collection During conjunction, can there is following several storage processing mode:
(1)Static images, coordinates regional set and its set of corresponding chained address that server stores before removing, preserve this The static images of secondary parsing, coordinates regional set and its set of corresponding chained address, at utmost to save memory space;
(2)Static images, coordinates regional set and its set of corresponding chained address that this is parsed by server are stored in this Under the store path of secondary conversation element, a newly-built storing directory, to deposit content before distinguishing, treats this conversation end(With The initial static picture PIC_ INIT and its lower all static images PIC_EXE having accessed of this access is closed at family)When, Server deletes all storage contents of this conversation element again, and " all static images having accessed under it " here refer to It is in the page representated by this initial static picture PIC_ INIT, the corresponding static images of link having accessed.So, exist When user's click " retrogressing " returns to the previously visited page, server can quickly recall parsed page figure according to storage catalogue Piece, it is not necessary to need to again parse the page because of the content before deleting, while saving memory space, improves this session Access speed and efficiency;When user closes this session of all end-of-pages of this session, delete this meeting of storage Words All Files, to save memory space;
(3)When device to be stored stores full, the preferential storage content deleted away from the modern time farther out in chronological order.
In present invention server resolving to html file is discussed in detail below by a specific example.
When browser inputs network address http:During //tomcat.apache.org/tomcat-9.0-doc/index.html, The html file that this domain name is not directly pointed to by server is transmitted to client, but this html file is parsed, should Html file is designated as HTML_1, then server to HTML_1 resolving is:
(1)HTML_1 sectional drawing is saved as initial static images PIC_INIT by server, and extracts the institute on PIC_INIT There are Dynamic Graph and link event
(1a)HTML_1 is carried out sectional drawing and saves as initial static images PIC_INIT by server
This step can be completed by the class with analytical capabilities, as can be by Robot class in JSP Robot.createScreenCapture () completes, can be by WebBrowser class in ASP.NET WebBrowser.DrawToBitmap () completes.
(1b)Extract all of Dynamic Graph of HTML_1
Dynamic Graph is by judging that whether the form that src points to file is the form of Dynamic Graph(As gif, mp4, swf etc.)Determine , judge that sentence can be $ (" img [src $=gif], embed [src $=swf] ").The extraction content of Dynamic Graph includes:Dynamic The resource address of state figure(src), coordinate(X, y)And size(Width, height).The Dynamic Graph filtering out is saved as animate{(src,x,y,height,width),….}.This step can be completed by embedded jquery selector.
(1c)Extract the link event of HTML_1
Extract the coordinates regional set ListArea of all addressable link places label in HTML_1(I.e. x ', y ', width,height)And its corresponding chained address gathers (href), save as link event set lnk href1, ListArea1;href2, ListArea2;href3 ListArea3;...., wherein, { href1, ListArea1 } represents the One link event, { href2, ListArea2 } represents second link event, and { href3, ListArea3 } represents the 3rd Individual link event, the like, multiple link event group chainings are taken over a job the set of part.For example, there is one to be linked as<a href =“http://123.233.123.86/login.jsp”>, preserve chained address href=http://123.233.123.86/ Login.jsp, the coordinates regional ListArea of link place label(I.e. x ', y ', width, height)Can be by jquery's Offset (), $ (obj) .width (), $ (obj) .width () method obtains.
It is to be appreciated that(1)In(1a)、(1b)、(1c)It is independent of each other and can carry out simultaneously,(1)After the completion of, just can carry out (2).
(2)Server generates a new html file HTML_2
(2.1)HTML_2 with(1a)In PIC_INIT as background, its way of realization can be:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div>
<img src”PIC_INIT”/>
</div>
</body>
</html>
(2.2)Server will(1b)The middle animate preserving Dynamic Graph embeds(2.1)HTML_2 in, embedded form can be:
<div>
<embed src =”src.swf ” style=”position:absolute; left=x; top:y; width:width; height:height”>
<img src =”src.gif ” style=”position:absolute; left=x; top:y; width: width; height:height”>
</div>
(2.3)Server is(2.1)In HTML_2 add event, add event main contents have:1. any one when being in Individual coordinates regional ListArea(I.e.(x’+width,y’+height))When, mouse is changed into the appearance of handss;2. when mouse produces point When hitting action, judging the coordinate of click position, if being in certain coordinates regional ListArea, sending bag to server Accessing page request message containing current mouse click location.
It is to be appreciated that(2)In(2.1)、(2.2)、(2.3)Carry out in order.
Through said process, comprise initial static picture PIC_INIT in the HTML_2 that server parses, may have access to chain The coordinates regional set ListArea, the Dynamic Graph animate that connect and(2.3)The event of middle interpolation, HTML_2 is made by server It is sent to client for response message ResponseMessage (PIC_INIT, ListArea, animate), client shows this PIC_ INIT, completes the access of this page.
When client visits again the above-mentioned page and then produces click event, client can basis(2.3)In criterion, sentence Disconnected click position Location whether in the coordinates regional set ListArea of static images, if it was not then not returning Should ask, otherwise, comprise the accessing page request message of click position Location to server;
After server receives the message comprising click position Location of client transmission, according to(1c)In lnk collection Close, obtain the coordinates regional ListArea ' ' at this Location place, this coordinates regional ListArea ' ' is corresponded to chained address The page HTML file that href ' ' points to is designated as HTML_3.
Server according to(1)In method extract HTML_3 all Dynamic Graph animate ' and link event lnk ', solve Comprise static images PIC_EXE to be visited in the HTML_4 that analysis generates, may have access to the coordinates regional set linking ListArea ', Dynamic Graph animate ' and the event added(Reference(2.3)The event of middle interpolation), server is by HTML_4 It is sent to client as response message ResponseMessage (PIC_EXE, ListArea ', animate '), if sent Failure, then continue to send or stop after setting time to send.
Client shows this PIC_EXE.Server removes HTML_2's(PIC_INIT, lnk, animate), retain HTML_4's(PIC_EXE, lnk ', animate '), at utmost to save memory space.
The present invention can also be widely used in other embodiment, and protection scope of the present invention is not subject to embodiment Limit, be defined by scope of the claims.Any those skilled in the art, can be without departing from the technology of the present invention In the range of thought, carry out various change and modification, still fall within the protection domain of technical solution of the present invention.

Claims (6)

1. a kind of static page access method with source file defencive function is it is characterised in that when user end to server is sent out When sending accessing page request, page parsing is generated static images by server, extracts and preserve the seat that may have access to link on the page Mark regional ensemble and its set of corresponding chained address, then send to client and comprise static images and its coordinates regional set Response message, the page is shown in client in the form of static images;When client request accesses institute's point on static images Hit position link when, server according to click location obtain its place coordinates regional, then by this coordinates regional correspond to chain The page parsing that ground connection location is pointed to generates new static images, extracts and preserve the coordinates regional collection that may have access to link on this page Close and its set of corresponding chained address, show this new static images in client.
2. a kind of static page access method with source file defencive function according to claim 1 it is characterised in that Before client request accesses the link of institute's click location on static images, whether client first will judge click position In the coordinates regional set of static images, if it was not then not responding request, if in user end to server transmission Comprise the accessing page request message of click position.
3. a kind of static page access method with source file defencive function according to claim 1 and 2, its feature exists In when having Dynamic Graph on the page that request accesses, server extracts the resource address of all Dynamic Graphs and its coordinate on the page Regional ensemble is simultaneously sent to client, client according to the coordinates regional of each Dynamic Graph, by all dynamic map combining in static state Picture relevant position carries out Dynamic Announce.
4. a kind of static page access method with source file defencive function according to claim 3 it is characterised in that The coordinates regional of described Dynamic Graph is the coordinate in its upper left corner and the width of this coordinates regional and height.
5. a kind of static page access method with source file defencive function according to claim 1 and 2, its feature exists In when server parsing generates new static images, coordinates regional set and its set of corresponding chained address, server covers Lid is replaced raw content and is stored.
6. a kind of static page access method with source file defencive function according to claim 1 and 2, its feature exists In static images, coordinates regional set and its set of corresponding chained address that all parsings are generated by server are saved in this Each access under secondary conversation element store path and link in corresponding catalogue, use for client backward reference.
CN201610837216.2A 2016-09-21 2016-09-21 A kind of static page access method with source file defencive function Expired - Fee Related CN106446617B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610837216.2A CN106446617B (en) 2016-09-21 2016-09-21 A kind of static page access method with source file defencive function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610837216.2A CN106446617B (en) 2016-09-21 2016-09-21 A kind of static page access method with source file defencive function

Publications (2)

Publication Number Publication Date
CN106446617A true CN106446617A (en) 2017-02-22
CN106446617B CN106446617B (en) 2018-11-27

Family

ID=58166719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610837216.2A Expired - Fee Related CN106446617B (en) 2016-09-21 2016-09-21 A kind of static page access method with source file defencive function

Country Status (1)

Country Link
CN (1) CN106446617B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109902232A (en) * 2019-02-26 2019-06-18 维沃移动通信有限公司 Display control method and terminal
CN110933017A (en) * 2018-09-20 2020-03-27 广州优视网络科技有限公司 Access request processing method, terminal, server and readable storage medium
CN112202824A (en) * 2020-12-07 2021-01-08 杭州筋斗腾云科技有限公司 Network resource access processing method and device, server and terminal
CN113591003A (en) * 2021-07-30 2021-11-02 平安普惠企业管理有限公司 Webpage processing method and device, computer equipment and storage medium
CN113987472A (en) * 2021-09-14 2022-01-28 北京纽盾网安信息技术有限公司 Webpage browsing security detection method, device and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101814118A (en) * 2009-07-02 2010-08-25 西安电子科技大学 Method for protecting web texts based on pictures
CN102779245A (en) * 2011-05-12 2012-11-14 李朝荣 Webpage abnormality detection method based on image processing technology
CN103701756A (en) * 2012-09-27 2014-04-02 中国电信股份有限公司 Method and device for protecting web form data and web server
CN103997487A (en) * 2014-05-04 2014-08-20 绿网天下(福建)网络科技有限公司 Safe network-surfing isolation method based on browser
CN105589943A (en) * 2015-12-15 2016-05-18 广州神马移动信息科技有限公司 Method and device for picture adaptability processing of search result page and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101814118A (en) * 2009-07-02 2010-08-25 西安电子科技大学 Method for protecting web texts based on pictures
CN102779245A (en) * 2011-05-12 2012-11-14 李朝荣 Webpage abnormality detection method based on image processing technology
CN103701756A (en) * 2012-09-27 2014-04-02 中国电信股份有限公司 Method and device for protecting web form data and web server
CN103997487A (en) * 2014-05-04 2014-08-20 绿网天下(福建)网络科技有限公司 Safe network-surfing isolation method based on browser
CN105589943A (en) * 2015-12-15 2016-05-18 广州神马移动信息科技有限公司 Method and device for picture adaptability processing of search result page and server

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110933017A (en) * 2018-09-20 2020-03-27 广州优视网络科技有限公司 Access request processing method, terminal, server and readable storage medium
CN110933017B (en) * 2018-09-20 2022-05-20 阿里巴巴(中国)有限公司 Access request processing method, terminal, server and readable storage medium
CN109902232A (en) * 2019-02-26 2019-06-18 维沃移动通信有限公司 Display control method and terminal
CN112202824A (en) * 2020-12-07 2021-01-08 杭州筋斗腾云科技有限公司 Network resource access processing method and device, server and terminal
US11405403B2 (en) 2020-12-07 2022-08-02 Hangzhou Jindoutengyun Technologies Co., Ltd. Method and device, and server and terminal for processing network resource access
CN113591003A (en) * 2021-07-30 2021-11-02 平安普惠企业管理有限公司 Webpage processing method and device, computer equipment and storage medium
CN113987472A (en) * 2021-09-14 2022-01-28 北京纽盾网安信息技术有限公司 Webpage browsing security detection method, device and system
CN113987472B (en) * 2021-09-14 2023-07-18 北京纽盾网安信息技术有限公司 Webpage browsing security detection method, device and system

Also Published As

Publication number Publication date
CN106446617B (en) 2018-11-27

Similar Documents

Publication Publication Date Title
CN106446617B (en) A kind of static page access method with source file defencive function
US20150082151A1 (en) Page display method and device
US8880594B2 (en) Computer networking system and method with Javascript execution for pre-fetching content from dynamically-generated URL
CN102469113B (en) Security gateway and method for forwarding webpage by using security gateway
US9509764B1 (en) Updating cached web content
CN103383687B (en) A kind of page processing method and device
US20180041530A1 (en) Method and system for detecting malicious web addresses
US8131753B2 (en) Apparatus and method for accessing and indexing dynamic web pages
US20110191664A1 (en) Systems for and methods for detecting url web tracking and consumer opt-out cookies
US9253013B1 (en) Efficient delivery of content by virtualization of dynamic interaction with the document object model
US20130212465A1 (en) Postponed rendering of select web page elements
US11330075B2 (en) One-time cache
KR20110009675A (en) Method and system to selectively secure the display of advertisements on web browsers
CN104572777B (en) Webpage loading method and device based on UIWebView component
CN107040584B (en) Method and device for downloading picture by client
CN112637361B (en) Page proxy method, device, electronic equipment and storage medium
US20170237823A1 (en) System and method for transforming online content
CN106599270B (en) Network data capturing method and crawler
WO2016050124A1 (en) Method, device and server for web page transcoding
CN111328394A (en) Locally secure rendering of WEB content
CN104268282A (en) Web banner advertisement displaying method and system
CN103455492B (en) A kind of method and apparatus of search and webpage
KR101287371B1 (en) Method and Device for Collecting Web Contents and Computer-readable Recording Medium for the same
WO2017092455A1 (en) Method for web browsing in mobile terminal, and mobile terminal
CN110532455A (en) A kind of Web page picture acquisition methods and system based on Chrome browser

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181127