CN109446823A - Preview file method, apparatus, electronic equipment and readable storage medium storing program for executing - Google Patents

Preview file method, apparatus, electronic equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN109446823A
CN109446823A CN201811161022.0A CN201811161022A CN109446823A CN 109446823 A CN109446823 A CN 109446823A CN 201811161022 A CN201811161022 A CN 201811161022A CN 109446823 A CN109446823 A CN 109446823A
Authority
CN
China
Prior art keywords
preview
file
link
check information
client
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
CN201811161022.0A
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.)
Tianjin ByteDance Technology Co Ltd
Original Assignee
Tianjin ByteDance Technology 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 Tianjin ByteDance Technology Co Ltd filed Critical Tianjin ByteDance Technology Co Ltd
Priority to CN201811161022.0A priority Critical patent/CN109446823A/en
Publication of CN109446823A publication Critical patent/CN109446823A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2151Time stamp

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Automation & Control Theory (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This disclosure relates to preview file method, apparatus, electronic equipment and readable storage medium storing program for executing, method includes the following steps: receiving preview file request;It is requested according to preview file, obtains check information corresponding with preview file request;Judge whether check information matches with default check information;If so, according to the corresponding file content of preview file request, and file content is returned into client;If it is not, then terminating operation.Implement the disclosure, preview link can be hidden to user, ordinary user is not directly visible the link of preview, avoids preview service address from being directly exposed to outer, and prevention web crawlers etc. is directly obtained preview address.By being verified to user right, the safety of document is protected, prevents document from causing information leakage by random preview.

Description

Preview file method, apparatus, electronic equipment and readable storage medium storing program for executing
Technical field
This disclosure relates to previewing file field, more specifically to a kind of preview file method, apparatus, electronic equipment And readable storage medium storing program for executing.
Background technique
Current some softwares provide preview service to link, i.e., do not click open link in the case where it is seen that Link corresponding partial content.Existing preview service scheme, after the link for receiving other users sharing, user puts mouse When in document links can directly preview file content.
Existing preview scheme there are some potential safety problems, unauthorized user can directly preview to file content, or Person, which starts to have permission the user that later permission is cancelled, still may browse through the content of file, in addition, shared file when Effect property not can be effectively controlled, and these problems will lead to the risk that file content has leakage, and classified papers are by unintended user Reading, in turn results in the file information and is leaked, the safety of file cannot ensure.
Summary of the invention
Disclosure technical problems to be solved are, in view of the above drawbacks of the prior art, provide a kind of preview file side Method, device, electronic equipment and readable storage medium storing program for executing.
The disclosure solves technical solution used by its technical problem: constructing a kind of preview file method, including following Step:
Receive preview file request;
It is requested according to the preview file, obtains check information corresponding with preview file request;
Judge whether the check information matches with default check information;
If so, according to the corresponding file content of preview file request, and the file content is returned to Client;
If it is not, then terminating operation.
Optionally, before reception preview file request further include:
Receive the download link request of preview file;
It is requested according to the download link, obtains the identity information of client;
Judge whether the identity information is legal;
If legal, it obtains and requests the download link of corresponding preview file with the download link, and by the downloading chain It connects and returns to client;The download link is the index that the user of client obtains the preview link of preview file.
Optionally, it is described the download link is returned into client after further include:
Receive the preview link request of preview file;
It is requested according to the preview link, determines preview link corresponding with preview link request, and will be described pre- Link of looking at returns to client;
Wherein, the preview link carries check information corresponding with preview link request, and described and preview The corresponding check information of linking request is the default check information.
Optionally, the method also includes:
The check information is stored in local storage.
Optionally, described to judge whether the check information matches with default checking information and include:
It is searched in local storage according to the check information;
Judge to whether there is and the consistent default check information of the checking information in the local storage.
Optionally, described if so, described according to the corresponding preview file of preview file request, and will be described Preview file returns to client
It is requested according to the preview file, corresponding file content is obtained from preview service module;
The preview file is returned into client, to be rendered by client to file content and show client End subscriber.
Optionally, the check information includes timestamp and key information.
The disclosure also provides a kind of preview file device, comprising:
Receiving unit, for receiving preview file request;
Acquiring unit obtains verification letter corresponding with preview file request for requesting according to the preview file Breath;
Judging unit, for judging whether the check information matches with default check information;
Execution unit obtains if matching for the check information with default check information according to preview file request Corresponding file content is taken, and the file content is returned into client;If it is not, then terminating operation.
The disclosure also provides a kind of electronic equipment, including processor, and the processor is used to executing to be stored in memory The step of method as described above is realized when computer program.
The disclosure also provides a kind of readable storage medium storing program for executing, is stored thereon with computer program, and the computer program is located The step of reason device realizes method as described above when executing.
Implement preview file method, apparatus, electronic equipment and the readable storage medium storing program for executing of the disclosure, has below beneficial to effect Fruit: implement the disclosure, preview link can be hidden to user, ordinary user is not directly visible the link of preview, avoids preview Outside address of service is directly exposed to, prevention web crawlers etc. is directly obtained preview address.By being verified to user right, protect The safety of document prevents document from causing information leakage by random preview.
Detailed description of the invention
The disclosure is described further below in conjunction with accompanying drawings and embodiments, in attached drawing:
Fig. 1 is a kind of flow chart for preview file method that one embodiment of the disclosure provides;
Fig. 2 is a kind of flow chart for preview file method that another embodiment of the disclosure provides;
Fig. 3 is a kind of flow chart for preview file method that another embodiment of the disclosure provides;
Fig. 4 is a kind of structural schematic diagram of preview file device of the disclosure;
Fig. 5 is the structural schematic diagram of disclosure a kind of electronic equipment.
Specific embodiment
In order to which the technical features, objects and effects to the disclosure are more clearly understood, now compare attached drawing and be described in detail The specific embodiment of the disclosure.
In order to solve the problems, such as that existing file preview exists, present disclose provides a kind of safe preview file methods, should Method is applied to the preview in line file.
Referring to Fig. 1, for a kind of flow chart for preview file method that one embodiment of the disclosure provides.
As shown in Figure 1, the preview file method the following steps are included:
Step S11, preview file request is received.
In the step, the user of client needs first to choose the file needed to preview to when line file carries out preview Corresponding preview link.Client determines the preview file request of user according to the corresponding link of preview file that user chooses And the file of preview required for user, meanwhile, client and remote server on-line joining process are asked in the preview file for determining user After asking, preview file request is sent to remote server.
Here, the preview link of file can be highlighted on the browser of client by different forms, And then the user of client is facilitated to select.Wherein, the preview link of file specifically can be shown in client by icon User can such as be indicated by highlighting the written form of picture, highlighted number or addition background colour.In other words, in client The page on, user can only see picture, number or the text etc. for representing previewing file link, be not directly visible to The preview link of the file of preview can not directly operate the preview link of file.Wherein, the preview link of file can With corresponding one or more files, or the file of one or more different-formats can be corresponded to, for example, it may be pdf format File, file, the file of ppt format of docs format etc..
In addition, in the embodiments of the present disclosure, user's selection of client to preview file form can there are many.Example Such as, it can be chosen (real here to the corresponding preview link of preview file by the location information of the mouse of acquisition client user When operating, for a user, user institute is it is seen that choose the corresponding icon of preview link).In the acquisition modes, for Obtaining for the location information of mouse can be obtained by way of clicking to the corresponding icon of preview file, can also be by by mouse Target cursor placement is obtained to the mode on the corresponding icon of preview file.This mode can be by clicking or putting mouse It is placed in corresponding icon, chooses an icon or multiple unconnected icons, to determine a preview chain corresponding with icon It connects or multiple discontinuous preview links.
Alternatively, can be chosen by the displacement information of the mouse of acquisition client user to the corresponding preview of preview file Link (here when real-time operation, for a user, user institute is it is seen that choose the corresponding icon of preview link).By this Mode, the foundation to preview file that the mobile message that mouse is moved through is selected as user, and user institute is determined with this The icon chosen.Wherein, which can be by that will make key be in the shape that is pressed mouse after initial position clicks key State, meanwhile, drag mouse, to choose icon to be selected, the icon the chosen icon to be selected as user.
Alternatively, can be chosen by the location information of the touch operation of client user to preview text by obtaining (here when real-time operation, for a user, user institute is it is seen that choose the corresponding figure of preview link for the corresponding preview link of part Mark).In the acquisition modes, the location information of the touch operation of user can be clicked by user's hand or felt pen Mode to the corresponding icon of preview file obtains, can also be corresponding to preview file by being placed on hand or felt pen Mode on icon obtains.Wherein, hand or felt pen are placed on to get touching on the corresponding icon of preview file The principle for touching the location information of operation can be obtained by the principle of light sensation, i.e., when hand or felt pen are placed on to preview file When on corresponding icon, since hand or felt pen block light, the light sensitive component at icon can sense the information, To determine the position of touch operation according to the information that the light sensitive component is sensed.
Alternatively, can be chosen corresponding to preview file by the displacement information of the touch operation of acquisition client user Preview link (here when real-time operation, for a user, user institute is it is seen that choose the corresponding icon of preview link).At this In acquisition modes, the location information of the touch operation of user can be touched by user's hand or felt pen in initial position It touches or presses and continuous moving streaks corresponding icon, and then choose icon, the acquisition principle of this mode can pass through light sensation Principle obtain, i.e., when perhaps felt pen be placed on when on the corresponding icon of preview file since hand or felt pen are to light Line blocks, and the light sensitive component at icon can sense the information, thus the information sensed according to corresponding light sensitive component Variation, determine displacement information.
What needs to be explained here is that in this step, determining that client user needs the corresponding preview chain of the file of preview After connecing, client sends preview file request, preview file request to remote server according to identified preview link Carry user and need the corresponding preview link of the file of preview, meanwhile, preview link carry identity user whether have it is pre- Look at the check information of permission.
Step S12, it is requested according to the preview file, obtains check information corresponding with preview file request.
Here, check information corresponding with preview file request refers to that the entrained sample of preview file request tests information.
Specifically, being requested according to the received preview file of institute true after receiving the preview file request of client transmission Determine the corresponding preview link of file of preview needed for client user, and from preview link obtain identity user whether have it is pre- Look at the check information of permission.Optionally, which can preset, and can also execute each time in advance in client user The preceding random generation of operation of looking at.Wherein, which includes key information and timestamp.
S13, judge whether the check information matches with default check information.
Specifically, judge acquired check information from the request of received preview file whether with default check information With can execute in the following manner:
Remote server is searched in local storage according to acquired check information, judges local storage In with the presence or absence of with the acquired consistent default check information of check information, if so, can determine that with preview rights.Its In, default check information can generate at random, and check information includes timestamp, when being more than the set time, The default check information being automatically deleted in memory, makes the timeliness of file be effectively controlled.
S14, if so, according to the corresponding file content of preview file request, and the file content is returned Back to client.
Specifically, preview file request carries user and needs the corresponding preview link of the file of preview, in step s 13 After determining that user has preview rights, entrained preview link can be requested to obtain in preview file according to preview file Hold, and the content of acquired preview file is returned into client.
When specific operation, remote server is by check information entrained in the determining preview file request of verification and in advance If check information matches, according to the preview link in preview file request, obtained from preview service module corresponding File content, and acquired file content is returned into client, file content is rendered and shown by client To the user of client, for user's preview documents content.
S15, if it is not, then terminating operation.
Here, obstructed out-of-date when verifying, it may be determined that user does not have preview rights, and then no longer executes subsequent operation, directly Connect termination operation.
The disclosure replaces preview link by way of with icon, may be implemented to hide preview link, ordinary user It is not directly visible preview link, avoids preview service chained address from being directly exposed to outer, prevention web crawlers etc. directly acquires To preview address.And ensure that the timeliness of file by timeliness and Authority Verification, while also assuring the safety of file, Prevent file from causing information leakage by random preview.
Referring to fig. 2, a kind of flow chart of the preview file method provided for another embodiment of the disclosure.
The present embodiment can first carry out following steps before the step S11 of previous embodiment starts execution:
Step S21, the download link request of preview file is received.
Specifically, the user in client needs to need to obtain required preview file to when line file carries out preview Preview link, and before obtaining preview file link, need first to determine the download link of file, and client is according to being chosen Download link sends download link request to remote server.It is to be appreciated that in this step, client user's filesselected Mode and the previous embodiment of download link to obtain the mode of preview link of file identical, and to the user of client and Speech, be presented to the user of client is only the icon for having selected the download link and preview link that indicate file.Work as client When user chooses corresponding icon, client user is first to send a download link request to remote server, to obtain Need the download link of the file of preview.Wherein, which carries the identity information of client user, such as user name, visitor IP address, the MAC Address at family end etc. are used to identify the identity information of client user.
Step S22, it is requested according to the download link, obtains the identity information of client.
Specifically, after remote server receives the download link request that client sends over, according to the download link Entrained information extracts the identity information of client.
Step S23, judge whether the identity information is legal.
Whether the acquired identity information of judgement is legal, specifically: judge whether acquired identity information is registered Identity information or whether be authorization identity information.Specific judgment mode can be with are as follows: according to acquired identity information, Searched in the list of identities prestored, whether see has the identity information in the list of identities prestored, if so, can determine that for Legal identity, if it is not, being then illegal identity.
Step S24, it if legal, obtains and requests the download link of corresponding preview file with the download link, and by institute It states download link and returns to client.
The download link that remote server returns to client is effective download link, which is client User obtains the index of the preview link of preview file.
It is to be appreciated that if it is illegal, it is determined that the user is illegal user or is not authorized user, therefore, at this point, Operation can be directly terminated, not to client return information.
By first verifying, can mention to the identity of user before the preview link for sending preview file to client High previewing file safety further hides preview link to user, and ordinary user's (illegal user or unauthorized user) cannot Preview link is directly obtained, avoids preview service address from being directly exposed to outer, is stolen by illegal or malicious user.
Further, can also include: after step S24
Step S25, the preview link request of preview file is received.
It is to be appreciated that synchronizing after client receives the effective download link that remote server returns to long-range Server sends the preview link request of preview file, i.e., the request for obtaining preview link is sent to remote server, wherein should Preview link request carries documentary download link.
Step S26, it is requested according to the preview link, determines preview link corresponding with preview link request, and The preview link is returned into client.Wherein, the preview link carries school corresponding with preview link request Information is tested, and the check information corresponding with preview link request is the default check information.
Specifically, the preview link requests the authorization check module being sent in remote server, authorization check module is connect After receiving preview link request, the entrained download link of preview link request is extracted, and carry out to the download link Encryption generates corresponding check information, and generates corresponding preview link, and preview link generated carries raw At check information.Meanwhile check information generated is also stored in local storage by authorization check module, as default Check information.
It is to be appreciated that check information is the check information for including timestamp and key, it is a random character string, It is made of a string of random numbers and time.Key timeliness is imparted by the way that timestamp is arranged, when reaching the set time, from It is dynamic to remove the check information, so that the available effective control of the timeliness of file, wherein the duration of timestamp can basis Specific design requirement determines that the disclosure is not especially limited.
In the embodiment of the present disclosure, the preview link of file is hidden in the form of icon in client, and Before the preview link for returning to file to client, index of the file download link as acquisition preview link, and base are first set The identity information of client user is obtained in download link, while first the identity information of client user is verified, only Download link is then sent to remote server by that just can send corresponding download link to client by authentication Authorization check module is generated the pre- of check information corresponding with the download link and preview file by authorization check module at random It lookes at link, please the check information is arranged and returns to client in preview link generated, then by preview link generated End, while the check information generated at random being stored in local storage.When client is sent in advance to remote server again Look at file request when (at this point, client is that the request preview documents content that preview link is sent based on the received is asked Ask), which is sent to the authorization check module in remote server again, carries out permission again by authorization check module and tests Card just obtains corresponding file content according to the received preview link of institute, then will be acquired if passing through from preview service module File content return to client, if not passing through, terminate operation.It is realized through the above way to previewing file link It hides, avoids preview service address from being directly exposed to outer, prevention web crawlers etc. directly acquires preview address, meanwhile, by right The identity of user and the double verification of permission, further improve the safety of previewing file.
Referring to Fig. 3, for a kind of flow chart for preview file method that another embodiment of the disclosure provides.
As shown in figure 3, the preview file method of the embodiment includes step S31- step S40, wherein step S31- step S36 is identical as the step S21- step S26 of embodiment two, the step S11- step of step S37- step S41 and embodiment one S15, details are not described herein.In addition, carrying step S36 in the received preview file request of step S37 institute and returning to client The preview link at end.
Referring to fig. 4, a kind of structural schematic diagram of the preview file device provided for the disclosure,
As shown in figure 4, the preview file device includes:
Receiving unit 301, for receiving preview file request.
Acquiring unit 302 obtains verification corresponding with preview file request for requesting according to the preview file Information.
Judging unit 303, for judging whether the check information matches with default check information.
Optionally, which may include: searching module and correction verification module.Wherein, searching module is used for basis Acquired check information, is searched in local storage.Correction verification module is for judging to whether there is in local storage With the consistent default check information of the check information.It is to be appreciated that consistent with the check information when existing in local storage Default check information, then can determine that the check information is matched with default check information;Conversely, if being searched in local storage Less than (being not present) and the consistent default check information of the check information, then it can determine that the check information and default check information It mismatches.
Execution unit 304 is requested if matching for the check information with default check information according to the preview file Corresponding file content is obtained, and the file content is returned into client;If it is not, then terminating operation.
Optionally, the preview file device of the disclosure can also include:
First receiving module, the download link for receiving preview file are requested.
First determining module, for according to received preview file download link request, obtain the identity of client Information.
Whether judgment module, the identity information for judging acquired client are legal.
Execution module when legal for the identity information in acquired client, obtains corresponding with download link request Preview file download link, and the download link is returned into client.Wherein, which is that user obtains preview The index of the preview link of file.
Further, the preview file device of the disclosure can also include:
Second receiving module, the preview link for receiving preview file are requested.
Second determining module, for being requested according to the received preview link of institute, determination is corresponding with preview link request Preview link, and the preview link is returned into client.
Wherein, which carries check information corresponding with preview link request, and the check information is aforementioned Default checking information.
Further, the preview file device of the disclosure can also include:
Local storage, for storing check information determined by the second determining module.
Below with reference to Fig. 5, it illustrates the structural representations for the electronic equipment 500 for being suitable for being used to realize the embodiment of the present disclosure Figure.Electronic equipment in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, digital broadcasting and connect Receive device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal (such as vehicle Carry navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electricity shown in Fig. 5 Sub- equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 5, electronic equipment 500 may include processing unit (such as central processing unit, graphics processor etc.) 501, random access can be loaded into according to the program being stored in read-only memory (ROM) 502 or from storage device 508 Program in memory (RAM) 503 and execute various movements appropriate and processing.In RAM503, it is also stored with electronic equipment Various programs and data needed for 500 operations.Processing unit 501, ROM 502 and RAM 503 pass through the phase each other of bus 504 Even.Input/output (I/O) interface 505 is also connected to bus 504.
In general, following device can connect to I/O interface 505: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 506 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 507 of dynamic device etc.;Storage device 508 including such as tape, hard disk etc.;And communication device 509.Communication device 509, which can permit electronic equipment 500, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 5 shows tool There is the electronic equipment 500 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 509, or from storage device 508 It is mounted, or is mounted from ROM502.When the computer program is executed by processing unit 501, the embodiment of the present disclosure is executed Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity When sub- equipment executes, so that the electronic equipment: obtaining at least two internet protocol addresses;Send to Node evaluation equipment includes institute State the Node evaluation request of at least two internet protocol addresses, wherein the Node evaluation equipment is internet from described at least two In protocol address, chooses internet protocol address and return;Receive the internet protocol address that the Node evaluation equipment returns;Its In, the fringe node in acquired internet protocol address instruction content distributing network.
Alternatively, above-mentioned computer-readable medium carries one or more program, when said one or multiple programs When being executed by the electronic equipment, so that the electronic equipment: receiving the Node evaluation including at least two internet protocol addresses and request; From at least two internet protocol address, internet protocol address is chosen;Return to the internet protocol address selected;Wherein, The fringe node in internet protocol address instruction content distributing network received.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+ +, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions, for example, the One acquiring unit is also described as " obtaining the unit of at least two internet protocol addresses ".
The disclosure additionally provides a kind of readable storage medium storing program for executing, is stored thereon with computer program, the computer journey stored Above-mentioned preview file method is realized when sequence is executed by processor.
The readable storage medium storing program for executing of the disclosure includes but is not limited to disk, hard disk, random access storage device (RAM), read-only deposits Reservoir (ROM), Erasable Programmable Read Only Memory EPROM (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), any combination of light storage device, magnetic memory device or above-mentioned device.
It is to be appreciated that the readable storage medium storing program for executing of the disclosure can be readable included in above-mentioned electronic equipment 500 deposit Storage media is also possible to be individually present and be not installed at the readable storage medium storing program for executing in electronic equipment 500.
Further, the computer program that the readable storage medium storing program for executing of the disclosure is stored can be one or more journey Sequence.
By the implementation disclosure, preview link can be hidden to user, ordinary user is not directly visible the link of preview, Preview service address is avoided to be directly exposed to outer, prevention web crawlers etc. is directly obtained preview address.By to user right Verifying, protects the safety of document, prevents document from causing information leakage by random preview.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as magnetic disk, CD, read-only memory (ROM) Or random access memory (RAM) etc., including some instructions use is so that a computer equipment (can be individual calculus Machine, server or network equipment etc.) execute method described in certain parts of each embodiment or embodiment.
Above embodiments are only to illustrate the technical concepts and features of the disclosure, and its object is to allow person skilled in the art Scholar can understand content of this disclosure and implement accordingly, the protection scope not limited the disclosure.It is all to be wanted with disclosure right The equivalent changes and modifications that range is done are sought, should belong to the covering scope of disclosure claim.
It should be understood that for those of ordinary skills, it can be modified or changed according to the above description, And all these modifications and variations all should belong to the protection scope of disclosure appended claims.

Claims (10)

1. a kind of preview file method, which comprises the following steps:
Receive preview file request;
It is requested according to the preview file, obtains check information corresponding with preview file request;
Judge whether the check information matches with default check information;
If so, according to the corresponding file content of preview file request, and the file content is returned into client End;
If it is not, then terminating operation.
2. preview file method according to claim 1, which is characterized in that before reception preview file request also Include:
Receive the download link request of preview file;
It is requested according to the download link, obtains the identity information of client;
Judge whether the identity information is legal;
If legal, the download link for requesting corresponding preview file with the download link is obtained, and the download link is returned Back to client;The download link is the index for the preview link that user obtains preview file.
3. preview file method according to claim 2, which is characterized in that described that the download link is returned to client After end further include:
Receive the preview link request of preview file;
It is requested according to the preview link, determines corresponding with preview link request preview link, and by the preview chain It connects and returns to client;
Wherein, the preview link carries check information corresponding with preview link request, and described and preview link Requesting corresponding check information is the default check information.
4. preview file method according to claim 3, which is characterized in that the method also includes:
The check information is stored in local storage.
5. preview file method according to claim 1, which is characterized in that it is described judge the check information whether in advance If checking information matching includes:
It is searched in local storage according to the check information;
Judge to whether there is and the consistent default check information of the checking information in the local storage.
6. preview file method according to claim 1, which is characterized in that described if so, described according to the preview File request obtains corresponding preview file, and the preview file is returned to client and includes:
It is requested according to the preview file, corresponding file content is obtained from preview service module;
The file content is returned into client, file content is rendered by client and client is showed to use Family.
7. preview file method according to claim 1, which is characterized in that the check information includes timestamp and key Information.
8. a kind of preview file device characterized by comprising
Receiving unit, for receiving preview file request;
Acquiring unit obtains check information corresponding with preview file request for requesting according to the preview file;
Judging unit, for judging whether the check information matches with default check information;
Execution unit, if being matched for the check information with default check information, according to the preview file request phase The file content answered, and the file content is returned into client;If it is not, then terminating operation.
9. a kind of electronic equipment, which is characterized in that including processor, the processor is for executing the calculating stored in memory It is realized when machine program such as the step of any one of claim 1-7 the method.
10. a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the computer program is processed It is realized when device executes such as the step of any one of claim 1-7 the method.
CN201811161022.0A 2018-09-30 2018-09-30 Preview file method, apparatus, electronic equipment and readable storage medium storing program for executing Pending CN109446823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811161022.0A CN109446823A (en) 2018-09-30 2018-09-30 Preview file method, apparatus, electronic equipment and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811161022.0A CN109446823A (en) 2018-09-30 2018-09-30 Preview file method, apparatus, electronic equipment and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN109446823A true CN109446823A (en) 2019-03-08

Family

ID=65546106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811161022.0A Pending CN109446823A (en) 2018-09-30 2018-09-30 Preview file method, apparatus, electronic equipment and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN109446823A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110781644A (en) * 2019-11-04 2020-02-11 北京联想协同科技有限公司 File preview method, equipment and computer storage medium
CN111191257A (en) * 2019-12-02 2020-05-22 泰康保险集团股份有限公司 File preview processing method and device
CN111460348A (en) * 2020-03-31 2020-07-28 网易(杭州)网络有限公司 File processing method and device
CN112381253A (en) * 2020-10-26 2021-02-19 苏州热工研究院有限公司 Nuclear power station penetration inspection task management method and system, electronic equipment and storage medium
CN113204525A (en) * 2021-07-06 2021-08-03 深圳市知酷信息技术有限公司 Document preview management system based on distributed storage system
CN113282550A (en) * 2021-06-07 2021-08-20 平安国际智慧城市科技股份有限公司 File preview method and device, computer equipment and storage medium
CN113645237A (en) * 2021-08-10 2021-11-12 东方财富信息股份有限公司 Information acquisition method, system, medium, and apparatus for terminal device
CN113742663A (en) * 2021-11-04 2021-12-03 江苏鲸准数科信息产业发展有限责任公司 Watermark file acquisition method and device and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442664A (en) * 2008-12-24 2009-05-27 中兴通讯股份有限公司 Terminal, system and method for previewing program in mobile multimedia broadcast system
CN102254008A (en) * 2011-07-18 2011-11-23 深圳证券信息有限公司 Method and system for setting dynamic data label
CN103067409A (en) * 2013-01-21 2013-04-24 中国科学院信息工程研究所 World wide web (WEB) hotlinking protection method and gateway system thereof
CN103427998A (en) * 2013-08-20 2013-12-04 航天恒星科技有限公司 Internet data distribution oriented identity authentication and data encryption method
CN104462522A (en) * 2014-12-23 2015-03-25 深圳供电局有限公司 File on-line previewing method, terminal and server
CN104468101A (en) * 2013-09-12 2015-03-25 深圳市腾讯计算机系统有限公司 User identity authentication method and device and authentication service system
CN106412339A (en) * 2016-11-29 2017-02-15 努比亚技术有限公司 Notification message processing method and apparatus
CN106529277A (en) * 2016-12-14 2017-03-22 北京小米移动软件有限公司 Message preview method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442664A (en) * 2008-12-24 2009-05-27 中兴通讯股份有限公司 Terminal, system and method for previewing program in mobile multimedia broadcast system
CN102254008A (en) * 2011-07-18 2011-11-23 深圳证券信息有限公司 Method and system for setting dynamic data label
CN103067409A (en) * 2013-01-21 2013-04-24 中国科学院信息工程研究所 World wide web (WEB) hotlinking protection method and gateway system thereof
CN103427998A (en) * 2013-08-20 2013-12-04 航天恒星科技有限公司 Internet data distribution oriented identity authentication and data encryption method
CN104468101A (en) * 2013-09-12 2015-03-25 深圳市腾讯计算机系统有限公司 User identity authentication method and device and authentication service system
CN104462522A (en) * 2014-12-23 2015-03-25 深圳供电局有限公司 File on-line previewing method, terminal and server
CN106412339A (en) * 2016-11-29 2017-02-15 努比亚技术有限公司 Notification message processing method and apparatus
CN106529277A (en) * 2016-12-14 2017-03-22 北京小米移动软件有限公司 Message preview method and device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110781644A (en) * 2019-11-04 2020-02-11 北京联想协同科技有限公司 File preview method, equipment and computer storage medium
CN111191257A (en) * 2019-12-02 2020-05-22 泰康保险集团股份有限公司 File preview processing method and device
CN111460348A (en) * 2020-03-31 2020-07-28 网易(杭州)网络有限公司 File processing method and device
CN111460348B (en) * 2020-03-31 2024-04-19 网易(杭州)网络有限公司 File processing method and device
CN112381253A (en) * 2020-10-26 2021-02-19 苏州热工研究院有限公司 Nuclear power station penetration inspection task management method and system, electronic equipment and storage medium
CN112381253B (en) * 2020-10-26 2023-05-02 苏州热工研究院有限公司 Nuclear power station penetration inspection task management method, system, electronic equipment and storage medium
CN113282550A (en) * 2021-06-07 2021-08-20 平安国际智慧城市科技股份有限公司 File preview method and device, computer equipment and storage medium
CN113204525A (en) * 2021-07-06 2021-08-03 深圳市知酷信息技术有限公司 Document preview management system based on distributed storage system
CN113204525B (en) * 2021-07-06 2021-09-24 深圳市知酷信息技术有限公司 Document preview management system based on distributed storage system
CN113645237A (en) * 2021-08-10 2021-11-12 东方财富信息股份有限公司 Information acquisition method, system, medium, and apparatus for terminal device
CN113742663A (en) * 2021-11-04 2021-12-03 江苏鲸准数科信息产业发展有限责任公司 Watermark file acquisition method and device and electronic equipment
CN113742663B (en) * 2021-11-04 2022-05-24 江苏鲸准数科信息产业发展有限责任公司 Watermark file acquisition method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN109446823A (en) Preview file method, apparatus, electronic equipment and readable storage medium storing program for executing
US10880287B2 (en) Out of box experience application API integration
CN108632253B (en) Client data security access method and device based on mobile terminal
EP3235213B1 (en) No password user account access
US8087060B2 (en) Chaining information card selectors
KR101874081B1 (en) Cloud Service Supporting Method And System based on a Enhanced Security
US20190089810A1 (en) Resource access method, apparatus, and system
US10212153B2 (en) Providing data security with a token device
EP2113858A1 (en) Remotable information cards
TW200945096A (en) Secure browser-based applications
US20150341416A1 (en) Cloud management systems and methods for executing applications of android systems
US11895111B2 (en) Systems and methods of application single sign on
US9275206B2 (en) Managing sensitive information
EP3782349A1 (en) Systems and methods for using namespaces to access computing resources
CN111245811A (en) Information encryption method and device and electronic equipment
CN109145530A (en) Online document automatic authorization method, apparatus and electronic equipment
US9355232B2 (en) Methods for governing the disclosure of restricted data
CN103067398A (en) Method and equipment for achieving third-party application accessing user data
CN109635558A (en) Access control method, device and system
CN110401674B (en) Data access method, device, system, electronic equipment and computer readable medium
CN113486401A (en) Method, device, equipment and medium for verifying access authority
JP2014170336A (en) Data file management system, data file acquisition program and data file management server
CN113742663B (en) Watermark file acquisition method and device and electronic equipment
CN111562916B (en) Method and device for sharing algorithm
GB2511416A (en) Data-privacy management technique

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination