CN113688417A - Method for controlling page previewing times - Google Patents

Method for controlling page previewing times Download PDF

Info

Publication number
CN113688417A
CN113688417A CN202010425127.3A CN202010425127A CN113688417A CN 113688417 A CN113688417 A CN 113688417A CN 202010425127 A CN202010425127 A CN 202010425127A CN 113688417 A CN113688417 A CN 113688417A
Authority
CN
China
Prior art keywords
file
preview
previewed
address
background program
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
CN202010425127.3A
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.)
Yozosoft Co ltd
Original Assignee
Yozosoft 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 Yozosoft Co ltd filed Critical Yozosoft Co ltd
Priority to CN202010425127.3A priority Critical patent/CN113688417A/en
Publication of CN113688417A publication Critical patent/CN113688417A/en
Pending legal-status Critical Current

Links

Images

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/6209Protecting access to data via a platform, e.g. using keys or access control rules to a single file or object, e.g. in a secure envelope, encrypted and accessed using a key, or with access control rules appended to the object itself

Landscapes

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

Abstract

The invention discloses a method for controlling the times of previewing a page, which comprises the following steps: after uploading the file to a computer, a user inputs a parameter to a server, wherein the parameter is the number of times the file is allowed to be previewed; the background program acquires the parameters and allocates a unique address to the file, the parameters are stored in the address, the background program generates a preview link corresponding to the file, and the unique address and the preview link are stored in a server side; when a user previews a file through the preview link, the background program analyzes a file address through the preview link, the server records the previewed times of the file, and if the previewed times are larger than the value of the parameter, the file is limited to be previewed by the server. The method of the invention can ensure that the information can be burnt after being read.

Description

