CN104243506B - Browser reorientation method and device - Google Patents

Browser reorientation method and device Download PDF

Info

Publication number
CN104243506B
CN104243506B CN201310223342.5A CN201310223342A CN104243506B CN 104243506 B CN104243506 B CN 104243506B CN 201310223342 A CN201310223342 A CN 201310223342A CN 104243506 B CN104243506 B CN 104243506B
Authority
CN
China
Prior art keywords
browser
address
http request
virtual
url
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310223342.5A
Other languages
Chinese (zh)
Other versions
CN104243506A (en
Inventor
张文涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201310223342.5A priority Critical patent/CN104243506B/en
Priority to PCT/CN2013/083079 priority patent/WO2014194580A1/en
Publication of CN104243506A publication Critical patent/CN104243506A/en
Application granted granted Critical
Publication of CN104243506B publication Critical patent/CN104243506B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity

Abstract

The invention discloses a kind of browser reorientation method and devices.This method comprises: all HTTP requests that the routing iinformation of browser is set as being sent to are all pointed to particular gateway address, and send the HTTP request in data flow to browser and be monitored after monitoring that network connection disconnects;After monitoring browser and initiating HTTP request, HTTP request is intercepted and captured, and the next step of HTTP request is blocked to handle, particular gateway address is fed back into browser;After browser accesses according to particular gateway address, gateway corresponding with particular gateway address is by the page jump of browser to specified page.By means of technical solution of the present invention, after network disconnects, as long as user opens browser and accesses webpage, it can carry out jumping to specified page and prompt user network without service.

Description

Browser reorientation method and device
Technical field
The present invention relates to communication fields, more particularly to a kind of browser reorientation method and device.
Background technique
In the prior art, it is current be physically located at user side hardware (Customer Premise Equipment, Referred to as CPE), wireless wireless access node (Access Point, referred to as AP), the gateways such as router it is mostly embedded One web service (webserver), user carry out setting, the third generation of routing parameter by accessing built-in webpage (3rd-Generation, referred to as 3G) dialing setting, wifi parameter setting.Equipment be only 3G, some equipment With 3G and wifi, it can not only be AP but also can have been used as website (station).After AP connection network, user These AP or router can be accessed with oneself mobile phone or PC to surf the Internet.
But when some problems, which occurs, in network leads to network without service, user is can not to know that the network of AP connects immediately Connect state.At this point, may repeating refreshing webpage, discovery can not connect afterwards for several times if user's normal browsing webpage, just go The network state for detecting AP is perhaps checked by the screen of AP by the webserver of AP and has just can be found that 3G or wifi Through without service.At this moment user just needs replacing better hot spot, or carries out the switching of wifi and 3G.But it thus brings User experience be undesirable.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State the browser reorientation method and device of problem.
The present invention provides a kind of browser reorientation method, comprising:
After monitoring that network connection disconnects, all hypertexts being sent to are set by the routing iinformation of browser and are passed Defeated agreement (Hypertext Transfer Protocol, referred to as HTTP) request all points to particular gateway address, and to browsing The HTTP request that device is sent in data flow is monitored;
After monitoring browser and initiating HTTP request, HTTP request is intercepted and captured, and the next step of HTTP request is blocked to handle, Particular gateway address is fed back into browser;
After browser accesses according to particular gateway address, gateway corresponding with particular gateway address will be browsed The page jump of device is to specified page;
Wherein, include: before intercepting and capturing HTTP request
When monitoring that browser initiates domain name system (Domain Name System, referred to as DNS) request, obtain Address uniform resource locator (UniformResourceLocator, URL) in DNS request generates corresponding with URL virtual The address network protocol (Internet Protocol, referred to as IP), and virtual ip address is fed back into browser;
Browser initiates HTTP request according to virtual ip address.
Preferably, the HTTP request in browser transmission data flow is monitored and is specifically included:
Function is monitored in the initial end carry HTTP request that browser sends data flow, wherein HTTP request monitors function By judging the port numbers in data flow to determine whether for HTTP request.
Preferably, method further include:
After monitoring to be connected to the network successfully, routing iinformation is deleted, closes and the HTTP in browser transmission data flow is asked The monitoring asked;
Browser re-initiates HTTP request.
Preferably, after generating virtual ip address corresponding with URL, method further include:
Real IP address corresponding with URL is requested to dns server according to URL;
By URL, virtual ip address and real IP address storage to data field.
Preferably, method further include:
After monitoring to be connected to the network successfully, routing iinformation is deleted, closes and the HTTP in browser transmission data flow is asked The monitoring asked;
URL is read, real IP address corresponding to virtual ip address is obtained from data field according to URL;
Browser is redirected to real IP address for the access of virtual ip address.
Preferably, browser real IP address is redirected to for the access of virtual ip address to specifically include:
If browser has jumped to specified page and has also been not turned off, and browser accesses URL again, and using empty Quasi- IP address initiates HTTP request, then access of the route test order carried using system by browser for virtual ip address It is redirected directly to real IP address.
Preferably, it will be directed toward after particular gateway address feeds back to browser, method further comprises: notice and ad hoc networks It closes the corresponding gateway in address and jumps to specified page;
Gateway corresponding with particular gateway address specifically includes the page jump of browser to specified page:
When gateway carries out page display to user, according to notice, by the page jump of browser to specified page.
Preferably, gateway corresponding with particular gateway address specifically wraps the page jump of browser to specified page It includes:
When gateway carries out page display to user, automatically by the page jump of browser to specified page.
Preferably, particular gateway address includes: the server address of the web service inside respective gateway equipment.
The present invention also provides a kind of browser redirection devices, comprising: setting monitoring module, for monitoring network After connection disconnects, all HTTP requests that the routing iinformation of browser is set as being sent to are all pointed to Particular gateway address, and the HTTP request in the data flow sent to browser is monitored;
Feedback module is intercepted and captured, for intercepting and capturing HTTP after monitoring browser and initiating HTTP request according to virtual ip address Request, and the next step of HTTP request is blocked to handle, particular gateway address is fed back into browser, browser is made to be redirected to spy Determine gateway address;
Virtual IP address module, for obtaining the system in DNS request when monitoring that browser initiates domain name system DNS request One Resource Locator URL address generates corresponding with URL virtual network Protocol IP address, and virtual ip address is fed back to clear Look at device.
Preferably, setting monitoring module is specifically used for: sending the initial end carry HTTP request prison of data flow in browser Control function, wherein HTTP request monitoring function is by judging the port numbers in data flow to determine whether for HTTP request.
Preferably, device further comprises:
Request memory module, for after virtual IP address module generates corresponding with URL virtual ip address, according to URL to Dns server requests real IP address corresponding with URL;By URL, virtual ip address and real IP address storage to data Area;
Closedown module is deleted, for deleting routing iinformation after monitoring to be connected to the network successfully, closes and browser is sent The monitoring of HTTP request in data flow;
Redirection module obtains real IP corresponding to virtual ip address from data field according to URL for reading URL Browser is redirected to real IP address for the access of virtual ip address by location.
Preferably, redirection module is specifically used for:
If browser has jumped to specified page and has also been not turned off, and browser accesses URL again, and using empty Quasi- IP address initiates HTTP request, then access of the route test order carried using system by browser for virtual ip address It is redirected directly to real IP address.
Preferably, device further comprises:
Notification module, for that will be directed toward after particular gateway address feeds back to browser intercepting and capturing feedback module, notice with The corresponding gateway in particular gateway address jumps to specified page, makes gateway when carrying out page display to user, root According to notice, by the page jump of browser to specified page.
Preferably, particular gateway address includes: the server address of the web service inside respective gateway equipment.
The present invention has the beneficial effect that:
By intercepting and capturing the request data of HTTP, to the address that browser feedback needs to jump, then notification gateway equipment is come Jumping for specified page is carried out, network connection state can not be known without user when servicing in network in the prior art immediately by solving The problem of, by means of the technical solution of the embodiment of the present invention, after network disconnects, as long as user opens browser and accesses webpage, It can carry out jumping to specified page and prompt user network without service.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the schematic diagram of the DNS name resolution process of the embodiment of the present invention;
Fig. 2 is the flow chart of the browser reorientation method of the embodiment of the present invention;
Fig. 3 is the functional schematic of the browser reorientation method of the embodiment of the present invention;
Fig. 4 be the embodiment of the present invention suspension state under HTTP redirection handle flow chart;
Fig. 5 is the schematic diagram of the HTTP redirection under the connected state of the embodiment of the present invention;
Fig. 6 is the structural schematic diagram of the browser redirection device of the embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
In order to solve the problems in the prior art, it needs to solve the problems, such as following two first:
How problem 1, network jump to specified page after disconnecting;
Problem 2 is connected to the network under success status, since the cache problem bring of page jump and browser itself can not The problem of continuing accession page.
Fig. 1 is the schematic diagram of the DNS name resolution process of the embodiment of the present invention, firstly, why being had according to Fig. 1 explanation The cache problem of browser: as shown in Figure 1, opening browser in terminal, a domain name is inputted, browser is sent out to dns server Domain name mapping request is played, after browser gets a URL corresponding IP address of dns server feedback, always the IP Address is cached, and if not closing current browser, the access carried out later to the URL, browser will not initiate again DNS request, but the IP address directly cached before carries out the request of data.
To solve the above-mentioned problems, the present invention provides a kind of browser reorientation method and devices, for problem 1, originally Inventive embodiments need to intercept and capture the request data of HTTP, and to the address that browser feedback needs to jump, then notification gateway is set Standby upper web service (webserver) Lai Jinhang specified page jump or webserver carries out page according to flag bit Face jumps;For problem 2, the embodiment of the present invention needs to generate virtual IP address when browser carries out DNS name resolution request, Virtual IP address is fed back to browser, and then the solution of Utilizing question 1 carries out jumping for specified page, recycles redirection of router Method eliminate browser rs cache the problem of bringing.Using the technical solution of the embodiment of the present invention, under suspension state, Yong Hufang When asking webpage, network state prompt both can be quickly obtained, can eliminate browser rs cache bring again after networking can not access The problem of webpage.
Below in conjunction with attached drawing and embodiment, the present invention will be described in further detail.It should be appreciated that described herein Specific embodiment be only used to explain the present invention, limit the present invention.
Embodiment of the method
According to an embodiment of the invention, providing a kind of browser reorientation method, Fig. 2 is the browsing of the embodiment of the present invention The flow chart of orientation method is thought highly of, as shown in Fig. 2, browser reorientation method according to an embodiment of the present invention includes following place Reason:
Step 201, after monitoring that network connection disconnects, the routing iinformation of browser is set as being sent to all HTTP request all points to particular gateway address, and sends the HTTP request in data flow to browser and be monitored;Preferably, exist In the embodiment of the present invention, particular gateway address includes: the server address of the web service inside respective gateway equipment.
In step 201, it when being monitored to the HTTP request in browser transmission data flow, can be sent in browser The initial end carry HTTP request of data flow monitors function, wherein HTTP request monitors function can be by judging in data flow Port numbers to determine whether be HTTP request.
Step 202, after monitoring browser and initiating HTTP request, the HTTP request is intercepted and captured, and block the HTTP The next step of request is handled, and the particular gateway address is fed back to browser;
In step 202, it will be directed toward after particular gateway address feeds back to browser, can notify and particular gateway address Corresponding gateway jumps to specified page;
Step 203, after browser accesses according to particular gateway address, gateway corresponding with particular gateway address is set The standby page jump by browser is to specified page.
In step 203, if having received the notice jumped, when gateway carries out page display to user, root According to the notice, by the page jump of browser to specified page.Alternatively, may be arranged as the page jump by browser automatically To specified page.
In the case where browser has been cached with corresponding true IP address, after monitoring to be connected to the network successfully, The routing iinformation is deleted, the monitoring for sending the HTTP request in data flow to browser is closed;Browser is directly according to caching True IP address re-initiate the HTTP request.
In embodiments of the present invention, when monitoring that browser initiates DNS request (it should be noted that initiating DNS request DNS request can just be initiated by generally initiating access to the domain name for the first time), obtain the address URL in DNS request, generation and URL Corresponding virtual network Protocol IP address, and virtual ip address is fed back into browser;Browser is according to the virtual ip address Initiate HTTP request.
After generating virtual ip address corresponding with URL, need to be requested according to URL to dns server corresponding with URL true Real IP address;And URL, virtual ip address and real IP address are stored to data field.
In these cases, after monitoring to be connected to the network successfully, routing iinformation is deleted, closes and data is sent to browser The monitoring of HTTP request in stream;URL is read, real IP address corresponding to virtual ip address is obtained from data field according to URL; Browser is redirected to real IP address for the access of virtual ip address.Specifically, if browser has jumped to finger Determine the page and be also not turned off, and browser accesses URL again, and initiates HTTP request using virtual ip address, then utilizes system Browser is redirected directly to real IP address for the access of virtual ip address by the included route test order of system.
Below in conjunction with attached drawing, the above-mentioned technical proposal of the embodiment of the present invention is described in detail.
Fig. 3 is the functional schematic of the browser reorientation method of the embodiment of the present invention, as shown in figure 3, according to the present invention The browser reorientation method of embodiment has initialization routing, the closing of HOOK (above-mentioned monitoring function) and enabled, virtual ip Generation, HTTP jump control, setting jump flag bit, real IP obtain and address redirect function.
Fig. 4 be the embodiment of the present invention suspension state under HTTP redirection handle flow chart, as shown in figure 4, include such as Lower processing:
Step 1, network is disconnected;
Step 2, initialization routing, all points to specific gateway address for the request of all HTTP, it is possible to further benefit The routing setting command carried with system, such as the Iptables of linux route setting command, also can use windows certainly 80 (HTTP) port requests of access are all redirected to inside gateway address i.e. equipment by the routing setting command of band The server address of webserver;
Step 3, in the request of data of the initial end carry of data flow one function monitoring HTTP, below the monitoring function at For HOOK;Further, after the network equipment that external data flow enters modem (modem), increase monitoring function, and Monitoring function is opened, can use the original monitoring function of system, oneself can also increase monitoring processing function, monitoring access 80 The request of data of port, i.e., by judging data flow middle-end slogan to determine whether for HTTP request;
Step 4, user inputs the domain name of Baidu;
Step 5, judge whether browser has sent DNS name resolution request, if the judgment is Yes, execute step 6, it is no Then, step 7 is executed;
Step 6, if receiving the DNS request of browser initiation, corresponding virtual IP address is generated for URL is received, is protected URL and virtual IP address are deposited to data field, and return step 4.Preserving type can be temporary with file, can also keep in memory.And This virtual IP address is fed back into browser, does not otherwise do other operations.Further, the structural body of data includes being not limited to: URL, Virtual IP address, real IP etc., title can according to need oneself and draft, as shown in table 1:
Table 1
URL Virtual IP address Real IP
www.baidu.com 192.168.55.2 220.154.22.88
It should be noted that virtual IP address be an IPV4 or IPV6 address, generation can according to need not with end Other conflicts that the gateway address or terminal at end use.A storage of array can be used, can also be deposited with a chained list Storage.
Step 7, browser progress TCP shakes hands;
Step 8, browser initiates HTTP request using the IP address being resolved to;
Step 9, HOOK intercepts the request of HTTP, and the next step of the data flow is blocked to handle, and executes step 10;
Step 10, the HTTP redirected is jumped, and (can be gateway address, be also possible to other set jump address Fixed address) browser fed back to by HTTP 3XX status code;
Step 11, setting, which jumps flag bit or notifies webserver using other communication modes, carries out specified page It jumps, or is arranged without flag bit, webserver carries out default page and jumps.Webserver carries out meeting when page display According to the information of the flag bit or the display for jumping message and carrying out specified specified page or other default pages received.
Fig. 5 is the schematic diagram of the HTTP redirection under the connected state of the embodiment of the present invention, as shown in figure 5, including as follows Processing:
Step 1, it is connected to the network successfully;
Step 2, routing iinformation is emptied;Further, due to jumping control module initialization routing asking all http It asks and all points to specific gateway address, after being connected to the network successfully at this time, in order to not influence the normal place of the http data flow of terminal Reason, which is emptied or is directly deleted;
Step 3, it closes and the request of data of 80 ports is no longer further monitored for the monitoring HOOK of http traffic;
Step 4, the URL in read step 3, obtains its real IP, specifically, needs to save URL, virtual IP address and true before The mapping table of real IP can traverse each URL in mapping table in practical applications, for each URL to DNS Server requests its real IP, after getting real IP, be stored in mapping table.
Step 5, redirection of router operation is carried out, entire mapping table is traversed, by all access weights for virtual IP address It is directed to real IP, further, under suspension state, a virtual IP address will receive for the access browser of a URL, is networked Afterwards, if the browser is not closed, the URL is accessed again, and browser directly can initiate request of data with virtual IP address, at this time terminal The route test order carried using system, will be redirected directly to real IP for the access of the virtual IP address, even when clear Device of looking at is not closed, and the access of the URL can not also be influenced.For example, the method redirected can use what linux was carried Iptalbes is redirected, or the routing setting command carried using windows.
By means of the technical solution of the embodiment of the present invention, in the state that network disconnects, user is opened on a browser Net accesses specific URL, can obtain page prompts of the network without service, after user's connected networks, even if not closing current browser It can continue to access the URL.At this time if network disconnects, if user continues to use browser and accesses any URL, so that it may Obtain the prompt of network disconnection.
Installation practice
According to an embodiment of the invention, providing a kind of browser redirection device, Fig. 6 is the browsing of the embodiment of the present invention The structural schematic diagram of orienting device is thought highly of, as shown in fig. 6, browser redirection device according to an embodiment of the present invention includes: to set It sets monitoring module 60 and intercepts and captures feedback module 62, the modules of the embodiment of the present invention are described in detail below.
Be arranged monitoring module 60, for monitor network connection disconnect after, by the routing iinformation of browser be set as by Its all HTTP request sent all points to particular gateway address, and in the data flow sent to browser HTTP request be monitored;Preferably, above-mentioned particular gateway address includes: the clothes of the web service inside respective gateway equipment Business device address.
Monitoring module 60 is arranged to be specifically used for: monitoring letter in the initial end carry HTTP request that browser sends data flow Number, wherein HTTP request monitoring function is by judging the port numbers in data flow to determine whether for HTTP request.
Feedback module 62 is intercepted and captured, for intercepting and capturing HTTP request, and block after monitoring browser and initiating HTTP request The next step of HTTP request is handled, and particular gateway address is fed back to browser, browser is made to be redirected to particular gateway address.
Device further comprises:
Virtual IP address module, for obtaining the system in DNS request when monitoring that browser initiates domain name system DNS request One Resource Locator URL address generates corresponding with URL virtual network Protocol IP address, and virtual ip address is fed back to clear Look at device;
Request memory module, for after virtual IP address module generates corresponding with URL virtual ip address, according to URL to Dns server requests real IP address corresponding with URL;By URL, virtual ip address and real IP address storage to data Area;
Closedown module is deleted, for deleting routing iinformation after monitoring to be connected to the network successfully, closes and browser is sent The monitoring of HTTP request in data flow;
HTTP request module, for making browser in the case where browser buffered corresponding real IP address The HTTP request is re-initiated according to the real IP address of caching;
Redirection module obtains real IP corresponding to virtual ip address from data field according to URL for reading URL Browser is redirected to real IP address for the access of virtual ip address by location.
Redirection module is specifically used for: if browser has jumped to specified page and has also been not turned off, and browser It accesses URL again, and initiates HTTP request using virtual ip address, then the route test order carried using system is by browser Real IP address is redirected directly to for the access of virtual ip address.
Device according to an embodiment of the present invention further comprises:
Notification module, for that will be directed toward after particular gateway address feeds back to browser intercepting and capturing feedback module 62, notice Gateway corresponding with particular gateway address jumps to specified page, makes gateway when carrying out page display to user, According to notice, by the page jump of browser to specified page.
The specific processing of the above-mentioned modules of the embodiment of the present invention can be according to corresponding interior in above method embodiment Hold and Fig. 3 to Fig. 5 is understood that details are not described herein.
In conclusion in the state that network disconnects, user opens one by means of the technical solution of the embodiment of the present invention Browser online accesses specific URL, can obtain page prompts of the network without service, after user's connected networks, works as even if not closing Preceding browser can continue to access the URL.At this time if network disconnects, if user continues to use browser, access is any URL, so that it may obtain the prompt of network disconnection.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (15)

1. a kind of browser reorientation method characterized by comprising
After monitoring that network connection disconnects, all Hyper text transfers being sent to association is set by the routing iinformation of browser View HTTP request all points to particular gateway address, and sends the HTTP request in data flow to browser and be monitored;
After monitoring browser and initiating HTTP request, the HTTP request is intercepted and captured, and block the next step of the HTTP request Processing, feeds back to browser for the particular gateway address;
After browser accesses according to the particular gateway address, gateway corresponding with the particular gateway address will The page jump of browser is to specified page;
Wherein, include: before intercepting and capturing the HTTP request
When monitoring that browser initiates domain name system DNS request, the uniform resource position mark URL in the DNS request is obtained Address generates virtual network Protocol IP address corresponding with the URL, and the virtual ip address is fed back to browser;
Browser initiates HTTP request according to the virtual ip address.
2. the method as described in claim 1, which is characterized in that send the HTTP request in data flow to browser and be monitored It specifically includes:
Function is monitored in the initial end carry HTTP request that browser sends data flow, wherein the HTTP request monitors function By judging the port numbers in data flow to determine whether for HTTP request.
3. the method as described in claim 1, which is characterized in that the method also includes:
After monitoring to be connected to the network successfully, the routing iinformation is deleted, closes and the HTTP in browser transmission data flow is asked The monitoring asked;
Browser re-initiates the HTTP request according to the real IP address of caching.
4. the method as described in claim 1, which is characterized in that described after generating virtual ip address corresponding with the URL Method further include:
Real IP address corresponding with the URL is requested to dns server according to the URL;
By the URL, the virtual ip address and the real IP address storage to data field.
5. method as claimed in claim 4, which is characterized in that the method also includes:
After monitoring to be connected to the network successfully, the routing iinformation is deleted, closes and the HTTP in browser transmission data flow is asked The monitoring asked;
Read the URL, according to the URL from the data field with obtaining the real IP corresponding to the virtual ip address Location;
Browser is redirected to the real IP address for the access of the virtual ip address.
6. method as claimed in claim 5, which is characterized in that redirect browser for the access of the virtual ip address It is specifically included to the real IP address:
If the browser has jumped to the specified page and has also been not turned off, and browser accesses the URL again, And initiate HTTP request using the virtual ip address, then the route test order carried using system is by browser for described The access of virtual ip address is redirected directly to the real IP address.
7. the method as described in claim 1, which is characterized in that
After the direction particular gateway address is fed back to browser, the method further includes: notice with it is described specific The corresponding gateway of gateway address jumps to specified page;
Gateway corresponding with the particular gateway address specifically includes the page jump of browser to specified page:
When the gateway carries out page display to user, according to the notice, by the page jump of browser described in Specified page.
8. the method as described in claim 1, which is characterized in that gateway corresponding with the particular gateway address will browse The page jump of device is specifically included to specified page:
When the gateway carries out page display to user, automatically by the page jump of browser to the specified page.
9. the method as described in claim 1, which is characterized in that the particular gateway address includes: inside respective gateway equipment Web service server address.
10. a kind of browser redirection device characterized by comprising
Monitoring module is set, for after monitoring that network connection disconnects, the routing iinformation of browser being set as being sent to All HTTP requests data flow for all pointing to particular gateway address, and browser being sent in HTTP Request is monitored;
Feedback module is intercepted and captured, for intercepting and capturing the HTTP request, and described in blocking after monitoring browser and initiating HTTP request The next step of HTTP request is handled, and the particular gateway address is fed back to browser, is redirected to the browser described Particular gateway address;
Virtual IP address module, for obtaining the system in the DNS request when monitoring that browser initiates domain name system DNS request One Resource Locator URL address, generates corresponding with URL virtual network Protocol IP address, and by the virtual ip address Feed back to browser.
11. device as claimed in claim 10, which is characterized in that
Monitoring module is arranged to be specifically used for: monitoring function in the initial end carry HTTP request that browser sends data flow, wherein The HTTP request monitoring function is by judging the port numbers in data flow to determine whether for HTTP request.
12. device as claimed in claim 10, which is characterized in that described device further comprises:
Memory module is requested, is used for after the virtual IP address module generates virtual ip address corresponding with the URL, according to institute It states URL and requests real IP address corresponding with the URL to dns server;By the URL, the virtual ip address, Yi Jisuo Real IP address storage is stated to data field;
Closedown module is deleted, for after monitoring to be connected to the network successfully, deleting the routing iinformation, closes and browser is sent The monitoring of HTTP request in data flow;
HTTP request module, for making browser re-initiate the HTTP request according to the real IP address of caching;
Redirection module is right from the data field acquisition virtual ip address institute according to the URL for reading the URL Browser is redirected to the real IP address for the access of the virtual ip address by the real IP address answered.
13. device as claimed in claim 12, which is characterized in that the redirection module is specifically used for:
If the browser has jumped to specified page and has also been not turned off, and browser accesses the URL again, and makes HTTP request is initiated with the virtual ip address, then the route test order carried using system is by browser for described virtual The access of IP address is redirected directly to the real IP address.
14. device as claimed in claim 10, which is characterized in that described device further comprises:
Notification module, for leading to after the direction particular gateway address is fed back to browser by the intercepting and capturing feedback module Know that gateway corresponding with the particular gateway address jumps to specified page, the gateway is made to carry out page to user When face is shown, according to the notice, by the page jump of browser to the specified page.
15. device as claimed in claim 10, which is characterized in that the particular gateway address includes: in respective gateway equipment The server address of the web service in portion.
CN201310223342.5A 2013-06-06 2013-06-06 Browser reorientation method and device Active CN104243506B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310223342.5A CN104243506B (en) 2013-06-06 2013-06-06 Browser reorientation method and device
PCT/CN2013/083079 WO2014194580A1 (en) 2013-06-06 2013-09-06 Browser redirection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310223342.5A CN104243506B (en) 2013-06-06 2013-06-06 Browser reorientation method and device

Publications (2)

Publication Number Publication Date
CN104243506A CN104243506A (en) 2014-12-24
CN104243506B true CN104243506B (en) 2019-05-10

Family

ID=52007461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310223342.5A Active CN104243506B (en) 2013-06-06 2013-06-06 Browser reorientation method and device

Country Status (2)

Country Link
CN (1) CN104243506B (en)
WO (1) WO2014194580A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315784A (en) * 2017-06-07 2017-11-03 北京奇艺世纪科技有限公司 A kind of data access method and browser

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227580A (en) * 2015-10-30 2016-01-06 南京秦杜明视信息技术有限公司 A kind of webserver distribution system and method
CN107454119A (en) * 2016-05-30 2017-12-08 中国移动通信集团上海有限公司 A kind of information-pushing method and device
CN107276979B (en) * 2017-04-26 2021-03-05 浙江远望信息股份有限公司 Method for automatically detecting interconnection behaviors of internal network and external network of terminal equipment
CN108712492A (en) * 2018-05-17 2018-10-26 中兴通讯股份有限公司 A kind of HTTP redirection method, apparatus, routing device and computer storage media
CN111222861B (en) * 2018-11-27 2023-06-23 中国移动通信集团青海有限公司 Recharging method and device after arrearage and computing equipment
CN111263422A (en) * 2018-12-03 2020-06-09 中移(杭州)信息技术有限公司 Method and device for discovering intelligent equipment
CN112152973A (en) * 2019-06-28 2020-12-29 北京奇虎科技有限公司 Method, device and system for monitoring webpage content to be accessed and router
CN111708963B (en) * 2020-05-22 2023-09-29 北京百度网讯科技有限公司 Page request processing method and device, electronic equipment and storage medium
CN111953537B (en) * 2020-07-31 2022-10-04 深圳市友华通信技术有限公司 Method and device for rapidly troubleshooting network faults
CN112235432B (en) * 2020-10-14 2022-10-21 深圳市友华软件科技有限公司 Method and device for supporting different networks to access label address
CN113613274B (en) * 2021-09-01 2023-08-18 四川九州电子科技股份有限公司 Intelligent access configuration method based on Mesh networking
CN114338597A (en) * 2021-11-30 2022-04-12 奇安信科技集团股份有限公司 Network access method and device
CN114500059B (en) * 2022-01-28 2024-01-02 杭州盈高科技有限公司 Webpage authentication method and device of terminal equipment, storage medium and processor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6460084B1 (en) * 1997-08-28 2002-10-01 Cisco Technology, Inc. Forced network portal
CN1937532A (en) * 2005-09-21 2007-03-28 国际商业机器公司 Method and health monitor for handling web server failure
CN101741769A (en) * 2008-11-25 2010-06-16 华为终端有限公司 Redirection method for gateway and webpage
CN103116723A (en) * 2013-02-06 2013-05-22 北京奇虎科技有限公司 Method, device and system of web site interception process

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4242819B2 (en) * 2004-10-06 2009-03-25 株式会社日立製作所 Computer system having a terminal capable of working offline
US20090061830A1 (en) * 2007-08-31 2009-03-05 Peterson Robert R System and method for requesting asynchronous file downloads to a cellular pervasive device from a website
CN101437048B (en) * 2008-11-11 2013-04-17 中国移动通信集团北京有限公司 Method and system for pushing personalized page
US8769784B2 (en) * 2009-11-02 2014-07-08 Authentify, Inc. Secure and efficient authentication using plug-in hardware compatible with desktops, laptops and/or smart mobile communication devices such as iPhones

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6460084B1 (en) * 1997-08-28 2002-10-01 Cisco Technology, Inc. Forced network portal
CN1937532A (en) * 2005-09-21 2007-03-28 国际商业机器公司 Method and health monitor for handling web server failure
CN101741769A (en) * 2008-11-25 2010-06-16 华为终端有限公司 Redirection method for gateway and webpage
CN103116723A (en) * 2013-02-06 2013-05-22 北京奇虎科技有限公司 Method, device and system of web site interception process

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315784A (en) * 2017-06-07 2017-11-03 北京奇艺世纪科技有限公司 A kind of data access method and browser
CN107315784B (en) * 2017-06-07 2020-01-31 北京奇艺世纪科技有限公司 data access method and browser

Also Published As

Publication number Publication date
CN104243506A (en) 2014-12-24
WO2014194580A1 (en) 2014-12-11

Similar Documents

Publication Publication Date Title
CN104243506B (en) Browser reorientation method and device
Xu et al. Investigating transparent web proxies in cellular networks
Agababov et al. Flywheel:{Google’s} Data Compression Proxy for the Mobile Web
JP6074781B2 (en) Method and apparatus for preventing unauthorized service access
KR100954765B1 (en) System and method for accessing a web server on a device with a dynamic IP address residing behind a firewall
CN102884764B (en) Message receiving method, deep packet inspection device, and system
CN103220371B (en) Content adaptation method and system
CN103856436B (en) Method, home gateway and the Internet of selecting network by user equipment layer protocol
EP2901664A1 (en) Reducing core network traffic caused by migrant
CN103581351B (en) The method and apparatus of network access
WO2020258460A1 (en) Network pairing method and apparatus for iot device, device, and medium
CN109302437B (en) Method and device for redirecting website
CN105357212A (en) DNS end-to-end analysis method capable of ensuring safety and privacy
CN108462751B (en) Reverse proxy system
WO2017107795A1 (en) Method and device for accelerating access to website
CN107786502B (en) Authentication proxy method, device and equipment
CN105141712A (en) Method and device for resolving domain name resolution offline
US10631145B1 (en) Dynamic provision of application related sponsored data connectivity
EP4187849A1 (en) Network device protection
Wasil et al. Exposing vulnerabilities in mobile networks: A mobile data consumption attack
JP2013171371A (en) Packet filtering method and device
GB2555108A (en) Improvements in and relating to network communications
JP2008507156A (en) Method and system for controlling indoor equipment from outside
CN109495602A (en) A kind of processing method and processing device of network insertion exception
JP2018142927A (en) System and method for addressing malware unauthorized communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant