20-08-2015 дата публикации
Номер: US20150237158A1
The present invention relates to the technical field of network and discloses a method and a device for accessing a website. The method comprises: constructing a first domain name query request according to a domain name in a webpage request of a client, and sending the request to a first domain name server; obtaining an identification IP address returned by the first domain name server, wherein the identification IP address is used to identify whether an target IP address corresponding to the domain name in the webpage request belongs to a predetermined IP address library or not; according to the identification IP address, judging to replace the target IP address corresponding to the domain name in the webpage request with an IP address of a proxy server, and according to the IP address corresponding to the proxy server, sending the webpage access request to the proxy server. For a webpage request that a client can directly access the webpage by itself, there is no need to access the webpage via the proxy server, and the proxy server is used only when the client needs to access the webpage via the proxy server, thus reducing the load of the proxy server, and improving the performance of the proxy server.
Подробнее