CN104426863B - A kind of page request method, page request device, transfer server and terminal - Google Patents
A kind of page request method, page request device, transfer server and terminal Download PDFInfo
- Publication number
- CN104426863B CN104426863B CN201310379282.6A CN201310379282A CN104426863B CN 104426863 B CN104426863 B CN 104426863B CN 201310379282 A CN201310379282 A CN 201310379282A CN 104426863 B CN104426863 B CN 104426863B
- Authority
- CN
- China
- Prior art keywords
- resource
- page
- resource identification
- need
- filtered
- 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
Links
Abstract
The invention discloses a kind of page request method, page request device, transfer server and terminal, the page request method includes: terminal sent to transfer server include banner page request;The transfer server obtains the corresponding page resource of the banner, obtains the resource identification set that need to be filtered, the page resource and the resource identification set that need to be filtered are sent to the terminal;Whether the terminal judges in the page resource comprising resource identification, if the resource identification in the resource identification for being included not in the resource identification set that need to be filtered then is sent to the transfer server, the transfer server obtains the corresponding page elements of the received resource identification of institute, and the page elements are sent to the terminal.Technical solution of the present invention can reduce the network flow of terminal, can shorten the load time of the page of webpage.
Description
Technical field
The present invention relates to computer application technologies, and in particular to field of communication technology more particularly to a kind of page are asked
Ask method, page request device, transfer server and terminal.
Background technique
Internet gradually gos deep into people's lives, and the main path of netizen's contact network is browsed by browser
Web presence generally has a large amount of useless page resource to need to filter in the page of WWW at present, such as picture,
Advertisement of the forms such as Flash, text link, image link etc. or even some floating ad contents are rolled with the page, or
It is floated always on the page, has seriously affected the experience of user's browsing pages, while downloading these page resource certainty consumptive uses
The flow at family extends the load time of the page, this is also that the mobile device users such as smart phone, tablet computer are in the urgent need to address
The problem of.
In the prior art, part browser provides advertising filtering function, after the completion of advertising resource is downloaded,
Terminal is identified by certain mode, thus without advertising display.Although this mode solves advertisement interference user's
The problem of problem but still needs to initiate network request to advertising resource, not can solve flow consumption and page load time extension.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of page request method, page request device, transfer server and end
End can reduce the flow consumption of client.
The embodiment of the present invention uses following technical scheme:
In a first aspect, the embodiment of the present invention provides a kind of page request method, comprising:
Terminal sends the page request comprising banner to transfer server;
The transfer server obtains the corresponding page resource of the banner, obtains the resource identification collection that need to be filtered
It closes, the page resource and the resource identification set that need to be filtered is sent to the terminal;
Whether the terminal judges comprising resource identification in the page resource, if then will be in the resource identification that be included
The resource identification in the resource identification set that need to be filtered is not sent to the transfer server, and the transfer server obtains
The corresponding page elements of the received resource identification of institute are taken, the page elements are sent to the terminal.
Second aspect, the embodiment of the present invention also provide a kind of page request method, comprising:
Receive the page request comprising banner that terminal is sent;
The corresponding page resource of the banner is obtained, the resource identification set that need to be filtered is obtained, the page is provided
Source and the resource identification set that need to be filtered are sent to the terminal;
If receiving the page elements request comprising resource identification that the terminal is sent, the received resource identification of institute is obtained
The page elements are sent to the terminal by corresponding page elements.
The third aspect, the embodiment of the present invention also provide a kind of page request method characterized by comprising
The page request comprising banner is sent to transfer server;
The resource identification set that receives the transfer server back page resource and need to filter;
Whether judge in the page resource comprising resource identification, if then by the resource identification for being included not described
The resource identification in resource identification set that need to be filtered is sent to the transfer server, is returned with receiving the transfer server
The corresponding page elements of the resource identification.
Fourth aspect, the embodiment of the present invention provide a kind of page request system, including terminal and transfer server, comprising:
The terminal is used to send the page request comprising banner to the transfer server;
The transfer server obtains the resource identification that need to be filtered for obtaining the corresponding page resource of the banner
Set, is sent to the terminal for the page resource and the resource identification set that need to be filtered;
Whether the terminal is for judging comprising resource identification in the page resource, if the resource mark that then will be included
Resource identification in knowledge not in the resource identification set that need to be filtered is sent to the transfer server, the transfer service
The page elements are sent to the terminal for the corresponding page elements of the received resource identification of acquisition institute by device.
5th aspect, the embodiment of the present invention provide a kind of transfer server, comprising:
Page request receiving unit, for receiving the page request comprising banner of terminal transmission;
Page resource identifies acquisition and transmission unit with filtered resources are needed, for obtaining the corresponding page of the banner
Resource obtains the resource identification set that need to be filtered, the page resource and the resource identification set that need to be filtered is sent to
The terminal;
Page elements request-response unit, if the page elements comprising resource identification sent for receiving the terminal
Request obtains the corresponding page elements of the received resource identification of institute, the page elements is sent to the terminal.
6th aspect, the embodiment of the present invention provide a kind of terminal, comprising:
Page request unit, for sending the page request comprising banner to transfer server;
Page resource and the resource identification receiving unit that need to be filtered, for receiving the transfer server back page resource
With the resource identification set that need to be filtered;
Page elements request unit, for judging whether comprising resource identification in the page resource, if will then be wrapped
Resource identification in the resource identification contained not in the resource identification set that need to be filtered is sent to the transfer server, with
Receive the corresponding page elements of the resource identification that the transfer server returns.
Technical solution bring provided in an embodiment of the present invention the utility model has the advantages that
Technical solution provided in an embodiment of the present invention can reduce the network flow of terminal, can be shortened adding for the page of webpage
Carry the time.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, institute in being described below to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without creative efforts, can also implement according to the present invention
The content of example and these attached drawings obtain other attached drawings.
Fig. 1 is page request method flow chart described in the specific embodiment of the invention one;
Fig. 2 is page request method flow chart described in the specific embodiment of the invention two;
Fig. 3 is page request method flow chart described in the specific embodiment of the invention three;
Fig. 4 is page request method flow chart described in the specific embodiment of the invention five;
Fig. 5 is page request method flow chart described in the specific embodiment of the invention six;
Fig. 6 is the interaction schematic diagram of terminal described in the specific embodiment of the invention seven and transfer server;
Fig. 7 is transfer server structural block diagram described in the specific embodiment of the invention eight;
Fig. 8 is terminal structure block diagram described in the specific embodiment of the invention nine.
Specific embodiment
To keep the technical problems solved, the adopted technical scheme and the technical effect achieved by the invention clearer, below
It will the technical scheme of the embodiment of the invention will be described in further detail in conjunction with attached drawing, it is clear that described embodiment is only
It is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art exist
Every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
To further illustrate the technical scheme of the present invention below with reference to the accompanying drawings and specific embodiments.
Embodiment one
Fig. 1 is page request method flow chart described in the present embodiment, as shown in Figure 1, the page described in the present embodiment is asked
The method is asked to include:
S101, terminal send the page request comprising banner to transfer server.
Transfer server is the server between terminal and destination server, for realizing the request to client into
Row forwards, the format of Webpage is converted and/or is adapted to, and carries out the function, alternatively referred to as agency service such as compressing to resource
Device.
When terminal receives the web-page requests of user, requested banner is obtained, Xiang Suoshu banner is corresponding
Website server requests the corresponding web page resources of the banner, and the request is automatically forwarded to transfer by Transparent Proxy
Server.
S102, transfer server obtain the corresponding page resource of the banner, obtain the resource identification collection that need to be filtered
It closes.
Transfer server obtains the corresponding page resource of the banner, and one of following two mode can be used:
The first: extracting the corresponding page money of the banner from the corresponding Website server of the banner
Source;
Second: the transfer server locally obtains the corresponding page of the banner from the transfer server first
Face resource if obtaining failure, then extracts the corresponding page of the banner from the corresponding Website server of the banner
Face resource.
The resource identification set of acquired page resource and acquired need filtering is sent to by S103, transfer server
Terminal.
The page resource is framework resources, textual resources and the webpage of the corresponding page of the banner
Identify the resource identification of picture, the resource identification of Flash, the resource identification of audio file, video text that corresponding page is included
Resource identification, text link and/or resource identification of image link of part etc..
S104, terminal judge in page resource whether comprising resource identification otherwise to execute step if so then execute step S105
Rapid S107.
Terminal judge in page resource whether include advertising resource resource identification, such as display advertising resource identification,
The resource identification of Flash ad, the resource identification of audio advertisement, the resource identification of video ads, text link advertising resource
The resource identification of the background image of mark, advertising resource mark of image link etc. and/or the page face resource.
S105, terminal by resource identification that the page resource is included not in the resource identification set that need to be filtered
In resource identification be sent to transfer server.
If including the resource identification of picture, the resource identification of Flash, the resource identification of audio file, view in page resource
Resource identification, text link and/or resource identification of image link of frequency file etc., obtain the resource identification, respectively by institute
The resource identification of acquisition is compared with the resource identification in the resource identification set that need to be filtered, and will wherein compare unsuccessful
Resource identification be sent to transfer server.
S106, transfer server obtain the corresponding page elements of the received resource identification of institute, and the page elements are sent
To terminal, terminate.
S107, not to transfer server send resource identification, terminate.
The page request method of the present embodiment passes through the page resource of transfer server acquisition request and the resource that need to be filtered
Logo collection is sent to after terminal, if including resource identification in page resource, terminal is only in the resource identification for being included
The resource identification in the resource identification set that need to be filtered does not make requests, and this programme can reduce the network flow of terminal
Amount, can shorten the load time of the page of webpage.
Embodiment two
Fig. 2 is page request method flow chart described in the present embodiment, and the present embodiment, will be real compared with above-described embodiment one
The resource identification set for applying the filtering of need described in example one is extracted from acquired page resource especially by according to preset algorithm
It obtains.As shown in Fig. 2, page request method described in the present embodiment includes:
S201, terminal send the page request comprising banner to transfer server.
Terminal sends the page request comprising banner (such as uniform resource locator of webpage) to transfer server,
Transfer server receives the page request that terminal is sent, and obtains requested banner.
S202, transfer server obtain the corresponding page resource of the banner.
When having the information such as many pictures, music, film in the corresponding web page files of the banner of request, transfer service
Directly do not include image data in the page resource that device returns, and only saves the resource of the information such as the picture, music, film
Mark (such as comprising the link of universal resource identifier) encounters the resource of picture when the browser of terminal explains
When mark, the solicited message to picture is just issued to server.Whether the step is used to judge the page resource requested
Resource identification comprising information such as picture, music, films.
Transfer server obtains the corresponding page resource of the banner, and one of following two mode can be used:
The first: extracting the corresponding page money of the banner from the corresponding Website server of the banner
Source;
Second: the transfer server locally obtains the corresponding page of the banner from the transfer server first
Face resource if obtaining failure, then extracts the corresponding page of the banner from the corresponding Website server of the banner
Face resource.
S203, transfer server extract the resource identification set of the need filtering in page resource according to preset algorithm.
The mode that transfer server obtains the advertising resource that need to be filtered includes a variety of, for example, can pass through following two mode
One of obtain:
The first, the resource identification for the advertising resource that need to be filtered, example are extracted according to the page resource according to preset algorithm
As by point look into the keyword in resource identification included in page resource (such as URI), searching in resource identification is
The identifier of the no page resource comprising that need to filter often uses keyword, such as the abbreviation of the English word comprising advertisement;
It second, is stored in advance or makes a reservation for obtain and wrap in the page resource comprising the blacklist for needing filtered resources to identify
The resource identification contained is obtained by judging that acquired each resource identification whether there is in pre-stored blacklist respectively
The resource identification set that need to be filtered.
Acquired page resource and the extracted resource identification set that need to be filtered are sent to by S204, transfer server
Terminal.
The page resource and the resource identification set that need to be filtered are sent to terminal and various ways can be used, can be divided
The page resource and the resource identification set that need to be filtered are not sent to terminal, it can also be by the resource mark that need to be filtered
Know set carrying and is sent to the terminal in the page resource.
If the latter, then can by the page resource and the resource identification set that need to be filtered with the terminal with it is described
The protocol format of transfer server agreement is sent to the terminal.
For example, the resource identification set that need to be filtered can be inserted into the hypertext transfer protocol of the page resource
In the file of (hypertext transport protocol agreement, http protocol) format.The resource of filtering is needed as will be described
Logo collection is embedded in the end mark of the file header of the file of the http protocol format of the page resource and the beginning of file body
Between symbol.
The page resource is framework resources, textual resources and the webpage of the corresponding page of the banner
Identify the resource identification of picture, the resource identification of Flash, the resource identification of audio file, video text that corresponding page is included
Resource identification, text link and/or resource identification of image link of part etc..
S205, terminal judge in page resource whether comprising resource identification otherwise to execute step if so then execute step S207
Rapid S206.
S206, it does not operate, terminates.
S207, terminal sequentially extract resource identification included in page resource.
S208, terminal judge extracted resource identification whether in the received resource identification set that need to be filtered, if
It is then return step S207, it is no to then follow the steps S209.
Extracted resource identification is sent to transfer server by S209, terminal.S210, transfer server acquisition are received
The corresponding page elements of resource identification, the page elements are sent to terminal.
S211, terminal judge whether extracted resource identification is the last one resource identification, if then return step
S206, otherwise return step S207.
It is further to note that only the parts related to the present invention are shown for ease of description, in attached drawing rather than it is complete
Portion's content.After the step S204 of the present embodiment, after the terminal receives the page resource that the transfer server is sent,
Then turning server described in step S210, which will work as, can be shown to the received page resource of institute on the terminal in advance
After preceding acquired page elements are sent to the terminal, the terminal in time shows the received page elements of institute, directly
To the display for completing the corresponding webpage of the page iden-tity.Alternatively, after all steps of the present embodiment terminate, disposably institute
Terminal is stated to show the page elements received and a received page elements.
The page request method of the present embodiment, by the page resource of transfer server acquisition request, according to preset algorithm
The resource identification set for extracting the need filtering in page resource, is sent to terminal, if in page resource including resource identification, eventually
End is sequentially downloaded the resource identification in the resource identification set for being not belonging to filter, the filtering of need described in the present embodiment
Resource identification set only includes the resource identification for the filtering that page resource is included, and can further save the flow of terminal.
Embodiment three
Fig. 3 is page request method flow chart described in the present embodiment, and the executing subject respectively acted is transfer server, in
Turning server is the server between terminal and destination server, is forwarded for realizing the request to client, net
The format of the page page is converted and/or is adapted to, and carries out the function, alternatively referred to as proxy server such as compressing to resource.Such as Fig. 3 institute
Show, page request method described in the present embodiment includes:
S301, the page request comprising banner that terminal is sent is received.
Transfer server receives the page comprising banner (such as uniform resource locator of webpage) that terminal is sent
Request.
S302, the corresponding page resource of the banner is obtained, obtains the resource identification set that need to be filtered.
The resource identification set that need to be filtered include the advertising resource that the page resource is included resource identification and/
Or resource identification of the background image of the page resource etc..
Resource identification set includes the resource identification for the picture that the page resource is included, the resource identification of Flash, sound
The resource identification of frequency file, the resource identification of video file, text link and/or image link resource identification.
Transfer server obtains the corresponding page resource of the banner, and one of following two mode can be used:
The first: extracting the corresponding page money of the banner from the corresponding Website server of the banner
Source;
Second: the transfer server locally obtains the corresponding page of the banner from the transfer server first
Face resource if obtaining failure, then extracts the corresponding page of the banner from the corresponding Website server of the banner
Face resource.
The mode that transfer server obtains the resource identification set that need to be filtered includes a variety of, for example, can pass through following two
One of mode obtains:
The first, according to the set for the resource identification that the page resource is extracted according to preset algorithm.Such as by resource
Keyword in mark (such as URI) point look into, search in resource identification whether include the page resource that need to be filtered identifier
Common keyword, such as the abbreviation of the English word comprising advertisement;
It second, is stored in advance or makes a reservation for obtain and wrap in the page resource comprising the blacklist for needing filtered resources to identify
The resource identification contained is obtained by judging that acquired each resource identification whether there is in pre-stored blacklist respectively
The resource identification set that need to be filtered.
S303, the page resource and the resource identification set that need to be filtered are sent to terminal.
The page resource and the resource identification set that need to be filtered are sent to terminal and various ways can be used, can be divided
The page resource and the resource identification set that need to be filtered are not sent to terminal, it can also be by the resource mark that need to be filtered
Know set carrying and is sent to the terminal in the page resource.
If the latter, then can by the page resource and the resource identification set that need to be filtered with the terminal with it is described
The protocol format of transfer server agreement is sent to the terminal.
For example, the resource identification set that need to be filtered can be inserted into the text of the http protocol format of the page resource
In part.The resource identification set of filtering is needed to be embedded in the file of the file of the http protocol format of the page resource as will be described
Between the end mark of head and the first symbol of file body.
The page resource is framework resources, textual resources and the webpage of the corresponding page of the banner
Identify the resource identification of picture, the resource identification of Flash, the resource identification of audio file, video text that corresponding page is included
Resource identification, text link and/or resource identification of image link of part etc..
S304, judge whether to receive the page elements request of terminal transmission, if so then execute step S305, otherwise execute
Step S306.
S305, acquisition receive corresponding page elements, and the page elements are sent to terminal, terminate.
S306, not to terminal send page elements, terminate.
The page request method of the present embodiment, the resource identification collection that page resource is obtained by banner and need to be filtered
Close, be sent to terminal so that in page resource include resource identification when, terminal only in the resource identification for being included not described
The resource identification in resource identification set that need to be filtered makes requests, and so as to reduce the network flow of terminal, can shorten net
The load time of the page of page.
Example IV
Fig. 4 is the method flow diagram of page request method described in the present embodiment, and the executing subject respectively acted is terminal, institute
Stating terminal can be any form of computer or mobile terminal that can connect to progress internet web page access in internet, including
Smart phone, E-book reader, PC, laptop, tablet computer etc., as shown in figure 4, described in the present embodiment
Page request method includes:
S401, the page request comprising banner is sent to transfer server.
Transfer server is the server between terminal and destination server, for realizing the request to client into
Row forwards, the format of Webpage is converted and/or is adapted to, and carries out the function, alternatively referred to as agency service such as compressing to resource
Device.
When terminal receives the web-page requests of user, requested banner is obtained, Xiang Suoshu banner is corresponding
Website server requests the corresponding web page resources of the banner, and the request is automatically forwarded to transfer by Transparent Proxy
Server.
S402, the resource identification set that receives transfer server back page resource and need to filter.
Transfer server obtains the corresponding page resource of the banner, and one of following two mode can be used:
The first: extracting the corresponding page money of the banner from the corresponding Website server of the banner
Source;
Second: the transfer server locally obtains the corresponding page of the banner from the transfer server first
Face resource if obtaining failure, then extracts the corresponding page of the banner from the corresponding Website server of the banner
Face resource.
The mode that transfer server obtains the resource identification set that need to be filtered includes a variety of, for example, can pass through following two
One of mode obtains:
The first, the resource identification set that need to be filtered is extracted according to the page resource according to preset algorithm.Such as pass through
Whether the keyword in resource identification included in the page resource (such as URI) point look into, search and wrap in resource identification
Identifier containing the page resource that need to be filtered often uses keyword, such as the abbreviation of the English word comprising advertisement;
It second, is stored in advance or makes a reservation for obtain and wrap in the page resource comprising the blacklist for needing filtered resources to identify
The resource identification contained is obtained by judging that acquired each resource identification whether there is in pre-stored blacklist respectively
The resource identification set that need to be filtered.
S403, judge in the page resource whether comprising resource identification otherwise to execute step if so then execute step S404
Rapid S405.
When having the information such as many pictures, music, film in the corresponding web page files of the banner of request, transfer service
Directly do not include image data in the page resource that device returns, and only saves the resource of the information such as the picture, music, film
It identifies (such as comprising the link of universal resource identifier), when browser explains, when encountering the resource identification of picture,
The solicited message to picture is just issued to server.The step is whether the page resource for being used to judge to request includes figure
The resource identification of the information such as piece, music, film.
S404, by the not resource identification in the resource identification set that need to be filtered in the resource identification for being included
It is sent to transfer server.
S405, not to transfer server send resource identification.
The page request method of the present embodiment, by terminal to transfer server request page resource and the resource that need to filter
Logo collection did not only need if including resource identification in received page resource in the resource identification for being included described
Resource identification in the resource identification set of filter makes requests, and this programme can reduce the network flow of terminal, can shorten webpage
The page load time.
Embodiment five
Fig. 5 is the method flow diagram of page request method described in the present embodiment, as shown in figure 5, described in the present embodiment
Page request method includes:
S501, the page request comprising banner is sent to transfer server.
S502, the resource identification set that the need in transfer server back page resource and page resource filter is received.
S503, judge whether comprising resource identification in page resource, it is no to then follow the steps if so then execute step S505
S504。
S504, it does not operate, terminates.
S505, resource identification included in page resource is sequentially extracted.
S506, judge extracted resource identification whether in the received resource identification set that need to be filtered, if then
Step S505 is executed, it is no to then follow the steps S507.
S507, extracted resource identification is sent to transfer server.
S508, the corresponding page elements of the resource identification that transfer server returns are received.
S509, judge whether extracted resource identification is the last one resource identification, if then return step S504, no
Then return step S505.
The page request method of the present embodiment identifies corresponding page resource to transfer server requested webpage by terminal
With the resource identification set of the need filtering in page resource, if including resource identification in page resource, terminal is sequentially to non-need
The resource of the resource identification set of filtering is downloaded and shows in time.Technical solution described in the present embodiment can save terminal
Flow.
Embodiment six
The present embodiment proposes a kind of system for reducing terminal flow, including terminal and transfer server.Fig. 6 is this implementation
The interaction schematic diagram of terminal and transfer server in system described in example, as shown in fig. 6, reduction terminal described in the present embodiment
The system of flow includes terminal and transfer server.
The terminal is used to send the page request comprising banner to the transfer server;
The transfer server obtains the resource identification that need to be filtered for obtaining the corresponding page resource of the banner
Set, is sent to the terminal for the page resource and the resource identification set that need to be filtered;
Whether the terminal is for judging comprising resource identification in the page resource, if the resource mark that then will be included
Resource identification in knowledge not in the resource identification set that need to be filtered is sent to the transfer server, the transfer service
The page elements are sent to the terminal for the corresponding page elements of the received resource identification of acquisition institute by device.
The system of the reduction terminal flow of the present embodiment, the transfer server are used for the page resource of acquisition request and need
The resource identification set of filtering, is sent to terminal, if in page resource including resource identification, terminal is for only to being included
Resource identification in resource identification not in the resource identification set that need to be filtered makes requests, and this programme can reduce terminal
Network flow, the load time of the page of webpage can be shortened.
Embodiment seven
Present embodiment illustrates a kind of transfer server, Fig. 7 is transfer server structural block diagram described in the present embodiment, such as
Shown in Fig. 7, transfer server described in the present embodiment includes:
Page request receiving unit 701, for receiving the page request comprising banner of terminal transmission;
Page resource identifies acquisition and transmission unit 702 with filtered resources are needed, corresponding for obtaining the banner
Page resource obtains the resource identification set that need to be filtered, and the page resource and the resource identification set that need to be filtered are sent out
Give the terminal;
Page elements request-response unit 703, if the page comprising resource identification sent for receiving the terminal
Element request obtains the corresponding page elements of the received resource identification of institute, the page elements is sent to the terminal.
The transfer server of the present embodiment, the resource identification set that page resource is obtained according to banner and need to be filtered,
Be sent to terminal so that in page resource include resource identification when, terminal only in the resource identification for being included not in the need
Resource identification in the resource identification set of filtering makes requests, and so as to reduce the network flow of terminal, can shorten webpage
The page load time.
Embodiment eight
Present embodiment illustrates a kind of terminal, Fig. 8 is terminal structure block diagram described in the present embodiment, as shown in figure 8, this reality
Applying terminal described in example includes:
Page request unit 801, for sending the page request comprising banner to transfer server;
Page resource and the resource identification receiving unit 802 that need to be filtered, for receiving the transfer server back page
Resource and the resource identification set that need to be filtered;
Page elements request unit 803, for judging whether comprising resource identification in the page resource, if then by institute
Resource identification in the resource identification for including not in the resource identification set that need to be filtered is sent to the transfer server,
To receive the corresponding page elements of the resource identification that the transfer server returns.
The terminal of the present embodiment identifies corresponding page resource to transfer server requested webpage by terminal and the page provides
The resource identification set of need filtering in source sequentially carries out down non-advertising resource if including resource identification in page resource
It carries.The present embodiment can improve page-downloading efficiency.
Above embodiments provide technical solution in all or part of the content can be realized by software programming, software
Program store in a readable storage medium, storage medium for example: hard disk, CD or floppy disk in computer.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (35)
1. a kind of page request method characterized by comprising
Terminal sends the page request comprising banner to transfer server;
The transfer server obtains the corresponding page resource of the banner, obtains the resource identification set that need to be filtered, will
The page resource and the resource identification set that need to be filtered are sent to the terminal, wherein the page resource is following
At least one: framework resources, textual resources and the banner corresponding page institute of the corresponding page of the banner
The resource identification for the picture for including, the resource identification of Flash, the resource identification of audio file, the resource identification of video file, text
The resource identification of this link and the resource identification of image link;
Whether the terminal judges comprising resource identification in the page resource, if will then not exist in the resource identification for being included
Resource identification in the resource identification set that need to be filtered is sent to the transfer server, and the transfer server obtains institute
The page elements are sent to the terminal by the corresponding page elements of received resource identification.
2. page request method as described in claim 1, which is characterized in that the resource identification set that need to be filtered includes institute
State the resource identification of the resource identification for the advertising resource that page resource is included and/or the background image of the page resource.
3. page request method as described in claim 1, which is characterized in that the resource identification set packet that the acquisition need to filter
It includes: the resource identification collection that need to be filtered is formed according to the resource identification that preset algorithm extracts advertising resource according to the page resource
It closes.
4. page request method as described in claim 1, which is characterized in that not in institute in the resource identification that will included
Stating the step of resource identification in the resource identification set that need to be filtered is sent to the transfer server includes: the terminal traversal
Whether resource identification included in the page resource judges extracted resource identification in the resource identification that need to be filtered
In set, if then skipping extracted resource identification, if otherwise requesting the resource identification corresponding to the transfer server
Page elements.
5. page request method as described in claim 1, which is characterized in that the resource identification set tool that the acquisition need to filter
Body are as follows: obtain the resource identification for including in the page resource, whether there is by each resource identification for judging acquired respectively
The resource identification set that need to be filtered is obtained in pre-stored blacklist.
6. page request method as described in claim 1, which is characterized in that the transfer server obtains the banner
The step of corresponding page resource specifically includes: the transfer server is mentioned from the corresponding Website server of the banner
Take the corresponding page resource of the banner.
7. page request method as described in claim 1, which is characterized in that the transfer server obtains the banner
The step of corresponding page resource specifically includes: the transfer server locally obtains the net from the transfer server first
Page identifies corresponding page resource, if obtaining failure, then extracts the net from the corresponding Website server of the banner
Page identifies corresponding page resource.
8. page request method as described in claim 1, which is characterized in that described by the page resource and described to need to filter
Resource identification set be sent to the terminal and specifically include: the resource identification set that need to be filtered is carried in the page
The terminal is sent in resource.
9. page request method as described in claim 1, which is characterized in that described by the page resource and described to need to filter
Resource identification set the step of being sent to the terminal specifically include: the resource identification set that need to be filtered is inserted into institute
In the file for stating the hypertext transfer protocol format of page resource.
10. page request method as claimed in claim 9, which is characterized in that described by the resource identification collection that need to be filtered
In the file for closing the hypertext transfer protocol format for being inserted into the page resource specifically: by the resource identification that need to be filtered
Set is embedded in the end mark of file header and the opening for file body of the file of the hypertext transfer protocol format of the page resource
Between beginning symbol.
11. a kind of page request method characterized by comprising
Receive the page request comprising banner that terminal is sent;
Obtain the corresponding page resource of the banner, obtain the resource identification set that need to be filtered, by the page resource and
The resource identification set that need to be filtered is sent to the terminal, wherein the page resource is at least one of: the net
The money for the picture that framework resources, textual resources and the banner corresponding page of the corresponding page of page mark are included
The resource mark of source mark, the resource identification of Flash, the resource identification of audio file, the resource identification of video file, text link
Know the resource identification with image link;
If receiving the page elements request comprising resource identification that the terminal is sent, it is corresponding to obtain the received resource identification of institute
Page elements, the page elements are sent to the terminal.
12. page request method as claimed in claim 11, which is characterized in that the resource identification set that need to be filtered includes
The resource identification of the background image of the resource identification for the advertising resource that the page resource is included and/or the page resource.
13. page request method as claimed in claim 11, which is characterized in that the resource identification set that the acquisition need to filter
Specifically: the resource identification that need to be filtered is formed according to the resource identification that preset algorithm extracts advertising resource according to the page resource
Set.
14. page request method as claimed in claim 11, which is characterized in that the resource identification set that the acquisition need to filter
Specifically: the resource identification for including in the page resource is obtained, whether is deposited by each resource identification for judging acquired respectively
It is to obtain the resource identification set that need to be filtered in pre-stored blacklist.
15. page request method as claimed in claim 11, which is characterized in that described to obtain the corresponding page of the banner
The step of face resource, specifically includes: the corresponding page of the banner is extracted from the corresponding Website server of the banner
Face resource.
16. page request method as claimed in claim 11, which is characterized in that described to obtain the corresponding page of the banner
The step of face resource, specifically includes: the corresponding page resource of the banner is obtained from transfer server local first, if obtaining
Failure is taken, then extracts the corresponding page resource of the banner from the corresponding Website server of the banner.
17. page request method as claimed in claim 11, which is characterized in that described by the page resource and described to need
The resource identification set of filter is sent to the terminal and specifically includes: the resource identification set that need to be filtered is carried in the page
The terminal is sent in the resource of face.
18. page request method as claimed in claim 11, which is characterized in that described by the page resource and described to need
The step of resource identification set of filter is sent to the terminal specifically includes: the resource identification set that need to be filtered is inserted into
In the file of the hypertext transfer protocol format of the page resource.
19. page request method as claimed in claim 18, which is characterized in that described by the resource identification collection that need to be filtered
In the file for closing the hypertext transfer protocol format for being inserted into the page resource specifically: by the resource identification that need to be filtered
Set is embedded in the end mark of file header and the opening for file body of the file of the hypertext transfer protocol format of the page resource
Between beginning symbol.
20. a kind of page request method characterized by comprising
The page request comprising banner is sent to transfer server;
The resource identification set that receives the transfer server back page resource and need to filter, wherein the page resource is
At least one of: framework resources, textual resources and the banner of the corresponding page of the banner correspond to page
The resource identification for the picture that face is included, the resource identification of Flash, the resource identification of audio file, video file resource mark
Know, the resource identification of the resource identification of text link and image link;
Judge whether comprising resource identification in the page resource, if will then not needed described in the resource identification for being included
Resource identification in the resource identification set of filter is sent to the transfer server, to receive the institute that the transfer server returns
State the corresponding page elements of resource identification.
21. page request method as claimed in claim 20, which is characterized in that the resource identification set that need to be filtered includes
The resource identification of the background image of the resource identification for the advertising resource that the page resource is included and/or the page resource.
22. a kind of transfer server characterized by comprising
Page request receiving unit, for receiving the page request comprising banner of terminal transmission;
Page resource identifies acquisition and transmission unit with filtered resources are needed, for obtaining the corresponding page money of the banner
Source obtains the resource identification set that need to be filtered, the page resource and the resource identification set that need to be filtered is sent to institute
State terminal, wherein the page resource is at least one of: framework resources, the text of the corresponding page of the banner
The resource identification of picture, the resource identification of Flash, the audio file that resource and the banner corresponding page are included
Resource identification, the resource identification of video file, the resource identification of text link and image link resource identification;
Page elements request-response unit, if being asked for receiving the page elements comprising resource identification that the terminal is sent
It asks, obtains the corresponding page elements of the received resource identification of institute, the page elements are sent to the terminal.
23. transfer server as claimed in claim 22, which is characterized in that the resource identification set that need to be filtered includes institute
State the resource identification of the resource identification for the advertising resource that page resource is included and/or the background image of the page resource.
24. transfer server as claimed in claim 22, which is characterized in that the page resource is obtained with filtered resources mark is needed
It takes and obtains the resource identification set that need to be filtered with transmission unit specifically: for being mentioned according to the page resource according to preset algorithm
The resource identification of advertising resource is taken to form the resource identification set that need to be filtered.
25. transfer server as claimed in claim 22, which is characterized in that described by the page resource and described to need to filter
Resource identification set be sent to the terminal specifically: for obtaining the resource identification for including in the page resource, pass through
Judge that acquired each resource identification whether there is in pre-stored blacklist respectively and obtains the resource identification that need to be filtered
Set.
26. transfer server as claimed in claim 22, which is characterized in that the page resource is obtained with filtered resources mark is needed
It takes page resource corresponding with the transmission unit acquisition banner to specifically include: being used for from the corresponding net of the banner
The corresponding page resource of the banner is extracted in site server.
27. transfer server as claimed in claim 22, which is characterized in that the page resource is obtained with filtered resources mark is needed
It takes page resource corresponding with the transmission unit acquisition banner to specifically include: locally being obtained from the transfer server first
The corresponding page resource of the banner is taken, if obtaining failure, then is mentioned from the corresponding Website server of the banner
Take the corresponding page resource of the banner.
28. transfer server as claimed in claim 22, which is characterized in that page resource and need filtered resources mark obtain with
The page resource and the resource identification set that need to be filtered are sent to the terminal and specifically included by transmission unit: will be described
The resource identification set carrying that need to be filtered is sent to the terminal in the page resource.
29. transfer server as claimed in claim 22, which is characterized in that described by the page resource and described to need to filter
Resource identification set be sent to the terminal and specifically include: the resource identification set that need to be filtered is inserted into the page
In the file of the hypertext transfer protocol format of resource.
30. transfer server as claimed in claim 29, which is characterized in that described by the resource identification set that need to be filtered
It is inserted into the file of the hypertext transfer protocol format of the page resource specifically: by the resource identification collection that need to be filtered
Close the beginning of the end mark and file body that are embedded in the file header of the file of hypertext transfer protocol format of the page resource
Between symbol.
31. a kind of terminal characterized by comprising
Page request unit, for sending the page request comprising banner to transfer server;
Page resource and the resource identification receiving unit that need to be filtered, for receiving the transfer server back page resource and needing
The resource identification set of filtering, wherein the page resource is at least one of: the frame of the corresponding page of the banner
The resource mark of the resource identification of the picture that frame resource, textual resources and the banner corresponding page are included, Flash
Knowledge, the resource identification of audio file, the resource identification of video file, the resource identification of text link and image link resource mark
Know;
Page elements request unit, for judging whether comprising resource identification in the page resource, if then will be included
Resource identification in resource identification not in the resource identification set that need to be filtered is sent to the transfer server, to receive
The corresponding page elements of the resource identification that the transfer server returns.
32. terminal as claimed in claim 31, which is characterized in that the resource identification set that need to be filtered includes the page
The resource identification of the background image of the resource identification for the advertising resource that resource is included and/or the page resource.
33. terminal as claimed in claim 31, which is characterized in that do not needed described in the resource identification that will included
It includes: included in the traversal page resource that resource identification in the resource identification set of filter, which is sent to the transfer server,
Resource identification, extracted resource identification is judged whether in the resource identification set that need to be filtered, if then skipping institute
The resource identification of extraction, if otherwise requesting the corresponding page elements of the resource identification to the transfer server.
34. a kind of page request system, which is characterized in that including as described in one of claim 22 to 30 transfer server and
Terminal as described in one of claim 31 to 33.
35. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer
Program is arranged to execute method described in any one of claim 1 to 21 when operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310379282.6A CN104426863B (en) | 2013-08-27 | 2013-08-27 | A kind of page request method, page request device, transfer server and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310379282.6A CN104426863B (en) | 2013-08-27 | 2013-08-27 | A kind of page request method, page request device, transfer server and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104426863A CN104426863A (en) | 2015-03-18 |
CN104426863B true CN104426863B (en) | 2019-09-20 |
Family
ID=52974820
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310379282.6A Active CN104426863B (en) | 2013-08-27 | 2013-08-27 | A kind of page request method, page request device, transfer server and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104426863B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105528452A (en) * | 2015-12-23 | 2016-04-27 | 北京奇虎科技有限公司 | Method and system for loading page data |
CN105743890B (en) * | 2016-01-27 | 2020-07-17 | 上海优扬新媒信息技术有限公司 | Authority information generation method and device |
CN108009192B (en) * | 2017-09-30 | 2020-09-29 | 北京车和家信息技术有限公司 | Webpage text loading method, device and system |
CN109639686B (en) * | 2018-12-17 | 2022-02-25 | 江苏满运软件科技有限公司 | Distributed webpage filtering method and device, electronic equipment and storage medium |
CN110798501B (en) * | 2019-08-21 | 2021-11-26 | 腾讯科技(深圳)有限公司 | Data processing method and device and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1998033130A1 (en) * | 1997-01-24 | 1998-07-30 | Motorola Inc. | Proxy host computer and method for accessing and retrieving information between a browser and a proxy |
CN101977233A (en) * | 2010-11-01 | 2011-02-16 | 优视科技有限公司 | Method and system for leading mobile terminal to browse webpage in reading mode |
CN102624691A (en) * | 2011-11-28 | 2012-08-01 | 苏州奇可思信息科技有限公司 | Multi-proxy internet access method adopting shareable advertisement blocking configuration information |
CN102917074A (en) * | 2012-11-09 | 2013-02-06 | 北京奇虎科技有限公司 | Server-side browser realization method and server |
CN102946391A (en) * | 2012-11-12 | 2013-02-27 | 北京奇虎科技有限公司 | Method for prompting malicious website in browser and browser |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101546327A (en) * | 2008-03-27 | 2009-09-30 | 鸿富锦精密工业(深圳)有限公司 | Search system, search method as well as system and method for filtering web page thereof |
-
2013
- 2013-08-27 CN CN201310379282.6A patent/CN104426863B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1998033130A1 (en) * | 1997-01-24 | 1998-07-30 | Motorola Inc. | Proxy host computer and method for accessing and retrieving information between a browser and a proxy |
CN1255214A (en) * | 1997-01-24 | 2000-05-31 | 摩托罗拉公司 | Proxy host computer and method for accessing and retrieving information between a browser and proxy |
CN101977233A (en) * | 2010-11-01 | 2011-02-16 | 优视科技有限公司 | Method and system for leading mobile terminal to browse webpage in reading mode |
CN102624691A (en) * | 2011-11-28 | 2012-08-01 | 苏州奇可思信息科技有限公司 | Multi-proxy internet access method adopting shareable advertisement blocking configuration information |
CN102917074A (en) * | 2012-11-09 | 2013-02-06 | 北京奇虎科技有限公司 | Server-side browser realization method and server |
CN102946391A (en) * | 2012-11-12 | 2013-02-27 | 北京奇虎科技有限公司 | Method for prompting malicious website in browser and browser |
Also Published As
Publication number | Publication date |
---|---|
CN104426863A (en) | 2015-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3491544B1 (en) | Web page display systems and methods | |
JP5535232B2 (en) | Page resource processing method and apparatus | |
CN104572843B (en) | The loading method and device of a kind of page | |
CN104426863B (en) | A kind of page request method, page request device, transfer server and terminal | |
CN104065632B (en) | The processing method of sharing contents, server, client and system | |
CN103744856B (en) | Linkage extended search method and device, system | |
US9571556B2 (en) | Browser kernel adaptation method and browser therefor | |
CN101370033B (en) | Method and equipment for propelling message | |
CN104426985B (en) | Show the method, apparatus and system of webpage | |
CN101325602A (en) | Method and system for pre-reading web page by micro-browser intelligently | |
CN106294648A (en) | A kind of processing method and processing device for page access path | |
WO2018040913A1 (en) | Interface display method and device | |
CN104901961B (en) | A kind of data push method, server, terminal and system | |
CN106095985A (en) | A kind of dynamic collection the method for cluster web pages information | |
CN102752371A (en) | Method for achieving splash on client side and client side | |
CN104504096A (en) | Cross-web information transmitting method and web browsing device | |
CN103761257A (en) | Webpage handling method and system based on mobile browser | |
CN103838728B (en) | The processing method and browser of info web | |
WO2017092455A1 (en) | Method for web browsing in mobile terminal, and mobile terminal | |
CN105468746B (en) | Web-page Multi-media content processing method and device | |
CN103365860A (en) | Method, device and terminal for processing web pages | |
CN105009115A (en) | Method and apparatus for obtaining network resources | |
CN101179394B (en) | Method and system to download webpage from website server | |
JP5509131B2 (en) | Contributor identification method, server, and program for associating user's post with user's subscriber identifier | |
CN102789460A (en) | Method and device for obtaining title tag corresponding to short uniform resource locator (URL) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |