CN102917074B - A kind of method realizing server-side browser and server - Google Patents

A kind of method realizing server-side browser and server Download PDF

Info

Publication number
CN102917074B
CN102917074B CN201210447374.9A CN201210447374A CN102917074B CN 102917074 B CN102917074 B CN 102917074B CN 201210447374 A CN201210447374 A CN 201210447374A CN 102917074 B CN102917074 B CN 102917074B
Authority
CN
China
Prior art keywords
browser
server
client browser
user
page
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.)
Active
Application number
CN201210447374.9A
Other languages
Chinese (zh)
Other versions
CN102917074A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201210447374.9A priority Critical patent/CN102917074B/en
Publication of CN102917074A publication Critical patent/CN102917074A/en
Application granted granted Critical
Publication of CN102917074B publication Critical patent/CN102917074B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of method realizing server-side browser and server.This server includes: start unit;Processing unit;Wherein, described start unit is further adapted for: starts a server-side browser process corresponding with described client browser at described server end, and starts a server-side browser page corresponding with described server-side browser process in the buffer.By means of technical scheme, can effectively reduce the data processing load of client-side, at fast response time, in the case of flow consumption is few, also ensure that good rendering effect, support all of user operation simultaneously, alleviate the configuration requirement to user terminal software and hardware, provide the user environment of well surfing the Net, it is ensured that the Internet Security of user.

Description

