Summary of the invention
The invention provides a kind of method, system and device of accesses network resource, in order to the serviced device deletion in the URL address that solves the user's input that exists in the prior art or can't the Connection Service device, then the user can not download or open the problem of this URL address corresponding file or webpage.
The method of a kind of accesses network resource that the embodiment of the invention provides comprises:
If the original URL address of user's input can't connect, then search the corresponding relation of original URL address and mirror URL address, determine at least one mirror URL address of the described original URL address correspondence that the user imports, described mirror URL address is the information identical URL address corresponding with described original URL address;
The information of at least one definite described mirror URL address is shown to the user;
Wherein, the corresponding relation of described original URL address and mirror URL address is set up according to the following step:
Searching resource content is the original URL address of web page contents, obtain and preserve described original URL address corresponding page content, for the described content of pages that obtains generates a mirror URL address, set up the corresponding relation of described original URL address and described mirror URL address; Or
Searching resource content is the original URL address of data file, determine the file identification of described data file, search at least one with lack and decide the corresponding URL address of the identical file of file identification, and the corresponding relation of described original URL address and described mirror URL address is set up as mirror URL address in the described URL address that will find.
The system of a kind of accesses network resource that the embodiment of the invention provides comprises:
Memory module is used to preserve the corresponding relation of original URL address and mirror URL address, and described mirror URL address is the information identical URL address corresponding with described original URL address;
Search module, be used for then searching described corresponding relation, determine at least one mirror URL address of the described original URL address correspondence that the user imports if the URL address of user's input can't connect;
Display module, the information that is used at least one described mirror URL address that will be definite shows to the user;
First sets up module, be used to search the original URL address that resource content is a web page contents, obtain and preserve described original URL address corresponding page content, for the described content of pages that obtains generates a mirror URL address, set up the corresponding relation of described original URL address and described mirror URL address;
Second sets up module, be used to search the original URL address that resource content is a data file, determine the file identification of described data file, search at least one with the identical corresponding URL address of file of definite file identification, and the corresponding relation of described original URL address and described mirror URL address is set up as mirror URL address in the described URL address that will find.
A kind of client that the embodiment of the invention provides comprises:
Memory module is used to preserve the corresponding relation of original URL address and mirror URL address, and described mirror URL address is the information identical URL address corresponding with described original URL address;
Search module, be used for then searching described corresponding relation, determine at least one mirror URL address of the described original URL address correspondence that the user imports if the original uniform resource locator URL address of user's input can't connect;
Display module, the information that is used at least one described mirror URL address that will be definite shows to the user;
First sets up module, be used to search the original URL address that resource content is a web page contents, obtain and preserve described original URL address corresponding page content, for the described content of pages that obtains generates a mirror URL address, set up the corresponding relation of described original URL address and described mirror URL address;
Second sets up module, be used to search the original URL address that resource content is a data file, determine the file identification of described data file, search at least one with the identical corresponding URL address of file of definite file identification, and the corresponding relation of described original URL address and described mirror URL address is set up as mirror URL address in the described URL address that will find.
A kind of server that the embodiment of the invention provides comprises:
Memory module is used to preserve the corresponding relation of original URL address and mirror URL address, and described mirror URL address is the information identical URL address corresponding with described original URL address;
Search module, be used for then searching described corresponding relation, determine at least one mirror URL address of the described original URL address correspondence that the user imports if the original uniform resource locator URL address of user's input can't connect;
Display module, the information that is used at least one described mirror URL address that will be definite shows to the user;
First sets up module, be used to search the original URL address that resource content is a web page contents, obtain and preserve described original URL address corresponding page content, for the described content of pages that obtains generates a mirror URL address, set up the corresponding relation of described original URL address and described mirror URL address;
Second sets up module, be used to search the original URL address that resource content is a data file, determine the file identification of described data file, search at least one with the identical corresponding URL address of file of definite file identification, and the corresponding relation of described original URL address and described mirror URL address is set up as mirror URL address in the described URL address that will find.
The embodiment of the invention is if the original uniform resource locator URL address of user's input can't connect, then search the corresponding relation of original URL address and mirror URL address, determine at least one mirror URL address of the described original URL address correspondence that the user imports, the corresponding information of described original URL address and described mirror URL address is identical, the information of at least one definite described mirror URL address is shown to the user, thereby can provide the mirror image address of the URL address correspondence of deletion for the user, the URL address that makes the user import serviced device deletion maybe can't be connected on the server, also can allow user's download or open this URL address corresponding file or webpage.
Embodiment
In embodiments of the present invention, after the original URL address of user's input can't connect, the mirror URL address of this original URL address correspondence can be shown to the user, the corresponding information in the information of this mirror URL address correspondence and this original URL address is identical, then the user can find the information of own needs according to mirror URL address, thereby has satisfied user's request.
Below in conjunction with Figure of description the embodiment of the invention is described in further detail.
As shown in Figure 2, the system of embodiment of the invention accesses network resource comprises: memory module 10, search module 20 and display module 30.
Memory module 10 and is searched module 20 and is connected, and is used to preserve the corresponding relation of original URL address and mirror URL address.
Wherein, the corresponding information of original URL address and mirror URL address is identical.
Memory module 10 can also detect the validity of the mirror URL address of preserving according to the time cycle of setting, if mirror URL address can't connect, then deletes this mirror URL address.
Search module 20, be connected with display module 30 with memory module 10, be used for then searching the corresponding relation of preserving in the memory module 10, determine at least one mirror URL address of the original URL address correspondence that the user imports if the original URL address of user's input can't connect.
Display module 30 and is searched module 20 and is connected, and the information that is used for searching at least one mirror URL address that module 20 determines shows to the user.
The information of URL address is the resource content of URL address and/or URL address correspondence, such as:
The URL address is the download address of a file, then the URL address can be shown to the user, perhaps this address corresponding download prompting frame is shown to the user, perhaps prompting download frame and URL address all is shown to the user; The URL address is the content of pages of a webpage, then the URL address can be shown to the user or this address corresponding page content is shown to the user, and perhaps Jiang content of pages and URL address all are shown to the user.
Wherein, display module 30 can further include: check module 300 and determination module 310.
Check module 300, be used to check whether search the mirror URL address that module 20 determines effective.
Check whether effective method includes but not limited to following manner to mirror URL address:
The pre-connection mode (promptly determines that by function whether the header file of the corresponding page of mirror URL address exists, if exist, represents that then mirror URL address is effective; Otherwise the expression mirror URL address is invalid).
Determination module 310, the information that is used for checking effective at least one mirror URL address in module 300 inspection backs shows to the user.
Wherein, determination module 310 can also be tested the effectively response speed of at least one mirror URL address, and shows to the user according to the order of speed speed; Perhaps according to the demonstration quantity of the mirror URL address of setting, the information of the mirror URL address that speed is forward shows to the user.
Wherein, the system of embodiment of the invention accesses network resource can further include: first sets up module 40.
First sets up module 40, be connected with memory module 10, be used to search the original URL address that resource content is a web page contents, obtain and preserve original URL address corresponding page content, for the content of pages that obtains generates a mirror URL address, set up the corresponding relation of this original URL address and this mirror URL address.
After then the user clicks the mirror URL address of display module 30 demonstrations, just can see that first sets up the web page contents of this mirror URL address correspondence of module 40 preservations.
Wherein, the embodiment of the invention can further include: second sets up module 50.
Second sets up module 50, be connected with memory module 10, be used to search the original URL address that resource content is a data file, and the file identification of definite this data file, search at least one with the identical corresponding URL address of file of definite file identification, and with the URL address that finds as mirror URL address, set up the corresponding relation of this original URL address and this mirror URL address.
A file has only a unique file identification, and the corresponding data file in the data file that can guarantee the mirror URL address correspondence like this and original URL address is identical.
File identification is to go out according to certain algorithm computation, and the algorithm of calculation document sign includes but not limited to a kind of in the following manner:
Hash hash algorithm or md5-challenge MD5, Message-Digest Algorithm 5 or the like.
In embodiments of the present invention, memory module 10, search module 20, display module 30, first and set up module 40 and second and set up that any one a plurality of or whole module can place client or server in the module 50.
Such as: memory module 10, display module 30, first are set up module 40 and second and are set up module 50 and can place server, can place client and search module 20.
Certainly, 5 modules above-mentioned can be carried out combination in any, select which module to place client or server according to concrete needs, but the concrete function of each module does not change, and repeats no more here.
As shown in Figure 3, the structure of embodiment of the invention server comprises: memory module 31, search module 32 and display module 33.
Wherein, memory module 31, search memory module 10 among module 32 and display module 33 and Fig. 2, to search module 20 identical with display module 30 functions, repeat no more.
The server of the embodiment of the invention can further include first among Fig. 2 and sets up module 40 and second and set up module 50.
As shown in Figure 4, the structure of embodiment of the invention client comprises: memory module 41, search module 42 and display module 43.
Wherein, memory module 41, search memory module 10 among module 42 and display module 43 and Fig. 2, to search module 20 identical with display module 30 functions, repeat no more.
The client of the embodiment of the invention can further include first among Fig. 2 and sets up module 40 and second and set up module 50.
Shown in Fig. 5 A, the method for first kind of accesses network resource of the embodiment of the invention comprises the following steps:
Step a501, the original URL address of importing as if the user can't connect, and then search the corresponding relation of original URL address and mirror URL address, determine at least one mirror URL address of the original URL address correspondence that the user imports.
Wherein, the corresponding information of original URL address and mirror URL address is identical.
The information of step a502, at least one mirror URL address that will determine shows to the user.
The information of URL address is the resource content of URL address and/or URL address correspondence, such as: the URL address is the download address of a file, then the URL address can be shown to the user, perhaps this address corresponding download frame be shown to the user, perhaps will download frame and the URL address all is shown to the user; The URL address is an inner face content, then the URL address can be shown to the user or this address corresponding page content is shown to the user, and perhaps Jiang content of pages and URL address all are shown to the user.
Wherein, can show to the user by forms such as java script, vb script, flash, browser plug-ins.
Wherein, can further include before the step a501:
Step a500, set up the corresponding relation of original URL address and mirror URL address.
If the content of original URL address correspondence is a content of pages, then step a500 can further include:
(b1) search the original URL address that resource content is a web page contents;
(b2) obtain and preserve this original URL address corresponding page content;
(b3) generate a mirror URL address for the content of pages that obtains;
(b4) set up the corresponding relation of this original URL address and this mirror URL address.
If the content of original URL address correspondence is a data file, then step a500 can further include:
(c1) search the original URL address that resource content is a data file;
(c2) determine the file identification of this data file;
(c3) search at least one with the identical corresponding URL address of file of definite file identification, and with the URL address that finds as mirror URL address;
(c4) set up the corresponding relation of this original URL address and this mirror URL address.
A file has only a unique file identification, and the corresponding data file in the data file that can guarantee the mirror URL address correspondence like this and original URL address is identical.
File identification is to go out according to certain algorithm computation, and the algorithm of calculation document sign includes but not limited to a kind of in the following manner:
Hash hash algorithm or md5-challenge MD5, Message-Digest Algorithm 5 or the like.
The corresponding relation that just can set up original URL address and mirror URL address by file identification is as shown in table 1:
Binary file URL |
File identification |
http://a.com/a.zip |
575A1E |
http://b.com/b.zip |
575A1E |
http://c.com/c.zip |
6E6B98 |
|
|
Table 1
Can see in the table 1: a.zip and b.zip correspondence same file identification, just mean that also the content of binary file a.zip and b.zip is identical, i.e. the URL of the URL of a.zip and b.zip mirror URL each other.
In the present embodiment, can further include between step a500 and the step a501:
According to the validity of the time cycle detection mirror URL address of setting,, then delete this mirror URL address if mirror URL address can't connect.
Wherein, can further include between step a501 and the step a502:
Check whether the mirror URL address of determining among the step a501 is effective.
Check whether effective method includes but not limited to following manner to mirror URL address:
The pre-connection mode (is promptly determined by function whether the webpage header file of mirror URL address correspondence exists, if exist, is represented that then mirror URL address is effective; Otherwise the expression mirror URL address is invalid).
Then step a502 will check that the information of effective at least one mirror URL address in back shows to the user.
Certainly, in order further to improve user experience, can also test the effectively response speed of at least one mirror URL address, and show to the user according to the order of speed speed; Perhaps according to the demonstration quantity of the mirror URL address of setting, the information of the mirror URL address that speed is forward shows to the user.
After then the user clicks the mirror URL address of demonstration, just can see the web page contents of this mirror URL address correspondence.
Shown in Fig. 5 B, the method for second kind of accesses network resource of the embodiment of the invention comprises the following steps:
The corresponding relation of original URL address and mirror URL address is set up and preserved to step b500, server.
After the original URL address that step b501, server detect user capture can't connect, search the corresponding relation of preservation, determine the mirror URL address of the original URL address correspondence of user capture.
Step b502, server detect the validity of definite mirror URL address.
Step b503, server test be the connection speed of mirror URL address effectively.
Step b504, server show to the user by browser according to the size of the connection speed of mirror URL address.
Shown in Fig. 5 C, the method for the third accesses network resource of the embodiment of the invention comprises the following steps:
The corresponding relation of original URL address and mirror URL address is set up and preserved to step c500, server.
After the original URL address that step c501, client detect user capture can't connect, from server, search the corresponding relation of preservation, determine the mirror URL address of the original URL address correspondence of user capture.
Step c502, client detect the validity of definite mirror URL address.
Step c503, client are tested the connection speed of mirror URL address effectively.
Step c504, client show to the user by browser according to the size of the connection speed of mirror URL address.
In the present embodiment, the installation form of client includes but not limited to one or more in the following manner:
Form with plug-in unit is embedded in the webpage, points out user installation after the user opens webpage;
Be kept in the server, and online URL address of going up the demonstration correspondence, after the user clicks, download and install, perhaps directly install or the like by network.
Those skilled in the art should be understood that, each module in the above-mentioned embodiment of the invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the memory storage and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.Should be understood that the variation in these concrete enforcements is conspicuous for a person skilled in the art, do not break away from spiritual protection domain of the present invention.
From the foregoing description as can be seen: the embodiment of the invention is if the original uniform resource locator URL address of user input can't connect, then search the corresponding relation of original URL address and mirror URL address, determine at least one mirror URL address of the described original URL address correspondence that the user imports, described mirror URL address is the information identical URL address corresponding with described original URL address, the information of at least one definite described mirror URL address is shown to the user, thereby can provide the mirror image address of the URL address correspondence of deletion for the user, the serviced device deletion in the URL address that makes the user import, also can allow user's download or open this URL address corresponding file or webpage, improve user experience, satisfied user's demand.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.