Embodiment
Below in conjunction with accompanying drawing, embodiments of the invention are elaborated.
As shown in Figure 1, for according to the described a kind of browser access control method process flow diagram of embodiments of the invention, at first, the end side browser is carried out corresponding visit (step 101) according to user's input or the network address information selected; When detecting when using current network address information can't visit or can't open corresponding web page contents in Preset Time, described end side browser uses the backup network address corresponding with current network address information to carry out visit (step 102) once more.
It is to carry out according to user's input or the network address information selected that browser is carried out visit, for example in the domain name or the IP address information of address field input, or the icon of the representative heterogeneous networks address of selecting at webpage or other interface or link etc.
And of the present invention focusing on, under the situation that the current network address information can't connect or communication speed is very slow that detects by above-mentioned input or selection, according to embodiments of the invention, can use with the corresponding backup network of this current network address information address by the end side browser and carry out visit once more.
Backup network of the present invention address, it can be domain-name information, but be preferably the IP address that has identical sensing with the network address information of user's input or selection, because the IP address is the direct foundation that browser is carried out visit, and domain-name information just can be carried out visit after also needing to be converted to the IP address by dns server, if dns server breaks down, then the IP address might can't be returned.
Described backup network address can obtain by inquiry terminal side local data base or network side data storehouse.And described Query Database obtains the step of backup network address, then can be to use hurdle, current address information to carry out can't visit or can't open corresponding web page contents in Preset Time before or after detecting.
In general, a large-scale website all can have a plurality of IP address, if when primary ip address lost efficacy, can attempt using other secondary ip address to connect.But for numerous Internet users, generally only know the domain name or the primary ip address of a website, perhaps distribute an IP address to carry out visit automatically, and when using this IP address to carry out the visit failure, domestic consumer will not have plan by soft white hands by network side.The present invention then can obtain corresponding backup network address automatically and carry out visit once more, has made full use of Internet resources, has improved Access Success Rate.
And the backup network address can be to be stored in the database of network side central server or this locality.For example, when being stored in local data base, if browser can't be visited the domain name of certain input, then can be at this database of terminal local search, see whether exist and the corresponding backup network of this domain name address,, then use the backup network address to carry out visit once more if exist.Local data base can be regularly and the network side central server do synchronously, with new database content more; Also can be the custom of browsing, regularly push the relevant backup network address information of often browsing with the local terminal in website by central server according to the local terminal.
The benefit of database storing in this locality is that inquiry velocity is very fast, but shortcoming need to be regular update, and increased terminal overheads, therefore, and can also be with database storing in network side.Like this, when the network address that detects the current input of use can't be visited, can send request to the network side central server by end side, the request central server provides the backup network address corresponding with described address field information.
For further obtaining the backup network address information in advance, can also control described end side browser in the corresponding network address of visit, send request to the network side central server, the request central server provides the backup network address corresponding with described address field information.
Thus, according to the foregoing description,, just can provide standby different access address for the end side browser by safeguarding a backup network address database.And the maintenance of this database can be by cooperating with DNS service provider, obtaining the backup network address of each website in the dns server; Or with the direct cooperation of each entity website, put on record by the online voluntarily submission of the website owner; Also can be by visit statistics to different terminals, analyze the heterogeneous networks address that same web site uses and determine, for example, can set up and safeguard this database by collecting the employed heterogeneous networks of different terminals side browser access same domain name address by described network side central server.
Described end side local data base can be by network side central server regular update, or upgrades by the network address information that receives from name server.
For example, if it is a plurality of when the corresponding IP of certain domain name address that name server returns to end side, under prior art, end side is general, and only can choose first IP address carries out visit, and according to embodiments of the invention, can should deposit in the local data base a plurality of IP address, in case when the IP address of current use can't be visited, then can switch other secondary ip address of use and carry out visit once more.
For the smooth more use backup network address of user is conducted interviews, in the time of can can't visiting or in Preset Time, can't open corresponding web page contents in the network address of using the address field input, control described browser and continue to present connection status, simultaneously, carry out visit by described end side browser once more according to the described backup network address that obtains.In this way, the switching of the imperceptible network address of user, the experience of presenting to the user is the same with normal visit.
And in order to allow the user learn what situation has taken place current browser, and make corresponding selection in view of the above, in the time of then can can't visiting or in Preset Time, can't open corresponding web page contents in the network address of using the address field input, pass through browser interface, or by an ejection interface, point out the user can use the visit of backup network address, and select to carry out visit once more according to the described backup network address that obtains by the end side browser according to the user.In this way, the user can know clearly that the network address of oneself input can not realize visit, but can use the backup network address to attempt once more, and the user just can according to circumstances select continuation or abandon.
And in order to ensure realizing visit really in the backup network address, bring disappointment to avoid the user still can not visit because of the backup network address, can also be before the prompting user, use the backup network address to attempt connecting in advance, can set up if connect, or communication speed is normal, then reresents the user and can use the visit of backup network address, attempt otherwise can also obtain another backup network address again, after success, reresent the user.Further, after can also connecting in advance and obtaining the breviary data, in the prompting user, enclose the thumbnail of this webpage, make the user be sure of the validity of standby address more, strengthen the confidence of using the backup network address to carry out visit.
As shown in Figure 2, be the described browser access control method of a specific embodiment process flow diagram according to the present invention, at first carry out corresponding visit (step 201) according to the browser address bar information (for example domain-name information of a website) that receives; Afterwards, whether detecting can successful access or shown web page contents (step 202) in Preset Time; If not, then show an information in browser interface, whether the prompting user is ready to use backup network address visit (step 203); If the user selects "Yes", then return backup network address (step 204) to the request of network side central server by end side; Server lookup is to the backup network address and after returning, and the end side browser uses this backup network address to carry out visit (step 205) once more.
Wherein, described network side central server comprises the central server of local domain and/or non-local domain, that is to say, end side can be obtained the backup network address from the central server (comprising dns server) of different regions.Certainly, can be that the end side client is initiatively communicated by letter with the central server of different regions, also can be end side after the central server of local domain sends request, the central server of being got in touch other region by the central server of local domain obtains the backup network address.For example, there is a dns server in Shaanxi, but a certain website all can't be logined in all IP addresses that provide in the server, but Jiangsu also is provided with a dns server, this website can be visited in the IP address of this server the inside, like this, the available address that provides of the dns server that can utilize agency's mode to allow the user in Shaanxi obtain Jiangsu.
And on the other hand, described network side central server also can be selected and the approaching backup network address of described terminal location according to the position of described end side, to improve access speed.
In addition, though can store a plurality of backup networks address in database, because the variation of time and condition, the validity of these backup network addresses also might change.For this variation of reflection in time, can after using the backup network address to visit successfully, described end side browser notify described network side central server; By the Access Success Rate of described network side central server, adjust the ordering of described backup network address in database according to the backup network address.Like this, can guarantee that the prepreerence end side browser that offers in the highest backup network address of validity uses.
Pass through the foregoing description, in the time of can guaranteeing to a great extent that the network user can't visit in the address commonly used of certain website, provide another backup network address to realize visit, but still a kind of like this possibility of existence, promptly visit also can't be realized in all backup network addresses of this website, for example this website itself goes wrong and causes and can't land, at this moment, in order to reduce this situation as far as possible the user is obtained the inconvenience that information causes, the present invention further proposes following several settling modes, for example, when using the backup network address still can't visit or in Preset Time, still can't open corresponding web page contents, can in browser, show and the corresponding snapshots of web pages information of described web page contents, or by analyzing hurdle, current address information, demonstration and the type of the network address of described request or other site informations that content is close.In actual applications, can at first attempt providing SNAPSHOT INFO,, then provide the visit suggestion of approximate site information again if can't find snapshot; Snapshot and approximate web page access suggestion also can simultaneously or be provided separately.
File because snapshots of web pages information is the history of corresponding info web,, but still can provide the help of the information of obtaining for the user although may not be up-to-date content.
And the network address information by the current input of analysis user or selection is to know type that it desires access websites or content, for example, if the user in the domain name of address field input is
Www.google.comIn Preset Time, fail to open web page contents but in connection procedure, detect, then automatically switch to backup network address http: // 66.102.11.104/ carries out visit once more, if also can't visit, then change other backup network addresses again, suppose it is http: // 66.102.11.105/ etc., if all visit all can not be realized in the backup network address, then analyze this domain name, determine that the user wishes to enter a search engine web site, at this moment can point out user's current site to visit in browser, suggestion be attempted
Www.baidu.comWait other search websites.
And if the user in the domain name of address field input is
Www.gogle.comThe time, suppose that this website of gogle.com does not exist, the nature user can't realize visit, at this moment, this network address information by the analysis user input, can judge with google.com very approachingly, may be that the content of input is wrong, at this moment can point out the user to wish to visit in browser
Www.google.com
Only return result's (for example allow the 404 confused wrong pages of user) of a visit failure when the above embodiment of the present invention has all avoided the current network address to visit, but allow the user realize visit as far as possible or provide more information to the user.
As shown in Figure 3,, comprise access modules 301 and detecting module 303 for according to the described browser access control system of embodiment of the invention synoptic diagram, wherein:
Access modules 301, be used for control terminal side browser and carry out corresponding visit according to the network address information of user's input or selection, and, use the backup network address to carry out visit once more detecting when using the current network address information can't visit or in Preset Time, can't open corresponding web page contents;
Whether detecting module 303 is used to detect described browser and uses the current network address information can't visit or can't open corresponding web page contents in Preset Time.
In addition, can further include acquisition module 302, be used for obtaining and the corresponding backup network of current network address information address by inquiry terminal side local data base or network side data storehouse.
According to embodiments of the invention, when access modules 301 is carried out visit according to the current network address information, if detecting module 303 detect can't connect or situation that communication speed is very slow under, can obtain and the corresponding backup network of current network address information address by acquisition module 302, and carry out visit according to this backup network address by access modules 301.
And details such as the foundation of database and maintenance can be identical with the mode of being introduced among the embodiment of above-mentioned browser access control method.
In addition,, can also comprise snapshot display module 304 and/or alternative information display module 305 with reference to Fig. 3, wherein:
Snapshot display module 304 is used for showing and the corresponding snapshots of web pages information of described web page contents when using the backup network address still can't visit or still can't open corresponding web page contents in Preset Time.
Alternative information display module 305 is used for when using the backup network address still can't visit or still can't open corresponding web page contents in Preset Time demonstration and the type of the network address of described request or other site informations that content is close.
The operation principles details of each module is identical with said method embodiment in the system shown in Figure 3 synoptic diagram, does not repeat them here.
Pass through embodiments of the invention, in the time of not only can using the address always in the website and can't visit, utilize the backup network address to attempt visit once more, can also be when all lose efficacy in the address, the information that provides SNAPSHOT INFO or other to be close for the user, reduce the frequent appearance of 404 pages as much as possible, make user's access to netwoks become unimpeded, satisfied the requirements for access that the user uses browser.