A kind of method realizing server-side browser and server
Technical field
The present invention relates to communication field, particularly relate to a kind of method realizing server-side browser and server.
Background technology
In the prior art, mobile browser is largely divided into two kinds: client kernel browser and high in the clouds kernel browser.Wherein, client kernel browser refers to the kernel of client embedding browser, directly sends request to website, not by any proxy server.Client kernel browser is browser/server structure (Browser/Server, referred to as B/S) structure, client is directly by HTML (Hypertext Markup Language) (HyperTextTransferProtocol, referred to as HTTP) agreement initiates request to website, and the most first carry out the parsing of http protocol, carry out HTML (HypertextMarkupLanguage the most again, referred to as HTML) parsing and child resource download, generate DomTree and render, being eventually displayed on mobile terminal.Owing to using http protocol between client and web page server alternately, can cause that interaction data amount is big, consumption flow, transmission time length and the problem such as response time is slow.
High in the clouds kernel browser is client/agent server (Client/Server, referred to as C/S) framework, it is that client sends request to cloud server, webpage is accessed by cloud server, carry out resolving and rendering calculating at server end after obtaining the page, then by certain agreement, the result rendered being sent to client, client shows in terminal according to result, and the interactive operation of all clients is all to complete under the assistance of server.Specifically include two kinds of processing modes:
Processing mode one:
Under C/S framework, client sends page request to webpage, sends request when obtaining child resource to proxy server, proxy server child resource will carry out some and process.Static page and the child resource such as image, CSS and JS are only cached by the proxy server under this pattern and compression processes, the cell-phone customer terminal possessing complete WAP/WWW analytic ability complete typesetting and screen drawing.This kind of processing mode can result in the problem that client is computationally intensive and power consumption is big.
Processing mode two:
Under C/S framework, client initiates request to proxy server, resource is asked for webpage by proxy server, then carry out resolving DOMTree on proxy server, and carry out typesetting (typesetting can also be carried out by Server Default font) according to the font information of client upload, and child resource is processed accordingly, including compression and caching, each the most typesetted control is with position, the mode that wide height adds content is sent to client, client content be eventually displayed on client browser according to these information.This kind of processing mode is had nothing in common with each other due to font, the typesetting of the client requirements in various terminals, diversity is big, proxy server deals with loaded down with trivial details, data processing load is high, therefore client rendering effect can be caused poor (such as, the effect of parent page is lost, partial dynamic script effect support difference etc.), the interactive operation problem such as support poor and safety relatively low.
Summary of the invention
In view of the above problems, it is proposed that the present invention is to provide a kind of method realizing server-side browser and server overcoming the problems referred to above or solving the problems referred to above at least in part.
The present invention provides a kind of method realizing server-side browser, including: receive the startup request that client browser sends, start a server-side browser corresponding with client browser at server end, and send startup success response to client browser;Obtain information and the input focus positional information of the user customer browser input that client browser sends, according to information and input focus positional information, server-side browser performed respective handling, and operation result information is sent to client browser;Wherein, start a server-side browser corresponding with client browser at server end to specifically include: start a server-side browser process corresponding with client browser at server end, and start a server-side browser page corresponding with server-side browser process in the buffer.
Present invention also offers a kind of server, including: start unit, be suitable to receive, by client interactive interface, the startup request that client browser sends, start a server-side browser corresponding with client browser, and send startup success response by client interactive interface to client browser;Processing unit, be suitable to be obtained information and the input focus positional information of the user customer browser input that client browser sends by client interactive interface, according to information and input focus positional information, server-side browser is performed respective handling, and operation result information is sent to client browser, wherein, above-mentioned start unit is further adapted for: starts a server-side browser process corresponding with client browser at server end, and starts a server-side browser page corresponding with server-side browser process in the buffer.
The present invention has the beneficial effect that:
Technical scheme by means of the embodiment of the present invention, after server end starts corresponding browser according to the request of client browser, the user operation that the browser of server end sends according to client browser carries out respective handling, and result is sent to client browser, so that client browser shows, the present invention can effectively reduce the data processing load of client-side, at fast response time, in the case of flow consumption is few, also ensure that good rendering effect, support all of user operation simultaneously, alleviate the configuration requirement to user terminal software and hardware, provide the user environment of well surfing the Net, ensure the Internet Security of user.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, and can be practiced according to the content of description, and in order to above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit those of ordinary skill in the art be will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, and is not considered as limitation of the present invention.And in whole accompanying drawing, it is denoted by the same reference numerals identical parts.In the accompanying drawings:
Fig. 1 is the server end display page and the schematic diagram of the client browser display page of one embodiment of the invention;
Fig. 2 is the flow chart of the method realizing server-side browser of one embodiment of the invention;
Fig. 3 is the process schematic diagram one that the client browser of one embodiment of the invention interacts with server end;
Fig. 4 is the process schematic diagram two that the client browser of one embodiment of the invention interacts with server end;
Fig. 5 be the judgement event type of one embodiment of the invention be the schematic diagram of browser event or web page event;
Fig. 6 is the schematic diagram carrying out data compression and decompression when uploading download of one embodiment of the invention;
Fig. 7 is the schematic diagram of the server end segmentation page of one embodiment of the invention;
Fig. 8 is the schematic diagram of the content blocks that the client browser of one embodiment of the invention shows;
Fig. 9 is the structural representation of the server of one embodiment of the invention;
Figure 10 is the schematic diagram that the server end of one embodiment of the invention remotely controls client browser.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing showing the exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and should not limited by embodiments set forth here.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Poor in order to solve the client rendering effect that in prior art, high in the clouds kernel browser exists, and the problem that interactive operation support is poor, the invention provides a kind of server-side browser implementation method and server, Fig. 1 is the server end display page and the schematic diagram of the client browser display page of one embodiment of the invention, Figure 10 is the schematic diagram that the server end of one embodiment of the invention remotely controls client browser, such as Fig. 1, shown in 10, the embodiment of the present invention uses remote desktop technology to realize the browser (including: mobile browser and PC browser etc.) under C/S framework, client is equivalent to a remote desktop control, server is controlled (preferably by remote desktop technology, can be cloud server) on actual browser program or process.Server is according to the concrete condition of client (such as, resolution and user agent (UserAgent, referred to as UA), UA includes the cellphone information of user, such as mobile phone model etc.) start different browsers, user carrys out browser corresponding on remote control service device by operation client, carry out various operation, including input URL, clickthrough, roll screen etc., and the browser of server end processes after the operation receiving user accordingly, and the result of process is returned to client with specific compressed format.In addition, user is when browsing pages, webpage may be read by upper and lower roll screen at a page, or back to certain page read, at this moment, if not using caching technology, will again carry out the transmission of video data, either still all can have a significant impact in flow consumption in response speed, therefore, the embodiment of the present invention have employed client-cache technology and alleviates and solve this problem.Current website and the crowd of online are growing, and the while of bringing convenient in the Internet, also the rights and interests of user are damaged in some website by various modes, thus obtain individual interest.The technical scheme of the embodiment of the present invention is in order to improve the safety of browser, when user accesses dangerous network address, the different problems threatening user security will be done different process according to security strategy by server, make user without can secure internet connection on the premise of understanding any relevant knowledge.
Below in conjunction with accompanying drawing and embodiment, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, does not limit the present invention.
According to embodiments of the invention, provide a kind of server-side browser implementation method, Fig. 2 is the flow chart of the method realizing server-side browser of one embodiment of the invention, as in figure 2 it is shown, the method realizing server-side browser according to embodiments of the present invention includes processing as follows:
Step 201, receives the startup request that client browser sends, and starts a server-side browser corresponding with client browser at server end, and starts success response to client browser transmission;
It should be noted that the server end of the embodiment of the present invention can be cloud server.
In step 201; after the request receiving client terminal start-up browser; server end needs to start a real browser (client browser is a similar client with remotely control); in embodiments of the present invention; this browser can bind this client; will not be arrived by other client-access, it is possible to the private data of protection user.
Preferably, in step 201, when server end starts a server-side browser corresponding with client browser, start a server-side browser process corresponding with client browser firstly the need of at server end, and start a server-side browser page corresponding with server-side browser process in the buffer.
In embodiments of the present invention, startup request can also carry the ID of client browser.User data (including: browser collection folder data and/or browsing histories data) can be stored in data base by server end according to above-mentioned ID, and according to user data corresponding in the user operation more new database of client browser transmission.In user's logging request of received server-side to client-side and after logging in successfully, server-side browser process obtains corresponding user data according to ID from data base, and by user data the loading in the buffer corresponding server-side browser page.
In actual applications, some user data relates to the personal property safety of user and can not store at server end, and some user data user operations for convenience needs to store at server end, such as, the out of Memory such as collection, browsing histories.These data maintenances of each user are become a table by server end, and the password that simultaneously user can be used to log in is encrypted.When certain user starts client browser, service end is using the ID(of user or out of Memory) as key, get the user data of correspondence, and be loaded on the server end browser currently for this user startup.Additionally, user can perform certain operations thus be managed these data, server end makes corresponding process according to the operation requests of user, in final updated to the tables of data of server end correspondence user, completes the operation requests of user.
Step 202, obtain information and the input focus positional information of the user customer browser input that client browser sends, according to information and input focus positional information, server-side browser performed respective handling, and operation result information is sent to client browser.
In step 202., browser end needs to obtain the information of the user customer browser input that client browser sends, wherein, the information of user customer browser input includes: the Word message of user customer browser input, user customer browser carry out the side-play amount of scrolling operations or user customer browser carries out browser event operation or the input focus positional information etc. of web page event operation.
Server end obtains information and the input focus positional information of the user customer browser input that client browser sends, according to information and input focus positional information, server-side browser performed respective handling, and operation result information is sent to client browser.Subsequently, client browser shows and/or performs the operation result information that server end returns.
Processing procedure when server end is carried out various operation by user below is described in detail.
Fig. 3 is the process schematic diagram one that the client browser of one embodiment of the invention interacts with server end, Fig. 4 is the process schematic diagram two that the client browser of one embodiment of the invention interacts with server end, as shown in Figure 3 and Figure 4, client browser according to embodiments of the present invention and server end include following several operation alternately:
One, input
Server end needs to obtain Word message and the input focus positional information of inputting word information of the user customer browser input that client browser sends;Subsequently, input frame corresponding on server-side browser is gone out according to input focus positional information calculation, information is inserted data frame, and to client browser feedback response information, wherein, the information carrying input success or failure in response message and the client browser carried when inputting word information success need the display content information updated.
In actual applications, server end is after receiving the input information that client browser sends, the input frame of correspondence can be gone out according to the positional information calculation that client browser sends, and by the input information solicitation of client browser submission to input frame, finally return to the response (success or error code) corresponding to client and need the display content updated.
Two, scrolling operations
The user customer browser that server end acquisition client browser sends carries out the side-play amount of scrolling operations;And calculate page offset according to the side-play amount of scrolling operations, and determine that client browser needs the display content information updated according to page offset, and to client browser feedback response information, wherein, response message carries the display content information that client browser needs to update.
When calculating page offset, if dX roll screen+ x+ browser width > pagewidth, then dThe x page=pagewidth-(x+ browser width), otherwise, dThe x page=dX roll screen, wherein, dX roll screenThe user submitted to for client browser carries out the side-play amount of x-axis of scrolling operations, and x is the x-axis coordinate of page current location;If dY roll screen+ y+ browser height > page height, then dThe y page=page height-(x+ browser height), otherwise, dThe y page=dY roll screen, wherein, dY roll screenThe user submitted to for client browser carries out the side-play amount of y-axis of scrolling operations, and y is the y-axis coordinate of page current location.
Such as, the skew submitted to such as client: dx=50, dy=100, the current position of the page is x=0, y=100, pagewidth page_width=500, highly page_height=1000, the width device_width=480 of browser, highly device_height=800, in order to ensure that after offseting, browser is without departing from the indication range of the page, final side-play amount is dx=20, dy=100.
Three, event
In embodiments of the present invention, event is divided into two kinds: browser event and web page event, wherein, browser event: refer to the alternative events of client and server browser, including new tab page, close Shipping Options Page, switch labels page, management collection, destruction operation etc., button or menu that these events are shown in client click browser by user complete, and the positional information that client browser will click on is uploaded to server end, server-side browser complete subsequent treatment.Web page event: refer to that client passes through the alternative events between server-side browser and webpage.User, when browsing webpage, can click on the controls such as the most different link, picture, button, and the information such as position that client browser is clicked on according to user, time is transferred to server end, and makes corresponding process according to the response of server end.
Specifically, server end obtains, from client browser, the input focus positional information that user customer browser carries out clicking on, and judges that event type is browser event or web page event according to input focus positional information;Subsequently, perform corresponding process according to event type, and to client browser feedback response information, wherein, the display content information of the client browser carried when carrying the information of server-side processes success or failure in response message and process successfully.
Fig. 5 be the judgement event type of an embodiment of the present invention be the schematic diagram of browser event or web page event, as shown in Figure 5, after receiving the click that client is corresponding, server end goes out the position of corresponding with service end browser according to the positional information calculation submitted to, judge the type of this event: if input focus position is on browser frames, it is determined that event type is browser event;If input focus position is in the range of webpage, it is determined that event type is web page event.
In the case of event type is browser event, server end directly performs corresponding operating according to browser event at server-side browser;It is to say, server end processes accordingly according to browser event, it is not necessary to submit event to webpage, return to the response that client is corresponding after event handling completes.Such as, new tab page, service end browser first judges whether Shipping Options Page reaches the upper limit before newly-built, if reached, the most directly returns the unsuccessful response of client, and otherwise, new tab page also shows this page, returns result to client.
In the case of event type is web page event, server end operates according to the web page event of user, performs web page event operation, interact with the Website server of response, input information is transparent to corresponding Website server on server-side browser.In actual applications, server-side browser can be simulated and be clicked on event the most really, different click objects (control) trigger different responses.If a link, then open the page of correspondence;If a button, then carry out list and submit operation to.After website returns response, server end returns to client after response being processed so that it is can show the content of correspondence.
Four, download and upload
When user needs to upload data, server end downloads user from client browser needs to upload to the data of webpage, and these data are uploaded to corresponding Website server;When user needs to download data, server end downloads user according to the request of client browser from corresponding Website server needs the data from page download, and these data are uploaded to client browser.
It is to say, when client browser carries out upload operation, file is first uploaded to service end by FTP or proprietary protocol by server end, finally completed the operation of transmitting file on website by server end, and return to the response that client is corresponding.When client browser is downloaded operation, server end first downloads files into this locality, downloads to client eventually through FTP or proprietary protocol.
Fig. 6 is the schematic diagram carrying out data compression and decompression when uploading download of one embodiment of the invention, as shown in Figure 6, when uploading or download file, server end can carry out the data compression of gzip or other algorithm, the data making transmission are the least, thus i.e. decrease flow and provide again speed, compression and the decompressing function of correspondence is had at server end and client browser, ensure that file is simply compressed format in transmitting procedure, and when being embodied in client browser or website, be uncompressed original form.
Five, browser is closed
During the turn-off request that received server-side client browser sends, closing server end browser, and send closedown success response to client browser;Or, server end actively sends turn-off request to client browser, if not receiving the response message that client browser returns in the given time, is then automatically switched off server-side browser.
In actual applications, during closing server end browser, server end needs storage is specified data (such as, the favorites data of user, browsing histories data etc.), after then removing user profile, cookie and caching, and could closing server end browser.
It should be noted that, in aforesaid operations, what the response that client is asked by server end finally returned that is to show relevant data, and concrete mode has two kinds: a kind of is only to return the data in currently displaying scope, when user's roll screen, return the data of correspondence according to skew;After another kind is the data that return is currently displaying, while user browses, also will send beyond the data in indication range.
Additionally, in actual applications, user when browsing web sites, sometimes input personal information in order to log in, the operation such as payment, this has occurred as soon as safety problem.In embodiments of the present invention, in order to ensure the safety of client browser, data between user can be isolated by server end, specifically, for different user, server end can create a browser instances for each user, one browser instances can open multiple window, in order to ensure the safety of user profile, the browser instances corresponding to user can carry out data isolation, and is destroyed by corresponding browser instances when user exits.Additionally, server end does not store privacy of user data, the personal information that user is submitted to by server end does not stores, even if the most effectively prevent hacker's successful attack invasion server, also cannot get the personal information of user.
In embodiments of the present invention, the most browsed page or the response problem of part is browsed in order to solve user, when the newly requested page of client, by server end, this page is divided into fritter, fritter after segmentation is marked key, and calculating HASH value hash_value of this blocks of data, key and hash_value is sent to client in the lump with the data of this block.Client is after receiving the data, data are cached, when browsing this block page again next time, only key and hash_value need to be sent server end to the most effective to judge this blocks of data, i.e. judge that the data (passing through hash_value) that this block page page block corresponding with current server end (key) is corresponding are the most identical, decide whether to retransmit data.If certain block changes, then have only to that blocks of data of transmission change.Wherein, key value is made up of URL, horizontal original position and longitudinal original position.
It is to say, in embodiments of the present invention, above-mentioned display content information includes: display content carries out the key value corresponding with each piece of video data of one or more video data after piecemeal and the cryptographic Hash corresponding with each piece of video data.
Browser end receives the key value corresponding to each piece of video data and the cryptographic Hash of the composition display content that client browser sends;And judge that the key value corresponding to each piece of video data of key value and cryptographic Hash display content corresponding with server-side browser and cryptographic Hash are the most identical, if it is different, then up-to-date video data and corresponding key value and cryptographic Hash are sent to client browser.
Fig. 7 is the schematic diagram of the server end segmentation page of one embodiment of the invention, Fig. 8 is the schematic diagram of the content blocks that the client browser of one embodiment of the invention shows, as shown in Figure 7 and Figure 8, Fig. 7 illustrates the page dividing processing that webpage is done by server end, and calculates key and the hash_value value of each piece according to the information such as url, deviation post;Fig. 8 illustrates client browser and currently browses block www.test.com.cn_0_0, www.test.com.cn_0_240 to the www.test.com.cn_240_640 that this page is covered, and the data of these blocks are cached in units of block by client browser.When user browses the content of current region again, it is only necessary to key and the hash_value value of the block of covering is passed to server end, server judge whether to need the data of some block are retransmitted.
In order to ensure the network security of user, in embodiments of the present invention, server end is additionally provided with security strategy, is broadly divided into the isolation of page virus document, wooden horse file checking and malice network address and filters.
Wherein, virus document is isolated: current computer virus is transmitted by the Internet mostly, server end has access to the virus base of network security company, can quickly detect virus document, and isolate timely, prevent non-viral delivery to subscription client, be effectively blocked the transmission of virus.
Wooden horse file checking: being hung up wooden horse file now with a lot of websites by malice, some personal information of user by these wooden horse file acquisitions, and can be sent to the owner of wooden horse, thus causes the leakage of user profile.Server end can effective checking and killing Trojan, it is ensured that the personal data safety of user.
Maliciously network address filters: server end, by accessing safe URL library and the malice URL library of some well-known network security companies, helps user to judge the character of network address, and gives the information that user is certain, it is ensured that the personal interests of user.To there being the webpage of malicious code, server end by ensureing the network security of server end with protection capacity of safety protection software or other modes.
In sum, the technical scheme of the embodiment of the present invention is at fast response time, in the case of flow consumption is few, moreover it is possible to ensure good rendering effect, support all of user operation simultaneously, provide the user environment of well surfing the Net, it is ensured that the Internet Security of user.
According to embodiments of the invention, it is provided that a kind of server, it should be noted that the server of the embodiment of the present invention can be cloud server.Fig. 9 is the structural representation of the server of one embodiment of the invention, as it is shown in figure 9, server according to embodiments of the present invention includes: start unit 90 and processing unit 92, is described in detail the modules of the embodiment of the present invention below.
Start unit 90, is suitable to receive, by client interactive interface, the startup request that client browser sends, starts a server-side browser corresponding with client browser, and start success response by client interactive interface to client browser transmission;
After the request receiving client terminal start-up browser; start unit 90 needs to start a real browser (client browser is a similar client with remotely control); in embodiments of the present invention; this browser can bind this client; will not be arrived by other client-access, it is possible to the private data of protection user.
Preferably, start unit 90 is when server end starts a server-side browser corresponding with client browser, start a server-side browser process corresponding with client browser firstly the need of at server end, and start a server-side browser page corresponding with server-side browser process in the buffer.
In embodiments of the present invention, startup request can also carry the ID of client browser.User data (including: browser collection folder data and/or browsing histories data) can be stored in data base by the user data memory module of server end according to above-mentioned ID, corresponding user data in the user operation more new database that the user data update module of server end sends according to client browser.
After receiving user's logging request of client-side and logging in successfully, start unit 90 obtains corresponding user data according to ID from data base, and is loaded by user data in the buffer in the corresponding server-side browser page.
In actual applications, some user data relates to the personal property safety of user and can not store at server end, and some user data user operations for convenience needs to store at server end, such as, the out of Memory such as collection, browsing histories.These data maintenances of each user are become a table by user data memory module, and the password that simultaneously user can be used to log in is encrypted.When certain user starts client browser, start unit 90 is using the ID(of user or out of Memory) as key, get the user data of correspondence, and be loaded on the server end browser currently for this user startup.Additionally, user can perform certain operations thus be managed these data, user data update module makes corresponding process according to the operation requests of user, in final updated to the tables of data of server end correspondence user, completes the operation requests of user.
Processing unit 92, be suitable to be obtained information and the input focus positional information of the user customer browser input that client browser sends by client interactive interface, according to information and input focus positional information, server-side browser performed respective handling, and operation result information is sent to client browser.
Processing unit 92 needs to obtain the information of the user customer browser input that client browser sends, wherein, the information of user customer browser input includes: the Word message of user customer browser input, user customer browser carry out the side-play amount of scrolling operations or user customer browser carries out browser event operation or the input focus positional information etc. of web page event operation.
Processing unit 92 obtains information and the input focus positional information of the user customer browser input that client browser sends, according to information and input focus positional information, server-side browser performed respective handling, and operation result information is sent to client browser.Subsequently, client browser shows and/or performs the operation result information that server end returns.
Processing procedure when server end is carried out various operation by user below is described in detail.
Fig. 3 is the process schematic diagram one that the client browser of one embodiment of the invention interacts with server end, Fig. 4 is the process schematic diagram two that the client browser of one embodiment of the invention interacts with server end, as shown in Figure 3 and Figure 4, client browser according to embodiments of the present invention and server end include following several operation alternately:
One, input
Processing unit 92 needs to obtain Word message and the input focus positional information of inputting word information of the user customer browser input that client browser sends;Subsequently, input frame corresponding on server-side browser is gone out according to input focus positional information calculation, information is inserted data frame, and to client browser feedback response information, wherein, the information carrying input success or failure in response message and the client browser carried when inputting word information success need the display content information updated.
In actual applications, processing unit 92 is after receiving the input information that client browser sends, the input frame of correspondence can be gone out according to the positional information calculation that client browser sends, and by the input information solicitation of client browser submission to input frame, finally return to the response (success or error code) corresponding to client and need the display content updated.
Two, scrolling operations
Processing unit 92 obtains the user customer browser that client browser sends and carries out the side-play amount of scrolling operations;And calculate page offset according to the side-play amount of scrolling operations, determine that client browser needs the display content information updated according to page offset subsequently, and to client browser feedback response information, wherein, response message carries the display content information that client browser needs to update.
When calculating page offset, if dX roll screen+ x+ browser width > pagewidth, then dThe x page=pagewidth-(x+ browser width), otherwise, dThe x page=dX roll screen, wherein, dX roll screenThe user submitted to for client browser carries out the side-play amount of x-axis of scrolling operations, and x is the x-axis coordinate of page current location;If dY roll screen+ y+ browser height > page height, then dThe y page=page height-(x+ browser height), otherwise, dThe y page=dY roll screen, wherein, dY roll screenThe user submitted to for client browser carries out the side-play amount of y-axis of scrolling operations, and y is the y-axis coordinate of page current location.
Such as, the skew submitted to such as client: dx=50, dy=100, the current position of the page is x=0, y=100, pagewidth page_width=500, highly page_height=1000, the width device_width=480 of browser, highly device_height=800, in order to ensure that after offseting, browser is without departing from the indication range of the page, final side-play amount is dx=20, dy=100.
Three, event
In embodiments of the present invention, event is divided into two kinds: browser event and web page event, wherein, browser event: refer to the alternative events of client and server browser, including new tab page, close Shipping Options Page, switch labels page, management collection, destruction operation etc., button or menu that these events are shown in client click browser by user complete, and the positional information that client browser will click on is uploaded to server end, server-side browser complete subsequent treatment.Web page event: refer to that client passes through the alternative events between server-side browser and webpage.User, when browsing webpage, can click on the controls such as the most different link, picture, button, and the information such as position that client browser is clicked on according to user, time is transferred to server end, and makes corresponding process according to the response of server end.
Specifically, processing unit 92 obtains, from client browser, the input focus positional information that user customer browser carries out clicking on, and judges that event type is browser event or web page event according to input focus positional information;Subsequently, perform corresponding process according to event type, and to client browser feedback response information, wherein, the display content information of the client browser carried when carrying the information of server-side processes success or failure in response message and process successfully.
Fig. 5 be the judgement event type of one embodiment of the invention be the schematic diagram of browser event or web page event, as shown in Figure 5, after receiving the click that client is corresponding, processing unit 92 goes out the position of corresponding with service end browser according to the positional information calculation submitted to, judge the type of this event: if input focus position is on browser frames, it is determined that event type is browser event;If input focus position is in the range of webpage, it is determined that event type is web page event.
In the case of event type is browser event, processing unit 92 directly performs corresponding operating according to browser event at server-side browser;It is to say, processing unit 92 processes accordingly according to browser event, it is not necessary to submit event to webpage, return to the response that client is corresponding after event handling completes.Such as, new tab page, processing unit 92 first judges whether Shipping Options Page reaches the upper limit before newly-built, if reached, the most directly returns the unsuccessful response of client, and otherwise, new tab page also shows this page, returns result to client.
In the case of event type is web page event, processing unit 92 operates according to the web page event of user, performs web page event operation, interact with the Website server of response, input information is transparent to corresponding Website server on server-side browser.In actual applications, processing unit 92 can be simulated and be clicked on event the most really, different click objects (control) trigger different responses.If a link, then open the page of correspondence;If a button, then carry out list and submit operation to.After website returns response, processing unit 92 returns to client after response being processed so that it is can show the content of correspondence.
Four, download and upload
When user needs to upload data, processing unit 92 downloads user from client browser needs to upload to the data of webpage, and these data are uploaded to corresponding Website server;When user needs to download data, processing unit 92 downloads user according to the request of client browser from corresponding Website server needs the data from page download, and these data are uploaded to client browser.
It is to say, when client browser carries out upload operation, file is first uploaded to service end by FTP or proprietary protocol by processing unit 92, finally completed the operation of transmitting file on website by server end, and return to the response that client is corresponding.When client browser is downloaded operation, processing unit 92 first downloads files into this locality, downloads to client eventually through FTP or proprietary protocol.
Fig. 6 is the schematic diagram carrying out data compression and decompression when uploading download of one embodiment of the invention, as shown in Figure 6, when uploading or download file, processing unit 92 can carry out the data compression of gzip or other algorithm, the data making transmission are the least, thus i.e. decrease flow and provide again speed, compression and the decompressing function of correspondence is had at server end and client browser, ensure that file is simply compressed format in transmitting procedure, and when being embodied in client browser or website, be uncompressed original form.
Five, browser is closed
When the closedown module of server end receives the turn-off request that client browser sends, closing server end browser, and send closedown success response to client browser;Or, closing module and actively send turn-off request to client browser, if not receiving the response message that client browser returns in the given time, being then automatically switched off server-side browser.
In actual applications, during closing server end browser, closing module needs storage is specified data (such as, the favorites data of user, browsing histories data etc.), after then removing user profile, cookie and caching, and could closing server end browser.
It should be noted that, in aforesaid operations, what the response that client is asked by processing unit 92 finally returned that is to show relevant data, and concrete mode has two kinds: a kind of is only to return the data in currently displaying scope, when user's roll screen, return the data of correspondence according to skew;After another kind is the data that return is currently displaying, while user browses, also will send beyond the data in indication range.
Additionally, in actual applications, user when browsing web sites, sometimes input personal information in order to log in, the operation such as payment, this has occurred as soon as safety problem.In embodiments of the present invention, in order to ensure the safety of client browser, data between user are isolated by the meeting of server end, specifically, for different user, server end can create a browser instances for each user, one browser instances can open multiple window, in order to ensure the safety of user profile, the browser instances corresponding to user can carry out data isolation, and is destroyed by corresponding browser instances when user exits.Additionally, server end does not store privacy of user data, the personal information that user is submitted to by server end does not stores, even if the most effectively prevent hacker's successful attack invasion server, also cannot get the personal information of user.
In embodiments of the present invention, the most browsed page or the response problem of part is browsed in order to solve user, when the newly requested page of client, by processing unit 92, this page is divided into fritter, fritter after segmentation is marked key, and calculating HASH value hash_value of this blocks of data, key and hash_value is sent to client in the lump with the data of this block.Client is after receiving the data, data are cached, when browsing this block page again next time, only key and hash_value need to be sent server end to the most effective to judge this blocks of data, i.e. judge that the data (passing through hash_value) that this block page page block corresponding with current server end (key) is corresponding are the most identical, decide whether to retransmit data.If certain block changes, then have only to that blocks of data of transmission change.Wherein, key value is made up of URL, horizontal original position and longitudinal original position.
It is to say, in embodiments of the present invention, above-mentioned display content information includes: display content carries out the key value corresponding with each piece of video data of one or more video data after piecemeal and the cryptographic Hash corresponding with each piece of video data.
Processing unit 92 receives the key value corresponding to each piece of video data and the cryptographic Hash of the composition display content that client browser sends;And judge that the key value corresponding to each piece of video data of key value and cryptographic Hash display content corresponding with server-side browser and cryptographic Hash are the most identical, if it is different, then up-to-date video data and corresponding key value and cryptographic Hash are sent to client browser.
Fig. 7 is the schematic diagram of the server end segmentation page of one embodiment of the invention, Fig. 8 is the schematic diagram of the content blocks that the client browser of one embodiment of the invention shows, as shown in Figure 7 and Figure 8, Fig. 7 illustrates the page dividing processing that webpage is done by server end, and calculates key and the hash_value value of each piece according to the information such as url, deviation post;Fig. 8 illustrates client browser and currently browses block www.test.com.cn_0_0, www.test.com.cn_0_240 to the www.test.com.cn_240_640 that this page is covered, and the data of these blocks are cached in units of block by client browser.When user browses the content of current region again, it is only necessary to key and the hash_value value of the block of covering is passed to server end, server judge whether to need the data of some block are retransmitted.
In order to ensure the network security of user, in embodiments of the present invention, processing unit 92 is additionally provided with filtering module, virus module and wooden horse module, wherein, filtering module, is suitable to, in the case of event type is web page event, malice network address be filtered.Virus module, is suitable to the data to being sent to client browser and carries out Viral diagnosis, isolated by the virus document detected;Wooden horse module, is suitable to the data to being sent to client browser and carries out wooden horse killing.
Specifically, virus document is isolated: current computer virus is transmitted by the Internet mostly, server end has access to the virus base of network security company, can quickly detect virus document, and isolate timely, prevent non-viral delivery to subscription client, be effectively blocked the transmission of virus.
Wooden horse file checking: being hung up wooden horse file now with a lot of websites by malice, some personal information of user by these wooden horse file acquisitions, and can be sent to the owner of wooden horse, thus causes the leakage of user profile.Server end can effective checking and killing Trojan, it is ensured that the personal data safety of user.
Maliciously network address filters: server end, by accessing safe URL library and the malice URL library of some well-known network security companies, helps user to judge the character of network address, and gives the information that user is certain, it is ensured that the personal interests of user.To there being the webpage of malicious code, server end by ensureing the network security of server end with protection capacity of safety protection software or other modes.
In sum, the technical scheme of the embodiment of the present invention is at fast response time, in the case of flow consumption is few, moreover it is possible to ensure good rendering effect, support all of user operation simultaneously, provide the user environment of well surfing the Net, it is ensured that the Internet Security of user.
Algorithm and display are not intrinsic to any certain computer, virtual system or miscellaneous equipment relevant provided herein.Various general-purpose systems can also be used together with based on teaching in this.As described above, construct the structure required by this kind of system to be apparent from.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various programming languages realize the content of invention described herein, and the description done language-specific above is the preferred forms in order to disclose the present invention.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that embodiments of the invention can be put into practice in the case of not having these details.In some instances, it is not shown specifically known method, structure and technology, in order to do not obscure the understanding of this description.
Similarly, it is to be understood that, one or more in order to simplify that the disclosure helping understands in each inventive aspect, above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or descriptions thereof sometimes.But, the method for the disclosure should not being construed to reflect an intention that, i.e. the present invention for required protection requires than the more feature of feature being expressly recited in each claim.More precisely, as the following claims reflect, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows claims of detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each claim itself is as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can adaptively change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.In addition at least some in such feature and/or process or unit excludes each other, can use any combination that all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed any method or all processes of equipment or unit are combined.Unless expressly stated otherwise, each feature disclosed in this specification (including adjoint claim, summary and accompanying drawing) can be replaced by the alternative features providing identical, equivalent or similar purpose.
In addition, those skilled in the art it will be appreciated that, although embodiments more described herein include some feature included in other embodiments rather than further feature, but the combination of the feature of different embodiment means to be within the scope of the present invention and formed different embodiments.Such as, in the following claims, one of arbitrarily can mode the using in any combination of embodiment required for protection.
The all parts embodiment of the present invention can realize with hardware, or realizes with the software module run on one or more processor, or realizes with combinations thereof.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize the some or all parts in server according to embodiments of the present invention.The present invention is also implemented as part or all the equipment for performing method as described herein or device program (such as, computer program and computer program).The program of such present invention of realization can store on a computer-readable medium, or can be to have the form of one or more signal.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment without departing from the scope of the appended claims.In the claims, any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not excludes the presence of the element or step not arranged in the claims.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such element.The present invention by means of including the hardware of some different elements and can realize by means of properly programmed computer.If in the unit claim listing equipment for drying, several in these devices can be specifically to be embodied by same hardware branch.Word first, second and third use do not indicate that any order.Can be title by these word explanations.
A1, a kind of method realizing server-side browser are disclosed herein, including: receive the startup request that client browser sends, start a server-side browser corresponding with described client browser at described server end, and send startup success response to described client browser;Obtain user's information that described client browser is inputted and input focus positional information that described client browser sends, according to described information and described input focus positional information, described server-side browser is performed respective handling, and operation result information is sent to described client browser;Wherein, start a server-side browser corresponding with described client browser at described server end to specifically include: start a server-side browser process corresponding with described client browser at described server end, and start a server-side browser page corresponding with described server-side browser process in the buffer.A2, method as described in A1, it is characterised in that described method farther includes: receive the turn-off request that described client browser sends, close described server-side browser, and send to described client browser and close success response;Or, sending turn-off request to described client browser, if not receiving the response message that described client browser returns in the given time, being then automatically switched off described server-side browser.A3, method as according to any one of A1 to A2, it is characterised in that described method farther includes: described start the ID carrying described client browser in request;Being stored in data base by user data according to ID, wherein, described user data includes: browser collection folder data and/or browsing histories data;The user operation sent according to described client browser updates corresponding user data in described data base.A4, method as according to any one of A1 to A3, it is characterized in that, after described server end starts a server-side browser corresponding with described client browser, described method farther includes: after receiving user's logging request of client-side and logging in successfully, described server-side browser process obtains corresponding user data according to described ID from described data base, and is carried in described caching by described user data in the corresponding server-side browser page.A5, method as according to any one of A1 to A4, it is characterized in that, obtain user's information that described client browser is inputted and/or input focus positional information that described client browser sends, according to described information and described input focus positional information described server-side browser performed respective handling, and operation result information is sent to described client browser farther includes: obtain the Word message that described client browser is inputted by the user that described client browser sends and the input focus positional information inputting described Word message;Described server end goes out input frame corresponding on described server-side browser according to described input focus positional information calculation, described information is inserted described data frame, and to described client browser feedback response information, wherein, the information carrying input success or failure in described response message and the described client browser carried when inputting word information success need the display content information updated.A6, method as according to any one of A1 to A5, it is characterized in that, obtain user's information that described client browser is inputted and/or input focus positional information that described client browser sends, according to described information and described input focus positional information described server-side browser performed respective handling, and operation result information is sent to described client browser farther includes: obtain the user that described client browser sends and described client browser is carried out the side-play amount of scrolling operations;Described server end calculates page offset according to the side-play amount of described scrolling operations, and determine that described client browser needs the display content information updated according to described page offset, and to described client browser feedback response information, wherein, described response message carries the display content information that described client browser needs to update.A7, method as according to any one of A1 to A7, it is characterised in that described server end calculates page offset according to the side-play amount of described scrolling operations and farther includes: if dX roll screen+ x+ browser width > pagewidth, then dThe x page=pagewidth-(x+ browser width), otherwise, dThe x page=dX roll screen, wherein, dX roll screenThe user submitted to for described client browser carries out the side-play amount of the x-axis of scrolling operations, and x is the x-axis coordinate of page current location;If and/or dY roll screen+ y+ browser height > page height, then dThe y page=page height-(x+ browser height), otherwise, dThe y page=dY roll screen, wherein, dy Roll screenThe user submitted to for described client browser carries out the side-play amount of the y-axis of scrolling operations, and y is the y-axis coordinate of page current location.A8, method as according to any one of A1 to A7, it is characterized in that, obtain user's information that described client browser is inputted and/or input focus positional information that described client browser sends, according to described information and described input focus positional information, described server-side browser is performed respective handling, and operation result information is sent to described client browser farther includes: obtain, from described client browser, the input focus positional information that described client browser is clicked on by user, and judge event type according to described input focus positional information, wherein, described event type includes: browser event, or web page event;Corresponding process is performed according to described event type, and to described client browser feedback response information, wherein, the display content information of the described client browser carried when carrying the information of described server-side processes success or failure in described response message and process successfully.A9, method as according to any one of A1 to A8, it is characterised in that judge that event type specifically includes according to described input focus positional information: if input focus position is on browser frames, it is determined that event type is browser event;If input focus position is in the range of webpage, it is determined that event type is web page event;Perform corresponding process according to described event type to farther include: in the case of described event type is browser event, described server end directly performs corresponding operating according to described browser event at described server-side browser;In the case of described event type is web page event, described server end operates according to the web page event of user, described server-side browser performs the operation of described web page event, interacts with the Website server of response, input information is transparent to corresponding Website server.A10, method as according to any one of A1 to A9, it is characterised in that the operation of described browser event includes: new tab page, close Shipping Options Page, switch labels page, management collection or destruction operation;The operation of described web page event includes: the operation to the connection on webpage, picture or button.A11, method as according to any one of A1 to A10, it is characterized in that, described display content information includes: display content carries out the key value corresponding with each piece of video data of one or more video data after piecemeal and the cryptographic Hash corresponding with each piece of video data.A12, method as according to any one of A1 to A11, it is characterised in that described method farther includes: receive the key value corresponding to each piece of video data and the cryptographic Hash of the composition display content that described client browser sends;Judge that the key value corresponding to each piece of video data and the cryptographic Hash of described key value and described cryptographic Hash display content corresponding with described server-side browser are the most identical, if it is different, then up-to-date video data and corresponding key value and cryptographic Hash are sent to described client browser.A13, method as according to any one of A1 to A12, it is characterized in that, obtain user's information that described client browser is inputted and/or input focus positional information that described client browser sends, according to described information and described input focus positional information, described server-side browser is performed respective handling, and operation result information is sent to described client browser farther includes: downloading user from described client browser needs to upload to the data of webpage, and these data are uploaded to corresponding Website server;Request according to described client browser downloads user from corresponding Website server needs the data from page download, and these data are uploaded to described client browser.A14, method as according to any one of A1 to A13, it is characterised in that described method farther includes: in the case of described event type is web page event, filters malice network address.A15, method as according to any one of A1 to A14, it is characterised in that described method farther includes: the data being sent to described client browser are carried out Viral diagnosis, is isolated by the virus document detected;The data being sent to described client browser are carried out wooden horse killing.
B16, a kind of server are disclosed herein, including: start unit, be suitable to receive, by client interactive interface, the startup request that client browser sends, start a server-side browser corresponding with described client browser, and send startup success response by described client interactive interface to described client browser;Processing unit, be suitable to information and the input focus positional information described client browser inputted by the user that the described client interactive interface described client browser of acquisition sends, according to described information and described input focus positional information, described server-side browser is performed respective handling, and operation result information is sent to described client browser;Wherein, described start unit is further adapted for: starts a server-side browser process corresponding with described client browser at described server end, and starts a server-side browser page corresponding with described server-side browser process in the buffer.B17, server as described in B16, it is characterized in that, described server farther includes: close module, be suitable to receive, by described client interactive interface, the turn-off request that described client browser sends, close described server-side browser, and send closedown success response by described client interactive interface to described client browser, or, turn-off request is sent to described client browser, if not receiving the response message that described client browser returns in the given time, then it is automatically switched off described server-side browser.B18, server as according to any one of claim B16 to B17, it is characterised in that in described startup request, carry the ID of described client browser;Described server farther includes: user data memory module, is suitable to be stored in data base by user data according to ID, and wherein, described user data includes: browser collection folder data and/or browsing histories data;User data update module, is suitable to update corresponding user data in described data base according to the user operation that described client browser sends.B19, server as according to any one of B16 to B18, it is characterized in that, described start unit is further adapted for: after being received user's logging request of client-side by described client interactive interface and logging in successfully, by described server-side browser process, from described data base, obtain corresponding user data according to described ID, and described user data is carried in described caching in the corresponding server-side browser page.B20, server as according to any one of B16 to B19, it is characterized in that, described processing unit is further adapted for: obtain, by described client interactive interface, the user Word message inputting described client browser and the input focus positional information inputting described Word message that described client browser sends;Input frame corresponding on described server-side browser is gone out according to described input focus positional information calculation, described information is inserted described data frame, and to described client browser feedback response information, wherein, the information carrying input success or failure in described response message and the described client browser carried when inputting word information success need the display content information updated.B21, server as according to any one of B16 to B20, it is characterized in that, described processing unit is further adapted for: obtain the user of described client browser transmission by described client interactive interface and described client browser carries out the side-play amount of scrolling operations;Side-play amount according to described scrolling operations calculates page offset, and determine that described client browser needs the display content information updated according to described page offset, and to described client browser feedback response information, wherein, described response message carries the display content information that described client browser needs to update.B22, server as according to any one of B16 to B21, it is characterised in that described processing unit is further adapted for: if dX roll screen+ x+ browser width > pagewidth, it is determined that dThe x page=pagewidth-(x+ browser width), otherwise, dThe x page=dX roll screen, wherein, dX roll screenThe user submitted to for described client browser carries out the side-play amount of the x-axis of scrolling operations, and x is the x-axis coordinate of page current location;If and/or dY roll screen+ y+ browser height > page height, it is determined that dThe y page=page height-(x+ browser height), otherwise, dThe y page=dY roll screen, wherein, dY roll screenThe user submitted to for described client browser carries out the side-play amount of the y-axis of scrolling operations, and y is the y-axis coordinate of page current location.B23, server as according to any one of B16 to B22, it is characterized in that, described processing unit is further adapted for: obtain, from described client browser, the input focus positional information that described client browser is clicked on by user by described client interactive interface, and judge event type according to described input focus positional information, wherein, described event type includes: browser event or web page event;Corresponding process is performed according to described event type, and by described client interactive interface to described client browser feedback response information, wherein, the display content information of the described client browser carried when carrying the information of described server-side processes success or failure in described response message and process successfully.B24, server as according to any one of B16 to B23, it is characterised in that described processing unit is further adapted for: if input focus position is on browser frames, it is determined that event type is browser event;If input focus position is in the range of webpage, it is determined that event type is web page event;In the case of described event type is browser event, directly perform corresponding operating according to described browser event at described server-side browser;In the case of described event type is web page event, web page event operation according to user, described server-side browser performs the operation of described web page event, interacted by the Website server of Website server interactive interface with response, operation information is transparent to corresponding Website server.B25, server as according to any one of B16 to B24, it is characterised in that the operation of described browser event includes: new tab page, close Shipping Options Page, switch labels page, management collection or destruction operation;The operation of described web page event includes: the operation to the connection on webpage, picture or button.B26, server as according to any one of B16 to B25, it is characterized in that, described display content information includes: display content carries out the key value corresponding with each piece of video data of one or more video data after piecemeal and the cryptographic Hash corresponding with each piece of video data.B27, server as according to any one of B16 to B26, it is characterised in that described processing unit farther includes: receive the key value corresponding to each piece of video data and the cryptographic Hash of the composition display content that described client browser sends;Judge that the key value corresponding to each piece of video data and the cryptographic Hash of described key value and described cryptographic Hash display content corresponding with described server-side browser are the most identical, if it is different, then up-to-date video data and corresponding key value and cryptographic Hash are sent to described client browser.B28, server as according to any one of B16 to B27, it is characterised in that described processing unit is further adapted for: downloading user from described client browser needs to upload to the data of webpage, and these data are uploaded to corresponding Website server;Download user from described client browser and need to upload to the data of webpage, and these data are uploaded to corresponding Website server.B29, server as according to any one of B16 to B28, it is characterised in that described server farther includes: filtering module, is suitable to, in the case of described event type is web page event, filter malice network address.B30, server as according to any one of B16 to B29, it is characterised in that described server farther includes: virus module, is suitable to the data to being sent to described client browser and carries out Viral diagnosis, is isolated by the virus document detected;Wooden horse module, is suitable to the data to being sent to described client browser and carries out wooden horse killing.

