CN103248627A - Method, forward proxy server and system for visiting website resources - Google Patents

Method, forward proxy server and system for visiting website resources Download PDF

Info

Publication number
CN103248627A
CN103248627A CN2013101684437A CN201310168443A CN103248627A CN 103248627 A CN103248627 A CN 103248627A CN 2013101684437 A CN2013101684437 A CN 2013101684437A CN 201310168443 A CN201310168443 A CN 201310168443A CN 103248627 A CN103248627 A CN 103248627A
Authority
CN
China
Prior art keywords
request
resource
proxy server
forward proxy
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013101684437A
Other languages
Chinese (zh)
Other versions
CN103248627B (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 CN201310168443.7A priority Critical patent/CN103248627B/en
Publication of CN103248627A publication Critical patent/CN103248627A/en
Application granted granted Critical
Publication of CN103248627B publication Critical patent/CN103248627B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method, forward proxy server and system for visiting resources of a website, and relates to the technical field of computer networks. The forward server receives a request of a client side to visit the resources of an appointed website, and sends a new request to a corresponding application program based on the request, wherein the corresponding application program obtains the resources from the appointed website according to the new request, and returns the resources to the forward proxy server after the resources are customized; and through the technical scheme that the forward proxy server sends the resources returned by the corresponding application program to the client side, the resources of the website are returned to the client side after being customized, so that the resource transmission efficiency can be improved, and customized operations can be carried out.

Description

Realize method, forward proxy server and the system of access websites resource
Technical field
The present invention relates to technical field of the computer network, be specifically related to a kind of method, forward proxy server and system that realizes the access websites resource.
Background technology
Forward agency: be the server between the website that is positioned at client and resource is provided (being called original server again), in order to obtain resource from the website, client sends a request and intended target website to the forward agency, and forward proxy server returns to client to the targeted website refer request and with the resource that obtains then.
But when client was visited the Internet by forward proxy server, forward proxy server directly returned to client with original site resource in the prior art.The resource transmission efficient of this mode is low.
Summary of the invention
In view of the above problems, the present invention has been proposed in order to a kind of a kind of method, forward proxy server and system that realizes the access websites resource that overcomes the problems referred to above or address the above problem at least in part is provided.
According to one aspect of the present invention, a kind of method that realizes the access websites resource is provided, this method comprises:
Forward proxy server receives the request from the resource of the visit appointed website of client; Described forward proxy server sends new request based on described request to corresponding application program; Wherein, described corresponding application program is obtained resource according to described new request from described specified web, and the resource of obtaining is carried out returning to described forward proxy server after the customization; The resource that described forward proxy server returns described corresponding application program sends to described client.
Alternatively, after the step of described forward proxy server reception from the request of the resource of the visit appointed website of client, described method also comprises: judge whether described request has hit the preset rules that preset rules is concentrated; If described request has been hit a preset rules, then carry out described forward proxy server and send the step that the step of new request and resource that described forward proxy server returns described corresponding application program send to described client based on this request to corresponding application program; Wherein, described preset rules collection comprises at least one regular expression.
Alternatively, describedly judge whether described request has been hit the preset rules that preset rules concentrates and comprised: whether the URL that judges described request has hit concentrated preset rules of preset rules;
Described forward proxy server sends new request based on this request to corresponding application program and comprises: described forward proxy server generates the new URL that points to corresponding application program with the URL of described request as parameter.
Alternatively, describedly the resource of obtaining carried out customization comprise in following at least one:
The image that gets access to is compressed processing;
Look is fallen in the image that gets access to be handled;
Go advertisement to handle to the webpage that gets access to;
Add information to the webpage that gets access to.
Alternatively, this method further comprises: if described request is not hit any preset rules, then described forward proxy server obtains resource according to described request from described specified web, and sends to described client.
According to one aspect of the present invention, a kind of forward proxy server of realizing the access websites resource is provided, this forward proxy server comprises: communication unit and redirected unit;
Described communication unit, the request from the resource of the visit appointed website of client that is suitable for receiving sends to redirected unit, and the resource that receives is returned to described client;
Be redirected the unit, be suitable for based on the new request of described request generation at corresponding application program;
Described communication unit also is suitable for described new request is sent to corresponding application program;
Wherein, described corresponding application program is obtained resource according to described new request from described specified web, and the resource of obtaining is carried out returning to described communication unit after the customization.
Alternatively, described forward proxy server also comprises: memory cell is suitable for preserving the preset rules collection that comprises at least one regular expression;
Wherein, described redirected unit is suitable for also judging whether described request has hit the preset rules that preset rules is concentrated, if described request has been hit a preset rules, then based on the new request of described request generation at corresponding application program.
Alternatively, described redirected unit is suitable for judging whether the URL of described request has hit the preset rules that preset rules is concentrated, if hit a preset rules, then the URL with described request generates the new URL that points to corresponding application program as parameter.
Alternatively, described redirected unit is further adapted for when described request is not hit any preset rules, and described request is sent to described communication unit;
Described communication unit also is suitable for obtaining resource according to described request from described specified web, and returns to described client.
According to another aspect of the present invention, a kind of system that realizes the access websites resource is provided, this system comprises: a plurality of application program operational outfits and above-mentioned each described forward proxy server;
The application program operational outfit is suitable for obtaining resource according to described new request from specified web after the new request that receives the forward proxy server generation, and the resource of obtaining is carried out returning to forward proxy server after the customization.
Alternatively, the application program operational outfit is suitable for the resource that gets access to is comprised at least one processing in following:
The image that gets access to is compressed processing;
Look is fallen in the image that gets access to be handled;
Go advertisement to handle to the webpage that gets access to;
Add information to the webpage that gets access to.
After the request of this forward proxy server reception according to the present invention from the resource of the visit appointed website of client, this forward proxy server sends new request based on described request to corresponding application program, wherein said corresponding application program is obtained resource according to described new request from described specified web, the resource of obtaining is carried out returning to described forward proxy server after the customization, the resource that forward proxy server returns described corresponding application program sends to the technical scheme of described client, can carry out returning to client after the customization to site resource, therefore the operation that can improve resource transmission efficient and carry out some customization.
Above-mentioned explanation only is the general introduction of technical solution of the present invention, for can clearer understanding technological means of the present invention, and can be implemented according to the content of specification, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Description of drawings
By reading hereinafter detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skills.Accompanying drawing only is used for the purpose of preferred implementation is shown, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts with identical reference symbol.In the accompanying drawings:
Fig. 1 shows a kind of according to an embodiment of the invention flow chart of realizing the method for access websites resource;
Fig. 2 shows a kind of according to an embodiment of the invention detail flowchart of realizing the method for access websites resource;
Fig. 3 shows a kind of according to an embodiment of the invention structure chart of realizing the forward proxy server 300 of access websites resource;
Fig. 4 shows a kind of structure chart of realizing the forward proxy server 400 of access websites resource of another embodiment according to the present invention;
Fig. 5 shows a kind of according to an embodiment of the invention structure chart of realizing the system of access websites resource.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Though shown exemplary embodiment of the present disclosure in the accompanying drawing, yet should be appreciated that and to realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order to understand the disclosure more thoroughly that these embodiment are provided, and can with the scope of the present disclosure complete convey to those skilled in the art.
Fig. 1 shows a kind of according to an embodiment of the invention flow chart of realizing the method for access websites resource.As shown in Figure 1, this method comprises:
Step S110, forward proxy server receives the request from the resource of the visit appointed website of client.
Step S120, forward proxy server sends new request based on the request that receives to corresponding application program; Wherein, corresponding application program carries out returning to this forward proxy server after the customization to the resource of obtaining according to should new request obtaining resource from specified web.
Step S130, the resource that forward proxy server returns described corresponding application program sends to described client.
In one embodiment of the invention, after forward proxy server was being received request from the resource of the visit appointed website of client in step S110, this method also comprises: forward proxy server judged whether described request has hit the preset rules that preset rules is concentrated; If described request has been hit a preset rules, then the described forward proxy server of execution in step S120 sends new request to corresponding application program; If described request is not hit any preset rules, then forward proxy server obtains resource according to described request from described specified web, and sends to described client.
In one embodiment of the invention, the preset rules collection comprises at least one regular expression, and for example the preset rules collection can be made of a series of regular expression.
In one embodiment of the invention, above-mentionedly judge whether described request has been hit the preset rules that preset rules concentrates and comprised: whether the URL that judges described request has hit concentrated preset rules of preset rules.Then the forward proxy server among the step S120 sends to corresponding application program and newly asks to comprise: forward proxy server generates the new URL that points to corresponding application program with the URL of described request as parameter.
In one embodiment of the invention, among this step S120 the resource of obtaining is carried out customization and comprises in following at least one:
A. the image that gets access to is compressed processing;
B. look being fallen in the image that gets access to handles;
C. go advertisement to handle to the webpage that gets access to;
D. add information to the webpage that gets access to, as throwing in content recommendation, throw in advertisement etc.
According to shown in Figure 1, forward proxy server can be redirected to corresponding application program with the request of hitting the client-access site resource of preset rules collection, by corresponding application program site resource is carried out returning to forward proxy server after the customization, forward proxy server returns to the technical scheme of client again, can carry out returning to client after the customization to site resource, therefore the operation that can improve resource transmission efficient and carry out some customization.
For example, when the user uses client to pass through forward proxy access the Internet, may wish resource access speed faster, this scheme can allow the forward agency by corresponding application program various resources be compressed, littler resource means the shorter transmission time, and particularly the improvement of the access speed of mobile Internet client is very obvious to client for this.The user also may wish the advertisement in the webpage is tackled, and this scheme can allow the forward agency by the corresponding application program analyzing structure of web page, and the advertising message in the identification webpage is also carried out filter operation, thereby returns adless webpage to user client.In addition, in webpage, throw in content recommendation, throw in demands such as advertisement, also can realize by this scheme.
Fig. 2 shows a kind of according to an embodiment of the invention detail flowchart of realizing the method for access websites resource.As shown in Figure 2, this method comprises:
Step S210, forward proxy server receive the resource request that certain user sends.
Step S220, forward proxy server inquiry preset rules collection.
Step S230, forward proxy server judge by inquiry preset rules collection whether described resource request has hit certain bar preset rules that preset rules is concentrated, and are execution in step S250 then, otherwise execution in step S240.
In one embodiment of the invention, the preset rules collection is the rewriting rule collection, constituted by a series of regular expression, if hit, then the URL of this resource request just is rewritten into new URL, new URL can point to application program arbitrarily, and old URL is delivered in the application program as parameter.
Step S240, forward proxy server directly obtain resource according to this resource request from the website.Execution in step S290.
Step S250, forward proxy server as parameter, generate the new URL that points to corresponding application program with the original URL of described resource request.
Step S260, corresponding application program is from new URL or after getting access to necessary parameter, analog subscriber obtains resource from the website, website.
Step S270, corresponding application program is carried out customization to the resource of obtaining.
In this step, the resource of obtaining is carried out customization, can be one or more processing in following: a. compresses processing to the image that gets access to; B. look being fallen in the image that gets access to handles; C. go advertisement to handle to the webpage that gets access to; D. add information to the webpage that gets access to, as throwing in content recommendation, throw in advertisement etc.
Step S280, the resource of corresponding application program after with customization returns to forward proxy server.
Step S290, forward proxy server returns to the user with resource.
In one embodiment of the invention, a plurality of application programs can be arranged, different application programs is finished different resource customization.For example application A is used for the image that gets access to is compressed processing, application program B is used for. and look is fallen in the image that gets access to handle, application program C is used for. and go advertisement to handle to the webpage that gets access to, application program D is used for adding information to the webpage that gets access to, as throw in content recommendation, throw in advertisement etc.In addition, application program can also be finished the customization more than two, and for example application program X is used for the image that gets access to compressed and handles and fall look and handle, by that analogy.On the other hand, different application programs also can be handled resource at different resource types, for example an application program is for ' .jpg ', ' .JPG ', ' .jpeg ', the resource of ' JPEG ' type is compressed, and the Another application program is for ' .png ', and the resource of ' .PNG ' type is fallen look and handled etc.Those skilled in the art can envision various other Application Types, give unnecessary details no longer one by one at this.
For example, the user uses the picture of a jpeg form of forward proxy server visit, forward proxy server rewrites by URL, this request is transmitted to specific image handles application program, image processing application program gets access to this picture and compresses from the website, picture after the compression is returned to forward proxy server, and forward proxy server returns to the user again, and the user is final, and what obtain is exactly picture after compressing.
Below enumerating a comparatively detailed example again describes technical scheme of the present invention:
For example, there are two self-defining application programs forward agency's rear end:
' http://backend.test.com/jpeg_handler ' and
‘http://backend.test.com/png_handler’;
The compression that these two self-defining application programs customize at the picture of the picture of jpeg form and png form respectively; And the rewriting rule collection of forward proxy server comprises two rules:
Rule 1: with ' .jpg ', ' .JPG ', and ' .jpeg ', the resource of ' JPEG ' ending is rewritten to:
‘http://backend.test.com/jpeg_handler?ori_url=$oldurl’;
Rule 2: with ' .png ', the resource of ' .PNG ' ending is rewritten to:
‘http://backend.test.com/png_handler?ori_url=$oldurl’。
A. when the resource of user by the forward proxy server access websites ' during http://img.thirdparty.com/img1.jpg ', can hit rule 1, this request can be rewritten into into ' http://backend.test.com/jpeg_handler ori_url=http: //img.thirdparty.com/img1.j pg ', ' pass through the original URL of parameter acquiring among the http://backend.test.com/jpeg_handler ' self-defining, obtain the resource of original URL correspondence then to the website, and this resource is carried out special jpeg quality compress, the resource after the compression is returned to forward proxy server; Resource after forward proxy server will compress returns to the user, then the user final what obtain is jpeg resource after the compression;
B. when passing through the forward proxy server access resources, the user ' during http://static.thirdparty.com/test.js ', do not hit any rewriting rule; Forward proxy server can directly obtain this resource and return to client to the website, website this moment, and what client was taken is the resource of not passing through customization;
C. the user passes through the forward proxy server access resources ' during http://img.thirdparty.com/img2.png ', can hit rule 2, this request can be rewritten into into ' http://backend.test.com/jpeg_handler ori_url=http: //img.thirdparty.com/img2.p ng ', ' pass through the original URL of parameter acquiring among the http://backend.test.com/png_handler ' self-defining, obtain the resource of original URL correspondence to the website, and this resource is carried out special png fall the look processing, the resource of falling after look is handled is returned to the forward agency; The resource that forward proxy server will fall behind the look returns to the user, then the user final what obtain is the png resource of falling behind the look.
Equally, can also define the application program of going advertisement to handle to the webpage that gets access in forward agency's rear end, and add the application program of information to the webpage that gets access to, repeat no longer one by one here.
Fig. 3 shows a kind of according to an embodiment of the invention structure chart of realizing the forward proxy server 300 of access websites resource.As shown in Figure 3, the forward proxy server 300 of this realization access websites resource comprises: communication unit 301 and redirected unit 302.
Communication unit 301, the request from the resource of the visit appointed website of client that is suitable for receiving sends to redirected unit, and the resource that receives is returned to this client.
Be redirected unit 302, be suitable for based on the new request of this request generation at corresponding application program.
Communication unit 301 also is suitable for this new request is sent to corresponding application program; Wherein, this correspondence application program carries out returning to communication unit 301 after the customization to the resource of obtaining according to should new request obtaining resource from specified web.
Forward proxy server shown in Figure 3 can carry out returning to client after the customization to site resource, therefore the operation that can improve resource transmission efficient and carry out some customization.
Fig. 4 shows a kind of structure chart of realizing the forward proxy server 400 of access websites resource of another embodiment according to the present invention.As shown in Figure 4, the forward proxy server 400 of this realization access websites resource comprises: communication unit 401, redirected unit 402 and memory cell 403.
Communication unit 401, the request from the resource of the visit appointed website of client that is suitable for receiving sends to redirected unit, and the resource that receives is returned to this client.
Memory cell 403 is suitable for preserving the preset rules collection that comprises at least one regular expression.
Be redirected unit 402, be suitable for judging whether the request that communication unit 401 sends has hit the preset rules that the preset rules in the memory cell 403 is concentrated, if a preset rules has been hit in this request, then based on the new request of this request generation at corresponding application program.
Communication unit 401 also is suitable for this new request is sent to corresponding application program; Wherein, this correspondence application program carries out returning to communication unit 401 after the customization to the resource of obtaining according to should new request obtaining resource from specified web.
Be redirected unit 402, be further adapted for when any preset rules is not hit in the request of communication unit 401 transmissions, request is sent to communication unit 401.Communication unit 401 is suitable for obtaining resource according to this request from specified web, and sends to client.
In one embodiment of the invention, memory cell 403 is suitable for preserving the preset rules collection that comprises at least one regular expression.Be redirected unit 402, whether the URL that is suitable for judging the request that communication unit 401 sends has hit the preset rules that preset rules is concentrated, if hit a preset rules, then the URL that will ask generates the new URL that points to corresponding application program as parameter.Like this, corresponding application program is obtained necessary parameter from new URL, obtain resource from specified web, and the resource of obtaining is carried out returning to communication unit 401 after the customization.
Fig. 5 shows a kind of according to an embodiment of the invention structure chart of realizing the system of access websites resource.As shown in Figure 5, this system comprises: forward proxy server 500 and a plurality of application program operational outfit 600.
Forward proxy server 500 can be the forward proxy server 300 of the realization access websites resource among Fig. 3, also can be the forward proxy server 400 of the realization access websites resource among Fig. 4.
Application program operational outfit 600 is suitable for obtaining resource according to described new request from specified web after the new request that receives forward proxy server 500 generations, and the resource of obtaining is carried out returning to forward proxy server after the customization.
Particularly, application program operational outfit 600 is suitable for the resource that gets access to is comprised following processing one of at least:
The image that gets access to is compressed processing;
Look is fallen in the image that gets access to be handled;
Go advertisement to handle to the webpage that gets access to;
Add information to the webpage that gets access to.
In one embodiment of the invention, the different application operational outfit is finished different resource customization.First application program operational outfit is used for the image that gets access to is compressed processing, second application program operational outfit is used for. and look is fallen in the image that gets access to handle, the 3rd application program operational outfit is used for. and go advertisement to handle to the webpage that gets access to, the 4th application program operational outfit is used for adding information to the webpage that gets access to, as throw in content recommendation, throw in advertisement etc.In addition, application program operational outfit can also be finished the customization more than two, and for example application program operational outfit is used for the image that gets access to compressed and handles and fall look and handle, by that analogy.On the other hand, different application programs also can be handled resource at different resource types, for example an application program is for ' .jpg ', ' .JPG ', ' .jpeg ', the resource of ' JPEG ' type is compressed, and the Another application program is for ' .png ', and the resource of ' .PNG ' type is fallen look and handled etc.Those skilled in the art can envision various other Application Types, give unnecessary details no longer one by one at this.
In sum, this forward proxy server according to the present invention is after the request of receiving from the resource of the visit appointed website of client, judge whether described request has hit the preset rules that preset rules is concentrated, if described request has been hit a preset rules, then forward proxy server sends new request to corresponding application program, corresponding application program is obtained resource according to described new request from described specified web, the resource of obtaining is carried out returning to described forward proxy server after the customization, the resource that forward proxy server returns described corresponding application program sends to the technical scheme of described client, can carry out returning to client after the customization to site resource, therefore the operation that can improve resource transmission efficient and carry out some customization.Technical scheme of the present invention makes that forward agency can the various resources of customization, and the function that has expanded the forward agency has greatly improved the flexibility that the forward agency uses.
Need to prove:
Intrinsic not relevant with any certain computer, virtual system or miscellaneous equipment with demonstration at this algorithm that provides.Various general-purpose systems also can be with using based on the teaching at this.According to top description, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also at any certain programmed language.Should be understood that and to utilize various programming languages to realize content of the present invention described here, and the top description that language-specific is done is in order to disclose preferred forms of the present invention.
In the specification that provides herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can be put into practice under the situation of these details not having.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the description to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes in the above.Yet the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires the more feature of feature clearly put down in writing than institute in each claim.Or rather, as following claims reflected, inventive aspect was to be less than all features of the disclosed single embodiment in front.Therefore, follow claims of embodiment and incorporate this embodiment thus clearly into, wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can adaptively change and they are arranged in one or more equipment different with this embodiment the module in the equipment among the embodiment.Can become a module or unit or assembly to the module among the embodiment or unit or combination of components, and can be divided into a plurality of submodules or subelement or sub-component to them in addition.In such feature and/or process or unit at least some are mutually repelling, and can adopt any combination to disclosed all features in this specification (comprising claim, summary and the accompanying drawing followed) and so all processes or the unit of disclosed any method or equipment make up.Unless clearly statement in addition, disclosed each feature can be by providing identical, being equal to or the alternative features of similar purpose replaces in this specification (comprising claim, summary and the accompanying drawing followed).
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included among other embodiment, the combination of features of different embodiment means and is within the scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with compound mode arbitrarily.
Each parts embodiment of the present invention can realize with hardware, perhaps realizes with the software module of moving at one or more processor, and perhaps the combination with them realizes.It will be understood by those of skill in the art that and to use microprocessor or digital signal processor (DSP) to realize according to the forward proxy server of the realization access websites resource of the embodiment of the invention and some or all some or repertoire of parts in the system in practice.The present invention can also be embodied as for part or all equipment or the device program (for example, computer program and computer program) of carrying out method as described herein.Such realization program of the present invention can be stored on the computer-readable medium, perhaps can have the form of one or more signal.Such signal can be downloaded from internet website and obtain, and perhaps provides at carrier signal, perhaps provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment under the situation of the scope that does not break away from claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed in element or step in the claim.Being positioned at word " " before the element or " one " does not get rid of and has a plurality of such elements.The present invention can realize by means of the hardware that includes some different elements and by means of the computer of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to come imbody by same hardware branch.Any order is not represented in the use of word first, second and C grade.Can be title with these word explanations.
The present patent application discloses A1, a kind of method that realizes the access websites resource, and wherein, this method comprises: forward proxy server receives the request from the resource of the visit appointed website of client; Described forward proxy server sends new request based on described request to corresponding application program; Wherein, described corresponding application program is obtained resource according to described new request from described specified web, and the resource of obtaining is carried out returning to described forward proxy server after the customization; The resource that described forward proxy server returns described corresponding application program sends to described client.A2, as the described method of A1, wherein, after the step of described forward proxy server reception from the request of the resource of the visit appointed website of client, described method also comprises: judge whether described request has hit the preset rules that preset rules is concentrated; If described request has been hit a preset rules, then carry out described forward proxy server and send the step that the step of new request and resource that described forward proxy server returns described corresponding application program send to described client based on this request to corresponding application program; Wherein, described preset rules collection comprises at least one regular expression.A3, as the described method of A2, wherein, describedly judge whether described request has been hit the preset rules that preset rules concentrates and comprised: whether the URL that judges described request has hit concentrated preset rules of preset rules; Described forward proxy server sends new request based on this request to corresponding application program and comprises: described forward proxy server generates the new URL that points to corresponding application program with the URL of described request as parameter.A4, as each described method among the A1 to A3, wherein, describedly the resource of obtaining carried out customization comprise in following at least one: the image that gets access to is compressed processing; Look is fallen in the image that gets access to be handled; Go advertisement to handle to the webpage that gets access to; Add information to the webpage that gets access to.A5, as the described method of A2, wherein, this method further comprises: if described request is not hit any preset rules, then described forward proxy server obtains resource according to described request from described specified web, and sends to described client.
The present patent application also discloses B6, a kind of forward proxy server of realizing the access websites resource, and wherein, this forward proxy server comprises: communication unit and redirected unit; Described communication unit, the request from the resource of the visit appointed website of client that is suitable for receiving sends to redirected unit, and the resource that receives is returned to described client; Be redirected the unit, be suitable for based on the new request of described request generation at corresponding application program; Described communication unit also is suitable for described new request is sent to corresponding application program; Wherein, described corresponding application program is obtained resource according to described new request from described specified web, and the resource of obtaining is carried out returning to described communication unit after the customization.B7, as the described forward proxy server of B6, described forward proxy server also comprises: memory cell is suitable for preserving the preset rules collection that comprises at least one regular expression; Wherein, described redirected unit is suitable for also judging whether described request has hit the preset rules that preset rules is concentrated, if described request has been hit a preset rules, then based on the new request of described request generation at corresponding application program.B8, as the described forward proxy server of B7, wherein, described redirected unit, be suitable for judging whether the URL of described request has hit the preset rules that preset rules is concentrated, if hit a preset rules, then the URL with described request generates the new URL that points to corresponding application program as parameter.B9, as the described forward proxy server of B7, wherein said redirected unit is further adapted for when described request is not hit any preset rules, and described request is sent to described communication unit; Described communication unit also is suitable for obtaining resource according to described request from described specified web, and returns to described client.
The present patent application also discloses C10, a kind of system that realizes the access websites resource, and wherein, this system comprises: a plurality of application program operational outfits and as each described forward proxy server among the B6 to B9; The application program operational outfit is suitable for obtaining resource according to described new request from specified web after the new request that receives the forward proxy server generation, and the resource of obtaining is carried out returning to forward proxy server after the customization.C11, system as claimed in claim 10, wherein, the application program operational outfit is suitable for the resource that gets access to is comprised at least one processing in following: the image that gets access to is compressed processing; Look is fallen in the image that gets access to be handled; Go advertisement to handle to the webpage that gets access to; Add information to the webpage that gets access to.

Claims (10)

1. method that realizes the access websites resource, wherein, this method comprises:
Forward proxy server receives the request from the resource of the visit appointed website of client;
Described forward proxy server sends new request based on described request to corresponding application program; Wherein, described corresponding application program is obtained resource according to described new request from described specified web, and the resource of obtaining is carried out returning to described forward proxy server after the customization;
The resource that described forward proxy server returns described corresponding application program sends to described client.
2. the method for claim 1, wherein
After the step of described forward proxy server reception from the request of the resource of the visit appointed website of client, described method also comprises:
Judge whether described request has hit the preset rules that preset rules is concentrated;
If described request has been hit a preset rules, then carry out described forward proxy server and send the step that the step of new request and resource that described forward proxy server returns described corresponding application program send to described client based on this request to corresponding application program;
Wherein, described preset rules collection comprises at least one regular expression.
3. method as claimed in claim 2, wherein,
Describedly judge whether described request has been hit the preset rules that preset rules concentrates and comprised: whether the URL that judges described request has hit concentrated preset rules of preset rules;
Described forward proxy server sends new request based on this request to corresponding application program and comprises: described forward proxy server generates the new URL that points to corresponding application program with the URL of described request as parameter.
4. as each described method in the claim 1 to 3, wherein, describedly the resource of obtaining carried out customization comprise in following at least one:
The image that gets access to is compressed processing;
Look is fallen in the image that gets access to be handled;
Go advertisement to handle to the webpage that gets access to;
Add information to the webpage that gets access to.
5. method as claimed in claim 2, wherein, this method further comprises:
If described request is not hit any preset rules, then described forward proxy server obtains resource according to described request from described specified web, and sends to described client.
6. forward proxy server of realizing the access websites resource, wherein, this forward proxy server comprises: communication unit and redirected unit;
Described communication unit, the request from the resource of the visit appointed website of client that is suitable for receiving sends to redirected unit, and the resource that receives is returned to described client;
Be redirected the unit, be suitable for based on the new request of described request generation at corresponding application program;
Described communication unit also is suitable for described new request is sent to corresponding application program;
Wherein, described corresponding application program is obtained resource according to described new request from described specified web, and the resource of obtaining is carried out returning to described communication unit after the customization.
7. forward proxy server as claimed in claim 6, described forward proxy server also comprises: memory cell is suitable for preserving the preset rules collection that comprises at least one regular expression;
Wherein, described redirected unit is suitable for also judging whether described request has hit the preset rules that preset rules is concentrated, if described request has been hit a preset rules, then based on the new request of described request generation at corresponding application program.
8. forward proxy server as claimed in claim 7, wherein,
Described redirected unit is suitable for judging whether the URL of described request has hit the preset rules that preset rules is concentrated, if hit a preset rules, then the URL with described request generates the new URL that points to corresponding application program as parameter.
9. forward proxy server as claimed in claim 7, wherein
Described redirected unit is further adapted for when described request is not hit any preset rules, and described request is sent to described communication unit;
Described communication unit also is suitable for obtaining resource according to described request from described specified web, and returns to described client.
10. system that realizes the access websites resource, wherein, this system comprises: a plurality of application program operational outfits and as each described forward proxy server in the claim 6 to 9;
The application program operational outfit is suitable for obtaining resource according to described new request from specified web after the new request that receives the forward proxy server generation, and the resource of obtaining is carried out returning to forward proxy server after the customization.
CN201310168443.7A 2013-05-06 2013-05-06 Method, forward proxy server and system for visiting website resources Active CN103248627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310168443.7A CN103248627B (en) 2013-05-06 2013-05-06 Method, forward proxy server and system for visiting website resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310168443.7A CN103248627B (en) 2013-05-06 2013-05-06 Method, forward proxy server and system for visiting website resources

Publications (2)

Publication Number Publication Date
CN103248627A true CN103248627A (en) 2013-08-14
CN103248627B CN103248627B (en) 2017-02-08

Family

ID=48927849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310168443.7A Active CN103248627B (en) 2013-05-06 2013-05-06 Method, forward proxy server and system for visiting website resources

Country Status (1)

Country Link
CN (1) CN103248627B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484609A (en) * 2014-12-23 2015-04-01 北京奇虎科技有限公司 Website bug detection method and system
CN106210035A (en) * 2016-07-07 2016-12-07 合网络技术(北京)有限公司 The Proxy Method of a kind of promotion message and device
CN106302337A (en) * 2015-05-22 2017-01-04 腾讯科技(深圳)有限公司 leak detection method and device
CN107911456A (en) * 2017-11-17 2018-04-13 深圳泉眼体育运营管理有限公司 Flow optimization method, device, terminal device and the storage medium of picture loading
CN111641607A (en) * 2020-05-16 2020-09-08 中信银行股份有限公司 Proxy system and access request forwarding method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080033956A1 (en) * 2006-08-07 2008-02-07 Shoumen Saha Distribution of Content Document to Varying Users With Security Customization and Scalability
CN101937469A (en) * 2010-09-15 2011-01-05 深圳市任子行网络技术股份有限公司 Information capture method of video website
CN102497478A (en) * 2011-12-13 2012-06-13 深圳市路友网络科技有限公司 Method for cellphone users to access internet quickly
CN102638580A (en) * 2012-03-30 2012-08-15 奇智软件(北京)有限公司 Webpage information processing method and webpage information processing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080033956A1 (en) * 2006-08-07 2008-02-07 Shoumen Saha Distribution of Content Document to Varying Users With Security Customization and Scalability
CN101937469A (en) * 2010-09-15 2011-01-05 深圳市任子行网络技术股份有限公司 Information capture method of video website
CN102497478A (en) * 2011-12-13 2012-06-13 深圳市路友网络科技有限公司 Method for cellphone users to access internet quickly
CN102638580A (en) * 2012-03-30 2012-08-15 奇智软件(北京)有限公司 Webpage information processing method and webpage information processing device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484609A (en) * 2014-12-23 2015-04-01 北京奇虎科技有限公司 Website bug detection method and system
CN106302337A (en) * 2015-05-22 2017-01-04 腾讯科技(深圳)有限公司 leak detection method and device
CN106302337B (en) * 2015-05-22 2020-12-04 腾讯科技(深圳)有限公司 Vulnerability detection method and device
CN106210035A (en) * 2016-07-07 2016-12-07 合网络技术(北京)有限公司 The Proxy Method of a kind of promotion message and device
CN107911456A (en) * 2017-11-17 2018-04-13 深圳泉眼体育运营管理有限公司 Flow optimization method, device, terminal device and the storage medium of picture loading
CN111641607A (en) * 2020-05-16 2020-09-08 中信银行股份有限公司 Proxy system and access request forwarding method

Also Published As

Publication number Publication date
CN103248627B (en) 2017-02-08

Similar Documents

Publication Publication Date Title
CN106528432B (en) The construction method and device of test scene data bury a test method
CN103150513B (en) The method of the implantation information in interception application program and device
CN105389191A (en) Software upgrading method, apparatus and system based on local area network
US20050071757A1 (en) Providing scalable, alternative component-level views
CN110999214A (en) Device for providing a cryptographically protected, filtered and sorted collection of transaction data records of chain links of a blockchain
CN104063460A (en) Method and device for loading webpage in browser
CN102984275A (en) Method and browser for web downloading
CN103248627A (en) Method, forward proxy server and system for visiting website resources
CN104541262A (en) System and method for transparent in-network adaptation of rich internet applications
CN109618176B (en) Processing method, equipment and storage medium for live broadcast service
CN105515900A (en) Method and device for acquiring on-line state of terminal
CN102999636A (en) Method and browser for carrying out interception treatment on popup window in webpage
CN110086877A (en) Application program sharing, sharing information display methods, device, equipment and medium
CN103034727A (en) System for intercepting pop-up window in webpage
CN104346464A (en) Processing method and device of webpage element information and browser client
CN103699597A (en) Method for downloading file through browser and browser
CN104572968A (en) Page updating method and device
CN104615700A (en) Method for collecting webpage objects in browser, browser client side and system
CN104462571A (en) Webpage loading method and device and browser client-side
CN101799821A (en) Method and system for realizing webpage application by widget
CN105227673A (en) The data download method of anti-abduction, client, server and system
CN105260421A (en) Webpage loading method and apparatus
CN109145194A (en) The acquisition method and device of user behavior data
CN104143110A (en) Two-dimensional code generating method with web site information
CN103905434A (en) Method and device for processing network data

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: 20220725

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.