CN105488065A - Webpage access method and device, and terminal - Google Patents

Webpage access method and device, and terminal Download PDF

Info

Publication number
CN105488065A
CN105488065A CN201410482395.3A CN201410482395A CN105488065A CN 105488065 A CN105488065 A CN 105488065A CN 201410482395 A CN201410482395 A CN 201410482395A CN 105488065 A CN105488065 A CN 105488065A
Authority
CN
China
Prior art keywords
address
url
server
chained address
webpage
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.)
Pending
Application number
CN201410482395.3A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410482395.3A priority Critical patent/CN105488065A/en
Publication of CN105488065A publication Critical patent/CN105488065A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a webpage access method and device, and a terminal. The method comprises: obtaining a link address corresponding to a webpage to be accessed, wherein the link address at least comprises a target uniform resource locator (URL) and the IP address of a server corresponding to the target URL; extracting the IP address from the link address; sending the link address to the server corresponding to the IP address so that the server corresponding to the IP address can obtain the webpage file corresponding to the webpage to be accessed. According to the method, the steps in accessing the webpage are reduced; the time for obtaining the IP address is reduced; the webpage response time after accessing the webpage is reduced; and the webpage accessing speed is improved.

Description

Web access method, device and terminal
Technical field
The disclosure relates to Internet technical field, particularly relates to a kind of Web access method, device and terminal.
Background technology
Browser is when accessed web page, usually input according to reception user and directly get URL (UniformResourceLocator, URL(uniform resource locator)), or, link according to user's webpage clicking, indirectly URL is got again according to web page interlinkage, then the URL got is sent to DNS (DomainNameSystem, domain name system) server, by DNS, the domain name in this URL is resolved, determine the IP address of the Website server corresponding with this URL, then this IP address is sent to browser by dns server, then directly accessed and the Website server of this URL to one according to this IP address by browser.
Due to when dns server carries out domain name mapping, consuming time longer, and browser is also can consume the regular hour in the process that DNS is mutual, this makes the webpage response time after user's accessed web page longer, especially when user browse webpage frequency higher time, need wait for the long period just can open corresponding webpage.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of Web access method, device and terminal.
According to the first aspect of disclosure embodiment, a kind of Web access method is provided, comprises:
Obtain the chained address that webpage to be visited is corresponding, described chained address at least comprises: the IP address of destination Uniform Resource finger URL URL and described target URL corresponding server;
Described internet protocol address is extracted from described chained address;
Described chained address is sent to the server corresponding with described IP address, to obtain the web page files corresponding with described webpage to be visited from the server corresponding with described IP address.
In conjunction with first aspect, in the first possible implementation of first aspect, described method also comprises:
Set up the corresponding relation of web page interlinkage and chained address;
Described web page interlinkage is joined in target web;
Judge whether to receive the clicking operation to described web page interlinkage in described target web;
If receive described clicking operation, webpage corresponding to the web page interlinkage described clicking operation clicked is defined as described webpage to be visited, and performs the operation of chained address corresponding to described acquisition webpage to be visited.
In conjunction with the first possible implementation of first aspect, in the implementation that first aspect the second is possible, described method also comprises:
Obtain the URL of described target web;
Judge whether the URL of described target web is arranged in default url list;
If the URL of described target web is arranged in described default url list, perform the described operation described chained address being sent to the server corresponding with described IP address.
In conjunction with first aspect, in the third possible implementation of first aspect, described method also comprises:
Judge whether described IP address is default legitimate ip address;
If described IP address is not default legitimate ip address, described target URL is sent to corresponding domain name system DNS server;
Receive described dns server send, resolve the IP address obtained according to described URL;
Described target URL is sent to and resolves server corresponding to the IP address that obtains according to described URL.
In conjunction with first aspect, in first aspect the 4th kind of possible implementation, described described chained address is sent to the server corresponding with described IP address, comprising:
IP address in described chained address is deleted;
Chained address after deleting IP address is sent to the server corresponding with described IP address.
According to the second aspect of disclosure embodiment, a kind of Web access method is provided, comprises:
Obtain the chained address that webpage to be visited is corresponding, described chained address at least comprises: destination Uniform Resource finger URL URL;
Judge in described chained address, whether to include the internet protocol address with described target URL corresponding server;
If include the IP address with described target URL corresponding server in described chained address, from described chained address, extract described IP address;
Described chained address is sent to the server corresponding with described IP address, to obtain the web page files corresponding with described webpage to be visited from the server corresponding with described IP address.
According to the third aspect of disclosure embodiment, a kind of web page access device is provided, comprises:
Chained address acquiring unit, for obtaining chained address corresponding to webpage to be visited, described chained address at least comprises: the internet protocol address of destination Uniform Resource finger URL URL and described target URL corresponding server;
Extraction unit, for extracting described IP address from described chained address;
First transmitting element, for described chained address is sent to the server corresponding with described IP address, to obtain the web page files corresponding with described webpage to be visited from the server corresponding with described IP address.
In conjunction with the third aspect, in the first possible implementation of the third aspect, described device also comprises:
Corresponding relation sets up unit, for setting up the corresponding relation of web page interlinkage and chained address;
Preset web link processing unit, for joining in target web by described web page interlinkage;
Clicking judging unit, receiving the clicking operation to described web page interlinkage for judging whether in described target web;
Webpage determining unit to be visited, for when receiving described clicking operation, webpage corresponding to the web page interlinkage described clicking operation clicked is defined as described webpage to be visited.
In conjunction with the first possible implementation of the third aspect, in the implementation that third aspect the second is possible, described device also comprises:
URL acquiring unit, for obtaining the URL of described target web;
URL judging unit, for judging whether the URL of described target web is arranged in default url list;
Described first transmitting element, also for when the URL of described target web is arranged in described default url list, sends to the server corresponding with described IP address by described chained address.
In conjunction with the third aspect, in the third possible implementation of the third aspect, described device also comprises:
IP judging unit, for judging whether described IP address is default legitimate ip address;
Second transmitting element, for when described IP address is not default legitimate ip address, sends to corresponding domain name system DNS server by described target URL;
IP address accept unit, for receive described dns server send, resolve the IP address obtained according to described URL;
3rd transmitting element, resolves server corresponding to the IP address that obtains for being sent to by described target URL according to described URL;
Described first transmitting element, also for when described IP address is for presetting legitimate ip address, sends to the server corresponding with described IP address by described chained address.
In conjunction with the third aspect, in the third aspect the 4th kind of possible implementation, described first transmitting element, comprising:
Delete subelement, delete for the IP address in just described chained address;
Send subelement, for the chained address behind deletion IP address is sent to the server corresponding with described IP address.
According to the fourth aspect of disclosure embodiment, a kind of web page access device is provided, comprises:
Chained address acquiring unit, for obtaining chained address corresponding to webpage to be visited, described chained address at least comprises: destination Uniform Resource finger URL URL;
Chained address judging unit, for judging whether include the internet protocol address with described target URL corresponding server in described chained address;
Extraction unit, for when including the IP address with described target URL corresponding server in described chained address, extracts described IP address from described chained address;
First transmitting element, for described chained address is sent to the server corresponding with described IP address, to obtain the web page files corresponding with described webpage to be visited from the server corresponding with described IP address.
According to the 5th aspect of disclosure embodiment, a kind of terminal is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the chained address that webpage to be visited is corresponding, described chained address at least comprises: the internet protocol address of destination Uniform Resource finger URL URL and described target URL corresponding server;
Described IP address is extracted from described chained address;
Described chained address is sent to the server corresponding with described IP address, to obtain the web page files corresponding with described webpage to be visited from the server corresponding with described IP address.
According to the 6th aspect of disclosure embodiment, a kind of terminal is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the chained address that webpage to be visited is corresponding, described chained address at least comprises: destination Uniform Resource finger URL URL;
Judge in described chained address, whether to include the internet protocol address with described target URL corresponding server;
If include the IP address with described target URL corresponding server in described chained address, from described chained address, extract described IP address;
Described chained address is sent to the server corresponding with described IP address, to obtain the web page files corresponding with described webpage to be visited from the server corresponding with described IP address.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
The method that disclosure embodiment provides, the IP address of the server corresponding with the target URL in chained address can be increased in advance in chained address, like this when user accesses webpage to be visited, directly can obtain the IP address of the server that webpage to be visited is corresponding with this from the chained address corresponding with this webpage to be visited, and then can directly utilize this IP address to communicate with corresponding server.
Because the method can avoid the IP address utilizing dns server query webpage corresponding server, thus without the need to again target URL being sent to dns server, then receive dns server and search the IP address obtaining server corresponding to target URL, step during accessed web page is reduced, namely time when obtaining IP address is decreased, and then the time that after can reducing accessed web page, webpage responds, improve the speed of web page access.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows embodiment according to the invention, and is used from instructions one and explains principle of the present invention.
Fig. 1 is the process flow diagram of a kind of Web access method according to an exemplary embodiment.
Fig. 2 is the process flow diagram of the another kind of Web access method according to an exemplary embodiment.
Fig. 3 is the process flow diagram of another Web access method according to an exemplary embodiment.
Fig. 4 is the process flow diagram of another Web access method according to an exemplary embodiment.
Fig. 5 is the process flow diagram of another Web access method according to an exemplary embodiment.
Fig. 6 is the block diagram of a kind of web page access device according to an exemplary embodiment.
Fig. 7 is the block diagram of the another kind of web page access device according to an exemplary embodiment.
Fig. 8 is the block diagram of another the web page access device according to an exemplary embodiment.
Fig. 9 is the block diagram of another the web page access device according to an exemplary embodiment.
Figure 10 is the block diagram of another the web page access device according to an exemplary embodiment.
Figure 11 is the block diagram of a kind of terminal according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
Fig. 1 is the process flow diagram of a kind of Web access method according to an exemplary embodiment, and as shown in Figure 1, this Web access method is used in terminal, and such as mobile phone or computing machine, comprise the following steps.
In step s 11, chained address corresponding to webpage to be visited is obtained.
Webpage to be visited can be the web page interlinkage on webpage, and such as: the multiple news links in portal website, or the web site url etc. on navigation website, like this when user utilizes mouse to click news links or web site url, corresponding webpage is exactly webpage to be visited.In addition, in this step, user directly can also input the link address of webpage to be visited in address field.
No matter the chained address obtain manner of which kind of webpage to be visited, at least comprises: IP (InternetProtocol, the Internet protocol) address of target URL and described target URL corresponding server in the chained address got.
Target URL can be directly website homepage address, such as: http://www.hao123.com, also can be the address of a webpage under certain website, such as:
Http:// news.163.com/14/0905/16/A5D2UM860001124J.html, etc.
In chained address, in addition to the aforementioned addresses, other parameter can also be included, such as: http://www.test.com/test.html? teststr=dddsdss, wherein, the Key that " teststr " is parameter, after equal sign, " dddsdss's " is the value that this Key is corresponding.
In the disclosed embodiments, IP address is previously provided with in advance in chained address, such as: http://host/a.html? dnsabcd=61.135.169.125, wherein, " dnsabcd " is the Key of this parameter of IP address, the IP address of the server that " 61.135.169.125 " is corresponding with target URL.
In step s 12, from described chained address, described IP address is extracted.
Key for the IP address in chained address can unify to be one or to be set to multiple default character string, so in this step, after getting chained address, can by searching whether there is default character string in chained address, when there is the character string preset, can directly obtain and the value of this character string as Key, i.e. IP address.
In step s 13, described chained address is sent to the server corresponding with described IP address.
The server corresponding with described IP address can obtain the web page files corresponding with described webpage to be visited according to chained address, and the web page files got is sent to described terminal.
Owing to having extracted IP address in step s 13, so in this step, directly can utilizing this IP address, the chained address got being sent in the server corresponding with extracting IP address.
In the disclosed embodiments, when sending chained address, send after simply can also processing this chained address, for this reason, this step S13 can comprise the following steps again:
11), the IP address in described chained address is deleted;
12), the chained address behind deletion IP address is sent to the server corresponding with described IP address.
Through above-mentioned steps, only the chained address behind deletion IP address is sent to server, can avoid reducing because server to cause the situation of web page access failure to the IP address nonrecognition in chained address or other reasons, if but server effectively can identify the IP address in chained address, just directly chained address can be sent to server.
The method that disclosure embodiment provides, the IP address of the server corresponding with the target URL in chained address can be increased in advance in chained address, like this when user accesses webpage to be visited, directly can obtain the IP address of the server that webpage to be visited is corresponding with this from the chained address corresponding with this webpage to be visited, and then can directly utilize this IP address to communicate with corresponding server.
Because the method can avoid the IP address utilizing dns server query webpage corresponding server, thus without the need to again target URL being sent to dns server, then receive dns server and search the IP address obtaining server corresponding to target URL, step during accessed web page is reduced, namely time when obtaining IP address is decreased, and then the time that after can reducing accessed web page, webpage responds, improve the speed of web page access.
The schematic flow sheet of the another kind of Web access method that Fig. 2 provides for disclosure embodiment.As shown in Figure 2, on the basis of Fig. 1, the method can comprise the following steps.
In the step s 21, the corresponding relation of web page interlinkage and chained address is set up.
When website is set up or when follow-up website maintenance, the corresponding relation of can set up a web site interior one or more web page interlinkage and chained address.
In step S22, described web page interlinkage is joined in target web.
In step S23, judge whether to receive the clicking operation to described web page interlinkage in described target web.
If receive described clicking operation, carry out step S24, otherwise, process ends.
In step s 24 which, webpage corresponding to the web page interlinkage described clicking operation clicked is defined as described webpage to be visited.After step S24, perform step S11.
In addition, in other embodiment of the disclosure, for the portal website existed or other guided bone website, above-mentioned steps S21 and step S22 only need be arranged once, when subsequent user uses, according to the corresponding relation of the web page interlinkage of setting up in advance and link address, only need to carry out above-mentioned steps S23.
In the disclosed embodiments, some web page interlinkages can be set in target web in advance, and chained address corresponding to these web page interlinkages is determined, like this when user clicks, just can get corresponding chained address according to corresponding relation.In addition, when user manually inputs the network address of webpage to be visited in address field, user manually can input the URL of webpage to be visited according to memory, and, the IP address corresponding with URL.
In method embodiment illustrated in fig. 1, owing at web page access being the process of the IP address avoiding the dns server inquiry server corresponding with URL, but directly the IP address of server has been put in chained address, may be utilized by some unauthorized persons like this, namely some chained addresses are forged, then by IP address point to forge server, then by user guiding these forge websites, and user may discover completely in this process less than.
In order to the problem that the IP address solved in above-mentioned chained address is forged, in another embodiment of the disclosure, additionally provide another kind of Web access method.As shown in Figure 3, on basis embodiment illustrated in fig. 2, the method can also comprise the following steps.
In step S31, obtain the URL of described target web.
Target web refers to the current page at webpage place to be visited, this situation, normally for the situation of user when clicking the web page interlinkage on a certain webpage, user is manually inputted to the situation of the chained address of webpage to be visited, inapplicable.
In step s 32, judge whether the URL of described target web is arranged in default url list.
Some white lists that default url list can be arranged voluntarily for user, are positioned at the website of these white lists, can think the IP address that can not arrange forgery in website.On the contrary, for the website outside white list, then do not perform said extracted IP address, and carry out web page access according to the IP address of extracting.
If the URL of described target web is arranged in described default url list, perform above-mentioned steps S13, otherwise, process ends, or, after directly utilizing dns server URL to be resolved to the IP address obtaining correct server, then carry out web page access.
Above-mentioned Fig. 1 or embodiment illustrated in fig. 2 in, when arranging the IP address in chained address, the IP error in address in chained address may be caused due to human error or other reasons, for above-mentioned IP address " 61.135.169.125 ", the IP address that may appear in chained address is " 61.135.169 ", has namely lacked partial content.So like this when utilizing said method to carry out web page access, there will be situation about cannot access.In order to address this problem, as shown in Figure 4, the method can also comprise the following steps.
In step S41, judge whether described IP address is default legitimate ip address.
In the disclosed embodiments, default legitimate ip address refers to that the form of IP address is preset format, and does not differentiate the value in the concrete field in IP address.If described IP address is default legitimate ip address, carry out above-mentioned steps S13, if described IP address is not default legitimate ip address, carry out step S42.
In step S42, described target URL is sent to corresponding dns server.
In step S43, receive described dns server send, resolve the IP address obtained according to described URL.
In step S44, described target URL is sent to and resolves server corresponding to the IP address that obtains according to described URL.
Step S42 ~ step S44 is identical with the Web access method in correlation technique, and those skilled in the art should know the process knowing each step, do not repeat them here.
In addition, in other embodiments, for the situation that the client-caches such as browser have the DNS of part website to record, URL can also need not be sent to dns server in step S42, but the DNS record of website according to buffer memory, directly search the IP address corresponding with URL.
But no matter obtain IP address from dns server, or from the DNS record of buffer memory, search IP address, all need a process of searching, during this and the disclosure are embodiment illustrated in fig. 1, directly from chained address, extract IP address to compare, the time consumed is still many, causes the response speed of webpage after accessed web page slow.
Another Web access method that Fig. 5 provides for disclosure embodiment, as shown in Figure 5, this Web access method can comprise the following steps.
In step s 51, chained address corresponding to webpage to be visited is obtained.
At least comprise in described chained address: target URL.Certainly, the IP address with target URL corresponding server can also be comprised in described link.
In step S52, judge in described chained address, whether to include the IP address with described target URL corresponding server.
Description in embodiment shown in Figure 1, Key due to the IP address in chained address can unify to be one or to be set to multiple default character string, so in this step, after getting chained address, can by searching whether there is default character string in chained address, when there is the character string preset, determine to include IP address in this chained address.
If include the IP address with described target URL corresponding server in described chained address, carry out step S53, otherwise, process ends, or, according to existing Web access method, utilize target URL to search the IP address of corresponding server at dns server.
In step S53, from described chained address, extract described IP address.
In step S54, described chained address is sent to the server corresponding with described IP address.
The server corresponding with described IP address can obtain the web page files corresponding with described webpage to be visited according to chained address, and the web page files got is sent to described terminal.
The method that disclosure embodiment provides, for each chained address got, by increasing the step judged, can determine whether include IP address in this chained address, for the situation including IP address, can extracting directly IP address, and target URL is sent to the server that this IP address is corresponding, otherwise, search corresponding IP address in the dns server according to existing Web access method, then utilizing the IP address found to carry out web page access.
So just make in a webpage, both there is the chained address including IP address, also there is the chained address not comprising IP address, the method is more compatible, and be comprise IP address without the need to informing separately in which chained address of user, which does not comprise IP address, in the ignorant situation of user, just can improve the access speed to webpage corresponding to the chained address including IP address.
In said method embodiment, identical step can be used for reference mutually, and different steps can independent assortment, and the scheme after combination still belongs to protection domain of the present disclosure.
Fig. 6 is a kind of web page access device block diagram according to an exemplary embodiment.With reference to Fig. 6, this device comprises chained address acquiring unit 11, extraction unit 12 and the first transmitting element 13.
This chained address acquiring unit 11 is configured to obtain chained address corresponding to webpage to be visited, and described chained address at least comprises: the IP address of destination Uniform Resource finger URL URL and described target URL corresponding server;
This extraction unit 12 is configured to from described chained address, extract described IP address;
This first transmitting element 13 is configured to described chained address to send to the server corresponding with described IP address, to obtain the web page files corresponding with described webpage to be visited from the server corresponding with described IP address.
In the disclosed embodiments, this first transmitting element 13 can comprise: delete subelement and send subelement, and wherein, the IP address that this deletion subelement is configured in just described chained address is deleted; This transmission subelement is configured to the chained address after by deletion IP address and sends to the server corresponding with described IP address.
This device that disclosure embodiment provides, the IP address of the server corresponding with the target URL in chained address can be increased in advance in chained address, and then when accessing the webpage corresponding with this chained address, directly IP address can be obtained from this chained address.
Because this device can avoid the IP address utilizing dns server query webpage corresponding server, thus without the need to again target URL being sent to dns server, then receive dns server and search the IP address obtaining server corresponding to target URL, step during accessed web page is reduced, namely time when obtaining IP address is decreased, and then the time that after can reducing accessed web page, webpage responds, improve the speed of web page access.
On basis embodiment illustrated in fig. 6, as shown in Figure 7, this device can also comprise: corresponding relation is set up unit 21, preset web link processing unit 22, clicked judging unit 23 and webpage determining unit 24 to be visited.
This corresponding relation sets up the corresponding relation that unit 21 is configured to set up web page interlinkage and chained address;
This preset web link processing unit 22 is configured to described web page interlinkage to join in target web;
This click judging unit 23 is configured to judge whether to receive the clicking operation to described web page interlinkage in described target web;
Webpage determining unit 24 to be visited is configured to when receiving described clicking operation, and webpage corresponding to the web page interlinkage described clicking operation clicked is defined as described webpage to be visited.
In addition, in other embodiment of the disclosure, this device can also only include: click judging unit 23 and webpage determining unit 24 to be visited, this requires to be previously stored with web page interlinkage and the corresponding relation with chained address in target web, and then after clicking judging unit 23 click, according to corresponding relation, webpage determining unit to be visited directly can determine that the webpage clicked is webpage to be visited.
On basis embodiment illustrated in fig. 7, as shown in Figure 8, this device can also comprise: URL acquiring unit 31 and URL judging unit 32.
This URL acquiring unit 31 is configured to the URL obtaining described target web;
This URL judging unit 32 is configured to judge whether the URL of described target web is arranged in default url list;
This first transmitting element 13, also for when the URL of described target web is arranged in described default url list, sends to the server corresponding with described IP address by described chained address.
On basis embodiment illustrated in fig. 6, as shown in Figure 9, this device can also comprise: IP judging unit 41, second transmitting element 42, IP address accept unit 43 and the 3rd transmitting element 44.
This IP judging unit 41 is configured to judge whether described IP address is default legitimate ip address;
This second transmitting element 42 is configured to when described IP address is not default legitimate ip address, described target URL is sent to corresponding dns server;
This IP address accept unit 43 be configured to receive that described dns server sends, resolve the IP address obtained according to described URL;
3rd transmitting element 44 is configured to described target URL to send to resolves server corresponding to the IP address that obtains according to described URL;
This first transmitting element 13, also for when described IP address is for presetting legitimate ip address, sends to the server corresponding with described IP address by described chained address.
Figure 10 is the another kind of web page access device block diagram according to an exemplary embodiment.With reference to Figure 10, this device comprises chained address acquiring unit 11, chained address judging unit 14, extraction unit 12 and the first transmitting element 13.
This chained address acquiring unit 11 is configured to obtain chained address corresponding to webpage to be visited, and described chained address at least comprises: destination Uniform Resource finger URL URL;
This chained address judging unit 14 is configured to judge whether include the IP address with described target URL corresponding server in described chained address;
This extraction unit 12 is configured to, when including the IP address with described target URL corresponding server in described chained address, extract described IP address from described chained address;
This first transmitting element 13 is configured to described chained address to send to the server corresponding with described IP address, to obtain the web page files corresponding with described webpage to be visited from the server corresponding with described IP address.
This device that disclosure embodiment provides, for each chained address got, by increasing the step judged, can determine whether include IP address in this chained address, for the situation including IP address, can extracting directly IP address, and target URL is sent to the server that this IP address is corresponding, otherwise, search corresponding IP address in the dns server according to existing Web access method, then utilizing the IP address found to carry out web page access.
So just make in a webpage, both there is the chained address including IP address, also there is the chained address not comprising IP address, the method is more compatible, and be comprise IP address without the need to informing separately in which chained address of user, which does not comprise IP address, in the ignorant situation of user, just can improve the access speed to webpage corresponding to the chained address including IP address.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Figure 11 is the block diagram of a kind of terminal 800 according to an exemplary embodiment.Such as, terminal 800 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 11, terminal 800 can comprise following one or more assembly: processing components 802, storer 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of I/O (I/O), sensor module 814, and communications component 816.
The integrated operation of the usual control terminal 800 of processing components 802, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 802 can comprise one or more processor 820 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 802 can comprise one or more module, and what be convenient between processing components 802 and other assemblies is mutual.Such as, processing components 802 can comprise multi-media module, mutual with what facilitate between multimedia groupware 808 and processing components 802.
Storer 804 is configured to store various types of data to be supported in the operation of terminal 800.The example of these data comprises for any application program of operation in terminal 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 804 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 806 is terminal 800 provide electric power.Power supply module 806 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for terminal 800 and be associated.
Multimedia groupware 808 is included in the screen providing an output interface between described terminal 800 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When terminal 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to export and/or input audio signal.Such as, audio-frequency assembly 810 comprises a microphone (MIC), and when terminal 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 804 further or be sent via communications component 816.In certain embodiments, audio-frequency assembly 810 also comprises a loudspeaker, for output audio signal.
I/O interface 812 is for providing interface between processing components 802 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 814 comprises one or more sensor, for providing the state estimation of various aspects for terminal 800.Such as, sensor module 814 can detect the opening/closing state of terminal 800, the relative positioning of assembly, such as described assembly is display and the keypad of terminal 800, the position of all right sense terminals 800 of sensor module 814 or terminal 800 1 assemblies changes, the presence or absence that user contacts with terminal 800, the temperature variation of terminal 800 orientation or acceleration/deceleration and terminal 800.Sensor module 814 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 814 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 816 is configured to the communication being convenient to wired or wireless mode between terminal 800 and other equipment.Terminal 800 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 816 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 816 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, terminal 800 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 804 of instruction, above-mentioned instruction can perform said method by the processor 820 of terminal 800.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of terminal, make terminal can perform a kind of Web access method, described method comprises:
Obtain the chained address that webpage to be visited is corresponding, described chained address at least comprises: the IP address of destination Uniform Resource finger URL URL and described target URL corresponding server;
Described IP address is extracted from described chained address;
Described chained address is sent to the server corresponding with described IP address, to obtain the web page files corresponding with described webpage to be visited from the server corresponding with described IP address.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of terminal, make terminal can perform a kind of Web access method, described method comprises:
Obtain the chained address that webpage to be visited is corresponding, described chained address at least comprises: destination Uniform Resource finger URL URL;
Judge in described chained address, whether to include the IP address with described target URL corresponding server;
If include the IP address with described target URL corresponding server in described chained address, from described chained address, extract described IP address;
Described chained address is sent to the server corresponding with described IP address, to obtain the web page files corresponding with described webpage to be visited from the server corresponding with described IP address.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (14)

