Method and device for redirection to web page
Abstract:
Disclosed are a method and device for redirection to a Web page. The method includes: when a first device receives a Domain Name System (DNS) request from a second device and a domain name requested by the DNS request is not a domain name of a gateway of the first device and satisfies a redirection condition, the first device sends a response message of the DNS request to the second device (S102), wherein an unused virtual Internet Protocol (IP) address in a locally preset virtual IP address group is carried in the response message; the first device establishes a correspondence between the virtual IP address and the domain name satisfying the redirection condition (S104); and after receiving a Transport Control Protocol (TCP) data packet sent from the second device, the first device replaces the virtual IP address carried in the TCP data packet with a designated IP address, and forwards, according to the designated IP address, interactive data packets between the second device and the designated IP address (S106). The technical solution solves the problem in the related art of redirection to the Web page resulting from optimization of a Personal Computer (PC) browser.
Public/Granted literature
Information query
Patent Agency Ranking
0/0