Claims (16)

1. the method realizing server-side browser, including:
Receive the startup request that client browser sends, start a server-side browser corresponding with described client browser at described server end, and start success response to the transmission of described client browser;
Obtain user's information that described client browser is inputted and input focus positional information that described client browser sends, according to described information and described input focus positional information, described server-side browser is performed respective handling, and operation result information is sent to described client browser;
Wherein, start a server-side browser corresponding with described client browser at described server end to specifically include:
Start a server-side browser process corresponding with described client browser at described server end, and start a server-side browser page corresponding with described server-side browser process in the buffer;
Wherein, user's information that described client browser is inputted that the described client browser of described acquisition sends and input focus positional information, according to described information and described input focus positional information described server-side browser performed respective handling, and operation result information is sent to described client browser includes:
Obtain the user Word message that described client browser is inputted and the input focus positional information inputting described Word message that described client browser sends;
Described server end goes out input frame corresponding on described server-side browser according to described input focus positional information calculation, described Word message is inserted described input frame, and to described client browser feedback response information, wherein, the information carrying input success or failure in described response message and the described client browser carried when inputting word information success need the display content information updated;
Wherein, user's information that described client browser is inputted that the described client browser of described acquisition sends and input focus positional information, according to described information and described input focus positional information described server-side browser performed respective handling, and operation result information is sent to described client browser farther includes:
Obtaining, from described client browser, the input focus positional information that described client browser is clicked on by user, and judge event type according to described input focus positional information, wherein, described event type includes: browser event or web page event;
Corresponding process is performed according to described event type, and to described client browser feedback response information, wherein, the display content information of the described client browser carried when carrying the information of described server-side processes success or failure in described response message and process successfully.
2. the method for claim 1, it is characterised in that described method farther includes:
Receive the turn-off request that described client browser sends, close described server-side browser, and send closedown success response to described client browser;Or,
Sending turn-off request to described client browser, if not receiving the response message that described client browser returns in the given time, being then automatically switched off described server-side browser.
3. the method for claim 1, it is characterised in that described method farther includes: carry the ID of described client browser in described startup request;
Being stored in data base by user data according to ID, wherein, described user data includes: browser collection folder data and/or browsing histories data;
The user operation sent according to described client browser updates corresponding user data in described data base.
4. method as claimed in claim 3, it is characterised in that after described server end starts a server-side browser corresponding with described client browser, described method farther includes:
After receiving user's logging request of client-side and logining successfully, described server-side browser process obtains corresponding user data according to described ID from described data base, and is carried in described caching by described user data in the corresponding server-side browser page.
5. the method for claim 1, it is characterized in that, obtain user's information that described client browser is inputted and input focus positional information that described client browser sends, according to described information and described input focus positional information described server-side browser performed respective handling, and operation result information is sent to described client browser farther includes:
The user obtaining the transmission of described client browser carries out the side-play amount of scrolling operations to described client browser;
Described server end calculates page offset according to the side-play amount of described scrolling operations, and determine that described client browser needs the display content information updated according to described page offset, and to described client browser feedback response information, wherein, described response message carries the display content information that described client browser needs to update.
Method the most as described in any of claims 5, it is characterised in that described server end calculates page offset according to the side-play amount of described scrolling operations and farther includes:
If dX roll screen+ x+ browser width > pagewidth, then dThe x page=pagewidth-(x+ browser width), otherwise, dThe x page=dX roll screen, wherein, dX roll screenThe user submitted to for described client browser carries out the side-play amount of the x-axis of scrolling operations, and x is the x-axis coordinate of page current location;And/or
If dY roll screen+ y+ browser height > page height, then dThe y page=page height-(x+ browser height), otherwise, dThe y page=dY roll screen, wherein, dY roll screenThe user submitted to for described client browser carries out the side-play amount of the y-axis of scrolling operations, and y is the y-axis coordinate of page current location.
7. the method as according to any one of claim 1 to 6, it is characterised in that judge that event type specifically includes according to described input focus positional information:
If input focus position is on browser frames, it is determined that event type is browser event;
If input focus position is in the range of webpage, it is determined that event type is web page event;
Perform corresponding process according to described event type to farther include:
In the case of described event type is browser event, described server end directly performs corresponding operating according to described browser event at described server-side browser;
In the case of described event type is web page event, described server end operates according to the web page event of user, described server-side browser performs the operation of described web page event, interacts with corresponding Website server, input information is transparent to corresponding Website server.
8. the method as according to any one of claim 1 to 6, it is characterised in that
The operation of described browser event includes: new tab page, closedown Shipping Options Page, switch labels page, management collection or destruction operation;
The operation of described web page event includes: the operation to the link on webpage, picture or button.
9. a server, including:
Start unit, be suitable to receive, by client interactive interface, the startup request that client browser sends, start a server-side browser corresponding with described client browser, and send startup success response by described client interactive interface to described client browser;
Processing unit, be suitable to information and the input focus positional information described client browser inputted by the user that the described client interactive interface described client browser of acquisition sends, according to described information and described input focus positional information, described server-side browser is performed respective handling, and operation result information is sent to described client browser;
Wherein, described start unit is further adapted for: starts a server-side browser process corresponding with described client browser at described server end, and starts a server-side browser page corresponding with described server-side browser process in the buffer;
Described processing unit is further adapted for:
The user Word message that described client browser is inputted and the input focus positional information inputting described Word message that described client browser sends is obtained by described client interactive interface;
Input frame corresponding on described server-side browser is gone out according to described input focus positional information calculation, described Word message is inserted described input frame, and to described client browser feedback response information, wherein, the information carrying input success or failure in described response message and the described client browser carried when inputting word information success need the display content information updated;
Described processing unit is further adapted for:
Obtain, from described client browser, the input focus positional information that described client browser is clicked on by user by described client interactive interface, and judge event type according to described input focus positional information, wherein, described event type includes: browser event or web page event;
Corresponding process is performed according to described event type, and by described client interactive interface to described client browser feedback response information, wherein, the display content information of the described client browser carried when carrying the information of described server-side processes success or failure in described response message and process successfully.
10. server as claimed in claim 9, it is characterised in that described server farther includes:
Close module, be suitable to receive, by described client interactive interface, the turn-off request that described client browser sends, close described server-side browser, and send closedown success response by described client interactive interface to described client browser, or, sending turn-off request to described client browser, if not receiving the response message that described client browser returns in the given time, being then automatically switched off described server-side browser.
11. servers as claimed in claim 9, it is characterised in that carry the ID of described client browser in described startup request;
Described server farther includes:
User data memory module, is suitable to be stored in data base by user data according to ID, and wherein, described user data includes: browser collection folder data and/or browsing histories data;
User data update module, is suitable to update corresponding user data in described data base according to the user operation that described client browser sends.
12. servers as claimed in claim 11, it is characterized in that, described start unit is further adapted for: after being received user's logging request of client-side by described client interactive interface and logining successfully, by described server-side browser process, from described data base, obtain corresponding user data according to described ID, and described user data is carried in described caching in the corresponding server-side browser page.
13. servers as claimed in claim 9, it is characterised in that described processing unit is further adapted for:
Obtain the user of described client browser transmission by described client interactive interface and described client browser is carried out the side-play amount of scrolling operations;
Side-play amount according to described scrolling operations calculates page offset, and determine that described client browser needs the display content information updated according to described page offset, and to described client browser feedback response information, wherein, described response message carries the display content information that described client browser needs to update.
14. servers as claimed in claim 9, it is characterised in that described processing unit is further adapted for:
If dX roll screen+ x+ browser width > pagewidth, it is determined that dThe x page=pagewidth-(x+ browser width), otherwise, dThe x page=dX roll screen, wherein, dX roll screenThe user submitted to for described client browser carries out the side-play amount of the x-axis of scrolling operations, and x is the x-axis coordinate of page current location;And/or
If dY roll screen+ y+ browser height > page height, it is determined that dThe y page=page height-(x+ browser height), otherwise, dThe y page=dY roll screen, wherein, dY roll screenThe user submitted to for described client browser carries out the side-play amount of the y-axis of scrolling operations, and y is the y-axis coordinate of page current location.
15. servers as according to any one of claim 9 to 14, it is characterised in that described processing unit is further adapted for:
If input focus position is on browser frames, it is determined that event type is browser event;
If input focus position is in the range of webpage, it is determined that event type is web page event;
In the case of described event type is browser event, directly perform corresponding operating according to described browser event at described server-side browser;
In the case of described event type is web page event, web page event operation according to user, described server-side browser performs the operation of described web page event, interacted with corresponding Website server by Website server interactive interface, operation information is transparent to corresponding Website server.
16. servers as according to any one of claim 9 to 14, it is characterised in that
The operation of described browser event includes: new tab page, closedown Shipping Options Page, switch labels page, management collection or destruction operation;
The operation of described web page event includes: the operation to the link on webpage, picture or button.
CN201210447374.9A 2012-11-09 2012-11-09 A kind of method realizing server-side browser and server Active CN102917074B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210447374.9A CN102917074B (en) 2012-11-09 2012-11-09 A kind of method realizing server-side browser and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210447374.9A CN102917074B (en) 2012-11-09 2012-11-09 A kind of method realizing server-side browser and server