1. a Web access method, is characterized in that, comprising:
Obtain the chained address that webpage to be visited is corresponding, described chained address at least comprises: the internet protocol address of destination Uniform Resource finger URL URL and described target URL corresponding server;
Described IP address is extracted from described chained address;
Described chained address is sent to the server corresponding with described IP address, to obtain the web page files corresponding with described webpage to be visited from the server corresponding with described IP address.
2. method according to claim 1, is characterized in that, described method also comprises:
Set up the corresponding relation of web page interlinkage and chained address;
Described web page interlinkage is joined in target web;
Judge whether to receive the clicking operation to described web page interlinkage in described target web;
If receive described clicking operation, webpage corresponding to the web page interlinkage described clicking operation clicked is defined as described webpage to be visited, and performs the operation of chained address corresponding to described acquisition webpage to be visited.
3. method according to claim 2, is characterized in that, described method also comprises:
Obtain the URL of described target web;
Judge whether the URL of described target web is arranged in default url list;
If the URL of described target web is arranged in described default url list, perform the described operation described chained address being sent to the server corresponding with described IP address.
4. method according to claim 1, is characterized in that, described method also comprises:
Judge whether described IP address is default legitimate ip address;
If described IP address is not default legitimate ip address, described target URL is sent to corresponding domain name system DNS server;
Receive described dns server send, resolve the IP address obtained according to described URL;
Described target URL is sent to and resolves server corresponding to the IP address that obtains according to described URL.
5. method according to claim 1, is characterized in that, described described chained address is sent to the server corresponding with described IP address, comprising:
IP address in described chained address is deleted;
Chained address after deleting IP address is sent to the server corresponding with described IP address.
6. a Web access method, is characterized in that, comprising:
Obtain the chained address that webpage to be visited is corresponding, described chained address at least comprises: destination Uniform Resource finger URL URL;
Judge in described chained address, whether to include the internet protocol address with described target URL corresponding server;
If include the IP address with described target URL corresponding server in described chained address, from described chained address, extract described IP address;
Described chained address is sent to the server corresponding with described IP address, to obtain the web page files corresponding with described webpage to be visited from the server corresponding with described IP address.
7. a web page access device, is characterized in that, comprising:
Chained address acquiring unit, for obtaining chained address corresponding to webpage to be visited, described chained address at least comprises: the internet protocol address of destination Uniform Resource finger URL URL and described target URL corresponding server;
Extraction unit, for extracting described IP address from described chained address;
First transmitting element, for described chained address is sent to the server corresponding with described IP address, to obtain the web page files corresponding with described webpage to be visited from the server corresponding with described IP address.
8. device according to claim 7, is characterized in that, described device also comprises:
Corresponding relation sets up unit, for setting up the corresponding relation of web page interlinkage and chained address;
Preset web link processing unit, for joining in target web by described web page interlinkage;
Clicking judging unit, receiving the clicking operation to described web page interlinkage for judging whether in described target web;
Webpage determining unit to be visited, for when receiving described clicking operation, webpage corresponding to the web page interlinkage described clicking operation clicked is defined as described webpage to be visited.
9. device according to claim 8, is characterized in that, described device also comprises:
URL acquiring unit, for obtaining the URL of described target web;
URL judging unit, for judging whether the URL of described target web is arranged in default url list;
Described first transmitting element, also for when the URL of described target web is arranged in described default url list, sends to the server corresponding with described IP address by described chained address.
10. device according to claim 7, is characterized in that, described device also comprises:
IP judging unit, for judging whether described IP address is default legitimate ip address;
Second transmitting element, for when described IP address is not default legitimate ip address, sends to corresponding domain name system DNS server by described target URL;
IP address accept unit, for receive described dns server send, resolve the IP address obtained according to described URL;
3rd transmitting element, resolves server corresponding to the IP address that obtains for being sent to by described target URL according to described URL;
Described first transmitting element, also for when described IP address is for presetting legitimate ip address, sends to the server corresponding with described IP address by described chained address.
11. devices according to claim 7, is characterized in that, described first transmitting element, comprising:
Delete subelement, delete for the IP address in just described chained address;
Send subelement, for the chained address behind deletion IP address is sent to the server corresponding with described IP address.
12. 1 kinds of web page access devices, is characterized in that, comprising:
Chained address acquiring unit, for obtaining chained address corresponding to webpage to be visited, described chained address at least comprises: destination Uniform Resource finger URL URL;
Chained address judging unit, for judging whether include the internet protocol address with described target URL corresponding server in described chained address;
Extraction unit, for when including the IP address with described target URL corresponding server in described chained address, extracts described IP address from described chained address;
First transmitting element, for described chained address is sent to the server corresponding with described IP address, to obtain the web page files corresponding with described webpage to be visited from the server corresponding with described IP address.
13. 1 kinds of terminals, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the chained address that webpage to be visited is corresponding, described chained address at least comprises: the internet protocol address of destination Uniform Resource finger URL URL and described target URL corresponding server;
Described IP address is extracted from described chained address;
Described chained address is sent to the server corresponding with described IP address, to obtain the web page files corresponding with described webpage to be visited from the server corresponding with described IP address.
14. 1 kinds of terminals, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the chained address that webpage to be visited is corresponding, described chained address at least comprises: destination Uniform Resource finger URL URL;
Judge in described chained address, whether to include the internet protocol address with described target URL corresponding server;
If include the IP address with described target URL corresponding server in described chained address, from described chained address, extract described IP address;
Described chained address is sent to the server corresponding with described IP address, to obtain the web page files corresponding with described webpage to be visited from the server corresponding with described IP address.
CN201410482395.3A 2014-09-19 2014-09-19 Webpage access method and device, and terminal Pending CN105488065A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410482395.3A CN105488065A (en) 2014-09-19 2014-09-19 Webpage access method and device, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410482395.3A CN105488065A (en) 2014-09-19 2014-09-19 Webpage access method and device, and terminal

