[go: up one dir, main page]

CN105991746A - File downloading method and file downloading device - Google Patents

File downloading method and file downloading device Download PDF

Info

Publication number
CN105991746A
CN105991746A CN201510095978.5A CN201510095978A CN105991746A CN 105991746 A CN105991746 A CN 105991746A CN 201510095978 A CN201510095978 A CN 201510095978A CN 105991746 A CN105991746 A CN 105991746A
Authority
CN
China
Prior art keywords
download address
file
safe
downloaded
download
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
CN201510095978.5A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510095978.5A priority Critical patent/CN105991746A/en
Publication of CN105991746A publication Critical patent/CN105991746A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a file downloading method and a file downloading device, which belong to the field of internet communication. The file downloading method comprises the steps of: acquiring a download address corresponding to a file to be downloaded; sending the download address to a security server so that the security server acquires a security level of the file corresponding to the download address; receiving the security level sent by the security server, and acquiring the secure download address corresponding to the file to be downloaded according to the security level; and downloading the file to be downloaded according to the secure download address. The file downloading device comprises a first acquisition module, a sending module, a second acquisition module and a downloading module. The file downloading method and th file downloading device can save downloading traffic of a terminal.

Description

A kind of method and device downloading file
Technical field
The present invention relates to field of Internet communication, particularly to a kind of method and device downloading file.
Background technology
At present, market occurring in that the resources such as substantial amounts of software, video or books, technical staff is soft by these The resources such as part, video or books are stored in Resource Server in the form of a file.When user needs to use certain During resource, user can download the file that this resource is corresponding from Resource Server.
Currently, prior art provides a kind of method downloading file, including: terminal sends download request and disappears Breath, to Resource Server, carries a download address of file to be downloaded in this downloading request message.Resource Server receives this downloading request message, obtains this download ground according to the download address in this downloading request message The file that location is corresponding, is sent to terminal by the file of acquisition.Terminal receives the file that Resource Server sends. File owing to downloading there may be the potential safety hazard such as virus or malicious plugins, and therefore terminal is by local peace This document is detected by full application, if detecting, this document exists potential safety hazard, then deleted by this document, Obtain another download address of file to be downloaded the most again, download file to be downloaded according to the method described above, Until downloading to safe file.
During realizing the present invention, inventor finds that prior art at least there is problems in that
If the file downloaded exists potential safety hazard, then need to delete the file downloaded, then re-download, Cause the downloading flow wasting terminal.
Summary of the invention
In order to save the downloading flow of terminal, the invention provides a kind of method and device downloading file.Institute State technical scheme as follows:
A kind of method downloading file, described method includes:
Obtain the download address that file to be downloaded is corresponding;
Send described download address to security server, make described security server obtain described download address pair The safe class of the file answered;
Receive the described safe class that described security server sends, treat according to the acquisition of described safe class Safe download address corresponding to file downloaded;
Described file to be downloaded is downloaded according to described safe download address.
A kind of method downloading file, described method includes:
Receive the download address that file to be downloaded that terminal sends is corresponding;
According to described download address, obtain the safe class of file corresponding to described download address;
Send described safe class to described terminal, make described terminal treat according to the acquisition of described safe class Safe download address corresponding to file downloaded and download described to be downloaded according to described safe download address File.
A kind of device downloading file, described device includes:
First acquisition module, for obtaining the download address that file to be downloaded is corresponding;
Sending module, is used for sending described download address to security server, makes described security server obtain The safe class of the file that described download address is corresponding;
Second acquisition module, for receiving the described safe class that described security server sends, according to described Safe class obtains the safe download address that described file to be downloaded is corresponding;
Download module, for downloading described file to be downloaded according to described safe download address.
A kind of device downloading file, described device includes:
Receiver module, for receiving the download address that file to be downloaded that terminal sends is corresponding;
First acquisition module, for according to described download address, obtains file corresponding to described download address Safe class;
Sending module, for sending described safe class to described terminal, makes described terminal according to described safety Grade obtains safe download address corresponding to described file to be downloaded and according under described safe download address Carry described file to be downloaded.
In embodiments of the present invention, the download address that file to be downloaded is corresponding is obtained;Send this download address To security server, security server is made to obtain the safe class of file corresponding to this download address;Receive peace The safe class that full server sends, obtains safety corresponding to file to be downloaded according to this safe class and downloads Address;File to be downloaded is downloaded according to this safe download address.Owing to obtaining this from security server The safe class of the file that download address is corresponding, and obtain safe download address, root according to this safe class Downloading file to be downloaded according to safe download address, there is not potential safety hazard, is not required in the file so downloaded The file of download to be deleted also re-downloads, thus saves the downloading flow of terminal.
Accompanying drawing explanation
Fig. 1 is a kind of method flow diagram downloading file that the embodiment of the present invention 1 provides;
Fig. 2-1 is a kind of method flow diagram downloading file that the embodiment of the present invention 2 provides;
Fig. 2-2 is a kind of schematic diagram downloading the page that the embodiment of the present invention 2 provides;
Fig. 3 is a kind of method flow diagram downloading file that the embodiment of the present invention 3 provides;
Fig. 4 is a kind of apparatus structure schematic diagram downloading file that the embodiment of the present invention 4 provides;
Fig. 5 is a kind of apparatus structure schematic diagram downloading file that the embodiment of the present invention 5 provides;
Fig. 6 is the structural representation of a kind of terminal that the embodiment of the present invention 6 provides;
Fig. 7 is the structural representation of a kind of server that the embodiment of the present invention 7 provides.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to the present invention Embodiment is described in further detail.
Embodiment 1
See Fig. 1, embodiments provide a kind of method downloading file, including:
Step 101: obtain the download address that file to be downloaded is corresponding;
Step 102: send this download address to security server, makes security server obtain download address corresponding The safe class of file;
Step 103: receive the safe class that security server sends, obtains to be downloaded according to this safe class The safe download address that file is corresponding;
Step 104: download file to be downloaded according to this safe download address.
Preferably, obtain, according to this safe class, the safe download address that file to be downloaded is corresponding, including:
If this safe class is higher than predetermined level, then download address is defined as the peace that file to be downloaded is corresponding Full download address;
If this safe class is less than or equal to predetermined level, then from the download page that file to be downloaded is corresponding Obtain the fileinfo of file to be downloaded, according to fileinfo, obtain to be downloaded from security server The safe download address that file is corresponding.
In embodiments of the present invention, the download address that file to be downloaded is corresponding is obtained;Send this download address To security server, security server is made to obtain the safe class of file corresponding to this download address;Receive peace The safe class that full server sends, obtains safety corresponding to file to be downloaded according to this safe class and downloads Address;File to be downloaded is downloaded according to this safe download address.Owing to obtaining this from security server The safe class of the file that download address is corresponding, and obtain safe download address, root according to this safe class Downloading file to be downloaded according to safe download address, there is not potential safety hazard, is not required in the file so downloaded The file of download to be deleted also re-downloads, thus saves the downloading flow of terminal.
Embodiment 2
See Fig. 2-1, embodiments provide a kind of method downloading file, including:
Step 201: terminal obtains the download address that file to be downloaded is corresponding;
Wherein, when user needs to download file, first user browses the download page that file is corresponding, under this Carry fileinfo and the download address at least including this document in the page.The fileinfo of this document can include The brief introduction of this document, issuing time and version etc..If under determining after the fileinfo that user reads this document Carry this document, then user clicks on the download address of this document to terminal triggering download command.When terminal detects During the download command triggered to user, this document is defined as file to be downloaded, and from this download page The download address that middle acquisition file to be downloaded is corresponding.
Further, the fileinfo of this document can also include the file name of this document, file size and File signature etc..Wherein, file signature is the digital signature to file, is used for identifying this document, file label Name can be MD5 (Message-Digest Algorithm 5, the message digest algorithm 5) value etc. of file.
Such as, the download page of the file 1 as shown in Fig. 2-2, this download page includes the literary composition of file 1 Part information F1 and download address URL1, the fileinfo F1 of file 1 include the brief introduction intro1 of file 1, Issuing time " 2014 " and version 1.0.When terminal detects the download command that user triggers, by file 1 is defined as file to be downloaded, obtains file 1 to be downloaded from downloading as shown in Fig. 2-2 corresponding the page Download address URL1.
Wherein, after terminal gets the download address of file to be downloaded by the operation of above-mentioned steps 201, The operation of 202-205 obtains the safe class of file corresponding to this download address as follows.
Step 202: terminal sends safety detection asks message to security server, and this safety detection asks message Carry this download address;
Such as, terminal sends safety detection asks message to security server, and this safety detection is asked in message Carry download address URL1.
Step 203: security server receives the safety detection request message that terminal sends, according to this safety detection The download address that request message is carried, obtains the safe class of file corresponding to this download address;
Wherein, safe class can represent by the positive integers such as 1,2 or 3, numeral the biggest expression safe class The highest, or numeral the least expression safe class is the highest.Safe class can also use " dangerous ", " unknown " Or " safety " etc. represents, the safe class of " dangerous " is less than the safe class of " unknown ", " unknown " Safe class less than the safe class of " safety ".
This step is specifically, security server receives the safety detection request message that terminal sends.According to this peace The download address carried in full solicitation message, checks in download address and the corresponding relation of safe class and is This download address of no existence.If existing, then according to this download address, right from download address and safe class The middle safe class obtaining correspondence should be related to.If not existing, then download this download address according to this download address Corresponding file, carries out safety detection to the file downloaded, and obtains the safe class of the file downloaded.
Wherein, the operation that file carries out the safe class that safety detection obtains file is prior art, at this Repeat no more.
Wherein, when security server obtains the safe class of file corresponding to a download address for the first time, peace Full server carries out safety detection and obtains the safe class of this document this document, then by this download address with The safe class obtained is stored in the corresponding relation of download address and safe class, again obtains so afterwards During the safe class of the file that this download address is corresponding, can be directly corresponding with safe class from download address Relation obtains the safe class that this download address is corresponding.
Further, in this step, when the corresponding relation of download address and safe class does not include under this Set address, and security server get file corresponding to this download address safe class after, safety clothes The safe class of this download address Yu acquisition is also stored in the corresponding relation of download address and safe class by business device In.
Such as, security server receives the safety detection request message that terminal sends.Please according to this safety detection Seek download address URL1 carried in message, check that download address as shown in table 1 is corresponding with safe class Whether relation exists this download address.And set address URL1 in the presence of checking out in table 1, then according to download Address URL 1, from download address as shown in table 1 with the corresponding relation of safe class obtains corresponding safety Grade is " dangerous ".
Table 1
Download address Safe class
URL1 Dangerous
URL2 Safety
…… ……
Step 204: security server sends safety detection response message, this safety detection response message to terminal In carry the safe class of acquisition;
Such as, security server sends safety detection response message to terminal, in this safety detection response message Carry the safe class " dangerous " of acquisition.
Step 205: terminal receives the safety detection response message that security server sends, it is judged that this safety detection The safe class that response message carries whether higher than predetermined level, the most then performs step 206, if it is not, then Perform step 207;
Wherein, predetermined level is generally safe class in an intermediate position in the sequence of safe class.Example As, for the safe class sequence represented by numeral 1,2 and 3, then predetermined level can be 2;For with The safe class sequence that family " dangerous ", " unknown " and " safety " represents, then predetermined level can be " not Know ".
This step is specifically, terminal receives the safety detection response message that security server sends, by this safety The safe class that detection response message carries compares with predetermined level, if this safe class is higher than presetting Level, then perform step 206.If this safe class is less than or equal to this predetermined level, then perform step 207.
Wherein, safe class is higher than predetermined level, then it is assumed that file corresponding to this download address is secure file. If safe class is less than or equal to predetermined level, then it is assumed that file corresponding to this download address exists the highest peace Full hidden danger.
For example, it is assumed that predetermined level is " unknown ".Terminal receives the safety detection response that security server sends Message, the safe class " dangerous " carried by this safety detection response message is entered with predetermined level " unknown " Row compares, and compares this safe class " dangerous " less than this predetermined level " unknown ", then execution step 207.
Further, after terminal receives the safe class that security server sends, also by this safe class Display is in the download page that file to be downloaded is corresponding, to point out the download address in this download page of user Whether corresponding file exists potential safety hazard.
Step 206: this download address is defined as the safe download address that file to be downloaded is corresponding, root by terminal File to be downloaded, end operation is downloaded according to this safe download address.
Wherein, this download address is defined as the safe download address that file to be downloaded is corresponding by terminal.Terminal Transmission downloading request message, to Resource Server, carries this safe download address in this downloading request message.Money Source server receives the downloading request message that terminal sends, according under the safety carried in this downloading request message Set address, from the file that download address is corresponding with obtaining this safe download address the corresponding relation of file, and Transmission download response message, to terminal, carries the file of acquisition in this download response message.Terminal receives resource The download response message that server sends, the file carried in this download response message is file to be downloaded.
Such as, download address URL1 is defined as the safe download address of file 1 correspondence to be downloaded by terminal. Terminal transmission downloading request message, to Resource Server, carries this safe download address in this downloading request message URL1.Resource Server receives the downloading request message that terminal sends, and carries according in this downloading request message Safe download address URL1, from the corresponding relation of download address as shown in table 2 and file, obtain this peace The file File1 that full download address URL1 is corresponding, and send download response message to terminal, this download responds Message is carried the file File1 of acquisition.Terminal receives the download response message that Resource Server sends, under this Carry the file File1 carried in response message and be file to be downloaded.
Table 2
Download address File
URL1 File1
…… ……
Wherein, the safe class of file corresponding to this download address is gone out less than or equal to presetting when terminal judges During level, the operation of 207-209 obtains the safe download address that file to be downloaded is corresponding as follows.
Step 207: terminal obtains the file of file to be downloaded from corresponding the downloading of file to be downloaded the page Information, sends this document information to security server;
Such as, terminal obtains to be downloaded from the download page of file 1 correspondence to be downloaded as shown in Fig. 2-2 The fileinfo F1 of file 1, send this document information F1 to security server.
Step 208: security server receives the fileinfo that terminal sends, and treats down according to this document acquisition of information Safe download address corresponding to file carried, and send this safe download address to terminal;
Wherein, receive the download address of the file that terminal sends at security server, and get this article During safe class corresponding to part, if this safe class is higher than predetermined level, it is determined that this download address is safety Download address.Now security server obtains the fileinfo of this document from terminal, by this download address and The file information storage of this document is in the safe download address corresponding relation with fileinfo.
This step is specifically, security server receives the fileinfo that terminal sends, according to this document information, Check in safe download address system corresponding with fileinfo and whether there is this document information.If existing, then root According to this document information, download with the corresponding relation of fileinfo obtains corresponding safety from safe download address Address, sends the download address obtained to terminal.If not existing, then according to this document information, from network Each download address that search this document information is corresponding, obtains the literary composition of correspondence from each download address of search The download address of acquisition, higher than the download address of predetermined level, is defined as literary composition to be downloaded by the safe class of part The safe download address that part is corresponding, is sent to terminal by the safe download address obtained.
Wherein it is possible to come in the following way to obtain safe download address from each download address of search, Particularly as follows:
Obtain arbitrary download address from each download address of search, this download address is downloaded ground as first Location.The file that the first download address is corresponding is downloaded according to the first download address.Corresponding to the first download address File carries out safety detection, obtains the safe class of file corresponding to the first download address.The safety that will obtain Grade compares with predetermined level, if this safe class is higher than predetermined level, then by true for the first download address It is set to the safe download address of file to be downloaded, otherwise determines that the first download address is not safe download address. For other each download address of search, can come in the manner described above respectively with the first download address Determine whether other each download address are the safe download address that file to be downloaded is corresponding.
Wherein, the safe download address obtained by this step can be one or more, and security server will The one or more safe download address obtained is sent to terminal, so that user is from the one or more safety Set address selects a safe download address, in order to the safe download address that terminal selects according to user is downloaded File to be downloaded.
Such as, security server receives the fileinfo F1 that terminal sends, and according to this document information F1, checks Whether safe download address as shown in table 3 system corresponding with fileinfo exists this document information F1.And Check out and table 3 exists this document information F1, then according to this document information F1, from safety as shown in table 3 Download address with the corresponding relation of fileinfo obtains corresponding safe download address URL2, send obtain Download address URL2 is to terminal.
Table 3
Safe download address Fileinfo
URL2 F1
…… ……
Further, in embodiments of the present invention, except making security service according to the mode of step 207 and 208 Device gets beyond the fileinfo of file to be downloaded, it is also possible to make security server in the following manner Get the fileinfo of file to be downloaded, particularly as follows:
Terminal obtains the page link downloading the page that file to be downloaded is corresponding, is sent to by this page link Security server.Security server receives the page link that terminal sends, and pulls according to this page link and treats down The download page corresponding to file carried, obtains the fileinfo of file to be downloaded from downloading of pulling the page.
Further, after security server gets the safe download address that file to be downloaded is corresponding, also Can be according to this safe download address, from network, search includes the download page of this safe download address, obtains Take the page link downloading the page searched, this safe download address and this page link be sent to terminal, So that terminal obtains, according to this page link, the download page that this page link is corresponding, in this download page at least Including this safe download address and the fileinfo of file to be downloaded, in order to user is from this download page Browse the fileinfo of file to be downloaded.
Step 209: terminal receives the safe download address that security server sends, according to this safe download address Download file to be downloaded.
Specifically, terminal receives the safe download address that security server sends, and downloads ground by the safety received Location is shown to user, makes user therefrom select a safe download address.The safety that terminal selects according to user Download address, downloads file to be downloaded from Resource Server.
For example, it is assumed that the safe download address that terminal sends is URL2 and URL3.Terminal receives security service Safe download address URL2 of device transmission and URL3, by safe download address URL2 received and URL3 It is shown to user, makes user therefrom select a safe download address.Assume that the safety that user selects downloads ground Location is URL2.Safe download address URL2 that terminal selects according to user, downloads from Resource Server and treats The file 1 downloaded.
In embodiments of the present invention, the download address that file to be downloaded is corresponding is obtained;Send this download address To security server, security server is made to obtain the safe class of file corresponding to this download address;Receive peace The safe class that full server sends, obtains safety corresponding to file to be downloaded according to this safe class and downloads Address;File to be downloaded is downloaded according to this safe download address.Owing to obtaining this from security server The safe class of the file that download address is corresponding, and obtain safe download address, root according to this safe class Downloading file to be downloaded according to safe download address, there is not potential safety hazard, is not required in the file so downloaded The file of download to be deleted also re-downloads, thus saves the downloading flow of terminal.
Embodiment 3
See Fig. 3, embodiments provide a kind of method downloading file, including:
Step 301: receive the download address that file to be downloaded that terminal sends is corresponding;
Step 302: according to this download address, obtain the safe class of file corresponding to this download address;
Step 303: send this safe class to terminal, makes terminal obtain literary composition to be downloaded according to this safe class Safe download address that part is corresponding and download file to be downloaded according to this safe download address.
Preferably, according to this download address, obtain the safe class of file corresponding to this download address, including:
According to this download address, check whether download address exists this download in the corresponding relation of safe class Address;
If existing, then corresponding with obtaining this download address the corresponding relation of safe class from download address peace Congruence level;
If not existing, then download, according to this download address, the file that this download address is corresponding, to the file downloaded Carry out safety detection, obtain the safe class of the file downloaded.
Further, after terminal sends this safe class, also include:
Receive the fileinfo that terminal sends, root when determining this safe class less than or equal to predetermined level According to the safe download address that the file that this document acquisition of information is to be downloaded is corresponding, send this safe download address to Terminal.
Preferably, according to the safe download address that the file that this document acquisition of information is to be downloaded is corresponding, including:
According to this document information, check whether safe download address exists this in the corresponding relation of fileinfo Fileinfo;
If existing, corresponding with acquisition this document information the corresponding relation of fileinfo from safe download address Safe download address;
If not existing, then according to this document information, from network, search for each download that this document information is corresponding Address, the safe class of the file obtaining correspondence from each download address is higher than the download address of predetermined level, The download address of acquisition is defined as the safe download address that file to be downloaded is corresponding.
In embodiments of the present invention, the download address that file to be downloaded that terminal sends is corresponding is received;According to This download address, obtains the safe class of file corresponding to this download address;This safe class is sent to terminal, Terminal is made to obtain safe download address corresponding to file to be downloaded and according to this safety according to this safe class Download address downloads file to be downloaded.Owing to security server obtains file corresponding to this download address Safe class, and this safe class is sent to terminal, make terminal obtain under safety according to this safe class Set address, and make terminal download file to be downloaded, the file so downloaded according to safe download address There is not potential safety hazard, it is not necessary to delete the file downloaded and re-download, thus saving the download of terminal Flow.
Embodiment 4
See Fig. 4, embodiments provide a kind of device downloading file, including:
First acquisition module 401, for obtaining the download address that file to be downloaded is corresponding;
Sending module 402, is used for sending download address to security server, makes security server obtain and download ground The safe class of the file that location is corresponding;
Second acquisition module 403, for receiving the safe class that security server sends, obtains according to safe class Take the safe download address that file to be downloaded is corresponding;
Download module 404, for downloading file to be downloaded according to safe download address.
Wherein, the second acquisition module 403 includes:
Determine unit, if for safe class higher than predetermined level, then download address being defined as to be downloaded The safe download address that file is corresponding;
Acquiring unit is if for safe class less than or equal to predetermined level, then corresponding from file to be downloaded Download in the page fileinfo obtaining file to be downloaded, according to fileinfo, from security server Obtain the safe download address that file to be downloaded is corresponding.
In embodiments of the present invention, the download address that file to be downloaded is corresponding is obtained;Send this download address To security server, security server is made to obtain the safe class of file corresponding to this download address;Receive peace The safe class that full server sends, obtains safety corresponding to file to be downloaded according to this safe class and downloads Address;File to be downloaded is downloaded according to this safe download address.Owing to obtaining this from security server The safe class of the file that download address is corresponding, and obtain safe download address, root according to this safe class Downloading file to be downloaded according to safe download address, there is not potential safety hazard, is not required in the file so downloaded The file of download to be deleted also re-downloads, thus saves the downloading flow of terminal.
Embodiment 5
See Fig. 5, embodiments provide a kind of device downloading file, including:
Receiver module 501, for receiving the download address that file to be downloaded that terminal sends is corresponding;
First acquisition module 502, for according to this download address, obtains the peace of file corresponding to this download address Congruence level;
Sending module 503, for sending this safe class to terminal, makes terminal obtain according to this safe class and treats Safe download address corresponding to file downloaded and download file to be downloaded according to safe download address.
Wherein, the first acquisition module 502 includes:
First checks unit, for according to this download address, checks that download address is corresponding with safe class and closes Whether system exists this download address;
First acquiring unit, if for existing, then obtain from the corresponding relation of download address and safe class The safe class that this download address is corresponding;
Detector unit, if for not existing, then downloading, according to this download address, the file that this download address is corresponding, The file downloaded is carried out safety detection, obtains the safe class of the file downloaded.
Further, this device also includes:
Second acquisition module, is used for receiving terminal and sends out when safe class is less than or equal to predetermined level determining The fileinfo sent, according to the safe download address that the file that this document acquisition of information is to be downloaded is corresponding, sends Safe download address is to terminal.
Wherein, the second acquisition module includes:
Second checks unit, for according to this document information, checks the right of safe download address and fileinfo This document information whether is there is in should being related to;
Second acquisition unit, if for existing, obtain from safe download address with the corresponding relation of fileinfo Take the safe download address that this document information is corresponding;
3rd acquiring unit, if for not existing, then according to this document information, search file letter from network Each download address that breath is corresponding, obtains the safe class of file of correspondence higher than pre-from each download address If the download address of grade, the download address of acquisition is defined as safety corresponding to file to be downloaded and downloads ground Location.
In embodiments of the present invention, the download address that file to be downloaded that terminal sends is corresponding is received;According to This download address, obtains the safe class of file corresponding to this download address;This safe class is sent to terminal, Terminal is made to obtain safe download address corresponding to file to be downloaded and according to this safety according to this safe class Download address downloads file to be downloaded.Owing to security server obtains file corresponding to this download address Safe class, and this safe class is sent to terminal, make terminal obtain under safety according to this safe class Set address, and make terminal download file to be downloaded, the file so downloaded according to safe download address There is not potential safety hazard, it is not necessary to delete the file downloaded and re-download, thus saving the download of terminal Flow.
Example 6 in real time
Refer to Fig. 6, it illustrates the terminal structure signal with Touch sensitive surface involved by the embodiment of the present invention Figure, this terminal may be used for the method downloading file implementing to provide in above-described embodiment.Specifically:
Terminal 900 can include RF (Radio Frequency, radio frequency) circuit 110, include one or The memorizer 120 of more than one computer-readable recording medium, input block 130, display unit 140, biography Sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include one Individual or more than one process the parts such as the processor 180 of core and power supply 190.Those skilled in the art It is appreciated that the terminal structure shown in Fig. 6 is not intended that the restriction to terminal, can include than diagram more Many or less parts, or combine some parts, or different parts are arranged.Wherein:
RF circuit 110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, After the downlink information of base station is received, transfer to one or more than one processor 180 processes;It addition, will Relate to up data and be sent to base station.Generally, RF circuit 110 include but not limited to antenna, at least one Amplifier, tuner, one or more agitator, subscriber identity module (SIM) card, transceiver, coupling Clutch, LNA (Low Noise Amplifier, low-noise amplifier), duplexer etc..Additionally, RF circuit 110 can also be communicated with network and other equipment by radio communication.Described radio communication can use arbitrary logical Beacon is accurate or agreement, include but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc..
Memorizer 120 can be used for storing software program and module, and processor 180 is stored in by operation The software program of reservoir 120 and module, thus perform the application of various function and data process.Memorizer 120 can mainly include store program area and storage data field, wherein, storage program area can store operating system, Application program (such as sound-playing function, image player function etc.) etc. needed at least one function;Deposit Storage data field can store the data (such as voice data, phone directory etc.) that the use according to terminal 900 is created Deng.Additionally, memorizer 120 can include high-speed random access memory, it is also possible to include non-volatile depositing Reservoir, for example, at least one disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memorizer 120 can also include Memory Controller, to provide processor 180 and input block The access of 130 pairs of memorizeies 120.
Input block 130 can be used for receive input numeral or character information, and produce with user setup with And function controls relevant keyboard, mouse, action bars, optics or the input of trace ball signal.Specifically, Input block 130 can include Touch sensitive surface 131 and other input equipments 132.Touch sensitive surface 131, also referred to as For touching display screen or Trackpad, can collect user thereon or neighbouring touch operation (such as user makes With any applicable object such as finger, stylus or adnexa on Touch sensitive surface 131 or attached at Touch sensitive surface 131 Near operation), and drive corresponding attachment means according to formula set in advance.Optionally, Touch sensitive surface 131 Touch detecting apparatus and two parts of touch controller can be included.Wherein, touch detecting apparatus detects user's Touch orientation, and detect the signal that touch operation brings, transmit a signal to touch controller;Touch control Device receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 180, And order that processor 180 sends can be received and performed.Furthermore, it is possible to use resistance-type, condenser type, The polytype such as infrared ray and surface acoustic wave realizes Touch sensitive surface 131.Except Touch sensitive surface 131, input is single Unit 130 can also include other input equipments 132.Specifically, other input equipments 132 can include but not It is limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, behaviour Make one or more in bar etc..
Display unit 140 can be used for showing the information inputted by user or the information being supplied to user and terminal The various graphical user interface of 900, these graphical user interface can by figure, text, icon, video and Its combination in any is constituted.Display unit 140 can include display floater 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) etc. form configure display floater 141.Further, Touch sensitive surface 131 can cover Display floater 141, when Touch sensitive surface 131 detects thereon or after neighbouring touch operation, sends process to Device 180 is to determine the type of touch event, with preprocessor 180 according to the type of touch event at display surface Corresponding visual output is provided on plate 141.Although in figure 6, Touch sensitive surface 131 and display floater 141 It is to realize input and input function as two independent parts, but in some embodiments it is possible to will Touch sensitive surface 131 is integrated with display floater 141 and realizes input and output function.
Terminal 900 may also include at least one sensor 150, such as optical sensor, motion sensor and its His sensor.Specifically, optical sensor can include ambient light sensor and proximity transducer, wherein, environment Optical sensor can regulate the brightness of display floater 141 according to the light and shade of ambient light, and proximity transducer can be When terminal 900 moves in one's ear, close display floater 141 and/or backlight.As the one of motion sensor, Gravity accelerometer can detect the size of (generally three axles) acceleration in all directions, can time static Detect size and the direction of gravity, can be used for identifying application (such as horizontal/vertical screen switching, the phase of mobile phone attitude Close game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;As for Gyroscope that terminal 900 can also configure, barometer, drimeter, thermometer, infrared ray sensor etc. other Sensor, does not repeats them here.
Voicefrequency circuit 160, speaker 161, microphone 162 can provide the audio frequency between user and terminal 900 Interface.The signal of telecommunication after the voice data conversion that voicefrequency circuit 160 can will receive, is transferred to speaker 161, Acoustical signal output is converted to by speaker 161;On the other hand, the acoustical signal that microphone 162 will be collected Be converted to the signal of telecommunication, voicefrequency circuit 160 after receiving, be converted to voice data, then by voice data output After reason device 180 processes, through RF circuit 110 to be sent to such as another terminal, or voice data is exported To memorizer 120 to process further.Voicefrequency circuit 160 is also possible that earphone jack, outside providing If earphone and the communication of terminal 900.
WiFi belongs to short range wireless transmission technology, and terminal 900 can help user by WiFi module 170 Sending and receiving e-mail, browse webpage and access streaming video etc., it has provided the user wireless broadband interconnection Net accesses.Although Fig. 6 shows WiFi module 170, but it is understood that, it is also not belonging to terminal 900 must be configured into, can omit completely as required in not changing the scope of essence of invention.
Processor 180 is the control centre of terminal 900, utilizes various interface and the whole mobile phone of connection Various piece, by running or perform to be stored in the software program in memorizer 120 and/or module, and adjusts By the data being stored in memorizer 120, perform the various functions of terminal 900 and process data, thus right Mobile phone carries out integral monitoring.Optionally, processor 180 can include one or more process core;Preferably, Processor 180 can integrated application processor and modem processor, wherein, application processor mainly processes Operating system, user interface and application program etc., modem processor mainly processes radio communication.Permissible Being understood by, above-mentioned modem processor can not also be integrated in processor 180.
Terminal 900 also includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can With logically contiguous with processor 180 by power-supply management system, thus realize management by power-supply management system The functions such as charging, electric discharge and power managed.Power supply 190 can also include one or more directly Stream or alternating current power supply, recharging system, power failure detection circuit, power supply changeover device or inverter, electricity The random component such as source positioning indicator.
Although not shown, terminal 900 can also include photographic head, bluetooth module etc., does not repeats them here. The most in the present embodiment, the display unit of terminal 900 is touch-screen display, and terminal 900 also includes Memorizer, and one or more than one program, one of them or more than one program is stored in deposits In reservoir, and it is configured to be performed to state one or more than one program by one or more than one processor Comprise the instruction for carrying out following operation:
Obtain the download address that file to be downloaded is corresponding;
Send this download address to security server, make security server obtain file corresponding to download address Safe class;
Receive the safe class that security server sends, obtain file to be downloaded according to this safe class corresponding Safe download address;
File to be downloaded is downloaded according to this safe download address.
Preferably, obtain, according to this safe class, the safe download address that file to be downloaded is corresponding, including:
If this safe class is higher than predetermined level, then download address is defined as the peace that file to be downloaded is corresponding Full download address;
If this safe class is less than or equal to predetermined level, then from the download page that file to be downloaded is corresponding Obtain the fileinfo of file to be downloaded, according to fileinfo, obtain to be downloaded from security server The safe download address that file is corresponding.
In embodiments of the present invention, the download address that file to be downloaded is corresponding is obtained;Send this download address To security server, security server is made to obtain the safe class of file corresponding to this download address;Receive peace The safe class that full server sends, obtains safety corresponding to file to be downloaded according to this safe class and downloads Address;File to be downloaded is downloaded according to this safe download address.Owing to obtaining this from security server The safe class of the file that download address is corresponding, and obtain safe download address, root according to this safe class Downloading file to be downloaded according to safe download address, there is not potential safety hazard, is not required in the file so downloaded The file of download to be deleted also re-downloads, thus saves the downloading flow of terminal.
Embodiment 7
Fig. 7 is the structural representation of the server that the embodiment of the present invention provides.This server 1900 can be because of configuration Or performance is different and produce bigger difference, one or more central processing units (central can be included Processing units, CPU) 1922 (such as, one or more processors) and memorizeies 1932, The storage medium 1930 of one or more storage application programs 1942 or data 1944 (such as one or More than one mass memory unit).Wherein, memorizer 1932 and storage medium 1930 can be of short duration storages Or persistently store.The program being stored in storage medium 1930 can include one or more modules (diagram Do not mark), each module can include a series of command operatings in server.Further, central authorities Processor 1922 could be arranged to communicate with storage medium 1930, performs storage medium on server 1900 A series of command operatings in 1930.
Server 1900 can also include one or more power supplys 1926, one or more wired or Radio network interface 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or, one or more operating systems 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Server 1900 can include memorizer, and one or more than one program, one of them Or more than one program is stored in memorizer, and it is configured to be held by one or more than one processor Row one or more than one program comprise the instruction for carrying out following operation:
Receive the download address that file to be downloaded that terminal sends is corresponding;
According to this download address, obtain the safe class of file corresponding to this download address;
Send this safe class to terminal, make terminal obtain file to be downloaded according to this safe class corresponding Safe download address and download file to be downloaded according to this safe download address.
Preferably, according to this download address, obtain the safe class of file corresponding to this download address, including:
According to this download address, check whether download address exists this download in the corresponding relation of safe class Address;
If existing, then corresponding with obtaining this download address the corresponding relation of safe class from download address peace Congruence level;
If not existing, then download, according to this download address, the file that this download address is corresponding, to the file downloaded Carry out safety detection, obtain the safe class of the file downloaded.
Further, after terminal sends this safe class, also include:
Receive the fileinfo that terminal sends, root when determining this safe class less than or equal to predetermined level According to the safe download address that the file that this document acquisition of information is to be downloaded is corresponding, send this safe download address to Terminal.
Preferably, according to the safe download address that the file that this document acquisition of information is to be downloaded is corresponding, including:
According to this document information, check whether safe download address exists this in the corresponding relation of fileinfo Fileinfo;
If existing, corresponding with acquisition this document information the corresponding relation of fileinfo from safe download address Safe download address;
If not existing, then according to this document information, from network, search for each download that this document information is corresponding Address, the safe class of the file obtaining correspondence from each download address is higher than the download address of predetermined level, The download address of acquisition is defined as the safe download address that file to be downloaded is corresponding.
In embodiments of the present invention, the download address that file to be downloaded that terminal sends is corresponding is received;According to This download address, obtains the safe class of file corresponding to this download address;This safe class is sent to terminal, Terminal is made to obtain safe download address corresponding to file to be downloaded and according to this safety according to this safe class Download address downloads file to be downloaded.Owing to security server obtains file corresponding to this download address Safe class, and this safe class is sent to terminal, make terminal obtain under safety according to this safe class Set address, and make terminal download file to be downloaded, the file so downloaded according to safe download address There is not potential safety hazard, it is not necessary to delete the file downloaded and re-download, thus saving the download of terminal Flow.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can be passed through Hardware completes, it is also possible to instructing relevant hardware by program and complete, described program can be stored in In a kind of computer-readable recording medium, storage medium mentioned above can be read only memory, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all the present invention's Within spirit and principle, any modification, equivalent substitution and improvement etc. made, should be included in the present invention's Within protection domain.

