CN105915639A - Page access method and apparatus thereof - Google Patents
Page access method and apparatus thereof Download PDFInfo
- Publication number
- CN105915639A CN105915639A CN201610399281.1A CN201610399281A CN105915639A CN 105915639 A CN105915639 A CN 105915639A CN 201610399281 A CN201610399281 A CN 201610399281A CN 105915639 A CN105915639 A CN 105915639A
- Authority
- CN
- China
- Prior art keywords
- page
- visited
- resource
- server
- terminal
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a page access method and an apparatus thereof. The method comprises the following steps of acquiring a page access request which is used for accessing a page to be accessed and is sent by a client operated on a terminal; and determining whether page request information of the page to be accessed, which is carried in the page access request, satisfies a preset condition; when the page request information satisfies the preset condition, sending a response message to the terminal, wherein the response message carries indication information used for indicating the terminal to directly access a page server of the page to be accessed so as to acquire page resources in the page to be accessed. By using the method and the apparatus of the invention, a technical problem that white and black lists are used to carry out page access so that real-time performance of page access control is poor is solved.
Description
Technical field
The present invention relates to computer realm, in particular to a kind of page access method and device.
Background technology
At present, terminal realizes the page resource in the page generally by the black and white lists of domain name rank
Acquisition control.That is, determined it is that direct-connected page server obtains the page by pre-configured black and white lists
In page resource, or by proxy server connect page server obtain page resource.Its
In, if although direct-connected page server access speed faster, but exist webpage kidnap, JS inject,
Leakage of information, fishing website etc. safety problem;And if all accessed by proxy server, though
So can ensure that access safety, but the bandwidth expense of great number can be brought, simultaneously for video class resource,
There is also the problem that the resource downloading caused by the acquisition of IP cross operator is slow.
It is to say, be at present the fixing list being pre-configured with due to black and white lists, thus use above-mentioned
When the mode of black and white lists conducts interviews, the real-time control to page access cannot be realized by causing.
For above-mentioned problem, effective solution is the most not yet proposed.
Summary of the invention
Embodiments provide a kind of page access method and device, at least to solve owing to using
The technology that black and white lists carries out the real-time controlling page access that page access caused poor is asked
Topic.
An aspect according to embodiments of the present invention, it is provided that a kind of page access method, including: eventually
The client run on end sends the page access for accessing the page to be visited to proxy server please
Ask;Proxy server judges the page of the page above-mentioned to be visited entrained in above-mentioned accessing page request
It is pre-conditioned whether solicited message meets, judge to meet above-mentioned pre-conditioned time, above-mentioned agency takes
Business device sends response message to above-mentioned terminal, and wherein, above-mentioned response message carries for indicating above-mentioned
Terminal directly accesses the page server of the above-mentioned page to be visited and obtains the page in the above-mentioned page to be visited
The instruction information of face resource;Above-mentioned terminal directly accesses the above-mentioned page server of the above-mentioned page to be visited
Obtain the above-mentioned page resource in the above-mentioned page to be visited;Above-mentioned page server is transported in above-mentioned terminal
The above-mentioned page resource of above-mentioned client push of row.
Another aspect according to embodiments of the present invention, additionally provides a kind of page access method, including:
The page access being used for accessing the page to be visited obtaining the transmission of the client by running in terminal please
Ask;The page request message of the page above-mentioned to be visited entrained by judging in above-mentioned accessing page request is
No meet pre-conditioned;Judge to meet above-mentioned pre-conditioned time, send response to above-mentioned terminal and disappear
Breath, wherein, above-mentioned response message carries for indicating above-mentioned terminal directly to access above-mentioned page to be visited
The page server in face obtains the instruction information of the page resource in the above-mentioned page to be visited.
Another aspect according to embodiments of the present invention, additionally provides a kind of page access method, including:
The accessing page request for accessing the page to be visited is sent to proxy server;Receive above-mentioned agency clothes
The response message that business device sends, wherein, above-mentioned response message carries for indicating directly access above-mentioned
The page server of the page to be visited obtains the instruction information of the page resource in the above-mentioned page to be visited;
Directly access the page money that the page server of the above-mentioned page to be visited obtains in the above-mentioned page to be visited
Source.
Another aspect according to embodiments of the present invention, additionally provides a kind of page access device, including:
Acquiring unit, for obtain by terminal run client send be used for access the page to be visited
Accessing page request;Judging unit, entrained above-mentioned for judging in above-mentioned accessing page request
It is pre-conditioned whether the page request message of the page to be visited meets;Transmitting element, for judging
Meet above-mentioned pre-conditioned time, to above-mentioned terminal send response message, wherein, above-mentioned response message is taken
Obtain above-mentioned with the page server for indicating above-mentioned terminal directly to access the above-mentioned page to be visited
The instruction information of the page resource in the page to be visited.
Another aspect according to embodiments of the present invention, additionally provides a kind of page access device, including:
Transmitting element, for sending the accessing page request for accessing the page to be visited to proxy server;
Receiving unit, for receiving the response message that above-mentioned proxy server sends, wherein, above-mentioned response disappears
Breath carries for indicating the page server directly accessing the above-mentioned page to be visited above-mentioned the waiting of acquisition to visit
Ask the instruction information of page resource in the page;Access unit, for directly accessing above-mentioned page to be visited
The page server in face obtains the page resource in the above-mentioned page to be visited.
In embodiments of the present invention, proxy server sends by receiving the client run from terminal
Accessing page request, it is judged that the page request of the page to be visited entrained in this accessing page request
It is pre-conditioned whether information meets, and when judging to meet pre-conditioned, send to terminal and carry
Page server for indicating terminal directly to access the page to be visited obtains the page in the page to be visited
The response message of the instruction information of face resource.So that terminal can directly obtain by accession page server
Part or all of page resource in the page, and carry out accession page clothes without continuing through proxy server
Business device obtains page resource.Thus reach, in the case of ensureing terminal security accession page, to reduce
The flow of proxy server and CPU usage, improve page access and obtain the speed of page resource
The effect of degree.And then solve owing to using black and white lists to carry out that page access caused visits the page
Ask the technical problem that the real-time of control is poor.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the one of the application
Part, the schematic description and description of the present invention is used for explaining the present invention, is not intended that this
Bright improper restriction.In the accompanying drawings:
Fig. 1 is the applied environment signal of a kind of optional page access method according to embodiments of the present invention
Figure;
Fig. 2 is the flow chart of a kind of optional page access method according to embodiments of the present invention;
Fig. 3 is the flow chart of another kind of optional page access method according to embodiments of the present invention;
Fig. 4 is the effect schematic diagram of a kind of optional page access method according to embodiments of the present invention;
Fig. 5 is the flow chart of according to embodiments of the present invention another optional page access method;
Fig. 6 is the schematic diagram of a kind of optional proxy server according to embodiments of the present invention;
Fig. 7 is the schematic diagram of a kind of optional page access terminal according to embodiments of the present invention;
Fig. 8 is the schematic diagram of a kind of optional page access device according to embodiments of the present invention;
Fig. 9 is the schematic diagram of another kind of optional page access device according to embodiments of the present invention;And
Figure 10 is the flow chart of according to embodiments of the present invention another optional page access method.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with the present invention
Accompanying drawing in embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention,
Obviously, described embodiment is only the embodiment of a present invention part rather than whole enforcement
Example.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work
The every other embodiment obtained under premise, all should belong to the scope of protection of the invention.
It should be noted that the term in description and claims of this specification and above-mentioned accompanying drawing
" first ", " second " etc. are for distinguishing similar object, without be used for describing specific order or
Precedence.Should be appreciated that the data of so use can be exchanged in the appropriate case, in order to retouch here
The embodiments of the invention stated can be real with the order in addition to those here illustrating or describing
Execute.Additionally, term " includes " and " having " and their any deformation, it is intended that cover and do not arrange
He comprises, such as, contain series of steps or the process of unit, method, system, product or
Equipment is not necessarily limited to those steps or the unit clearly listed, but can include the most clearly listing
Or for intrinsic other step of these processes, method, product or equipment or unit.
Embodiment 1
In embodiments of the present invention, it is provided that the embodiment of a kind of above-mentioned page access method.As one
Planting optional embodiment, this page access method can be, but not limited to the application being applied to as shown in Figure 1
In environment.The client run in terminal 102 sends page by network 104 to proxy server 106
Face access request, proxy server 106 judges that above-mentioned waiting entrained in above-mentioned accessing page request is visited
Ask whether the page request message of the page meets pre-conditioned, judge to meet above-mentioned pre-conditioned time,
Proxy server 106 sends response message to terminal 102, and terminal 102 will be according in this response message
Carry for indicating the page server 108 directly accessing the page to be visited to obtain in the page to be visited
The instruction information of page resource.
Carry out page access by the way, will realize by proxy server according to the page got
The page request message of the page to be visited entrained in access request, whether real-time judge meets is preset
Condition, thus realize when meeting pre-conditioned, the real-time page resource adjusted in the page to be visited
Acquisition mode, is i.e. adjusted to pass direct-connected page server and obtains corresponding page resource, to reach
On the premise of the secure access page, save the flow of proxy server, improve access speed and the page
The effect of resource downloading speed.
Alternatively, in the present embodiment, above-mentioned terminal can include but not limited at least one of:
Mobile phone, panel computer, notebook computer, desktop PC and other are for the terminal of accession page.
Alternatively, in the present embodiment, above-mentioned network can include but not limited at least one of: wide area
Net, Metropolitan Area Network (MAN), LAN.A kind of above-mentioned example, this is not done any restriction by the present embodiment.
According to embodiments of the present invention, it is provided that a kind of page access method, as in figure 2 it is shown, the method
Including:
S202, the client that terminal 202 is run sends to be used for accessing to proxy server 204 and waits to visit
Ask the accessing page request of the page;
S204, proxy server 204 judges the page of the page to be visited entrained in accessing page request
It is pre-conditioned whether face solicited message meets;
S206, when judging to meet pre-conditioned, proxy server 204 sends to terminal 202 and rings
Answering message, wherein, response message carries for indicating terminal directly to access the page of the page to be visited
Server obtains the instruction information of the page resource in the page to be visited;
S208, terminal 202 directly accesses the page server of the page to be visited and obtains in the page to be visited
Page resource;
S210, the client push page resource that page server 206 runs in terminal.
Alternatively, in the present embodiment, above-mentioned page access method can be, but not limited to be applied to terminal
Between different clients for accession page and proxy server and the page server of upper operation
In interaction, wherein, above-mentioned client can include but not limited to: browser client, application
Client etc..Above-mentioned proxy server can be, but not limited to capture and pacify for treating accession page
Total inspection etc..Above-mentioned page server can be, but not limited to the page money for storing in the page to be visited
Source.Above-mentioned is only a kind of embodiment, and this does not do in the present embodiment any restriction.
It is to say, proxy server is by obtaining the page access that the client run in terminal sends
Page request message entrained by request, and this page request message is carried out real-time judge, it is judged that it is
No meet pre-conditioned, thus realize page access is obtained the real-time control of page resource, to overcome
The page that can only be caused by the way of the name single control page access being pre-configured with in prior art
Access the problem that real-time is poor, and then reached to improve the effect controlling page access in real time.Additionally,
Proxy server obtains corresponding page resource by the instruction direct-connected page server of terminal, is also up to
On the premise of the secure access page, save the flow of proxy server, improve access speed and the page
The effect of resource downloading speed.Further, in the present embodiment, by institute in page request message
The page resource of request judges respectively, also achieves and page resource is carried out staged care, thus
Reach in the precision of page resource, it is achieved the control to page access.
In embodiments of the present invention, above-mentioned page method can be, but not limited to be applied to proxy server,
As it is shown on figure 3, the step in proxy server execution is as follows:
S302, obtains the page for accessing the page to be visited that the client by running in terminal sends
Face access request;
S304, it is judged that whether the page request message of the page to be visited entrained in accessing page request
Meet pre-conditioned;
S306, when judging to meet pre-conditioned, sends response message, wherein, response to terminal
Message carries and obtains to be visited for the page server indicating terminal directly to access the page to be visited
The instruction information of the page resource in the page.
Alternatively, in the present embodiment, proxy server is by receiving the client run from terminal
The accessing page request sent, it is judged that the page of the page to be visited entrained in this accessing page request
It is pre-conditioned whether solicited message meets, and when judging to meet pre-conditioned, send to terminal and use
The page server directly accessing the page to be visited in instruction terminal obtains the page in the page to be visited
The response message of resource.So that terminal directly can obtain the part in the page by accession page server
Or whole page resources, and without continuing through proxy server to access page server to obtain page
Face resource.Thus reach, in the case of ensureing terminal security accession page, to reduce proxy server
Flow and CPU usage, improve the effect of the speed of page access and acquisition page resource.
It should be noted that in the present embodiment, when judging to be unsatisfactory for pre-conditioned, agency's clothes
Business device also can send response message to terminal, and this response message carries for indicating terminal to continue through
Proxy server accesses the page server of the page to be visited and obtains the page resource in the page to be visited
Instruction information.Additionally, in the present embodiment, judge whether to meet pre-conditioned at proxy server
During, can be, but not limited to obtain this page to be visited to the page server of the page to be visited,
I.e. independent of the content of pages of the page resource in the page to be visited, wherein, above-mentioned page resource is permissible
Include but not limited at least one of: picture resource, literal resource, CSS resource, JS
Resource.
Such as, it is illustrated in figure 4 the changes in flow rate design sketch of the proxy server detected, wherein,
In figure Article 1 line (above) represent the upper cycle through the flow of proxy server, in figure second
Bar line (being positioned at lower section) represents this cycle flow through proxy server, the flow of proxy server
Significantly reduce.
Alternatively, in the present embodiment, it is judged that the page to be visited entrained in accessing page request
Whether page request message meets pre-conditioned including: judge the page to be visited according to page request message
Whether meeting first and preset sub-condition, wherein, first presets sub-condition includes that the page to be visited is credible
The page;Judge the page to be visited meet first preset sub-condition time, sentence according to page request message
Whether the disconnected page to be visited meets second is preset sub-condition.
It should be noted that in the present embodiment, proxy server presets sub-conditional judgment by first
The page to be visited whether safety, is the credible page (also referred to as secure page table) at this page to be visited
Time, then treat accession page and judge whether to meet and second preset sub-condition.Thus ensure proxy server
After determining and carrying out page access by direct-connected page server, institute in the response message that terminal sends
Indicate is the safe credible page, to ensure the safety of terminal access.
Alternatively, in the present embodiment, be used for judging whether meeting second preset the subconditional page please
Ask information can include but not limited at least one of: the resource type of page resource, terminal are current
The network type of connected network, the regional location at terminal place, the Network mark of terminal.
Alternatively, in order to ensure to obtain quickly and accurately page resource, it is to avoid under complex network environment
The problems such as the access efficiency reduction that the repeated accesses that direct-connected failure is caused is caused.In the present embodiment,
Can be, but not limited to store predetermined list in proxy server, wherein, this predetermined list is used for storing nothing
Method realizes direct-connected page iden-tity.Such as, complex network environment can include but not limited to following at least
One of: the situations such as unified login, IP effect, CMWAP gateway, cross operator.It is to say,
Proxy server judge whether to meet pre-conditioned before, can be, but not limited to judge the page to be visited
Whether belong to predetermined list, thus realize when the page to be visited belongs to predetermined list, the most directly pass through
Proxy server obtains page resource;And when the page to be visited is not belonging to predetermined list, then continue to hold
Row is about above-mentioned pre-conditioned judgement step.Realize raising further to treat accession page and conduct interviews
Access efficiency.
Alternatively, in the present embodiment, proxy server can be, but not limited to by configuration response message
Middle HTTP header information, it is achieved the accurate instruction to the page access mode of terminal.Such as, configuration
Predetermined flag in HTTP header information, wherein, this predetermined flag is for indicating by directly
Access the page server of the described page to be visited and obtain page resource in the described page to be visited
Resource type.Wherein, the figure place of above-mentioned predetermined flag can be, but not limited to set according to different scenes
It is set to different numerical value.Such as, when predetermined flag is one, then can represent institute with 1 (or 0)
There is page resource all by directly accessing the page server acquisition of the described page to be visited, can be with 0
(or 1) represents that all page resources all access the page of the described page to be visited by proxy server
Server obtains.The most such as, when predetermined flag is two, then can be with in 10 representation pages
Picture resource directly accesses the page server of the described page to be visited and obtains.Above-mentioned is only a kind of example,
This is not done any restriction by the present embodiment.
The embodiment provided by the application, proxy server is by receiving the client run from terminal
The accessing page request that end sends, it is judged that the page of the page to be visited entrained in this accessing page request
It is pre-conditioned whether face solicited message meets, and when judging to meet pre-conditioned, sends to terminal
Page server for indicating terminal directly to access the page to be visited obtains the page in the page to be visited
The response message of face resource.So that terminal directly can obtain the portion in the page by accession page server
Divide or whole page resource, and obtain to access page server without continuing through proxy server
Page resource.Thus reach, in the case of ensureing terminal security accession page, to reduce proxy server
Flow and CPU usage, improve page access and obtain the effect of speed of page resource.
As the optional scheme of one, it is judged that the page of the page to be visited entrained in accessing page request
Whether face solicited message meets pre-conditioned including:
According to page request message, S1, judges whether the page to be visited meets first and preset sub-condition, its
In, first presets sub-condition includes that the page to be visited is the credible page;
S2, judge the page to be visited meet first preset sub-condition time, according to page request message
Judge whether the page to be visited meets second and preset sub-condition.
Alternatively, in the present embodiment, can be, but not limited to by the abduction of the page is monitored situation,
Judge whether this page to be visited meets first and preset sub-condition, i.e. judges that the page to be visited is credible
The page.Wherein, above-mentioned abduction refers to by revising the modes such as domain name, or comprehensive duplication, by be visited
Page resource in the page replaces with the page resource in target pages, wherein, in the page to be visited
Page resource is different from the page resource in target pages.The mode of this abduction page not only makes terminal
The page resource of real needs cannot be obtained, but also terminal direct accession page server can be affected
Safety, such as, cause the problems such as information leakage.Thus, in the present embodiment, pre-by first
If after sub-conditional filtering obtains the credible page, then preset whether sub-conditional judgment indicates terminal by second
Direct-connected page server obtains page resource.
Alternatively, in the present embodiment, judge whether the page to be visited meets according to page request message
First presets sub-condition includes:
S11, it is judged that whether the page to be visited is replaced by target pages, wherein, in the page to be visited
Page resource different from the page resource in target pages;
S12, when the page to be visited is not replaced by target pages, then judges that the page to be visited is full
Foot first presets sub-condition.
The embodiment provided by the application, is preset sub-conditional judgment by first in pre-conditioned and treats
Whether accession page is the credible page, thus ensures that proxy server is at the response message sent to terminal
In indicated be the safe credible page, to avoid the safety problems such as information leakage, reach to ensure
The purpose of the safety of terminal access.
As the optional scheme of one, judge whether the page to be visited meets according to page request message
Two preset sub-condition includes at least one of:
1) judge whether according to the resource type of page resource in the page to be visited in page request message
The page server directly accessing the page to be visited obtains the page resource in the page to be visited;
2) judge whether directly according to the current connected network of network type of terminal in page request message
Receiving asks that the page server of the page to be visited obtains the page resource in the page to be visited;
3) judge whether directly to access according to the regional location at terminal place in page request message and wait to visit
Ask that the page server of the page obtains the page resource in the page to be visited;
4) judge whether directly to access wait to visit according to the Network mark of terminal in page request message
Ask that the page server of the page obtains the page resource in the page to be visited.
The embodiment provided by the application, by dividing the different parameters information in page request message
Do not judge, to determine whether that corresponding page resource is passed through direct-connected page server by terminal
Mode obtain, to reach to save the flow of proxy server, improve under access speed and page resource
Carry the effect of speed.Further, by the page resource asked in page request message being carried out point
Level processes, thus has reached to realize the control to page access in the precision of page resource, additionally,
According to parameter information, different page resources are performed different acquisition modes, also improve in the acquisition page
The motility of page resource.
As the optional scheme of one, according to page resource in the page to be visited in page request message
Resource type judges whether that the page server directly accessing the page to be visited obtains in the page to be visited
Page resource include:
1) when the resource type of page resource is first resource type, then judge directly to access and treat
The page server of accession page obtains the page resource in the page to be visited, wherein, first resource class
The band shared when transmitting the page resource in the page to be visited of type instruction is wider than the first predetermined threshold;
Or
2) when the resource type of page resource is Secondary resource type, then judge to be taken by agency
Page resource in the page server acquisition page to be visited of the business device access page to be visited, wherein,
The bandwidth shared when transmitting the page resource in the page to be visited of Secondary resource type instruction is less than
In the first predetermined threshold.
Alternatively, in the present embodiment, above-mentioned first resource type accounts for when can be, but not limited to as transmission
With the bigger resource type of bandwidth, such as picture resource or video resource.It is to say, treat guaranteeing
In the case of accession page is the credible page, proxy server can be taken by the instruction direct-connected page of terminal
Business device obtains the picture resource or video resource that in the credible page, occupied bandwidth is bigger, and realizes saving
The flow of proxy server.Further, it is also possible to overcome in access process, cross operator obtains the page
The problem that resource downloading that resource is caused is slower.
Alternatively, in the present embodiment, above-mentioned Secondary resource type accounts for when can be, but not limited to as transmission
With the less resource type of bandwidth, such as literal resource.It is to say, guaranteeing the page to be visited
In the case of the credible page, proxy server can be continued through and obtain correspondence to page server
Literal resource.
The embodiment provided by the application, is realized page resource according to the resource type of page resource
Staged care, perform different modes for different page resource, it is achieved in the essence of page resource
Page access is carried out on degree.
As the optional scheme of one, according to the net of the current connected network of terminal in page request message
Network type judges whether that the page server directly accessing the page to be visited obtains in the page to be visited
Page resource includes:
1) when terminal current connected network of network type is WIFI network, then judge directly
The page server accessing the page to be visited obtains the page resource in the page to be visited;Or
2) when terminal current connected network of network type is mobile network, then judge to pass through
Proxy server accesses the page server of the page to be visited and obtains the page resource in the page to be visited.
Alternatively, it is WIFI network in terminal current connected network of network type, terminal access
Time without considering flow, and will more pay attention to the quality of page resource.As a example by picture, terminal is more paid close attention to
The definition of picture resource, thus, proxy server can generate the response message of correspondence, and instruction is eventually
Hold by direct-connected page server obtain correspondence picture resource, thus ensure accessed by picture
The definition of resource.
Alternatively, it is mobile network, such as, 3G in terminal current connected network of network type,
4G network, will more pay close attention to flow service condition, as a example by picture, proxy server during terminal access
Can generate the response message of correspondence, it is that this terminal obtains above-mentioned picture that instruction continues by proxy server,
Thus be reached for terminal and save the purpose of delivery flow rate.
The embodiment provided by the application, is realized according to terminal current connected network of network type
Staged care to page resource, performs different modes for different page resources, it is achieved at page
Page access is carried out in the precision of face resource.
As the optional scheme of one, judge according to the regional location at terminal place in page request message
The page server the most directly accessing the page to be visited obtains the page resource bag in the page to be visited
Include:
1) when the regional location at terminal place belongs to presumptive area, then judge to pass through agency service
Device accesses the page server of the page to be visited and obtains the page resource in the page to be visited;Or
2) when the regional location at terminal place is not belonging to presumptive area, then judges directly to access and treat
The page server of accession page obtains the page resource in the page to be visited.
Alternatively, in the present embodiment, above-mentioned presumptive area can be, but not limited to as realizing direct-connected
The specific region of page server, such as signal cover more weak region, and safe class requires higher
Regions etc. need terminal to obtain the addressable region of ability after access authorizes.It is to say, be positioned in terminal
During above-mentioned presumptive area, then need just may be used by proxy server (having obtained the access mandate in region)
Realize page access;And when terminal is not on above-mentioned presumptive area, then can be at proxy server
The lower page server directly accessing the page to be visited of the instruction of response message obtains in the page to be visited
Page resource.
The embodiment provided by the application, is realized page resource according to the regional location at terminal place
Staged care, perform different modes for different page resource, it is achieved in the essence of page resource
Page access is carried out on degree.
As the optional scheme of one, judge according to the Network mark of terminal in page request message
The page server the most directly accessing the page to be visited obtains the page resource bag in the page to be visited
Include at least one of:
1) when the Network in terminal is designated and presets mark, then judge to pass through proxy server
The page server accessing the page to be visited obtains the page resource in the page to be visited;Or
2) when the Network mark in terminal is not to preset mark, then judge by directly accessing
The page server of the page to be visited obtains the page resource in the page to be visited.
Alternatively, in the present embodiment, the Network mark of above-mentioned terminal can be, but not limited to as in advance
First configure cannot direct-connected page server Network mark.It is to say, at the network of terminal
When service identification is for presetting mark, then need just can be realized page access by proxy server;And
When the Network mark of terminal is not to preset mark, then can be at the finger of the response message of proxy server
Show that the page server of the lower direct access page to be visited obtains the page resource in the page to be visited.
The embodiment provided by the application, is identified according to the Network of terminal and realizes page resource
Staged care, perform different modes for different page resource, it is achieved in the essence of page resource
Page access is carried out on degree.
As the optional scheme of one, before sending response message to terminal, also include:
S1, HTTP header information in configuration response message, wherein, pre-in HTTP header information
Determine flag and obtain page to be visited for instruction by directly accessing the page server of the page to be visited
The resource type of the page resource in face.
Alternatively, in the present embodiment, can be, but not limited to by configuring http response header information
In Q-Proxy-Resp:ds=value, it is achieved can obtain with direct-connected page server to terminal instruction
The resource type of page resource.
Detailed process can be such that in terminal run client (such as browser client) in interior
Core is initiated page access and can be taken according in accessing page request to proxy server, proxy server
At least one information following in the page request message of band: the resource type of page resource, terminal are worked as
The network type of front connected network, the regional location at terminal place, terminal Network mark,
The information such as the access point (Access Point Name, APN) of terminal, come in configuration response message
Http response header information Q-Proxy-Resp:ds=value, to generate corresponding response message, and
This response message after configuration is sent to terminal, it is achieved terminal is asked the page to be visited accessed
Direct-connected or proxy access control.
Alternatively, in the present embodiment, above-mentioned HTTP header information is mainly used in carrying direct-connected order
With other orders to kernel, kernel is by this various response message of HTTP header acquisition of information.Wherein,
The definition of ds=value can be such that
It is assumed that the value position of ds represents, the most successively:
Bit0: represent that all child resources are the most direct-connected, such as Q-Proxy-Resp:ds=1;Represent all child resources
Direct-connected;
Bit1: represent that picture resource is direct-connected, such as Q-Proxy-Resp:ds=2, (10), represents current page figure
Sheet resource peering;
Bit2: represent that CSS (Cascading Style Sheets, CSS) is direct-connected, as
Q-Proxy-Resp:ds=6, (110), representing picture resource, CSS is the most direct-connected;
Bit3: represent that js is direct-connected.
The embodiment provided by the application, pre-by HTTP header information configuration in the response message
Determine flag, it is achieved obtain the corresponding page by the instruction of predetermined flag by direct-connected page server
The resource type of resource, to reach terminal is asked that the direct-connected of the page to be visited accessed or agency visit
Ask control.
As the optional scheme of one, in configuration response message, HTTP header information includes:
1) configuring first mark that is designated in predetermined flag, wherein, the first mark is used for indicating
Treat the whole page resources in accession page all by directly accessing the Page Service of the page to be visited
Device obtains;Or
2) configuring second mark that is designated in predetermined flag, wherein, the second mark is used for indicating
Treat the page picture resource in accession page by directly accessing the page server of the page to be visited
Obtain;Or
3) configuring the 3rd mark that is designated in predetermined flag, wherein, the 3rd mark is used for indicating
Treat the CSS page resource in accession page by directly accessing the page of the page to be visited
Server obtains;Or
4) configuring the 4th mark that is designated in predetermined flag, wherein, the 4th mark is used for indicating
Treat the js code page resource in accession page by directly accessing the Page Service of the page to be visited
Device obtains.
Alternatively, in the present embodiment, the figure place of above-mentioned predetermined flag can be, but not limited to be one
Or multidigit, this is not done any restriction by the present embodiment.
Such as, http response header information Q-Proxy-Resp:ds=value in configuration response message
The value of middle ds.Such as, when predetermined flag is four, then can represent all pages with 0001
Resource is all by directly accessing the page server acquisition of the described page to be visited;0000 table can be used
Show that the page server that all page resources all access the described page to be visited by proxy server obtains
Take;Can be accessed described to be visited by proxy server with the picture resource in 0010 representation page
The page server of the page obtains;Can be by the picture resource in 0100 representation page and CSS resource
The page server acquisition of the described page to be visited is all accessed by proxy server;Can be with 0110
CSS resource in representation page accesses the Page Service of the described page to be visited by proxy server
Device obtains.Above-mentioned is only a kind of example, and this does not do in the present embodiment any restriction.
The embodiment provided by the application, by different, it is achieved logical by the instruction of predetermined flag
Cross direct-connected page server and obtain the resource type of corresponding page resource, to reach terminal is asked
Direct-connected or the proxy access of the page to be visited accessed controls.
In embodiments of the present invention, above-mentioned page method can be, but not limited to be applied to the visitor of terminal operating
In the end of family, as it is shown in figure 5, the step in client executing is as follows:
S502, sends the accessing page request for accessing the page to be visited to proxy server;
S504, Receiving Agent server send response message, wherein, response message carry for
Instruction directly accesses the page resource in the page server acquisition page to be visited of the page to be visited
Instruction information;
S506, directly accesses the page money that the page server of the page to be visited obtains in the page to be visited
Source.
Alternatively, in the present embodiment, client terminal run is by sending to proxy server
Accessing page request, and Receiving Agent server response page access request send be used for indicate terminal
The page server directly accessing the page to be visited obtains the response of the page resource in the page to be visited
Message, so that terminal directly can obtain the part or all of page in the page by accession page server
Resource, and without continuing through proxy server to access page server to obtain page resource.From
And reach in the case of ensureing terminal security accession page, reduce flow and the CPU of proxy server
Utilization rate, improves the effect of the speed of page access and acquisition page resource.
Alternatively, in the present embodiment, sending for accessing the page to be visited to proxy server
Before accessing page request, also include: judge whether the page to be visited belongs to default list, wherein,
The page server acquisition that default list accesses the page to be visited for instruction by proxy server is treated
The page resource of accession page.
It is to say, terminal can obtain the default list being pre-configured with, wherein this default list is used for referring to
Show the page of the page server acquisition page to be visited being accessed the page to be visited by proxy server
Resource.In the present embodiment, when the page to be visited that terminal is to be accessed belongs to this default list,
Then send above-mentioned accessing page request to proxy server, and perform further to judge, right to realize
The real-time control of the page resource in the page to be visited, and the page resource in this page is carried out classification
Process, to improve control accuracy.
It should be noted that for aforesaid each method embodiment, in order to be briefly described, therefore by it all
Being expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subject to
The restriction of described sequence of movement, because according to the present invention, some step can use other orders
Or carry out simultaneously.Secondly, those skilled in the art also should know, reality described in this description
Execute example and belong to preferred embodiment, necessary to involved action and the module not necessarily present invention.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive root
The mode of required general hardware platform can be added by software according to the method for above-described embodiment to realize, when
So can also pass through hardware, but a lot of in the case of the former is more preferably embodiment.Based on such reason
Solving, the part that prior art is contributed by technical scheme the most in other words can be with soft
The form of part product embodies, this computer software product be stored in a storage medium (as
ROM/RAM, magnetic disc, CD) in, including some instructions with so that a station terminal equipment (can
To be mobile phone, computer, server, or the network equipment etc.) perform each embodiment institute of the present invention
The method stated.
Embodiment 2
According to embodiments of the present invention, a kind of page for implementing above-mentioned page access method is additionally provided
Access system, this system includes:
1) terminal, is set to send for the page access accessing the page to be visited to proxy server
Request;It is also configured to after receiving the response message that proxy server sends, directly accesses to be visited
The page server of the page obtains the page resource in the page to be visited;
2) proxy server, is set to judge the page to be visited entrained in accessing page request
It is pre-conditioned whether page request message meets;It is also configured to when judging to meet pre-conditioned, to
Terminal sends response message, and wherein, response message carries for indicating terminal directly to access to be visited
The page server of the page obtains the instruction information of the page resource in the page to be visited;
3) page server, is set in terminal the client push page resource run.
Alternatively, in the present embodiment, above-mentioned page access system can be, but not limited to as it is shown in figure 1,
The step performing page access process can be, but not limited to as in figure 2 it is shown, in the present embodiment at this no longer
Repeat.
In the embodiment of the present invention, additionally provide a kind of agency's clothes for implementing above-mentioned page access method
Business device, as shown in Figure 6, this server includes:
1) communication interface 602, are set to receive for the accessing page request accessing the page to be visited;
2) processor 604, are connected with communication interface 602, are set to judge institute in accessing page request
Whether the page request message of the page to be visited carried meets pre-conditioned;
Wherein, above-mentioned communication interface 602, it is also configured to when judging to meet pre-conditioned, to end
End sends response message, and wherein, response message carries for indicating terminal directly to access page to be visited
The page server in face obtains the instruction information of the page resource in the page to be visited;
3) memorizer 606, are connected with communication interface 602 and processor 604, are set to store and wait to visit
Ask the page request message of the page and pre-conditioned.
According to embodiments of the present invention, a kind of page for implementing above-mentioned page access method is additionally provided
Access terminal, as it is shown in fig. 7, this terminal includes:
1) communication interface 702, are set to send for the accessing page request accessing the page to be visited;
Being also configured to the response message that Receiving Agent server sends, wherein, response message carries for referring to
Show that the page server of the directly access page to be visited obtains the finger of the page resource in the page to be visited
Show information;
2) processor 704, are connected with communication interface 702, are set to directly access described page to be visited
The page server in face obtains the page resource in the described page to be visited;
3) memorizer 706, are connected with communication interface 702 and processor 704, are set to store and wait to visit
Ask the page request message of the page.
Alternatively, during the concrete example in the present embodiment is referred to above-described embodiment 1 and embodiment 2
Described example, the present embodiment does not repeats them here.
It should be noted that in the present embodiment, proxy server is by obtaining the visitor run in terminal
The page request message entrained by accessing page request that family end sends, and this page request message is entered
Row real-time judge, it may be judged whether meet pre-conditioned, thus realize page access is obtained page resource
Real-time control, so that overcome in prior art can only be by the name single control page access that is pre-configured with
The problem that page access real-time that mode is caused is poor, and then reached to improve and control the page in real time
The effect accessed.Additionally, proxy server obtains correspondence by the instruction direct-connected page server of terminal
Page resource, so that terminal directly can obtain corresponding page resource by accession page server, also
It is up to, on the premise of the secure access page, save the flow of proxy server, improve access speed
And the effect of page resource speed of download.Further, in the present embodiment, by page request is believed
The page resource asked in breath judges respectively, also achieves and page resource is carried out staged care,
Thus reached in the precision of page resource, it is achieved the control to page access.
In embodiments of the present invention, above-mentioned page access device can be, but not limited to be applied to agency service
In device, as shown in Figure 8, this device includes:
1) acquiring unit 802, for obtain by terminal run client send be used for access
The accessing page request of the page to be visited;
2) judging unit 804, for judging the page of the page to be visited entrained in accessing page request
It is pre-conditioned whether face solicited message meets;
3) transmitting element 806, for when judging to meet pre-conditioned, send response to terminal and disappear
Breath, wherein, response message carries for indicating terminal directly to access the Page Service of the page to be visited
Device obtains the instruction information of the page resource in the page to be visited.
Alternatively, in the present embodiment, above-mentioned page access device is applied to proxy server, agency
Server is by receiving the accessing page request that the client run from terminal sends, it is judged that this page
Whether the page request message of the page to be visited entrained in access request meets pre-conditioned, and
When judging to meet pre-conditioned, send for indicating terminal directly to access the page to be visited to terminal
Page server obtains the response message of the page resource in the page to be visited.So that terminal can be direct
Accession page server obtains the part or all of page resource in the page, and without continuing through generation
Reason server accesses page server to obtain page resource.Thus reach ensureing that terminal security is visited
In the case of asking the page, reduce flow and the CPU usage of proxy server, improve the page and visit
Ask about the effect of the speed obtaining page resource.
It should be noted that in the present embodiment, when judging to be unsatisfactory for pre-conditioned, agency's clothes
Business device also can send response message to terminal, and this response message carries for indicating terminal to continue through
Proxy server accesses the page server of the page to be visited and obtains the page resource in the page to be visited
Instruction information.Additionally, in the present embodiment, judge whether to meet pre-conditioned at proxy server
During, can be, but not limited to obtain this page to be visited to the page server of the page to be visited,
I.e. independent of the content of pages of the page resource in the page to be visited, wherein, above-mentioned page resource is permissible
Include but not limited at least one of: picture resource, literal resource, CSS resource, JS
Resource.Above-mentioned page resource is only a kind of example, and this does not do in the present embodiment any restriction.Above-mentioned
Page resource is only a kind of example, and this does not do in the present embodiment any restriction.
Such as, it is illustrated in figure 4 the changes in flow rate design sketch of the proxy server detected, wherein,
In figure Article 1 line (above) represent the upper cycle through the flow of proxy server, in figure second
Bar line (being positioned at lower section) represents this cycle flow through proxy server, the flow of proxy server
Significantly reduce.
Alternatively, in the present embodiment, it is judged that the page to be visited entrained in accessing page request
Whether page request message meets pre-conditioned including: judge the page to be visited according to page request message
Whether meeting first and preset sub-condition, wherein, first presets sub-condition includes that the page to be visited is credible
The page;Judge the page to be visited meet first preset sub-condition time, sentence according to page request message
Whether the disconnected page to be visited meets second is preset sub-condition.
It should be noted that in the present embodiment, proxy server presets sub-conditional judgment by first
The page to be visited whether safety, is the credible page (also referred to as secure page table) at this page to be visited
Time, then treat accession page and judge whether to meet and second preset sub-condition.Thus ensure proxy server
After determining and carrying out page access by direct-connected page server, institute in the response message that terminal sends
Indicate is the safe credible page, to ensure the safety of terminal access.
Alternatively, in the present embodiment, be used for judging whether meeting second preset the subconditional page please
Ask information can include but not limited at least one of: the resource type of page resource, terminal are current
The network type of connected network, the regional location at terminal place, the Network mark of terminal.
Alternatively, in order to ensure to obtain quickly and accurately page resource, it is to avoid under complex network environment
The problems such as the access efficiency reduction that the repeated accesses that direct-connected failure is caused is caused.In the present embodiment,
Can be, but not limited to store predetermined list in proxy server, wherein, this predetermined list is used for storing nothing
Method realizes direct-connected page iden-tity.Such as, complex network environment can include but not limited to following at least
One of: the situations such as unified login, IP effect, CMWAP gateway, cross operator.It is to say,
Proxy server judge whether to meet pre-conditioned before, can be, but not limited to judge the page to be visited
Whether belong to predetermined list, thus realize when the page to be visited belongs to predetermined list, the most directly pass through
Proxy server obtains page resource;And when the page to be visited is not belonging to predetermined list, then continue to hold
Row is about above-mentioned pre-conditioned judgement step.Realize raising further to treat accession page and conduct interviews
Access efficiency.
Alternatively, in the present embodiment, proxy server can be, but not limited to by configuration response message
Middle HTTP header information, it is achieved the accurate instruction to the page access mode of terminal.Such as, configuration
Predetermined flag in HTTP header information, wherein, this predetermined flag is for indicating by directly
Access the page server of the described page to be visited and obtain page resource in the described page to be visited
Resource type.Wherein, the figure place of above-mentioned predetermined flag can be, but not limited to set according to different scenes
It is set to different numerical value.Such as, when predetermined flag is one, then can represent institute with 1 (or 0)
There is page resource all by directly accessing the page server acquisition of the described page to be visited, can be with 0
(or 1) represents that all page resources all access the page of the described page to be visited by proxy server
Server obtains.The most such as, when predetermined flag is two, then can be with in 10 representation pages
Picture resource directly accesses the page server of the described page to be visited and obtains.Above-mentioned is only a kind of example,
This is not done any restriction by the present embodiment.
The embodiment provided by the application, proxy server is by receiving the client run from terminal
The accessing page request that end sends, it is judged that the page of the page to be visited entrained in this accessing page request
It is pre-conditioned whether face solicited message meets, and when judging to meet pre-conditioned, sends to terminal
Page server for indicating terminal directly to access the page to be visited obtains the page in the page to be visited
The response message of face resource.So that terminal directly can obtain the portion in the page by accession page server
Divide or whole page resource, and obtain to access page server without continuing through proxy server
Page resource.Thus reach, in the case of ensureing terminal security accession page, to reduce proxy server
Flow and CPU usage, improve page access and obtain the effect of speed of page resource.
As the optional scheme of one, it is judged that unit 804 includes:
1) according to page request message, the first judge module, for judging whether the page to be visited meets
First presets sub-condition, and wherein, first presets sub-condition includes that the page to be visited is the credible page;
2) the second judge module, for judge the page to be visited meet first preset sub-condition time,
Judge whether the page to be visited meets second and preset sub-condition according to page request message.
Alternatively, in the present embodiment, can be, but not limited to by the abduction of the page is monitored situation,
Judge whether this page to be visited meets first and preset sub-condition, i.e. judges that the page to be visited is credible
The page.Wherein, above-mentioned abduction refers to by revising the modes such as domain name, or comprehensive duplication, by be visited
Page resource in the page replaces with the page resource in target pages, wherein, in the page to be visited
Page resource is different from the page resource in target pages.The mode of this abduction page not only makes terminal
The page resource of real needs cannot be obtained, but also terminal direct accession page server can be affected
Safety, such as, cause the problems such as information leakage.Thus, in the present embodiment, pre-by first
If after sub-conditional filtering obtains the credible page, then preset whether sub-conditional judgment indicates terminal by second
Direct-connected page server obtains page resource.
Alternatively, in the present embodiment, the first judge module includes:
(1) first judges submodule, is used for judging whether the page to be visited is replaced by target pages,
Wherein, the page resource in the page to be visited is different from the page resource in target pages;To be visited
When the page is not replaced by target pages, it is judged that the page to be visited meets first and presets sub-condition.
The embodiment provided by the application, is preset sub-conditional judgment by first in pre-conditioned and treats
Whether accession page is the credible page, thus ensures that proxy server is at the response message sent to terminal
In indicated be the safe credible page, to avoid the safety problems such as information leakage, reach to ensure
The purpose of the safety of terminal access.
As the optional scheme of one, the second judge module includes at least one of:
1) second judges submodule, for providing according to the page in the page to be visited in page request message
The resource type in source judges whether that the page server directly accessing the page to be visited obtains page to be visited
Page resource in face;
2) the 3rd judges submodule, for according to the current connected network of terminal in page request message
Network type judge whether directly to access the page server of the page to be visited and obtain the page to be visited
In page resource;
3) the 4th judges submodule, for according to the regional location at terminal place in page request message
Judge whether directly to access the page money that the page server of the page to be visited obtains in the page to be visited
Source;
4) the 5th judges submodule, for according to the Network mark of terminal in page request message
Judge whether directly to access the page money that the page server of the page to be visited obtains in the page to be visited
Source.
The embodiment provided by the application, by dividing the different parameters information in page request message
Do not judge, to determine whether that corresponding page resource is passed through direct-connected page server by terminal
Mode obtain, to reach to save the flow of proxy server, improve under access speed and page resource
Carry the effect of speed.Further, by the page resource asked in page request message being carried out point
Level processes, thus has reached to realize the control to page access in the precision of page resource, additionally,
According to parameter information, different page resources are performed different acquisition modes, also improve in the acquisition page
The motility of page resource.
As the optional scheme of one, second judges submodule to be accomplished by according to the page asks
The resource type of page resource in the page to be visited is asked in information to judge whether directly to access page to be visited
The page resource that the page server in face obtains in the page to be visited includes:
1) when the resource type of page resource is first resource type, then judge directly to access and treat
The page server of accession page obtains the page resource in the page to be visited, wherein, first resource class
The band shared when transmitting the page resource in the page to be visited of type instruction is wider than the first predetermined threshold;
Or
2) when the resource type of page resource is Secondary resource type, then judge to be taken by agency
Page resource in the page server acquisition page to be visited of the business device access page to be visited, wherein,
The bandwidth shared when transmitting the page resource in the page to be visited of Secondary resource type instruction is less than
In the first predetermined threshold.
Alternatively, in the present embodiment, above-mentioned first resource type accounts for when can be, but not limited to as transmission
With the bigger resource type of bandwidth, such as picture resource or video resource.It is to say, treat guaranteeing
In the case of accession page is the credible page, proxy server can be taken by the instruction direct-connected page of terminal
Business device obtains the picture resource or video resource that in the credible page, occupied bandwidth is bigger, and realizes saving
The flow of proxy server.Further, it is also possible to overcome in access process, cross operator obtains the page
The problem that resource downloading that resource is caused is slower.
Alternatively, in the present embodiment, above-mentioned Secondary resource type accounts for when can be, but not limited to as transmission
With the less resource type of bandwidth, such as literal resource.It is to say, guaranteeing the page to be visited
In the case of the credible page, proxy server can be continued through and obtain correspondence to page server
Literal resource.
The embodiment provided by the application, is realized page resource according to the resource type of page resource
Staged care, perform different modes for different page resource, it is achieved in the essence of page resource
Page access is carried out on degree.
As the optional scheme of one, the 3rd judges submodule to be accomplished by according to the page asks
The current connected network of network type of terminal in information is asked to judge whether directly to access the page to be visited
The page resource that obtains in the page to be visited of page server include:
1) when terminal current connected network of network type is WIFI network, then judge directly
The page server accessing the page to be visited obtains the page resource in the page to be visited;Or
2) when terminal current connected network of network type is mobile network, then judge to pass through
Proxy server accesses the page server of the page to be visited and obtains the page resource in the page to be visited.
Alternatively, it is WIFI network in terminal current connected network of network type, terminal access
Time without considering flow, and will more pay attention to the quality of page resource.As a example by picture, terminal is more paid close attention to
The definition of picture resource, thus, proxy server can generate the response message of correspondence, and instruction is eventually
Hold by direct-connected page server obtain correspondence picture resource, thus ensure accessed by picture
The definition of resource.
Alternatively, it is mobile network, such as, 3G in terminal current connected network of network type,
4G network, will more pay close attention to flow service condition, as a example by picture, proxy server during terminal access
Can generate the response message of correspondence, it is that this terminal obtains above-mentioned picture that instruction continues by proxy server,
Thus be reached for terminal and save the purpose of delivery flow rate.
The embodiment provided by the application, is realized according to terminal current connected network of network type
Staged care to page resource, performs different modes for different page resources, it is achieved at page
Page access is carried out in the precision of face resource.
As the optional scheme of one, the 4th judges submodule to be accomplished by according to the page asks
The regional location at terminal place in information is asked to judge whether directly to access the Page Service of the page to be visited
The page resource that device obtains in the page to be visited includes:
1) when the regional location at terminal place belongs to presumptive area, then judge to pass through agency service
Device accesses the page server of the page to be visited and obtains the page resource in the page to be visited;Or
2) when the regional location at terminal place is not belonging to presumptive area, then judges directly to access and treat
The page server of accession page obtains the page resource in the page to be visited.
Alternatively, in the present embodiment, above-mentioned presumptive area can be, but not limited to as realizing direct-connected
The specific region of page server, such as signal cover more weak region, and safe class requires higher
Regions etc. need terminal to obtain the addressable region of ability after access authorizes.It is to say, be positioned in terminal
During above-mentioned presumptive area, then need just may be used by proxy server (having obtained the access mandate in region)
Realize page access;And when terminal is not on above-mentioned presumptive area, then can be at proxy server
The lower page server directly accessing the page to be visited of the instruction of response message obtains in the page to be visited
Page resource.
The embodiment provided by the application, is realized page resource according to the regional location at terminal place
Staged care, perform different modes for different page resource, it is achieved in the essence of page resource
Page access is carried out on degree.
As the optional scheme of one, the 5th judges submodule to be accomplished by according to the page asks
The Network mark seeking terminal in information judges whether directly to access the Page Service of the page to be visited
Device obtains the page resource in the page to be visited and includes at least one of:
1) when the Network in terminal is designated and presets mark, then judge to pass through proxy server
The page server accessing the page to be visited obtains the page resource in the page to be visited;Or
2) when the Network mark in terminal is not to preset mark, then judge by directly accessing
The page server of the page to be visited obtains the page resource in the page to be visited.
Alternatively, in the present embodiment, the Network mark of above-mentioned terminal can be, but not limited to as in advance
First configure cannot direct-connected page server Network mark.It is to say, at the network of terminal
When service identification is for presetting mark, then need just can be realized page access by proxy server;And
When the Network mark of terminal is not to preset mark, then can be at the finger of the response message of proxy server
Show that the page server of the lower direct access page to be visited obtains the page resource in the page to be visited.
The embodiment provided by the application, is identified according to the Network of terminal and realizes page resource
Staged care, perform different modes for different page resource, it is achieved in the essence of page resource
Page access is carried out on degree.
As the optional scheme of one, also include:
1) dispensing unit, is used for before sending response message to terminal, HTTP in configuration response message
Header information, wherein, the predetermined flag in HTTP header information is for indicating by directly accessing
The page server of the page to be visited obtains the resource type of the page resource in the page to be visited.
Alternatively, in the present embodiment, can be, but not limited to by configuring http response header information
In Q-Proxy-Resp:ds=value, it is achieved can obtain with direct-connected page server to terminal instruction
The resource type of page resource.
Detailed process can be such that in terminal run client (such as browser client) in interior
Core is initiated page access and can be taken according in accessing page request to proxy server, proxy server
At least one information following in the page request message of band: the resource type of page resource, terminal are worked as
The network type of front connected network, the regional location at terminal place, terminal Network mark,
The information such as the access point (Access Point Name, APN) of terminal, come in configuration response message
Http response header information Q-Proxy-Resp:ds=value, to generate corresponding response message, and
This response message after configuration is sent to terminal, it is achieved terminal is asked the page to be visited accessed
Direct-connected or proxy access control.
Alternatively, in the present embodiment, above-mentioned HTTP header information is mainly used in carrying direct-connected order
With other orders to kernel, kernel is by this various response message of HTTP header acquisition of information.Wherein,
The definition of ds=value can be such that
It is assumed that the value position of ds represents, the most successively:
Bit0: represent that all child resources are the most direct-connected, such as Q-Proxy-Resp:ds=1;Represent all child resources
Direct-connected;
Bit1: represent that picture resource is direct-connected, such as Q-Proxy-Resp:ds=2, (10), represents current page figure
Sheet resource peering;
Bit2: represent that CSS (Cascading Style Sheets, CSS) is direct-connected, as
Q-Proxy-Resp:ds=6, (110), representing picture resource, CSS is the most direct-connected;
Bit3: represent that js is direct-connected.
The embodiment provided by the application, pre-by HTTP header information configuration in the response message
Determine flag, it is achieved obtain the corresponding page by the instruction of predetermined flag by direct-connected page server
The resource type of resource, to reach terminal is asked that the direct-connected of the page to be visited accessed or agency visit
Ask control.
As the optional scheme of one, dispensing unit includes:
1) the first configuration module, for configuring first mark that is designated in predetermined flag, wherein,
First mark is treated the whole page resources in accession page for instruction and all is waited to visit by directly accessing
Ask that the page server of the page obtains;Or
2) the second configuration module, for configuring second mark that is designated in predetermined flag, wherein,
It is to be visited by directly accessing that second mark treats the page picture resource in accession page for instruction
The page server of the page obtains;Or
3) the 3rd configuration module, for configuring the 3rd mark that is designated in predetermined flag, wherein,
3rd mark treats the CSS page resource in accession page by directly accessing for instruction
The page server of the page to be visited obtains;Or
4) the 4th configuration module, for configuring the 4th mark that is designated in predetermined flag, wherein,
The js code page resource that 4th mark is treated in accession page for instruction is waited to visit by directly accessing
Ask that the page server of the page obtains.
Alternatively, in the present embodiment, the figure place of above-mentioned predetermined flag can be, but not limited to be one
Or multidigit, this is not done any restriction by the present embodiment.
Such as, http response header information Q-Proxy-Resp:ds=value in configuration response message
The value of middle ds.Such as, when predetermined flag is four, then can represent all pages with 0001
Resource is all by directly accessing the page server acquisition of the described page to be visited;0000 table can be used
Show that the page server that all page resources all access the described page to be visited by proxy server obtains
Take;Can be accessed described to be visited by proxy server with the picture resource in 0010 representation page
The page server of the page obtains;Can be by the picture resource in 0100 representation page and CSS resource
The page server acquisition of the described page to be visited is all accessed by proxy server;Can be with 0110
CSS resource in representation page accesses the Page Service of the described page to be visited by proxy server
Device obtains.Above-mentioned is only a kind of example, and this does not do in the present embodiment any restriction.
The embodiment provided by the application, by different, it is achieved logical by the instruction of predetermined flag
Cross direct-connected page server and obtain the resource type of corresponding page resource, to reach terminal is asked
Direct-connected or the proxy access of the page to be visited accessed controls.
In embodiments of the present invention, above-mentioned page access device can be, but not limited to be applied in terminal,
As it is shown in figure 9, this device includes:
1) transmitting element 902, for sending the page for accessing the page to be visited to proxy server
Access request;
2) unit 904 is received, the response message sent for Receiving Agent server, wherein, response
Message carries for indicating the page server directly accessing the page to be visited to obtain the page to be visited
In the instruction information of page resource;
3) access unit 906, obtain to be visited for directly accessing the page server of the page to be visited
Page resource in the page.
Alternatively, in the present embodiment, above-mentioned page access device is applied to terminal, and terminal is run
Client by proxy server send accessing page request, and Receiving Agent server response page
What face access request sent obtains for the page server indicating terminal directly to access the page to be visited
The response message of the page resource in the page to be visited, so that terminal can direct accession page server
Obtain the part or all of page resource in the page, and access without continuing through proxy server
Page server obtains page resource.Thus reach in the case of ensureing terminal security accession page,
Reduce flow and the CPU usage of proxy server, improve page access and obtain page resource
The effect of speed.
Alternatively, in the present embodiment, also include:
(1) judging unit, for sending the page for accessing the page to be visited to proxy server
Before the access request of face, it is judged that whether the page to be visited belongs to default list, wherein, presets name alone
The page server accessing the page to be visited by proxy server in instruction obtains the page to be visited
Page resource.
It is to say, terminal can obtain the default list being pre-configured with, wherein this default list is used for referring to
Show the page of the page server acquisition page to be visited being accessed the page to be visited by proxy server
Resource.In the present embodiment, when the page to be visited that terminal is to be accessed belongs to this default list,
Then send above-mentioned accessing page request to proxy server, and perform further to judge, right to realize
The real-time control of the page resource in the page to be visited, and the page resource in this page is carried out classification
Process, to improve control accuracy.
Embodiment 3
The applied environment of the embodiment of the present invention can be, but not limited to reference to the applied environment in embodiment 1,
This is repeated no more by the present embodiment.Embodiments provide for implementing above-mentioned page access side
A kind of optional concrete application example of method.
As a kind of optional embodiment, it is assumed that the page to be visited that terminal page access request is asked
A is the credible page, and second presets sub-condition with the network type of terminal connected network and page resource
Resource type as a example by, in terminal run client as a example by browser client.In conjunction with Figure 10
Shown step S1002-S1014 specifically describes:
Terminal 1002 sends accessing page request, proxy server 1004 to proxy server 1004
Judge whether the page request message carried in accessing page request meets pre-conditioned, it is assumed that the page please
Information is asked to include network type B (such as WIFI network) and the page resource of terminal connected network
Resource type C (such as picture resource), then proxy server 1004 is under judging in WIFI network
Picture resource can be obtained by the direct-connected page server of terminal 1002, i.e. judge to meet pre-conditioned.
Then proxy server can generate the response message of correspondence, wherein, HTTP header letter in response message
Breath is configured with predetermined flag and obtains by directly accessing the page server of the page to be visited for instruction
Take the resource type of page resource in the page to be visited, i.e. treat page resource in accession page A
Resource type C (i.e. picture resource) is obtained by direct-connected page server.Proxy server 1004
This response message is sent to terminal 1002, and terminal 1002 can be obtained by analyzing response message
Taking the mode of page resource, in this example, terminal 1002 can direct accession page server 1006
Obtain the picture resource in page A to be visited.Page server 1006 can push to terminal 1002
Corresponding picture resource.
The most such as, still as a example by above-mentioned scene, it is assumed that page request message includes the connected net of terminal
The network type D (such as mobile 3G network) of network and resource type C of page resource are (as picture provides
Source), then proxy server 1004 is through judging under mobile 3G network, if by the direct-connected page of terminal 1002
Face server obtains picture resource, and relatively big to terminal flow effect, then proxy server will determine that out
It is unsatisfactory for pre-conditioned.Then proxy server 1004 can generate the response message of correspondence, rings at this
Answer in message and will carry for indicating terminal to continue through the finger of proxy server acquisition page resource
Show information.This response message is sent to terminal 1002 by proxy server 1004, and terminal 1002 is permissible
By the way of analyzing response message and obtaining obtaining page resource, in this example, terminal 1002 warp
Analysis obtains being still to be continued agency by proxy server 1004 to obtain, then by proxy server 1004
Picture resource is obtained (such as Figure 10 proxy server 1004 to Page Service to page server 1006
Shown in dotted line between device 1006).
Wherein, step S1012-1 is not limited by sequence number with the execution sequence of step S1012-2, be
The different operating performed under different condition, this is not done any restriction by this example.
In this example, in the page request message that proxy server carries for accessing page request
Different parameters information, it is judged that whether this page to be visited meets pre-conditioned, thus realize difference is treated
Different page resources in accession page carry out Precise control in real time, only to overcome in prior art
The page access real-time that can be caused by the way of the name single control page access being pre-configured with is relatively
The problem of difference, and then reached to improve the effect controlling page access in real time.By page request is believed
The page resource asked in breath judges respectively, also achieves and page resource is carried out staged care,
Thus reached in the precision of page resource, it is achieved the control to page access.
Embodiment 4
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, on
State at least one network equipment in multiple network equipments that storage medium may be located in network.
Alternatively, in the present embodiment, above-mentioned storage medium is arranged to storage for performing following walking
Rapid program code:
S1, obtains the page for accessing the page to be visited that the client by running in terminal sends
Access request;
S2, it is judged that the page request message of the page to be visited entrained in accessing page request is the fullest
Foot is pre-conditioned;
S3, when judging to meet pre-conditioned, sends response message to terminal, and wherein, response disappears
Breath carries and obtains page to be visited for the page server indicating terminal directly to access the page to be visited
The instruction information of the page resource in face.
Alternatively, in the present embodiment, above-mentioned storage medium is also configured to storage below performing
The program code of step:
According to page request message, S1, judges whether the page to be visited meets first and preset sub-condition, its
In, first presets sub-condition includes that the page to be visited is the credible page;
S2, judge the page to be visited meet first preset sub-condition time, according to page request message
Judge whether the page to be visited meets second and preset sub-condition.
Alternatively, in the present embodiment, above-mentioned storage medium is also configured to storage below performing
Program code: be according to the resource type judgement of page resource in the page to be visited in page request message
The page server of the no direct access page to be visited obtains the page resource in the page to be visited;Or,
Judge whether directly to access according to the current connected network of network type of terminal in page request message
The page server of the page to be visited obtains the page resource in the page to be visited;Or, according to the page
In solicited message, the regional location at terminal place judges whether directly to access the page clothes of the page to be visited
Business device obtains the page resource in the page to be visited;Or, according to the net of terminal in page request message
Network service identification judges whether that the page server directly accessing the page to be visited obtains the page to be visited
In page resource.
Alternatively, in the present embodiment, above-mentioned storage medium can include but not limited to: USB flash disk, only
Read memorizer (ROM, Read-Only Memory), random access memory (RAM, Random
Access Memory), portable hard drive, various Jie that can store program code such as magnetic disc or CD
Matter.
Alternatively, during the concrete example in the present embodiment is referred to above-described embodiment 1 and embodiment 2
Described example, the present embodiment does not repeats them here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
If the integrated unit in above-described embodiment realizes using the form of SFU software functional unit and as
When independent production marketing or use, can be stored in the storage medium that above computer can read.
Based on such understanding, prior art is contributed by technical scheme the most in other words
Part or completely or partially can the embodying with the form of software product of this technical scheme, this meter
Calculation machine software product is stored in storage medium, including some instructions with so that one or more calculates
Machine equipment (can be personal computer, server or the network equipment etc.) performs the present invention, and each is implemented
All or part of step of method described in example.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and certain is real
Execute the part not having to describe in detail in example, may refer to the associated description of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, can
Realize by another way.Wherein, device embodiment described above is only schematically,
The division of the most described unit, is only a kind of logic function and divides, and actual can have additionally when realizing
Dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into another system,
Or some features can ignore, or do not perform.Another point, shown or discussed coupling each other
Close or direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, unit or module or
Communication connection, can be being electrical or other form.
The described unit illustrated as separating component can be or may not be physically separate,
The parts shown as unit can be or may not be physical location, i.e. may be located at a ground
Side, or can also be distributed on multiple NE.Can select therein according to the actual needs
Some or all of unit realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit
In, it is also possible to it is that unit is individually physically present, it is also possible to two or more unit are integrated in
In one unit.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ soft
The form of part functional unit realizes.
The above is only the preferred embodiment of the present invention, it is noted that for the art
For those of ordinary skill, under the premise without departing from the principles of the invention, it is also possible to make some improvement
And retouching, these improvements and modifications also should be regarded as protection scope of the present invention.
Claims (25)
1. a page access method, it is characterised in that including:
The client run in terminal sends for accessing the page to be visited to proxy server
Accessing page request;
Proxy server judges the page described to be visited entrained in described accessing page request
Page request message whether meet pre-conditioned, judge to meet described pre-conditioned time,
Described proxy server sends response message to described terminal, and wherein, described response message carries
Have and obtain institute for the page server indicating described terminal directly to access the described page to be visited
State the instruction information of page resource in the page to be visited;
Described terminal directly accesses the described page server of the described page to be visited and obtains described
Described page resource in the page to be visited;
The page described in the described client push that described page server runs in described terminal
Resource.
2. a page access method, it is characterised in that including:
Obtain the page for accessing the page to be visited that the client by running in terminal sends
Face access request;
Judge the page request of the page described to be visited entrained in described accessing page request
It is pre-conditioned whether information meets;
Judge to meet described pre-conditioned time, send response message to described terminal, wherein,
Described response message carries for indicating described terminal directly to access the described page to be visited
Page server obtains the instruction information of the page resource in the described page to be visited.
Method the most according to claim 2, it is characterised in that the described page access of described judgement please
Whether the page request message of the page described to be visited entrained in asking meets pre-conditioned bag
Include:
Judge whether the described page to be visited meets first and preset according to described page request message
Sub-condition, wherein, described first presets sub-condition includes that the described page to be visited is the credible page;
Judge the described page to be visited meet described first preset sub-condition time, according to described
Page request message judges whether the described page to be visited meets second and preset sub-condition.
Method the most according to claim 3, it is characterised in that described believe according to described page request
Breath judges whether the described page to be visited meets first and preset sub-condition and include:
Judge whether the described page to be visited is replaced by target pages, wherein, described to be visited
Page resource in the page is different from the page resource in described target pages;
When the described page to be visited is not replaced by described target pages, then judge described in treat
Accession page meets described first and presets sub-condition.
Method the most according to claim 3, it is characterised in that described believe according to described page request
Breath judges whether the described page to be visited meets second and preset sub-condition and include at least one of:
According to page resource resources-type in the page to be visited described in described page request message
Type judges whether that the page server directly accessing the described page to be visited obtains described to be visited
Page resource in the page;
According to the type of the current connected network of network of terminal described in described page request message
Judge whether that the page server directly accessing the described page to be visited obtains described page to be visited
Page resource in face;
Regional location according to terminal place described in described page request message judges whether directly
Receiving asks that the page server of the described page to be visited obtains the page in the described page to be visited
Resource;
Network mark according to terminal described in described page request message judges whether straight
Receiving asks that the page server of the described page to be visited obtains the page in the described page to be visited
Resource.
Method the most according to claim 5, it is characterised in that described believe according to described page request
Described in breath, in the page to be visited, the resource type of page resource judges whether directly to access described
The page resource that the page server of the page to be visited obtains in the described page to be visited includes:
When the described resource type of described page resource is first resource type, then judge straight
Receiving asks that the page server of the described page to be visited obtains the page in the described page to be visited
Resource, wherein, the page money in the described page to be visited is transmitted in the instruction of described first resource type
Band shared during source is wider than the first predetermined threshold;Or
When the described resource type of described page resource is Secondary resource type, then judge to lead to
Cross proxy server and access the page server described page to be visited of acquisition of the described page to be visited
Page resource in face, wherein, the described page to be visited is transmitted in the instruction of described Secondary resource type
In page resource time shared bandwidth less than or equal to described first predetermined threshold.
Method the most according to claim 5, it is characterised in that described believe according to described page request
The current connected network of network type of terminal described in breath is treated described in judging whether directly to access
The page resource that the page server of accession page obtains in the described page to be visited includes:
When described terminal current connected network of network type is WIFI network, then judge
The page server going out directly to access the described page to be visited obtains in the described page to be visited
Page resource;Or
When described terminal current connected network of network type is mobile network, then judge
The page server being accessed the described page to be visited by proxy server obtains described to be visited
Page resource in the page.
Method the most according to claim 5, it is characterised in that described believe according to described page request
The regional location of terminal place described in breath judges whether directly to access the described page to be visited
The page resource that page server obtains in the described page to be visited includes:
When the regional location at described terminal place belongs to presumptive area, then judge by agency
The page server of the page to be visited described in server access obtains in the described page to be visited
Page resource;Or
When the regional location at described terminal place is not belonging to described presumptive area, then judge straight
Receiving asks that the page server of the described page to be visited obtains the page in the described page to be visited
Resource.
Method the most according to claim 5, it is characterised in that described believe according to described page request
The Network mark of terminal described in breath judges whether directly to access the described page to be visited
Page server obtains the page resource in the described page to be visited and includes at least one of:
Network in described terminal is designated when presetting mark, then judge to be taken by agency
Business device accesses the page server of the described page to be visited and obtains the page in the described page to be visited
Face resource;Or
When the Network mark of described terminal is not described default mark, then judge to pass through
The page server directly accessing the described page to be visited obtains the page in the described page to be visited
Face resource.
Method the most according to claim 2, it is characterised in that send sound to described terminal described
Before answering message, also include:
Configuring HTTP header information in described response message, wherein, described HTTP header is believed
Predetermined flag in breath takes by directly accessing the page of the described page to be visited for instruction
Business device obtains the resource type of the page resource in the described page to be visited.
11. methods according to claim 10, it is characterised in that the described response message of described configuration
Middle HTTP header information includes:
Configure first mark that is designated in described predetermined flag, wherein, described first mark
All described by directly accessing to the whole page resources in the described page to be visited for instruction
The page server of the page to be visited obtains;Or
Configure second mark that is designated in described predetermined flag, wherein, described second mark
For instruction, the page picture resource in the described page to be visited is treated described in directly accessing
The page server of accession page obtains;Or
Configure the 3rd mark that is designated in described predetermined flag, wherein, described 3rd mark
For instruction to the CSS page resource in the described page to be visited by directly accessing
The page server of the described page to be visited obtains;Or
Configure the 4th mark that is designated in described predetermined flag, wherein, described 4th mark
Described by directly accessing to the js code page resource in the described page to be visited for instruction
The page server of the page to be visited obtains.
12. 1 kinds of page access methods, it is characterised in that including:
The accessing page request for accessing the page to be visited is sent to proxy server;
Receiving the response message that described proxy server sends, wherein, described response message carries
Have for indicating the page server directly accessing the described page to be visited to obtain described to be visited
The instruction information of the page resource in the page;
The page server directly accessing the described page to be visited obtains in the described page to be visited
Page resource.
13. methods according to claim 12, it is characterised in that send out to proxy server described
Before sending the accessing page request for accessing the page to be visited, also include:
Judging whether the described page to be visited belongs to default list, wherein, described default name is alone
The page server accessing the described page to be visited by described proxy server in instruction obtains
The page resource of the described page to be visited.
14. 1 kinds of page access devices, it is characterised in that including:
Acquiring unit, is treated for access by what the client of operation in terminal sent for obtaining
The accessing page request of accession page;
Judging unit, for judging page described to be visited entrained in described accessing page request
It is pre-conditioned whether the page request message in face meets;
Transmitting element, for judge to meet described pre-conditioned time, send to described terminal
Response message, wherein, described response message carries for indicating described terminal directly to access institute
The page server stating the page to be visited obtains the finger of the page resource in the described page to be visited
Show information.
15. devices according to claim 14, it is characterised in that described judging unit includes:
First judge module, for judging the described page to be visited according to described page request message
Whether meet first and preset sub-condition, wherein, described first preset sub-condition include described in wait to visit
Ask that the page is the credible page;
Second judge module, for judging that the described page to be visited meets described first and presets
During sub-condition, judge whether the described page to be visited meets second according to described page request message
Preset sub-condition.
16. devices according to claim 15, it is characterised in that described first judge module includes:
First judges submodule, is used for judging whether the described page to be visited is replaced by page object
Face, wherein, the page resource in the described page to be visited and the page money in described target pages
Source is different;When the described page to be visited is not replaced by described target pages, it is judged that described
The page to be visited meets described first and presets sub-condition.
17. devices according to claim 15, it is characterised in that described second judge module includes
At least one of:
Second judges submodule, for according to the page to be visited described in described page request message
The resource type of middle page resource judges whether directly to access the page clothes of the described page to be visited
Business device obtains the page resource in the described page to be visited;
3rd judges submodule, for according to the current institute of terminal described in described page request message
Connect network of network type and judge whether directly to access the Page Service of the described page to be visited
Device obtains the page resource in the described page to be visited;
4th judges submodule, for according to terminal place described in described page request message
Regional location judges whether that the page server directly accessing the described page to be visited obtains described
Page resource in the page to be visited;
5th judges submodule, for the network according to terminal described in described page request message
Service identification judges whether that the page server directly accessing the described page to be visited obtains described
Page resource in the page to be visited.
18. devices according to claim 17, it is characterised in that described second judges that submodule leads to
Cross in the following manner to realize providing according to the page in the page to be visited described in described page request message
The resource type in source judges whether that the page server directly accessing the described page to be visited obtains
Page resource in the described page to be visited includes:
When the described resource type of described page resource is first resource type, then judge straight
Receiving asks that the page server of the described page to be visited obtains the page in the described page to be visited
Resource, wherein, the page money in the described page to be visited is transmitted in the instruction of described first resource type
Band shared during source is wider than the first predetermined threshold;Or
When the described resource type of described page resource is Secondary resource type, then judge to lead to
Cross proxy server and access the page server described page to be visited of acquisition of the described page to be visited
Page resource in face, wherein, the described page to be visited is transmitted in the instruction of described Secondary resource type
In page resource time shared bandwidth less than or equal to described first predetermined threshold.
19. devices according to claim 17, it is characterised in that the described 3rd judges that submodule leads to
Cross in the following manner to realize according to the current connected network of terminal described in described page request message
Network type judge whether directly to access the page server of the described page to be visited and obtain institute
The page resource stated in the page to be visited includes:
When described terminal current connected network of network type is WIFI network, then judge
The page server going out directly to access the described page to be visited obtains in the described page to be visited
Page resource;Or
When described terminal current connected network of network type is mobile network, then judge
The page server being accessed the described page to be visited by proxy server obtains described to be visited
Page resource in the page.
20. devices according to claim 17, it is characterised in that the described 4th judges that submodule leads to
Cross in the following manner and realize the regional location according to terminal place described in described page request message
Judge whether that the page server directly accessing the described page to be visited obtains described page to be visited
Page resource in face includes:
When the regional location at described terminal place belongs to presumptive area, then judge by agency
The page server of the page to be visited described in server access obtains in the described page to be visited
Page resource;Or
When the regional location at described terminal place is not belonging to described presumptive area, then judge straight
Receiving asks that the page server of the described page to be visited obtains the page in the described page to be visited
Resource.
21. devices according to claim 17, it is characterised in that the described 5th judges that submodule leads to
Cross in the following manner and realize the Network mark according to terminal described in described page request message
Judge whether that the page server directly accessing the described page to be visited obtains described page to be visited
Page resource in face includes at least one of:
Network in described terminal is designated when presetting mark, then judge to be taken by agency
Business device accesses the page server of the described page to be visited and obtains the page in the described page to be visited
Face resource;Or
When the Network mark of described terminal is not described default mark, then judge to pass through
The page server directly accessing the described page to be visited obtains the page in the described page to be visited
Face resource.
22. devices according to claim 14, it is characterised in that also include:
Dispensing unit, is used for described before described terminal sends response message, and configuration is described
HTTP header information in response message, wherein, the pre-calibration in described HTTP header information
Know position and obtain described for instruction by directly accessing the page server of the described page to be visited
The resource type of the page resource in the page to be visited.
23. devices according to claim 22, it is characterised in that described dispensing unit includes:
First configuration module, is designated the first mark for configuring in described predetermined flag,
Wherein, described first mark is equal to the whole page resources in the described page to be visited for instruction
Obtain by directly accessing the page server of the described page to be visited;Or
Second configuration module, is designated the second mark for configuring in described predetermined flag,
Wherein, the page picture resource in the described page to be visited is led to by described second mark for instruction
Cross the page server acquisition directly accessing the described page to be visited;Or
3rd configuration module, is designated the 3rd mark for configuring in described predetermined flag,
Wherein, described 3rd mark is for indicating the CSS page in the described page to be visited
Resource obtains by directly accessing the page server of the described page to be visited;Or
4th configuration module, is designated the 4th mark for configuring in described predetermined flag,
Wherein, described 4th mark is for indicating the js code page resource in the described page to be visited
Obtain by directly accessing the page server of the described page to be visited.
24. 1 kinds of page access devices, it is characterised in that including:
Transmitting element, visits for sending the page for accessing the page to be visited to proxy server
Ask request;
Receive unit, for receiving the response message that described proxy server sends, wherein, institute
State response message to carry for indicating the page server directly accessing the described page to be visited
Obtain the instruction information of page resource in the described page to be visited;
Access unit, obtain described for directly accessing the page server of the described page to be visited
Page resource in the page to be visited.
25. devices according to claim 24, it is characterised in that also include:
Judging unit, for sending for accessing the page to be visited to proxy server described
Before accessing page request, it is judged that whether the described page to be visited belongs to default list, wherein,
Described default list accesses the described page to be visited for instruction by described proxy server
Page server obtains the page resource of the described page to be visited.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610399281.1A CN105915639B (en) | 2016-06-06 | 2016-06-06 | Page access method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610399281.1A CN105915639B (en) | 2016-06-06 | 2016-06-06 | Page access method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105915639A true CN105915639A (en) | 2016-08-31 |
CN105915639B CN105915639B (en) | 2020-08-04 |
Family
ID=56750493
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610399281.1A Active CN105915639B (en) | 2016-06-06 | 2016-06-06 | Page access method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105915639B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107528900A (en) * | 2017-08-24 | 2017-12-29 | 维沃移动通信有限公司 | A kind of multimedia file processing method, relevant device and system |
CN107832329A (en) * | 2017-09-26 | 2018-03-23 | 中国平安人寿保险股份有限公司 | Page resource acquisition methods and terminal device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102665187A (en) * | 2012-02-29 | 2012-09-12 | 华中科技大学 | Intelligent pipeline control method based on intelligent terminal |
CN102694772A (en) * | 2011-03-23 | 2012-09-26 | 腾讯科技(深圳)有限公司 | Apparatus, system and method for accessing internet web pages |
CN104901943A (en) * | 2012-03-31 | 2015-09-09 | 北京奇虎科技有限公司 | Method and system for accessing website |
CN105550596A (en) * | 2015-12-23 | 2016-05-04 | 北京奇虎科技有限公司 | Access processing method and apparatus |
-
2016
- 2016-06-06 CN CN201610399281.1A patent/CN105915639B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102694772A (en) * | 2011-03-23 | 2012-09-26 | 腾讯科技(深圳)有限公司 | Apparatus, system and method for accessing internet web pages |
CN102665187A (en) * | 2012-02-29 | 2012-09-12 | 华中科技大学 | Intelligent pipeline control method based on intelligent terminal |
CN104901943A (en) * | 2012-03-31 | 2015-09-09 | 北京奇虎科技有限公司 | Method and system for accessing website |
CN105550596A (en) * | 2015-12-23 | 2016-05-04 | 北京奇虎科技有限公司 | Access processing method and apparatus |
Non-Patent Citations (1)
Title |
---|
古权,胡家宝: ""自适应代理防火墙的分析和研究"", 《现代计算机(专业版) 》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107528900A (en) * | 2017-08-24 | 2017-12-29 | 维沃移动通信有限公司 | A kind of multimedia file processing method, relevant device and system |
CN107528900B (en) * | 2017-08-24 | 2020-07-07 | 维沃移动通信有限公司 | Multimedia file processing method, related equipment and system |
CN107832329A (en) * | 2017-09-26 | 2018-03-23 | 中国平安人寿保险股份有限公司 | Page resource acquisition methods and terminal device |
CN107832329B (en) * | 2017-09-26 | 2020-11-13 | 中国平安人寿保险股份有限公司 | Page resource obtaining method and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105915639B (en) | 2020-08-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9792365B2 (en) | Method and system for tracking and gathering multivariate testing data | |
CN109743315A (en) | For Activity recognition method, apparatus, equipment and the readable storage medium storing program for executing of website | |
KR101821511B1 (en) | Data processing method based on instant messaging or social applications, and device thereof | |
CN103034483B (en) | web page script management method and system | |
CN110609937A (en) | Crawler identification method and device | |
US10693795B2 (en) | Providing access to application program interfaces and Internet of Thing devices | |
CN105262760A (en) | Method and device for preventing action of maliciously visiting login/register interface | |
CN106156055B (en) | The identification of search engine crawler, processing method and processing device | |
US20160050128A1 (en) | System and Method for Facilitating Communication with Network-Enabled Devices | |
CN105554085B (en) | A kind of dynamic timeout treatment method and apparatus based on server connection | |
CN108390955A (en) | Domain Name acquisition method, Website access method and server | |
CN110413859A (en) | Webpage information search method, apparatus, computer equipment and storage medium | |
CN106528659A (en) | A control method and device for jumping from a browser to an application program | |
CN108255936A (en) | A kind of edit methods of webpage, system and editing machine | |
US9847946B2 (en) | System and method for granular network access and accounting | |
CN107820114A (en) | Special efficacy methods of exhibiting and device | |
CN109981415A (en) | Condition judgement method, electronic equipment, system and medium | |
CN110598135A (en) | Network request processing method and device, computer readable medium and electronic equipment | |
US20200028743A1 (en) | Dynamic product installation based on user feedback | |
CN102880698B (en) | A kind of crawl website defining method and device | |
CN105915639A (en) | Page access method and apparatus thereof | |
US9565164B2 (en) | Techniques to rate-adjust data usage with a virtual private network | |
CN110929129A (en) | Information detection method, equipment and machine-readable storage medium | |
CN107391714A (en) | A kind of screenshot method, capture server, sectional drawing service system and medium | |
CN103209414A (en) | Method, device and mobile terminal for web access control |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20221128 Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518100 Patentee after: Shenzhen Yayue Technology Co.,Ltd. Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd. |