Publications (1)

Publication Number Publication Date
CN105488065A true CN105488065A (en) 2016-04-13

Family

ID=55675045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410482395.3A Pending CN105488065A (en) 2014-09-19 2014-09-19 Webpage access method and device, and terminal

Country Status (1)

Country Link
CN (1) CN105488065A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108391009A (en) * 2018-02-13 2018-08-10 广东欧珀移动通信有限公司 Display methods, device, storage medium and the electronic equipment of five application page
CN108616609A (en) * 2018-03-10 2018-10-02 北京酷我科技有限公司 A kind of iOS network DNSs parsing strategy
CN109597948A (en) * 2018-10-17 2019-04-09 深圳壹账通智能科技有限公司 Access method, system and the storage medium of URL link
CN109918588A (en) * 2019-01-31 2019-06-21 德联易控科技(北京)有限公司 Data processing method, device and the electronic equipment that accident is declared
CN110781497A (en) * 2019-10-21 2020-02-11 新华三信息安全技术有限公司 Method for detecting web page link and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1353840A (en) * 2000-02-03 2002-06-12 网派网络公司 Web page accessing system and method usijng real manes
US20060265589A1 (en) * 2000-07-05 2006-11-23 Register.Com, Inc. Method and apparatus for URL forwarding
CN103618810A (en) * 2013-11-29 2014-03-05 北京奇虎科技有限公司 Method and device for identifying IP address of CDN source station
CN103678324A (en) * 2012-09-03 2014-03-26 百度在线网络技术(北京)有限公司 Method, device and equipment for opening webpage
CN103729440A (en) * 2013-12-30 2014-04-16 优视科技有限公司 Method and device for having access to website

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1353840A (en) * 2000-02-03 2002-06-12 网派网络公司 Web page accessing system and method usijng real manes
US20060265589A1 (en) * 2000-07-05 2006-11-23 Register.Com, Inc. Method and apparatus for URL forwarding
CN103678324A (en) * 2012-09-03 2014-03-26 百度在线网络技术(北京)有限公司 Method, device and equipment for opening webpage
CN103618810A (en) * 2013-11-29 2014-03-05 北京奇虎科技有限公司 Method and device for identifying IP address of CDN source station
CN103729440A (en) * 2013-12-30 2014-04-16 优视科技有限公司 Method and device for having access to website

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
胡振山 等: "《网站设计技术》", 31 December 2011, 中国矿业大学出版社 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108391009A (en) * 2018-02-13 2018-08-10 广东欧珀移动通信有限公司 Display methods, device, storage medium and the electronic equipment of five application page
CN108616609A (en) * 2018-03-10 2018-10-02 北京酷我科技有限公司 A kind of iOS network DNSs parsing strategy
CN109597948A (en) * 2018-10-17 2019-04-09 深圳壹账通智能科技有限公司 Access method, system and the storage medium of URL link
CN109918588A (en) * 2019-01-31 2019-06-21 德联易控科技(北京)有限公司 Data processing method, device and the electronic equipment that accident is declared
CN110781497A (en) * 2019-10-21 2020-02-11 新华三信息安全技术有限公司 Method for detecting web page link and storage medium