Claims (12)

1. the method downloading file, it is characterised in that described method includes:
Obtain the download address that file to be downloaded is corresponding;
Send described download address to security server, make described security server obtain described download address pair The safe class of the file answered;
Receive the described safe class that described security server sends, treat according to the acquisition of described safe class Safe download address corresponding to file downloaded;
Described file to be downloaded is downloaded according to described safe download address.
2. the method for claim 1, it is characterised in that described according to described safe class obtain institute State the safe download address that file to be downloaded is corresponding, including:
If described safe class is higher than predetermined level, then described download address is defined as described literary composition to be downloaded The safe download address that part is corresponding;
If described safe class is less than or equal to described predetermined level, then corresponding from described file to be downloaded Download the fileinfo obtaining described file to be downloaded in the page, according to described fileinfo, from described peace Full server obtains the safe download address that described file to be downloaded is corresponding.
3. the method downloading file, it is characterised in that described method includes:
Receive the download address that file to be downloaded that terminal sends is corresponding;
According to described download address, obtain the safe class of file corresponding to described download address;
Send described safe class to described terminal, make described terminal treat according to the acquisition of described safe class Safe download address corresponding to file downloaded and download described to be downloaded according to described safe download address File.
4. method as claimed in claim 3, it is characterised in that described according to described download address, obtains The safe class of the file that described download address is corresponding, including:
According to described download address, check described in whether the corresponding relation of download address and safe class exists Download address;
If existing, then from the corresponding relation of described download address and safe class, obtain described download address pair The safe class answered;
If not existing, then download, according to described download address, the file that described download address is corresponding, under described The file carried carries out safety detection, obtains the safe class of the file of described download.
5. method as claimed in claim 3, it is characterised in that described to the described terminal described safety of transmission After grade, also include:
Receive the file letter that described terminal sends when determining described safe class less than or equal to predetermined level Breath, obtains, according to described fileinfo, the safe download address that described file to be downloaded is corresponding, sends described Safe download address gives described terminal.
6. method as claimed in claim 5, it is characterised in that described obtain institute according to described fileinfo State the safe download address that file to be downloaded is corresponding, including:
According to described fileinfo, check in safe download address and the corresponding relation of fileinfo and whether exist Described fileinfo;
If existing, from the described safe download address corresponding relation with fileinfo, obtain described fileinfo Corresponding safe download address;
If not existing, then according to described fileinfo, from network, search for corresponding each of described fileinfo Download address, obtains the safe class of file of correspondence higher than predetermined level from described each download address Download address, is defined as the download address of described acquisition safety corresponding to described file to be downloaded and downloads ground Location.
7. the device downloading file, it is characterised in that described device includes:
First acquisition module, for obtaining the download address that file to be downloaded is corresponding;
Sending module, is used for sending described download address to security server, makes described security server obtain The safe class of the file that described download address is corresponding;
Second acquisition module, for receiving the described safe class that described security server sends, according to described Safe class obtains the safe download address that described file to be downloaded is corresponding;
Download module, for downloading described file to be downloaded according to described safe download address.
8. device as claimed in claim 7, it is characterised in that described second acquisition module includes:
Determine unit, if for described safe class higher than predetermined level, then described download address being defined as The safe download address that described file to be downloaded is corresponding;
Acquiring unit, if for described safe class less than or equal to described predetermined level, then treating from described What the file that carries was corresponding downloads in the page fileinfo obtaining described file to be downloaded, according to described file Information, obtains the safe download address that described file to be downloaded is corresponding from described security server.
9. the device downloading file, it is characterised in that described device includes:
Receiver module, for receiving the download address that file to be downloaded that terminal sends is corresponding;
First acquisition module, for according to described download address, obtains file corresponding to described download address Safe class;
Sending module, for sending described safe class to described terminal, makes described terminal according to described safety Grade obtains safe download address corresponding to described file to be downloaded and according under described safe download address Carry described file to be downloaded.
10. device as claimed in claim 9, it is characterised in that described first acquisition module includes:
First checks unit, for according to described download address, checks that download address is corresponding with safe class Whether relation exists described download address;
First acquiring unit, if for existing, then from the corresponding relation of described download address and safe class Obtain the safe class that described download address is corresponding;
Detector unit, if for not existing, then downloads described download address according to described download address corresponding File, carries out safety detection to the file of described download, obtains the safe class of the file of described download.
11. devices as claimed in claim 9, it is characterised in that described device also includes:
Second acquisition module, is used for receiving described terminal and is determining described safe class less than or equal to presetting The fileinfo sent during grade, obtains, according to described fileinfo, the safety that described file to be downloaded is corresponding Download address, sends described safe download address to described terminal.
12. devices as claimed in claim 11, it is characterised in that described second acquisition module includes:
Second checks unit, for according to described fileinfo, checks safe download address and fileinfo Whether corresponding relation exists described fileinfo;
Second acquisition unit, if for existing, from the corresponding relation of described safe download address Yu fileinfo The safe download address that the described fileinfo of middle acquisition is corresponding;
3rd acquiring unit, if for not existing, then according to described fileinfo, from network, search is described Each download address that fileinfo is corresponding, obtains the safety of the file of correspondence from described each download address The download address of described acquisition, higher than the download address of predetermined level, is defined as described literary composition to be downloaded by grade The safe download address that part is corresponding.
CN201510095978.5A 2015-03-04 2015-03-04 File downloading method and file downloading device Pending CN105991746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510095978.5A CN105991746A (en) 2015-03-04 2015-03-04 File downloading method and file downloading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510095978.5A CN105991746A (en) 2015-03-04 2015-03-04 File downloading method and file downloading device

