Redirection method for gateway and webpage

A redirection and gateway technology, applied in the Internet field, can solve problems such as inaccessibility of external webpages, webpage redirection, etc., and achieve the effect of improving the online experience

Active Publication Date: 2010-06-16
HONOR DEVICE CO LTD
View PDF0 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the connection between the gateway and the Internet is disconnected, web page redirection cannot be performed. At this time, the user can only receive an error web page. There is a problem with the website and cannot be accessed

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Redirection method for gateway and webpage
  • Redirection method for gateway and webpage
  • Redirection method for gateway and webpage

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] Embodiment 1. Realization of redirection for accessing external webpages through IP addresses

[0045] In this case, the gateway will constantly monitor its connection to the Internet.

[0046]When the connection between the gateway and the Internet is disconnected, the gateway will add a rule-forwarding rule in the PREROUTING forwarding chain of the firewall. The forwarding rule specifies the webpage to be accessed when the connection between the gateway and the Internet is disconnected. The forwarding rule can be set in the following form :

[0047] iptables -t nat -I PREROUTING -p tcp --dport 80 -j DNAT --to x.x.x.x

[0048] Among them, "x.x.x.x" indicates the address of the web page accessed when the gateway is disconnected from the Internet. The web page address should be the address of the web page that contains the status of the gateway and / or the status of the connection between the gateway and the Internet, such as the IP address of the gateway. .

[0049] W...

Embodiment 2

[0055] Embodiment 2: Realization of Redirection for Accessing External Web Pages Through Domain Names

[0056] refer to Figure 5 As shown, in this case, the gateway performs the following operations on the received DNS request:

[0057] S501. The gateway receives a DNS request sent by a user terminal.

[0058] S502. The gateway judges its connection with the Internet. When the gateway is connected to the Internet, execute S503; when the gateway is disconnected from the Internet, execute S504.

[0059] S503. When the gateway receives the DNS request when it is connected to the Internet, it responds to the DNS request according to the prior art.

[0060] S504. When the gateway receives a DNS request when its connection to the Internet is disconnected, it replaces the domain name of the DNS request with the domain name of the specified webpage, thereby redirecting the DNS request to the specified webpage. The specified webpage includes the state of the gateway and / or the stat...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a redirection method for gateway and webpage, which is used for realizing that a gateway redirects a user terminal to an appointed webpage when the gateway is disconnected with internet so that the user terminal is informed about current gateway state and/or network state via the webpage to which the user terminal is redirected, thereby enhancing internet experience of users. The gateway comprises: a monitor module for monitoring the connection condition between the gateway and the internet; a reception module for receiving a webpage request sent by the user terminal; a redirection module for redirecting the webpage request to the appointed webpage in case that the reception module receives the webpage request sent by the user terminal during the disconnection between the gateway and the internet, wherein the appointed webpage comprises a webpage representing the gateway state and/or the connection state between the gateway and the internet; and a sending module for returning the appointed webpage to the user terminal. According to the technical proposal, the user terminal is informed about current gateway state and/or network state via the webpage to whichthe user terminal is redirected, thereby enhancing internet experience of users.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a gateway and a web page redirection method. Background technique [0002] The existing webpage redirection technology is to redirect the user terminal to a specific website (such as the official website of the operator providing network services, etc.) when the user accesses an external webpage through the terminal when the connection between the gateway and the Internet is established ). [0003] Existing a kind of webpage redirection method is: designate in advance the user that needs to be forced, and set it as mandatory orientation state; Whether the user is in the forced orientation state, if so, redirect the user terminal to the specified server. [0004] There is another webpage redirection method: after the gateway receives the HTTP request sent by the user through the terminal, it modifies the content of the HTTP response message to perform redirection. [0005]...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/66H04L12/56H04L12/26H04L29/08H04L29/06
Inventor 刘可可
Owner HONOR DEVICE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products