Publications (2)

Publication Number Publication Date
CN102917074A CN102917074A (en) 2013-02-06
CN102917074B true CN102917074B (en) 2016-08-03

Family

ID=47615304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210447374.9A Active CN102917074B (en) 2012-11-09 2012-11-09 A kind of method realizing server-side browser and server

Country Status (1)

Country Link
CN (1) CN102917074B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981705A (en) * 2012-11-09 2013-03-20 北京奇虎科技有限公司 Server-side browser implementing method and server

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426863B (en) * 2013-08-27 2019-09-20 腾讯科技(深圳)有限公司 A kind of page request method, page request device, transfer server and terminal
CN103544068B (en) * 2013-10-18 2017-05-24 北京奇虎科技有限公司 Process to process communication method and device for browsers and browser
WO2015196467A1 (en) * 2014-06-27 2015-12-30 Google Inc. Automated click type selection for content performance optimization
CN104573025B (en) * 2015-01-12 2018-09-04 北京京东尚科信息技术有限公司 A kind of method and system improving page loading velocity
CN105516262B (en) * 2015-11-27 2019-01-25 深圳市酷士多网络科技有限公司 Application program remote control method and system
CN105872102B (en) * 2016-06-06 2018-12-18 武汉理工大学 A kind of File Upload and Download method
CN108241703B (en) * 2016-12-27 2022-01-18 腾讯科技(深圳)有限公司 Webpage data transmission method and device
CN107529711A (en) * 2017-08-01 2018-01-02 杭州安恒信息技术有限公司 The display methods and device of Streaming Media
CN109474563A (en) * 2017-09-08 2019-03-15 阿里巴巴集团控股有限公司 Processing, providing method, client and the server of file stream
CN107959727B (en) * 2017-12-14 2021-10-29 腾讯科技(深圳)有限公司 Method and device for communication between webpage and client
CN110430174A (en) * 2019-07-19 2019-11-08 上海易点时空网络有限公司 Multi-party communications method and device
CN111917833B (en) * 2020-07-10 2023-06-02 沈阳先进医疗设备技术孵化中心有限公司 Application method, device and system of client program in cloud environment
CN112100553B (en) * 2020-08-11 2023-11-17 深圳市拓邦软件技术有限公司 Webpage configuration method and device, electronic equipment and storage medium
CN112507259A (en) * 2020-12-15 2021-03-16 广州博冠信息科技有限公司 Webpage loading method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178716A (en) * 2007-11-19 2008-05-14 优视动景(北京)技术服务有限公司 Method of micro-browsers processing JavaScript and micro-browsers thereof
CN101911075A (en) * 2008-01-14 2010-12-08 国际商业机器公司 Browser-based proxy server for customization and distribution of existing applications
CN102609522A (en) * 2012-02-09 2012-07-25 张士益 Integrated interaction control method and system of website information and client programs

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178716A (en) * 2007-11-19 2008-05-14 优视动景(北京)技术服务有限公司 Method of micro-browsers processing JavaScript and micro-browsers thereof
CN101911075A (en) * 2008-01-14 2010-12-08 国际商业机器公司 Browser-based proxy server for customization and distribution of existing applications
CN102609522A (en) * 2012-02-09 2012-07-25 张士益 Integrated interaction control method and system of website information and client programs

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981705A (en) * 2012-11-09 2013-03-20 北京奇虎科技有限公司 Server-side browser implementing method and server
CN102981705B (en) * 2012-11-09 2018-04-27 北京奇虎科技有限公司 Server-side browser implementation method and server