Publications (1)

Publication Number Publication Date
CN105991746A true CN105991746A (en) 2016-10-05

Family

ID=57039456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510095978.5A Pending CN105991746A (en) 2015-03-04 2015-03-04 File downloading method and file downloading device

Country Status (1)

Country Link
CN (1) CN105991746A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112104905A (en) * 2020-07-06 2020-12-18 聚好看科技股份有限公司 Server, display equipment and data transmission method
CN118916905A (en) * 2024-10-10 2024-11-08 国开在线教育科技有限公司 User privacy data processing method and related equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6804780B1 (en) * 1996-11-08 2004-10-12 Finjan Software, Ltd. System and method for protecting a computer and a network from hostile downloadables
CN101447006A (en) * 2008-12-30 2009-06-03 深圳市迅雷网络技术有限公司 Method for providing file security information and security information processing system
CN101582887A (en) * 2009-05-20 2009-11-18 成都市华为赛门铁克科技有限公司 Safety protection method, gateway device and safety protection system
CN101924760A (en) * 2010-08-17 2010-12-22 优视科技有限公司 Method and system for downloading executable file securely
CN102333122A (en) * 2011-09-28 2012-01-25 奇智软件(北京)有限公司 A download resource providing method, device and system
CN102663319A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Prompting method and device for download link security
CN102946377A (en) * 2012-07-16 2013-02-27 珠海市君天电子科技有限公司 Antivirus system and method for preventing users from downloading virus documents from internet
CN103051596A (en) * 2011-10-14 2013-04-17 腾讯科技(深圳)有限公司 Network security identification method, security detection server, client and system
CN103812840A (en) * 2012-11-13 2014-05-21 腾讯科技(深圳)有限公司 Method and system for identifying malicious web sites
US8863286B1 (en) * 2007-06-05 2014-10-14 Sonicwall, Inc. Notification for reassembly-free file scanning

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6804780B1 (en) * 1996-11-08 2004-10-12 Finjan Software, Ltd. System and method for protecting a computer and a network from hostile downloadables
US8863286B1 (en) * 2007-06-05 2014-10-14 Sonicwall, Inc. Notification for reassembly-free file scanning
CN101447006A (en) * 2008-12-30 2009-06-03 深圳市迅雷网络技术有限公司 Method for providing file security information and security information processing system
CN101582887A (en) * 2009-05-20 2009-11-18 成都市华为赛门铁克科技有限公司 Safety protection method, gateway device and safety protection system
CN101924760A (en) * 2010-08-17 2010-12-22 优视科技有限公司 Method and system for downloading executable file securely
CN102333122A (en) * 2011-09-28 2012-01-25 奇智软件(北京)有限公司 A download resource providing method, device and system
CN103051596A (en) * 2011-10-14 2013-04-17 腾讯科技(深圳)有限公司 Network security identification method, security detection server, client and system
CN102663319A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Prompting method and device for download link security
CN102946377A (en) * 2012-07-16 2013-02-27 珠海市君天电子科技有限公司 Antivirus system and method for preventing users from downloading virus documents from internet
CN103812840A (en) * 2012-11-13 2014-05-21 腾讯科技(深圳)有限公司 Method and system for identifying malicious web sites

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112104905A (en) * 2020-07-06 2020-12-18 聚好看科技股份有限公司 Server, display equipment and data transmission method
CN118916905A (en) * 2024-10-10 2024-11-08 国开在线教育科技有限公司 User privacy data processing method and related equipment

