CN103248627B - Method, forward proxy server and system for visiting website resources - Google Patents
Method, forward proxy server and system for visiting website resources Download PDFInfo
- Publication number
- CN103248627B CN103248627B CN201310168443.7A CN201310168443A CN103248627B CN 103248627 B CN103248627 B CN 103248627B CN 201310168443 A CN201310168443 A CN 201310168443A CN 103248627 B CN103248627 B CN 103248627B
- Authority
- CN
- China
- Prior art keywords
- request
- resource
- proxy server
- preset rules
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 82
- 230000005540 biological transmission Effects 0.000 claims abstract description 12
- 230000008569 process Effects 0.000 claims description 47
- 238000004891 communication Methods 0.000 claims description 32
- 238000012545 processing Methods 0.000 description 10
- 238000012360 testing method Methods 0.000 description 9
- 230000008859 change Effects 0.000 description 5
- 230000006835 compression Effects 0.000 description 4
- 238000007906 compression Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
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
Technical field
The present invention relates to technical field of the computer network is and in particular to a kind of realize accessing the side of site resource
Method, forward proxy server and system.
Background technology
Positive supply:It is a website being located at client and resource being provided(It is also called original server)It
Between server, in order to from website obtain resource, client to positive supply send one ask and specify
Targeted website, then forward proxy server deliver request to targeted website and the resource of acquisition returned to
Client.
But it is in the prior art, when client accesses internet by forward proxy server, positive
Original site resource is directly returned to client by proxy server.The resource transmission efficiency of this mode
Low.
Content of the invention
In view of the above problems it is proposed that the present invention is to provide one kind to overcome the problems referred to above or at least partly
Solve the above problems a kind of realize accessing the method for site resource, forward proxy server and system.
According to one aspect of the present invention, there is provided a kind of method realizing accessing site resource, the method
Including:
Forward proxy server receives the request of the resource of access appointed website from client;Described just
It is based on described request to corresponding application program transmission newly request to proxy server;Wherein, described correspondence should
With program, resource is obtained from the described website specified according to described new request, the resource obtaining is customized
Change returns to described forward proxy server after processing;Described correspondence is applied by described forward proxy server
The resource that program returns is sent to described client.
Alternatively, the resource of the access appointed website from client is received in described forward proxy server
The step of request after, methods described also includes:Judge whether described request has hit preset rules collection
One of preset rules;If preset rules have been hit in described request, execute described forward direction generation
Reason server sends step and the described positive supply clothes of new request based on this request to corresponding application program
The step that the resource that described corresponding application program returns is sent to described client by business device;Wherein, described
Preset rules collection includes at least one regular expression.
Alternatively, described judge whether described request has hit one of preset rules collection preset rules bag
Include:Judge whether the URL of described request has hit one of preset rules collection preset rules;
Described forward proxy server is based on this request and includes to the new request of corresponding application program transmission:Described
The URL of described request is generated as parameter and points to the new of corresponding application program by forward proxy server
URL.
Alternatively, at least one being customized of resource obtaining being processed in below inclusion described:
The image getting is compressed process;
The image getting is carried out drop color process;
The webpage getting is carried out with advertisement process;
Add information to the webpage getting.
Alternatively, the method further includes:If any one preset rules is not hit in described request,
Then described forward proxy server obtains resource according to described request from the described website specified, and is sent to
Described client.
According to one aspect of the present invention, there is provided a kind of positive supply service realizing access site resource
Device, this forward proxy server includes:Communication unit and redirection unit;
Described communication unit, is suitable to the request of the resource of the access appointed website receiving from client
It is sent to redirection unit, and the resource receiving is returned to described client;
Redirect unit, be suitable to generate the new request for corresponding application program based on described request;
Described communication unit is further adapted for for described new request being sent to corresponding application program;
Wherein, described corresponding application program obtains resource according to described new request from the described website specified,
Described communication unit is returned to after being customized of resource obtaining is processed.
Alternatively, described forward proxy server also includes:Memory cell, is suitable to preserve inclusion at least
The preset rules collection of individual regular expression;
Wherein, the described unit that redirects is further adapted for judging whether described request has hit preset rules concentration
One preset rules, if preset rules have been hit in described request, generates pin based on described request
New request to corresponding application program.
Alternatively, described redirection unit, is suitable to judge whether the URL of described request has hit default rule
Then one of collection preset rules, if having hit preset rules, by the URL of described request
Generate the new URL pointing to corresponding application program as parameter.
Alternatively, described redirection unit, be further adapted for described request do not hit any one preset
When regular, send the request to described communication unit;
Described communication unit, is further adapted for obtaining resource according to described request from the described website specified, and returns
Back to described client.
According to it is still another aspect of the present invention to provide a kind of system realizing access site resource, this is
System includes:Multiple application programs run the forward proxy server described in equipment and any of the above-described;
Application program runs equipment, is suitable to after the new request receiving forward proxy server generation, root
Obtain resource according to described new request from specified website, return after being customized of resource obtaining is processed
To forward proxy server.
Alternatively, application program runs equipment, be suitable to the resource getting is carried out including in following extremely
The process of one item missing:
The image getting is compressed process;
The image getting is carried out drop color process;
The webpage getting is carried out with advertisement process;
Add information to the webpage getting.
The money of the access appointed website from client is received according to this forward proxy server of the present invention
After the request in source, this forward proxy server asks to send new request to corresponding application program based on described,
Wherein said corresponding application program obtains resource according to described new request from the described website specified, to acquisition
Being customized of resource process after return to described forward proxy server, forward proxy server is by institute
The resource stating corresponding application program return is sent to the technical scheme of described client, can be to site resource
Being customized returns to client after processing, and therefore can improve resource transmission efficiency and carry out
The operation customizing.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the skill of the present invention
Art means, and being practiced according to the content of specification, and in order to allow, the present invention's is above and other
Objects, features and advantages can become apparent, below especially exemplified by the specific embodiment of the present invention.
Brief description
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are for this
Field those of ordinary skill will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred embodiment,
And it is not considered as limitation of the present invention.And in whole accompanying drawing, be denoted by the same reference numerals
Identical part.In the accompanying drawings:
Fig. 1 shows a kind of stream of method realizing access site resource according to an embodiment of the invention
Cheng Tu;
Fig. 2 shows a kind of the detailed of method realizing access site resource according to an embodiment of the invention
Thin flow chart;
Fig. 3 shows a kind of positive supply realizing access site resource according to an embodiment of the invention
The structure chart of server 300;
Fig. 4 shows and realizes accessing the forward direction generation of site resource according to a kind of of another embodiment of the present invention
The structure chart of reason server 400;
Fig. 5 shows a kind of knot of system realizing access site resource according to an embodiment of the invention
Composition.
Specific embodiment
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although showing in accompanying drawing
The exemplary embodiment of the disclosure it being understood, however, that may be realized in various forms the disclosure and not
Should be limited by embodiments set forth here.On the contrary, these embodiments are provided to be able to more thoroughly
Understand the disclosure, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Fig. 1 shows a kind of stream of method realizing access site resource according to an embodiment of the invention
Cheng Tu.As shown in figure 1, the method includes:
Step S110, forward proxy server receives asking of the resource of access appointed website from client
Ask.
Step S120, forward proxy server is based on received request and sends new asking to corresponding application program
Ask;Wherein, corresponding application program obtains resource according to this new request from specified website, to the money obtaining
Being customized of source returns to this forward proxy server after processing.
Step S130, the resource that described corresponding application program returns is sent to described by forward proxy server
Client.
In one embodiment of the invention, forward proxy server is derived from receiving in step s 110
After the request of the resource of access appointed website of client, the method also includes:Forward proxy server is sentenced
Whether described request of breaking has hit one of preset rules collection preset rules;If described request hit
One preset rules, then the forward proxy server described in execution step S120 send out to corresponding application program
Send new request;If any one preset rules is not hit in described request, forward proxy server according to
Described request obtains resource from the described website specified, and is sent to described client.
In one embodiment of the invention, preset rules collection includes at least one regular expression, for example
Preset rules collection can be made up of a series of regular expression.
In one embodiment of the invention, above-mentioned judge whether described request has hit preset rules concentration
Preset rules include:Judge whether the URL of described request has hit one of preset rules collection
Preset rules.Then the forward proxy server in step S120 sends new request bag to corresponding application program
Include:The URL of described request is generated as parameter and points to the new of corresponding application program by forward proxy server
URL.
In one embodiment of the invention, to being customized of the resource place obtaining in this step S120
At least one during reason inclusion is following:
A. the image getting is compressed processing;
B. the image getting is carried out dropping color process;
C. the webpage getting is carried out with advertisement process;
D. add information to the webpage getting, such as throw in content recommendation, throw in advertisement etc..
According to Fig. 1, the client of hit preset rules collection can be accessed by forward proxy server
The request of site resource is redirected to corresponding application program, by corresponding application program, site resource is entered
Forward proxy server is returned to, forward proxy server returns again to client after row customization
Technical scheme, can return to client after being customized of site resource is processed, therefore can improve
Resource transmission efficiency and the operation carrying out some customization.
For example, when user uses client to access internet by positive supply, may wish to faster
Resource access speed, this scheme can allow positive supply by corresponding application program, various resources be entered
Row compression, less resource means shorter transmission time, and this is to client particularly mobile Internet
The improvement of the access speed of client is clearly.User is likely to wish the advertisement in webpage is blocked
Cut, this scheme can allow positive supply by corresponding application program analyzing structure of web page, identifies in webpage
Advertising message and carry out filter operation, thus to user client return adless webpage.In addition,
Throw in content recommendation in webpage, throw in the demands such as advertisement it is also possible to realize by this scheme.
Fig. 2 shows a kind of the detailed of method realizing access site resource according to an embodiment of the invention
Thin flow chart.As shown in Fig. 2 the method includes:
Step S210, forward proxy server receives the resource request of certain user transmission.
Step S220, forward proxy server inquires about preset rules collection.
Step S230, forward proxy server passes through to inquire about preset rules collection, judges that described resource request is
No certain preset rules having hit preset rules concentration, are then execution steps S250, otherwise execution step
S240.
In one embodiment of the invention, preset rules collection be rewriting rule collection, by a series of just
Then expression formula is constituted, if hit, the URL of this resource request is just rewritten into new URL, newly
URL can point to arbitrary application program, old URL is delivered in application program as parameter.
Step S240, forward proxy server directly obtains resource according to this resource request from website.Execution
Step S290.
Step S250, forward proxy server is using the original URL of described resource request as parameter, raw
Become the new URL pointing to corresponding application program.
Step S260, corresponding application program from new URL or after getting necessary parameter, analog subscriber
Obtain resource from website website.
Step S270, corresponding application program is processed to being customized of resource obtaining.
In this step, being customized of resource obtaining is processed, can be one or more of following
Process:A. the image getting is compressed processing;B. the image getting is carried out dropping color process;c.
The webpage getting is carried out with advertisement process;D. add information to the webpage getting, such as throw in and recommend
Content, throws in advertisement etc..
Step S280, the resource after customization is returned to positive supply service by corresponding application program
Device.
Step S290, resource is returned to user by forward proxy server.
In one embodiment of the invention, can there are multiple application programs, different application programs completes
Different Resources Customizationizations is processed.Such as application program A is used for the image getting being compressed process,
Application program B is used for. the image getting being carried out drop color with processing, application program C is used for. to getting
Webpage carry out advertisement and process, application program D is used for adding information to the webpage that gets, such as throws in
Content recommendation, throws in advertisement etc..Additionally, application program can also complete the customization of more than two
Change is processed, and such as application program X is used for the image getting being compressed process and drop color process, with
This analogizes.On the other hand, different application programs can also be carried out to resource for different resource types
Process, such as one application program for ' .jpg ', ' .JPG ', ' .jpeg ', the money of ' JPEG ' type
Source is compressed, and another application program carries out dropping color for ' .png ', the resource of ' .PNG ' type
Process etc..Those skilled in the art are contemplated that out various other Application Types, and here is not another
One repeats.
For example, user uses forward proxy server to access the picture of a jpeg form, and positive supply takes
Business device is rewritten by URL, and this request is transmitted to specific image procossing application program, and image procossing should
Get this picture with program from website and be compressed, the picture after compression is returned to positive supply clothes
Business device, forward proxy server returns again to user, and what user finally obtained is exactly the picture after compressing.
Hereinafter enumerate a more detailed example again technical scheme is illustrated:
For example, there are two self-defining application programs the rear end of positive supply:
‘http://backend.test.com/jpeg_handler ' and
‘http://backend.test.com/png_handler’;
The picture of picture and png form that this two self-defining application programs are respectively directed to jpeg form enters
The compression that row customizes;And the rewriting rule collection of forward proxy server comprises two rules:
Rule 1:With ' .jpg ', ' .JPG ', ' .jpeg ', the resource that ' JPEG ' ends up is rewritten to:
‘http://backend.test.com/jpeg_handler?ori_url=$oldurl’;
Rule 2:With ' .png ', the resource that ' .PNG ' ends up is rewritten to:
‘http://backend.test.com/png_handler?ori_url=$oldurl’.
A. when user accesses the resource of website by forward proxy server
‘http:During //img.thirdparty.com/img1.jpg ', can hit rule 1, this request can be rewritten into for
‘http://backend.test.com/jpeg_handler?ori_url=http://img.thirdparty.com/img1.j
Pg ', in self-defining ' http:Pass through parameter acquiring original in //backend.test.com/jpeg_handler '
URL, then arrives website and obtains the corresponding resource of original URL, and carry out special jpeg to this resource
Quality is compressed, and the resource after compression is returned to forward proxy server;Forward proxy server will compress
Resource afterwards returns to user, then what user finally obtained is the jpeg resource after compressing;
B. when user accesses resource ' http by forward proxy server://static.thirdparty.com/test.js’
When, do not hit any rewriting rule;Now forward proxy server can directly arrive website website and obtain this
Resource simultaneously returns to client, and what client was taken is the not resource through customization;
C. user accesses resource ' http by forward proxy server://img.thirdparty.com/img2.png’
When, can hit rule 2, this request can be rewritten into for
‘http://backend.test.com/jpeg_handler?ori_url=http://img.thirdparty.com/img2.p
Ng ', in self-defining ' http:Pass through parameter acquiring original in //backend.test.com/png_handler '
URL, obtains the corresponding resource of original URL to website, and this resource is carried out at special png fall color
Reason, the resource after fall color is processed returns to positive supply;Resource after color will drop in forward proxy server
Return to user, then what user finally obtained is the png resource after dropping color.
Equally, can also define in the rear end of positive supply and the webpage getting is carried out with advertisement process
Application program, and add the application program of information to the webpage getting, no longer repeat one by one here.
Fig. 3 shows a kind of positive supply realizing access site resource according to an embodiment of the invention
The structure chart of server 300.As shown in figure 3, this realization accesses the forward proxy server of site resource
300 include:Communication unit 301 and redirection unit 302.
Communication unit 301, is suitable to the request of the resource of the access appointed website receiving from client
It is sent to redirection unit, and the resource receiving is returned to this client.
Redirect unit 302, be suitable to generate the new request for corresponding application program based on this request.
Communication unit 301 is further adapted for for this new request being sent to corresponding application program;Wherein, this corresponds to and answers
With program, resource is obtained from specified website according to this new request, being customized of resource obtaining is processed
After return to communication unit 301.
Forward proxy server shown in Fig. 3 can return to visitor after being customized of site resource is processed
Family end, the operation that therefore can improve resource transmission efficiency and carry out some customization.
Fig. 4 shows and realizes accessing the forward direction generation of site resource according to a kind of of another embodiment of the present invention
The structure chart of reason server 400.As shown in figure 4, this realization accesses the positive supply service of site resource
Device 400 includes:Communication unit 401, redirection unit 402 and memory cell 403.
Communication unit 401, is suitable to the request of the resource of the access appointed website receiving from client
It is sent to redirection unit, and the resource receiving is returned to this client.
Memory cell 403, is suitable to preserve the preset rules collection including at least one regular expression.
Redirect unit 402, be suitable to judge whether the request that communication unit 401 sends has hit storage list
One of preset rules collection in unit 403 preset rules, if preset rules have been hit in this request,
Then the new request for corresponding application program is generated based on this request.
Communication unit 401 is further adapted for for this new request being sent to corresponding application program;Wherein, this corresponds to and answers
With program, resource is obtained from specified website according to this new request, being customized of resource obtaining is processed
After return to communication unit 401.
Redirect unit 402, the request being further adapted for sending in communication unit 401 is not hit arbitrary
During individual preset rules, send the requests to communication unit 401.Communication unit 401, is suitable to according to this request
Obtain resource from specified website, and be sent to client.
In one embodiment of the invention, memory cell 403, are suitable to preservation and include at least one canonical
The preset rules collection of expression formula.Redirect unit 402, be suitable to judge the request that communication unit 401 sends
URL whether hit one of preset rules collection preset rules, if having hit default rule
Then, then the URL asking this generates, as parameter, the new URL pointing to corresponding application program.So,
Corresponding application program obtains necessary parameter from new URL, obtains resource from specified website, to acquisition
Being customized of resource process after return to communication unit 401.
Fig. 5 shows a kind of knot of system realizing access site resource according to an embodiment of the invention
Composition.As shown in figure 5, this system includes:Forward proxy server 500 and multiple application program are run
Equipment 600.
Forward proxy server 500 can be the positive supply service of the realization access site resource in Fig. 3
Realization in device 300 or Fig. 4 accesses the forward proxy server 400 of site resource.
Application program runs equipment 600, is suitable to receiving newly please of forward proxy server 500 generation
After asking, resource is obtained from specified website according to described new request, to being customized of the resource place obtaining
Forward proxy server is returned to after reason.
Specifically, application program run equipment 600, be suitable to the resource getting is included with down to
One of few process:
The image getting is compressed process;
The image getting is carried out drop color process;
The webpage getting is carried out with advertisement process;
Add information to the webpage getting.
In one embodiment of the invention, different application is run equipment and is completed different Resources Customizations
Change is processed.First application program is run equipment and is used for the image getting being compressed process, and second
Individual application program is run equipment and is used for. the image getting is carried out drop with color process, the 3rd application program fortune
Row equipment is used for. and the webpage getting is carried out with advertisement and processes, the 4th application program is run equipment and be used for
Add information to the webpage getting, such as throw in content recommendation, throw in advertisement etc..Additionally, one should
Run the customization that equipment can also complete more than two with program, such as one application program is run
Equipment is used for the image getting being compressed process and drop color process, by that analogy.On the other hand,
Different application programs can also be processed to resource for different resource types, such as one application
Program for ' .jpg ', ' .JPG ', ' .jpeg ', the resource of ' JPEG ' type is compressed, another
For ' .png ', the resource of ' .PNG ' type carries out dropping color process etc. application program.This area skill
Art personnel are contemplated that out various other Application Types, and this is no longer going to repeat them.
In sum, this forward proxy server according to the present invention is receiving the access from client
After the request of the resource of appointed website, judge whether described request has hit one of preset rules collection pre-
If regular, if preset rules have been hit in described request, forward proxy server is to corresponding application
Program sends new request, and corresponding application program obtains resource according to described new request from the described website specified,
Described forward proxy server, positive supply service is returned to after being customized of resource obtaining is processed
The resource that described corresponding application program returns is sent to the technical scheme of described client by device, can be to net
Being customized of resource of standing returns to client after processing, and therefore can improve resource transmission efficiency and enter
The operation of some customization of row.Technical scheme makes positive supply various with customization
Resource, has expanded the function of positive supply significantly, improves the flexibility of positive supply utilization.
It should be noted that:
Algorithm and display be not solid with any certain computer, virtual system or miscellaneous equipment provided herein
There is correlation.Various general-purpose systems can also be used together with based on teaching in this.As described above,
It is obvious for constructing the structure required by this kind of system.Additionally, the present invention be also not for any specific
Programming language.It is understood that, it is possible to use various programming languages realize the content of invention described herein,
And the description above language-specific done is the preferred forms in order to disclose the present invention.
In specification mentioned herein, illustrate a large amount of details.It is to be appreciated, however, that this
Inventive embodiment can be put into practice in the case of not having these details.In some instances, not
It is shown specifically known method, structure and technology, so as not to obscure the understanding of this description.
Similarly it will be appreciated that in order to simplify the disclosure and help understand one of each inventive aspect
Or multiple, in the description to the exemplary embodiment of the present invention above, each feature of the present invention is sometimes
It is grouped together in single embodiment, figure or descriptions thereof.However, should not be by the disclosure
Method be construed to reflect following intention:I.e. the present invention for required protection requires ratio in each claim
The more feature of middle feature be expressly recited.More precisely, as the following claims reflect
As, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows
Claims of specific embodiment are thus expressly incorporated in this specific embodiment, wherein each right
The separate embodiments all as the present invention for the requirement itself.
Those skilled in the art are appreciated that and the module in the equipment in embodiment can be carried out certainly
Adaptively change and they are arranged in one or more equipment different from this embodiment.Permissible
Module in embodiment or unit or assembly are combined into a module or unit or assembly, and in addition may be used
To be divided into multiple submodule or subelement or sub-component.Except such feature and/or process or
Outside at least some of unit excludes each other, can be using any combinations to this specification(Including companion
With claim, summary and accompanying drawing)Disclosed in all features and so disclosed any method or
All processes of person's equipment or unit are combined.Unless expressly stated otherwise, this specification(Including companion
With claim, summary and accompanying drawing)Disclosed in each feature can by provide identical, equivalent or phase
Alternative features like purpose to replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include it
Included some features rather than further feature in its embodiment, but the group of the feature of different embodiment
Closing means to be within the scope of the present invention and formed different embodiments.For example, in following power
In sharp claim, embodiment required for protection one of arbitrarily can in any combination mode making
With.
The all parts embodiment of the present invention can be realized with hardware, or with one or more process
The software module run on device is realized, or is realized with combinations thereof.Those skilled in the art should
Understand, can be in practice using microprocessor or digital signal processor(DSP)To realize basis
The realization of the embodiment of the present invention access in the forward proxy server and system of site resource some or
All some or all functions of part.The present invention is also implemented as described herein for executing
Some or all equipment of method or program of device(For example, computer program and computer journey
Sequence product).Such program realizing the present invention can store on a computer-readable medium, or can
In the form of there is one or more signal.Such signal can be downloaded from internet website
Arrive, or provide on carrier signal, or provided with any other form.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention,
And those skilled in the art can design replacement in fact without departing from the scope of the appended claims
Apply example.In the claims, should not be configured to any reference symbol between bracket will to right
The restriction asked.Word "comprising" does not exclude the presence of element not listed in the claims or step.It is located at
Word "a" or "an" before element does not exclude the presence of multiple such elements.The present invention is permissible
Realize by means of the hardware including some different elements and by means of properly programmed computer.?
If listing in the unit claim of equipment for drying, several in these devices can be by same
Hardware branch is embodying.The use of word first, second, and third does not indicate that any order.
These words can be construed to title.
The present patent application discloses A1, a kind of method realizing accessing site resource, wherein, the method bag
Include:Forward proxy server receives the request of the resource of access appointed website from client;Described just
It is based on described request to corresponding application program transmission newly request to proxy server;Wherein, described correspondence should
With program, resource is obtained from the described website specified according to described new request, the resource obtaining is customized
Change returns to described forward proxy server after processing;Described correspondence is applied by described forward proxy server
The resource that program returns is sent to described client.A2, the method as described in A1, wherein, described
Forward proxy server receives after the step of the request of the resource of access appointed website of client,
Methods described also includes:Judge whether described request has hit one of preset rules collection preset rules;
If preset rules have been hit in described request, execute described forward proxy server and be based on this request
To corresponding to, application program sends the step of new request and described correspondence is applied by described forward proxy server
The step that the resource that program returns is sent to described client;Wherein, described preset rules collection is included at least
One regular expression.A3, the method as described in A2, wherein, described judge whether described request orders
Suffer one of preset rules collection preset rules to include:Judge described request URL whether hit pre-
If one of rule set preset rules;Described forward proxy server is based on this request to corresponding application journey
Sequence sends new request and includes:The URL of described request is generated as parameter and refers to by described forward proxy server
New URL to corresponding application program.A4, the method as any one of A1 to A3, wherein,
At least one being customized of resource obtaining being processed in below inclusion described:To the image getting
It is compressed processing;The image getting is carried out drop color process;Advertisement is carried out to the webpage getting
Process;Add information to the webpage getting.A5, the method as described in A2, wherein, the method is entered
One step includes:If any one preset rules, described forward proxy server are not hit in described request
Resource is obtained from the described website specified according to described request, and is sent to described client.
The present patent application also discloses B6, a kind of forward proxy server realizing access site resource, its
In, this forward proxy server includes:Communication unit and redirection unit;Described communication unit, is suitable to
The request of the resource of the access appointed website receiving from client is sent to redirection unit, and will
The resource receiving returns to described client;Redirect unit, be suitable to be directed to based on described request generation
The new request of corresponding application program;Described communication unit is further adapted for for described new request being sent to corresponding application
Program;Wherein, described corresponding application program obtains resource according to described new request from the described website specified,
Described communication unit is returned to after being customized of resource obtaining is processed.B7, as described in B6 just
To proxy server, described forward proxy server also includes:Memory cell, is suitable to preserve inclusion at least
The preset rules collection of one regular expression;Wherein, described redirection unit is further adapted for judging described request
One of preset rules collection preset rules whether are hit, if default rule have been hit in described request
Then, then the new request for corresponding application program is generated based on described request.B8, as described in B7 just
To proxy server, wherein, described redirection unit, is suitable to judge whether the URL of described request hits
One of preset rules collection preset rules, if having hit preset rules, by described request
URL generate the new URL pointing to corresponding application program as parameter.B9, the forward direction as described in B7
Proxy server, wherein said redirection unit, it is further adapted for not hitting any one in described request
During preset rules, send the request to described communication unit;Described communication unit, is further adapted for basis
Described request obtains resource from the described website specified, and returns to described client.
The present patent application also discloses C10, a kind of system realizing access site resource, and wherein, this is
System includes:Multiple application programs run equipment and the positive supply service as any one of B6 to B9
Device;Application program runs equipment, is suitable to after the new request receiving forward proxy server generation, root
Obtain resource according to described new request from specified website, return after being customized of resource obtaining is processed
To forward proxy server.C11, system as claimed in claim 10, wherein, application program is run
Equipment, is suitable to the resource getting is carried out including the process of at least one in following:To get
Image is compressed processing;The image getting is carried out drop color process;The webpage getting is gone
Advertisement is processed;Add information to the webpage getting.
Claims (11)
1. a kind of method realizing accessing site resource, wherein, the method includes:
Forward proxy server receives the request of the resource of access appointed website from client;
Judge whether described request has hit one of preset rules collection preset rules;
If preset rules have been hit in described request, described forward proxy server is based on described asking
Ask and send new request to corresponding application program, thus the client of hit preset rules collection is accessed website money
The request in source is redirected to corresponding application program;Wherein, described corresponding application program newly please according to described
Ask and obtain resource from the described website specified, return to described after being customized of resource obtaining is processed
Forward proxy server;
The resource that described corresponding application program returns is sent to described client by described forward proxy server
End;
Wherein, different application programs completes different Resources Customizationizations process.
2. the method for claim 1, wherein
Described preset rules collection includes at least one regular expression.
3. method as claimed in claim 2, wherein,
Described judge whether described request has been hit one of preset rules collection preset rules and included:Judge
Whether the URL of described request has hit one of preset rules collection preset rules;
Described forward proxy server is based on this request and includes to the new request of corresponding application program transmission:Described
The URL of described request is generated as parameter and points to the new of corresponding application program by forward proxy server
URL.
4. method as claimed any one in claims 1 to 3, wherein, the described resource to acquisition is entered
Row customization include following at least one:
The image getting is compressed process;
The image getting is carried out drop color process;
The webpage getting is carried out with advertisement process;
Add information to the webpage getting.
5. method as claimed in claim 2, wherein, the method further includes:
If any one preset rules is not hit in described request, described forward proxy server is according to institute
State request and obtain resource from the described website specified, and be sent to described client.
6. a kind of forward proxy server realizing access site resource, wherein, this forward proxy server
Including:Communication unit and redirection unit;
Described communication unit, is suitable to the request of the resource of the access appointed website receiving from client
It is sent to redirection unit, and the resource receiving is returned to described client;
Memory cell, is suitable to preserve preset rules collection;
Redirect unit, be suitable to judge whether described request has been hit one of preset rules collection and preset rule
Then, if preset rules have been hit in described request, generated for corresponding application based on described request
The new request of program, thus the request that the client of hit preset rules collection is accessed site resource redirects
To corresponding application program;
Described communication unit is further adapted for for described new request being sent to corresponding application program;
Wherein, described corresponding application program obtains resource according to described new request from the described website specified,
Described communication unit is returned to after being customized of resource obtaining is processed;
Different application programs completes different Resources Customizationizations and processes.
7. forward proxy server as claimed in claim 6, described memory cell, it is suitable to preserve inclusion
The preset rules collection of at least one regular expression.
8. forward proxy server as claimed in claim 7, wherein,
Described redirection unit, is suitable to judge whether the URL of described request has hit preset rules concentration
One preset rules, if having hit preset rules, the URL of described request is given birth to as parameter
Become the new URL pointing to corresponding application program.
9. forward proxy server as claimed in claim 7, wherein
Described redirection unit, is further adapted for when any one preset rules is not hit in described request,
Send the request to described communication unit;
Described communication unit, is further adapted for obtaining resource according to described request from the described website specified, and returns
Back to described client.
10. a kind of system realizing access site resource, wherein, this system includes:Multiple application programs
Operation equipment and the forward proxy server as any one of claim 6 to 9;
Application program runs equipment, is suitable to after the new request receiving forward proxy server generation, root
Obtain resource according to described new request from specified website, return after being customized of resource obtaining is processed
To forward proxy server.
11. systems as claimed in claim 10, wherein,
Application program runs equipment, is suitable to the resource getting is carried out including at least one in following
Process:
The image getting is compressed process;
The image getting is carried out drop color process;
The webpage getting is carried out with advertisement process;
Add information to the webpage getting.
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 CN103248627A (en) | 2013-08-14 |
CN103248627B true 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) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104484609A (en) * | 2014-12-23 | 2015-04-01 | 北京奇虎科技有限公司 | Website bug detection method and system |
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 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8407250B2 (en) * | 2006-08-07 | 2013-03-26 | Google Inc. | Distribution of content document to varying users with security customization and scalability |
-
2013
- 2013-05-06 CN CN201310168443.7A patent/CN103248627B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN103248627A (en) | 2013-08-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103150513B (en) | The method of the implantation information in interception application program and device | |
CN106528432B (en) | The construction method and device of test scene data bury a test method | |
CN103248627B (en) | Method, forward proxy server and system for visiting website resources | |
CN103617543B (en) | The recommendation method and apparatus of application program | |
CN101226525B (en) | Method, server, client terminal and system for controlling download and display of web page layout | |
CN104301436B (en) | Content to be displayed push, subscription, update method and its corresponding device | |
US9009599B2 (en) | Technique for handling URLs for different mobile devices that use different user interface platforms | |
CN110830564B (en) | CDN scheduling method, device, system and computer readable storage medium | |
CN106341438A (en) | Request processing method and device | |
CN108696399B (en) | Business service test method and device | |
EP3005134B1 (en) | Systems and methods of token piggybacking | |
CN105530297B (en) | A kind of web page resources wrap transmission method and device | |
CN103944944B (en) | Method, electronic equipment and the system of sharing web page link | |
CN109032797A (en) | For providing the method and apparatus of web page access | |
CN103581249B (en) | A kind of information-pushing method, system and client | |
CN108804514A (en) | A kind of webpage loading method, server and webpage loading system | |
CN111026982A (en) | Intelligent contract processing method, computer equipment and storage medium | |
CN107832329A (en) | Page resource acquisition methods and terminal device | |
US20200159962A1 (en) | Untrackable Personalization Based on Previously Downloaded Content | |
CN107181779A (en) | Processing method, the device and system of access request | |
CN109670094A (en) | Processing method, device, computer equipment and the storage medium of ad data | |
CN107040584A (en) | The method and device of client downloads picture | |
CN105786952A (en) | Auto-configurable transport stack | |
CN105337841A (en) | Information processing method and system, client, and server | |
CN109981745A (en) | A kind of journal file processing method and server |
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 |
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. |
|
TR01 | Transfer of patent right |