Also Published As

Publication number Publication date
CN102917074A (en) 2013-02-06

Similar Documents

Publication Publication Date Title
CN102917074B (en) A kind of method realizing server-side browser and server
CN102981705B (en) Server-side browser implementation method and server
US10649826B2 (en) Flexible scripting platform for troubleshooting
CN102932469B (en) Method for achieving client browser and client browser
US9565265B2 (en) Method and apparatus for automatically optimizing the loading of images in a cloud-based proxy service
US7464381B1 (en) Content update proxy method
US9230036B2 (en) Enhanced browser cookie management
US10015226B2 (en) Methods for making AJAX web applications bookmarkable and crawlable and devices thereof
CN104978358B (en) The method and intercepting page segment of desktop presentation web page fragments are to desktop presentation system
US20090037517A1 (en) Method and system to share content between web clients
CN102929489B (en) Client browser implementation method and client browser
US7984170B1 (en) Cross-domain communication in domain-restricted communication environments
US9088462B2 (en) Common web accessible data store for client side page processing
CN106897336A (en) Web page files sending method, webpage rendering intent and device, webpage rendering system
CN103823841A (en) Method and device for increasing browsing speed for mobile terminal client
US20180032384A1 (en) Secure script execution using sandboxed environments
US20140157104A1 (en) Dynamic sharing and updating of a web page
CN104468769A (en) Method, device and system for acquiring network data content and client side
US20150113093A1 (en) Application-aware browser
CN112926002A (en) Service request processing method and device
CN102681848B (en) Develop in microtec mode and the method for accessed web page, device, terminal and system
US20150358397A1 (en) Distributed system
CN110633432A (en) Method, device, terminal equipment and medium for acquiring data
CN106649792B (en) Page access method and device
CN105338091A (en) High-transmission-efficiency personalized information interface display method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220713

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.