Similar Documents

Publication Publication Date Title
CN104159275B (en) Method for connecting network and device
CN104270404A (en) Login method and device based on terminal identification
CN104506664A (en) Domain name system caching method and device
CN105245518A (en) Website hijacking detection method and device
CN105338399A (en) Image acquisition method and device
CN104156401A (en) Webpage loading method, device and equipment
CN104123341A (en) Method and device for downloading file and route device
CN105072178A (en) Mobile phone number binding information acquisition method and device
CN104615655A (en) Information recommendation method and device
CN105183513A (en) Application recommendation method and apparatus
CN105491048A (en) Account management method and apparatus
CN104991916A (en) Webpage loading method and apparatus
CN105488065A (en) Webpage access method and device, and terminal
CN104618511A (en) Intelligent device detection method and device
CN104954371A (en) Equipment information display method and device
CN112291338B (en) Communication method and device and electronic equipment
CN104850849A (en) Method, device and terminal for sending character
CN104331503A (en) Information push method and device
CN104462570A (en) Webpage content obtaining method and device
CN105471877A (en) Evidence data obtaining method and device
CN105095366A (en) Method and device for processing character messages
CN105095372A (en) Method and apparatus for obtaining search result
CN104539812A (en) Recommendation information acquisition method, terminal and server
CN105160236A (en) Method and device for inputting verification code
CN104683496A (en) Address filtering method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20160413

RJ01 Rejection of invention patent application after publication