Method for controlling page previewing times
Technical Field
The invention relates to a method for controlling the page previewing times, in particular to a method for controlling the page previewing times based on JAVA.
Background
With the rapid development of informatization, the demand of people on information security is met, talent competition, market competition, financial crisis, hostile institutions and the like bring huge risks to the development of enterprises and public institutions, internal secret stealing means such as internal secret stealing, hacker attack, unconscious secret disclosure and the like become potential safety hazards between people, between enterprises and between countries, and between enterprises, and the demand of information encryption in the information age is very slow.
The importance of information protection is more highlighted by information transparency, digital equipment such as computers and mobile phones is popularized, information transmission is extremely easy, privacy protection of important information becomes more important for enterprises and individuals, and how to obtain the information and burn the information after reading the information, the existing technical scheme still cannot play a good role in solving the problem.
Therefore, a new technical solution is needed to solve the above problems.
Disclosure of Invention
The invention aims to solve the problems in the prior art and provides a method for controlling the page previewing times, which adopts the technical scheme that:
a method of controlling the number of times a page is previewed, comprising:
after uploading the file to a computer, a user inputs a parameter to a server, wherein the parameter is the number of times the file is allowed to be previewed;
further, a background program acquires the parameters and allocates a unique address to the file, the parameters are stored in the address, the background program generates a preview link corresponding to the file, and the unique address and the preview link are stored in a server;
further, when a user previews a file through the preview link, the background program analyzes a file address through the preview link, the server side records previewed times of the file, and if the previewed times are larger than the value of the parameter, the file is limited to be previewed by the server side.
Further, the user sends a preview limit request to the background program by inputting parameters, and the background program receives the preview limit request and acquires the parameters;
further, the background program allocates a unique address to the uploaded file according to the acquired parameters, and the address records the number of times the file is allowed to be previewed, which is set by the user.
Further, the background program establishes association between the generated preview link and the unique address allocated to the uploaded file, and stores the established association in the server side at the same time.
Further, a user opens a preview link on the computer equipment, and the background program acquires the address of the preview link and analyzes the unique address of the preview corresponding to the preview link;
and the background program inquires the file address recorded by the server side and the allowable preview times of the file.
Further, the server records the previewed times of the file, the previewed times are increased along with the times of opening the file,
further, the background program compares the previewed times with the allowed previewing times of the file, and if the previewed times are larger than the allowed previewing times, the file is limited to be previewed by the server side.
Compared with the prior art, the invention has one or more of the following beneficial effects:
1. the invention provides a method for controlling the page previewing times, which realizes that a server end sets the file previewing times, when a browser previews a file, the page access is controlled according to the access times set by the server end, once the previewing times exceed the previewing times, the previewing content cannot be obtained, the function can realize that the file is burnt after being read, and the information safety is ensured;
2. aiming at the premise that a user has safety requirements on the link and the resource of the preview document, if the preview link and the resource are required to be only allowed to access once, namely, the preview link and the resource are burnt after reading, the client hopes to carry out the operation of destroying after reading aiming at part of files containing privacy or important contents, and the method for controlling the page previewing frequency can effectively solve the problem when the safety requirements such as confidentiality and the like are met;
3. the method for controlling the page previewing times is mainly characterized in that a background program inquires a file address (id) recorded by a server and information of allowable previewing times, and the information is compared with the previewed times to control the file previewing times, so that the server is closed at fixed time;
4. the previewing times of the invention are increased along with the previewing times of the user, the user previews once, the server records a unique id and a previewing time value, previews once, adds one to the previewing time value, then compares the previewing times with the allowed times set at the beginning to judge whether the previewing times are legal or not, if the previewing times are less than or equal to the allowed times, the previewing times are legal, otherwise the previewing times are illegal, normal resource information is returned, the illegal link is prompted to the user to be overdue, when the user requests the link, the background adds one to the unique id, such as 1 time, when the server generates a previewing webpage file, the previewing times are recorded according to the unique id of the file, when the user previews the webpage content, the times are added by 1, when the times are more than the set value, the user directly stops obtaining the previewing content, when the user refreshes a browser, the server side can not preview the content for the client side any more due to the limitation of times, so that the accuracy of the recorded times and the safety of the file are greatly guaranteed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic view of an interface window for a user to set a number of allowed previews according to an embodiment of the method of the present invention, where the number of allowed previews is 1;
FIG. 2 is a diagram of a webpage file window opened by a user for the first time after the setting of the number of allowed previews is successful in FIG. 1;
FIG. 3 is a schematic diagram of an interface for the web page of FIG. 2 with links prompted by the system to expire when the preview is opened for the second time;
FIG. 4 is a schematic view of an interface window for a user to set the allowed preview number according to another embodiment of the method of the present invention, where the allowed preview number is 2;
FIG. 5 is a diagram of a webpage file window opened by a user for the first time after the setting of the allowed preview times is successful in FIG. 4;
FIG. 6 is a diagram of a web page file window opened by the user for the second time after the setting of the allowed preview times is successful in FIG. 4;
FIG. 7 is a schematic diagram of an interface for the web page of FIG. 4 with links prompted by the system to expire when the preview is opened for the third time.
Detailed Description
The technical solutions of the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings of the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "upper", "lower", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used only for convenience in describing the present invention and for simplicity in description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus, are not to be construed as limiting the present invention. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
The gist of the present invention will be further explained below with reference to the accompanying drawings and examples.
Example (b):
for the problems existing in the prior art, the present invention provides a method for controlling the number of times of previewing a page, please refer to fig. 1-7.
A method of controlling the number of times a page is previewed, comprising:
after uploading the file to a computer, a user inputs a parameter to a server, wherein the parameter is the number of times the file is allowed to be previewed;
the background program acquires the parameters and allocates a unique address to the file, the parameters are stored in the address, the background program generates a preview link corresponding to the file, and the unique address and the preview link are stored in a server side;
when a user previews a file through the preview link, the background program analyzes a file address through the preview link, the server records the previewed times of the file, and if the previewed times are larger than the value of the parameter, the file is limited to be previewed by the server.
In one embodiment, a user sends a preview limiting request to a background program by inputting parameters, and the background program receives the preview limiting request and acquires the parameters;
and the background program allocates a unique address to the uploaded file according to the acquired parameters, and the address records the allowed preview times of the file set by the user.
In one embodiment, the daemon establishes an association between the generated preview link and a unique address allocated to the uploaded file, and stores the established association in a server side at the same time.
In one embodiment, a user opens a preview link on computer equipment, and a background program acquires an address of the preview link and analyzes the unique address of the preview corresponding to the preview link;
and the background program inquires the file address recorded by the server side and the allowable preview times of the file.
In one embodiment, the server records the previewed times of the file, the previewed times are increased along with the times of the file being opened, the background program compares the previewed times with the allowable previewing times of the file, and if the previewed times are greater than the allowable previewing times, the file is limited to be previewed by the server.
Aiming at the premise that a user has a safety requirement on the link and the resource of the preview document, if the preview link and the resource are required to be only allowed to be accessed once, namely, the preview link and the resource are burnt after reading, the user hopes to carry out the operation of destroying after reading aiming at part of files containing privacy or important contents, and the method for controlling the page previewing frequency can effectively solve the problem when the safety requirements such as confidentiality and the like are met.
The method for controlling the page previewing times is mainly characterized in that a background program inquires a file address (id) recorded by a server side and information of allowed previewing times, and the previewing times are compared with the previewed times to control the file previewing times, so that the server side is closed at regular time.
The previewing times are increased along with the previewing times of the user, the user previews the previewed times once, the server records the value of the unique id and the previewed times once, the previewed times are increased by one, then whether the previewed times are legal or not is judged by comparing the recorded previewed times with the allowed times set at the beginning, if the previewed times are smaller than or equal to the allowed times, the previewed times are legal, otherwise, the previewed times are illegal, normal resource information is returned, the illegal situation prompts the user that the link is overdue, and when the user requests the link, the background adds one to the unique id.
Referring to fig. 1-3, a user sets an allowed preview time to be 1, when a server generates a preview web page file, the server records the preview time according to the unique id of the file, when the user previews the web page content, the time is increased by 1 (see fig. 2, the preview is successfully opened for the first time), until the time is greater than a set value, the user directly stops obtaining the preview content, and when the user refreshes a browser, the server does not preview the content for the client any more because of the time limitation (for example, fig. 3, the preview fails to be opened for the second time).
Referring to fig. 4-7, the user sets the allowed preview number to be 2, when the server generates a preview web page file, the server records the preview number according to the unique id of the file, when the user previews the web page content, the number of times is increased by 1 (see fig. 5 and 6, the first time and the second time of opening the preview are both successful), until the number of times is greater than the set value, the user directly stops obtaining the preview content, when the user refreshes the browser, the server does not preview the content to the client any more because of the number limitation (for example, fig. 7, the third time of opening the preview fails), so that the accuracy of the recorded number of times and the security of the file are greatly guaranteed.
In summary, the invention provides a method for controlling the number of times of previewing a page, which realizes that a server side sets the number of times of previewing a file, when a browser previews the file, the page access is controlled according to the access number set by the server side, once the number of times of previewing exceeds the number of times of previewing, the function can realize that the file is burnt after being read, and the information security is ensured.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example" or "some examples" or the like are intended to mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples described in this specification can be combined and combined by one skilled in the art.
While embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and not to be construed as limiting the present invention, and that changes, modifications and variations may be made therein by those of ordinary skill in the art within the scope of the present invention.