Similar Documents

Publication Publication Date Title
US9712562B2 (en) Method, device and system for detecting potential phishing websites
EP3200487B1 (en) Message processing method and apparatus
US20160241589A1 (en) Method and apparatus for identifying malicious website
CN104123120B (en) A kind of browser page data filtering method, device and system
CN105824958A (en) Method, device and system for inquiring log
CN104572430A (en) Method, device and system for testing terminal application interface
CN104639672A (en) Method and device for domain name resolution (DNS)
CN104468101A (en) User identity authentication method and device and authentication service system
CN103310004A (en) Method, device and equipment for displaying number of unread messages
CN104135728B (en) Method for connecting network and device
CN104717341A (en) Message prompting method and terminal
CN103677899A (en) Method and device for installing application programs
CN104580177B (en) Resource provider method, device and system
CN104636664A (en) Cross-site scripting vulnerability detection method and device based on file object model
CN105307242A (en) Wi-Fi network application method and terminal
CN105530239A (en) Multimedia data obtaining method and device
CN103246847B (en) A kind of method and apparatus of macrovirus killing
CN105955597A (en) Method and device for displaying information
CN104133693B (en) Installment state detection method, device and terminal
CN104391629A (en) Method for sending message in orientation manner, method for displaying message, server and terminal
CN103944922A (en) Data processing method, terminal, server and system
CN106681884A (en) System call monitoring method and device
CN104123210A (en) Method, device and system for testing performance of browser
CN104104508A (en) Verification method and device, and terminal equipment
CN105991746A (en) File downloading method and file downloading 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: 20161005

RJ01 Rejection of invention patent application after publication