Download control method and systemTechnical field
The present invention relates to browser data download technology field, relate in particular to a kind of download control method and system.
Background technology
As long as existing download tool exists download path and Download Server usually, promptly allow the download of file.Download tool on the special equipment even can decontrol the download of the file of certain website, in fail safe, there is certain problem like this, even the downloaded files type can arbitrarily be moved, and such as the file of types such as exe, bat, like this user profile and computer security has all been produced threat.
Summary of the invention
(1) technical problem that will solve
The technical problem to be solved in the present invention is: a kind of file type of may command user's download is provided, protects the work safety of amusement of user on special equipment, the download control method of the risk that the minimizing system is pre-stored in and system as far as possible.
(2) technical scheme
For addressing the above problem, the invention provides a kind of download control method, the method comprising the steps of:
S1. obtain the download path of file to be downloaded;
S2. judge by described download path whether the file to be downloaded type allows to download, if allow, then downloads described file to be downloaded,, then finish this time to download flow process if do not allow.
Wherein, in step S2,, finish this download stream Cheng Qian, point out described file to be downloaded not allow to download if do not allow.
The invention also discloses a kind of download control system, this system comprises: the path acquisition module is used to obtain the download path of file to be downloaded, and sends it to download module; Download module is used for judging by described download path whether the file to be downloaded type allows to download, if allow, then downloads described file to be downloaded, if do not allow, then finishes this time to download flow process.
Wherein, this system also comprises: reminding module, be used for when described download module judges that described download path and file to be downloaded type do not allow to download, and point out described file to be downloaded not allow to download.
(3) beneficial effect
Method and system of the present invention have been carried out strict control to type of download, have filtered out the file type that may produce security implication to the user, have also guaranteed the style unanimity and the system safety of special equipment.
Description of drawings
Fig. 1 is the download control method flow chart according to one embodiment of the present invention;
Fig. 2 is the download control system structured flowchart according to one embodiment of the present invention.
Embodiment
Download control method and system that the present invention proposes reach embodiment in conjunction with the accompanying drawings and are described in detail as follows.
As shown in Figure 1, the download control method according to one embodiment of the present invention comprises step:
S1. when the user clicks the file in download data on certain website on browser, obtain the download path of file to be downloaded.Employed all methods that are suitable for of obtaining download path are not given unnecessary details once more in the time of can adopting file in download in the prior art.For example, click and download, obtain the download path of ejection.
S2. judge by described download path whether the file to be downloaded type allows to download, if allow, then downloads described file to be downloaded,, then finish this time to download flow process if do not allow.
Download path refers to the server address of file to be downloaded, and promptly (Uniform/Universal Resource Locator, URL) address have the extension name of file to be downloaded to URL(uniform resource locator) in the URL address, extension name is the type of file.Allow the downloaded files type to decide on different user or distinct device type.
In step S2, if do not allow, finish this download stream Cheng Qian, the prompting file to be downloaded does not allow to download.
As shown in Figure 2, the download control system according to one embodiment of the present invention comprises:
The path acquisition module is used to obtain the download path of file to be downloaded, and sends it to download module;
Download module is used for judging by described download path whether the file to be downloaded type allows to download, if allow, then ejects the download management interface, downloads described file to be downloaded according to normal flow, if do not allow, then finishes this time to download flow process.
This system also comprises:
Reminding module is used for when described download module judges that described download path and file to be downloaded type do not allow to download, and points out described file to be downloaded not allow to download.
Above execution mode only is used to illustrate the present invention, and is not limitation of the present invention.Although the present invention is had been described in detail with reference to embodiment, those of ordinary skill in the art is to be understood that, technical scheme of the present invention is carried out various combinations, revises or is equal to replacement, the spirit and scope that do not break away from technical solution of the present invention, it all should be encompassed in the middle of the claim scope of the present invention.