Claims (5)

1. A method for controlling the number of times a page is previewed, comprising:
after uploading the file to a computer, a user inputs a parameter to a server, wherein the parameter is the number of times the file is allowed to be previewed;
the background program acquires the parameters and allocates a unique address to the file, the parameters are stored in the address, the background program generates a preview link corresponding to the file, and the unique address and the preview link are stored in a server side;
when a user previews a file through the preview link, the background program analyzes a file address through the preview link, the server records the previewed times of the file, and if the previewed times are larger than the value of the parameter, the file is limited to be previewed by the server.
2. The method according to claim 1, wherein a user sends a preview limitation request to the background program by inputting parameters, and the background program receives the preview limitation request and obtains the parameters;
and the background program allocates a unique address to the uploaded file according to the acquired parameters, and the address records the allowed preview times of the file set by the user.
3. The method of claim 2, wherein the daemon associates the generated preview link with the unique address allocated to the uploaded file, and stores the established association at the server side.
4. The method of claim 1, wherein a user opens a preview link on a computer device, and a daemon program obtains an address of the preview link and resolves a unique address of the preview corresponding to the preview link;
and the background program inquires the file address recorded by the server side and the allowable preview times of the file.
5. The method according to claim 4, wherein the server records previewed times of the file, the previewed times are increased along with the opened times of the file,
and the background program compares the previewed times with the allowed previewing times of the file, and if the previewed times are greater than the allowed previewing times, the file is limited to be previewed by the server side.
CN202010425127.3A 2020-05-19 2020-05-19 Method for controlling page previewing times Pending CN113688417A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010425127.3A CN113688417A (en) 2020-05-19 2020-05-19 Method for controlling page previewing times

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010425127.3A CN113688417A (en) 2020-05-19 2020-05-19 Method for controlling page previewing times

Publications (1)

Publication Number Publication Date
CN113688417A true CN113688417A (en) 2021-11-23

Family

ID=78575881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010425127.3A Pending CN113688417A (en) 2020-05-19 2020-05-19 Method for controlling page previewing times

Country Status (1)

Country Link
CN (1) CN113688417A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023207788A1 (en) * 2022-04-27 2023-11-02 北京字跳网络技术有限公司 Information processing method and apparatus, electronic device, and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023207788A1 (en) * 2022-04-27 2023-11-02 北京字跳网络技术有限公司 Information processing method and apparatus, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
US10545884B1 (en) Access files
CA2930253C (en) Single set of credentials for accessing multiple computing resource services
US9516066B2 (en) Rights management services integration with mobile device management
US6851113B2 (en) Secure shell protocol access control
EP2156402B1 (en) Integrating security by obscurity with access control lists
EP2434794B1 (en) Authenticating an auxiliary device from a portable electronic device
US20180152515A1 (en) File Storage Method and Apparatus for Instant Communication Messages
US11455424B2 (en) Tagging and auditing sensitive information in a database environment
US20220075894A1 (en) Tagging and auditing sensitive information in a database environment
JP2016532984A (en) Network connection automation
US10333936B2 (en) Method and system for secure cross-domain login
CN106790172B (en) File sharing method, server and client
CN103973642A (en) Method and device for realizing JS API security access control
JP2017503231A (en) Identity pool bridging for managed directory services
US20230019026A1 (en) Endpoint-based security
CN113688417A (en) Method for controlling page previewing times
US20220255914A1 (en) Identity information linking
US20090271871A1 (en) Intelligent uploaded content placement
US20230029402A1 (en) Shared channel invitation paths
US11934545B2 (en) Secure way to authenticate from file protocol while handling third party cookies and browser inconsistencies
CN113704809A (en) Method for controlling page preview time
US20200265073A1 (en) Systems and methods for secure storage and retrieval of trade data
Kosińska et al. Technical aspects of portal technology application for e-health systems
EP2518645A1 (en) System and method for policy based control of nas storage devices
Migenda et al. Macromol. Chem. Phys. 5/2018

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