CN105930152B - A kind of method and system of anti-screenshotss - Google Patents

A kind of method and system of anti-screenshotss Download PDF

Info

Publication number
CN105930152B
CN105930152B CN201610238759.2A CN201610238759A CN105930152B CN 105930152 B CN105930152 B CN 105930152B CN 201610238759 A CN201610238759 A CN 201610238759A CN 105930152 B CN105930152 B CN 105930152B
Authority
CN
China
Prior art keywords
webpage
clipbook
content
screenshotss
module
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.)
Active
Application number
CN201610238759.2A
Other languages
Chinese (zh)
Other versions
CN105930152A (en
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.)
SHENZHEN LAN-YOU TECHNOLOG Co Ltd
Original Assignee
SHENZHEN LAN-YOU TECHNOLOG 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 SHENZHEN LAN-YOU TECHNOLOG Co Ltd filed Critical SHENZHEN LAN-YOU TECHNOLOG Co Ltd
Priority to CN201610238759.2A priority Critical patent/CN105930152B/en
Publication of CN105930152A publication Critical patent/CN105930152A/en
Application granted granted Critical
Publication of CN105930152B publication Critical patent/CN105930152B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The present invention relates to a kind of method and system of the anti-screenshotss of webpage, comprising steps of S1, detection and judging whether webpage is opened;If so, S2 is entered step, if it is not, then repeating step S1;S2, judge whether the content in clipbook matches with the web page contents;If so, entering step S3;If it is not, then return step S1;S3, the content for including in the clipbook is emptied.A kind of method and system of the anti-screenshotss of webpage provided by the invention can entirely prevent carrying out screenshotss to browser without installing any plug-in unit.

Description

A kind of method and system of anti-screenshotss
Technical field
The present invention relates to field of information security technology more particularly to a kind of method and systems of anti-screenshotss.
Background technique
Now in daily production and life, the project of confidential document management, for the purpose of secrecy, it is often necessary to forbid to text Shelves are copied, and are downloaded, printing and screenshot.
Current solution is that screenshotss key is disabled using ActiveX plug-in unit mostly, and development difficulty is big, and is needed clear Device of looking at installation could normal use.
The major defect of prior art is as follows:
1, development difficulty is big.
2, it needs to sign to the plug-in unit of exploitation.
3, need client that plug-in unit is installed.
Summary of the invention
The technical problem to be solved in the present invention is that solving drawbacks described above in the prior art, a kind of side of anti-screenshotss is provided Method and system, development difficulty is big in the prior art for solution, needs to sign to the plug-in unit of exploitation, client is needed to install plug-in unit Defect.
In order to solve the above technical problems, the present invention provides a kind of method of the anti-screenshotss of webpage, comprising steps of S1, detection And judge whether webpage is opened;If so, S2 is entered step, if it is not, then repeating step S1;S2, judge content in clipbook Whether matched with the web page contents;If so, entering step S3;If it is not, then return step S1;S3, the clipbook is emptied In include content.
In one embodiment of this invention, the step S1 further comprises the steps of: the insertion in the network address front of the webpage and retouches State label, the content in webpage described in non-print.
In one embodiment of this invention, the step S3 further comprises the steps of: the content obtained in the clipbook, if not The content in the clipbook is got, then forcibly closes the webpage opened.
In one embodiment of this invention, S11 is further comprised the steps of: between the step S1 and the step S2, detection is It is no to have screenshotss movement;If so, entering step S2;If it is not, then return step S1.
In one embodiment of this invention, the method that the clipbook is emptied in the step S3 includes calling function that will cut The content of pasting board empties and calls content zero setting or any random number of the function by the clipbook.
The present invention also provides a kind of systems of the anti-screenshotss of webpage, comprising: webpage detection module, for detecting and judging net Whether page is opened;Matching module, for judging in clipbook when the webpage detection module detects that the webpage is opened Whether content matches with the web page contents;Empty module, for the content in the clipbook with it is described When web page contents match, the content for including in the clipbook is emptied.
In one embodiment of this invention, the webpage detection module further include: label is inserted into unit, in the net The front insertion of page network address describes label, the content in webpage described in non-print.
In one embodiment of this invention, the system of the anti-screenshotss of the webpage further include: module is obtained, it is described for obtaining Content in clipbook;Webpage closedown module, for the content in the clipbook to have not been obtained in the acquisition module When, forcibly close the webpage opened.
In one embodiment of this invention, the system of the anti-screenshotss of the webpage further include: screenshotss detection module, for detecting Whether screenshotss movement is had.
In one embodiment of this invention, the module that empties is also used to when emptying the clipbook, calls function will The content of clipbook empties and calls content zero setting or any random number of the function by the clipbook.
The method and system for implementing anti-screenshotss provided by the present invention, has the advantages that
Without installing any plug-in unit, can entirely prevent carrying out screenshotss to browser.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is a kind of flow diagram of one embodiment of method of the anti-screenshotss of webpage of the present invention.
Fig. 2 is a kind of block schematic illustration of one embodiment of system of the anti-screenshotss of webpage of the present invention.
Specific embodiment
In order to which the purpose of the present invention, technical solution and advantage is more clearly understood, below in conjunction with drawings and examples, The present invention will be described in further detail.It should be understood that specific embodiment described herein is only used for explaining this hair It is bright, it is not intended to limit the present invention.
As shown in Figure 1, Fig. 1 is a kind of flow diagram of one embodiment of method of the anti-screenshotss of webpage of the present invention.The present invention A kind of method of anti-screenshotss of webpage is provided, comprising steps of
S1, detection simultaneously judge whether webpage is opened;If so, S2 is entered step, if it is not, then repeating step S1;System is certainly Whether dynamic detection webpage relative program runs to judge whether webpage is opened, such as can pass through the phase in detection Program Manager Close .exe application process to determine whether have webpage and its associated process it is in the open state or whether have webpage operation shape In state.In the present invention, it can be also possible to detect at preset timed intervals by whether opening by real-time detection of webpage, such as Every 50ms detection is primary.
S2, judge whether the content in clipbook matches with web page contents;If so, entering step S3;If it is not, then returning Step S1;
In one embodiment of the invention, content in web page contents and clipbook fits through images match to realize. Wherein, images match is divided into the matching based on gray scale and the matching based on feature.
Gray-scale Matching regards image as 2D signal with the viewpoint counted, using between the method searching signal of statistical correlation Relevant matches.Using the correlation function of two signals, their similitude is evaluated to determine same place.Gray-scale Matching passes through benefit With certain similarity measurement, such as correlation function, covariance function, poor quadratic sum, poor absolute value and estimate extreme value, determines two width Corresponding relationship in image.Preferably, the Gray-scale Matching method used in the present embodiment is Normalized Grey Level matching method, substantially former Reason is the gray matrix a realtime graphic window with a certain size pixel-by-pixel, all possible window with reference picture Mouth gray scale array, the matching process compared is scanned for by certain method for measuring similarity, is in theory exactly using image The relevant technologies.Can certainly be sorted related algorithm using amplitude, and the sequence of FFT related algorithm and hierarchical search judges algorithm Deng.
Characteristic matching refers to the feature (features such as point, line, surface) by extracting two or more images respectively, to feature into The description of row parameter, then carries out a kind of matched algorithm with described parameter.Figure handled by feature-based matching As the feature generally comprised has color characteristic, textural characteristics, shape feature, spatial position feature etc..Characteristic matching is first to figure As being pre-processed to extract its high-level feature, the matching corresponding relationship of feature between two images is then established, usually The feature primitive used has point feature, edge feature and provincial characteristics.Characteristic matching need to use many such as matrixes operation, The solution of gradient, there are also the mathematical operations such as Fourier transform and Taylor expansion.The feature extracting and matching used in the present embodiment Method has: statistical method, geometric method, modelling, signal processing method, boundary characteristic method, fourier shape description method, geometric parameter Method, shape invariance moments method etc..Since the characteristic point compared pixels point of image is many less, the matching process based on characteristics of image is big Reduce the calculation amount of matching process greatly;Meanwhile the variation that the matching degree magnitude contraposition of characteristic point is set is more sensitive, it can be significantly Improve matched levels of precision;Moreover, the extraction process of characteristic point can reduce the influence of noise, to grey scale change, image shape Become and block etc. and well adapts to ability.
S3, the content for including in clipbook is emptied.When screenshotss, screenshotss content, which is usually stored in graphic form, is cliped and pasted In plate, it by emptying Contents of clipboard, can understand screenshotss content, both can prevent the content in webpage from leaking out by screenshotss It goes.In one embodiment of the invention, by calling function: " window.clipboardData.clearData ();" Lai Shixian The content for including in clipbook is emptied, prevents web page contents by screenshotss.
In one embodiment of this invention, step S1 is further comprised the steps of: in the network address front of webpage insertion description label, is prohibited The only content in printing network page.Due to having printing function in webpage, in addition to preventing web page contents by screenshotss, while net is also prevented Page content is printed.So by being inserted into description label in the network address front of webpage come non-print in one embodiment of the invention Web page contents.Such as by calling label: "<style>@media print { * { display:none } }</style>" insertion Non-print web page contents are carried out in network address front.
In order to further prevent user to obtain Contents of clipboard using plug-in unit shielding harness when using webpage, step S3 is also Comprising steps of the content obtained in clipbook forcibly closes the webpage opened if the content in clipbook has not been obtained.
Preferably, S11 is further comprised the steps of: between step S1 and step S2, has detected whether screenshotss movement;If so, into Enter step S2;If it is not, then return step S1.In order to preferably complete the anti-screenshotss of webpage, after detecting that webpage is opened, equally Identical mode can be detected using with webpage, whether there are screenshotss by real-time detection or detected whether to cut at preset timed intervals Screen movement, such as every 50ms detection are primary.Further, the method that clipbook is emptied in step S3 includes calling function that will clip and paste The content of plate empties and calls content zero setting or any random number of the function by clipbook.In one embodiment of this invention, may be used To use function: " window.clipboardData.clearData ();" empty the content of clipbook.It can also be to right Shear plate calls function " EmptyClipboard () " to empty shear plate or replace with calling function All shear plate data are set 0 or set random number by " SetClipboardData () ".Hereafter, user uses stickup, Ctrl+V etc. The content for the clipbook that means paste out is all empty or mistake content.
As shown in Fig. 2, Fig. 2 is a kind of block schematic illustration of one embodiment of system of the anti-screenshotss of webpage of the present invention.The present invention Additionally provide a kind of system of anti-screenshotss of webpage, comprising:
Webpage detection module, for detecting and judging whether webpage is opened;, such as can be by detection Program Manager Related .exe application process to determine whether having webpage and its associated process in the open state or whether there is webpage transporting In row state.In the present invention, it can be also possible to detect at preset timed intervals by whether opening by real-time detection of webpage, Such as every 50ms detection is once.
Matching module, for judging the content and webpage in clipbook when webpage detection module detects that webpage is opened Whether content matches;In one embodiment of the invention, content in web page contents and clipbook fits through images match It realizes.Wherein, images match is divided into the matching based on gray scale and the matching based on feature.
Gray-scale Matching regards image as 2D signal with the viewpoint counted, using between the method searching signal of statistical correlation Relevant matches.Using the correlation function of two signals, their similitude is evaluated to determine same place.Gray-scale Matching passes through benefit With certain similarity measurement, such as correlation function, covariance function, poor quadratic sum, poor absolute value and estimate extreme value, determines two width Corresponding relationship in image.Preferably, the Gray-scale Matching method used in the present embodiment is Normalized Grey Level matching method, substantially former Reason is the gray matrix a realtime graphic window with a certain size pixel-by-pixel, all possible window with reference picture Mouth gray scale array, the matching process compared is scanned for by certain method for measuring similarity, is in theory exactly using image The relevant technologies.Can certainly be sorted related algorithm using amplitude, and the sequence of FFT related algorithm and hierarchical search judges algorithm Deng.Characteristic matching refers to the feature (features such as point, line, surface) by extracting two or more images respectively, joins to feature Number description, then carries out a kind of matched algorithm with described parameter.Image one handled by feature-based matching As include feature have color characteristic, textural characteristics, shape feature, spatial position feature etc..Characteristic matching first to image into Then row pretreatment establishes the matching corresponding relationship of feature between two images to extract its high-level feature, usually used Feature primitive have point feature, edge feature and provincial characteristics.Characteristic matching needs to use the operation of many such as matrixes, gradient Solution, there are also the mathematical operations such as Fourier transform and Taylor expansion.The feature extracting and matching method used in the present embodiment Have: statistical method, geometric method, modelling, signal processing method, boundary characteristic method, fourier shape description method, geometry parameter method, shape Shape Moment invariants etc..Since the characteristic point compared pixels point of image is many less, the matching process based on characteristics of image subtracts significantly The calculation amount of matching process is lacked;Meanwhile the variation that the matching degree magnitude contraposition of characteristic point is set is more sensitive, can greatly improve Matched levels of precision;Moreover, the extraction process of characteristic point can reduce the influence of noise, to grey scale change, image deformation with And it blocks etc. and to well adapt to ability.
Module is emptied, includes for emptying in clipbook when being matched for the content in clipbook with web page contents Content.When screenshotss, screenshotss content is usually stored in clipbook with graphic form, can by emptying Contents of clipboard To understand screenshotss content, both it can prevent the content in webpage from leaking out by screenshotss.In one embodiment of the invention, pass through Call function: " window.clipboardData.clearData ();" Lai Shixian empties the content for including in clipbook, prevent Only web page contents are by screenshotss.
In one embodiment of this invention, webpage detection module further include: label is inserted into unit, in webpage network address Front insertion describes label, the content in non-print webpage.Due to having printing function in webpage, in addition to preventing web page contents quilt Screenshotss, while also to prevent web page contents from being printed.So by being inserted in the network address front of webpage in one embodiment of the invention Enter to describe label and carrys out non-print web page contents.Such as by calling label: "<style>@media print * display: None } }</style>" insertion network address front carry out non-print web page contents.
In order to further prevent user to obtain Contents of clipboard using plug-in unit shielding harness when using webpage, webpage is counter to be cut The system of screen further include: module is obtained, for obtaining the content in clipbook;Webpage closedown module, for obtaining module not When getting the content in clipbook, the webpage opened is forcibly closed.
Preferably, the system of the anti-screenshotss of webpage further include: screenshotss detection module, for detecting whether there is screenshotss movement.For The better anti-screenshotss for completing webpage equally can detect identical mode using with webpage after detecting that webpage is opened, Whether there are screenshotss by real-time detection or detected whether screenshotss movement at preset timed intervals, such as every 50ms detection is primary.Into One step, it empties module and is also used to when emptying clipbook, function is called to empty and call function will cut the content of clipbook The content zero setting or any random number of pasting board.In one embodiment of this invention, function can be used: "window.clipboardData.clearData();" empty the content of clipbook.Letter can also be called to shear plate Number " EmptyClipboard () ", which empties shear plate or replaces with, calls function " SetClipboardData () " to cut all Cutting plate data set 0 or set random number.Hereafter, the content for the clipbook that user pastes out using means such as stickup, Ctrl+V is all For empty or mistake content.
A kind of method and system of the anti-screenshotss of webpage provided by the present invention can be prevented completely without installing any plug-in unit Screenshotss only are carried out to browser.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (2)

1. a kind of method of the anti-screenshotss of webpage, which is characterized in that comprising steps of
S1, detection simultaneously judge whether webpage is opened;If so, S2 is entered step, if it is not, then repeating step S1;The step S1 It further comprises the steps of: and describes label in the insertion of the network address front of the webpage, the content in webpage described in non-print;
S11 is further comprised the steps of: between the step S1 and the step S2, has detected whether screenshotss movement;If so, entering step Rapid S2;If it is not, then return step S1;
S2, judge whether the content in clipbook matches with the web page contents;If so, entering step S3;If it is not, then returning Step S1;
S3, the content for including in the clipbook is emptied;The step S3 further comprises the steps of: interior in the acquisition clipbook Hold, if the content in the clipbook has not been obtained, forcibly closes the webpage opened;Institute is emptied in the step S3 The method for stating clipbook includes the content zero setting for calling function to empty and call function for the clipbook for the content of clipbook Or any random number.
2. a kind of system of the anti-screenshotss of webpage characterized by comprising
Webpage detection module, for detecting and judging whether webpage is opened;The webpage detection module further include: label insertion is single Member, for being inserted into description label in the front of the webpage network address, the content in webpage described in non-print;
Matching module, for when the webpage detection module detects that the webpage is opened, judge content in clipbook with Whether the web page contents match;
Module is emptied, for emptying described when the content in the clipbook is matched with the web page contents The content for including in clipbook;The module that empties is also used to when emptying the clipbook, calls function will be in clipbook Appearance empties and calls content zero setting or any random number of the function by the clipbook;
The system of the anti-screenshotss of webpage further include:
Module is obtained, for obtaining the content in the clipbook;
Webpage closedown module, for forcibly closing when the content in the clipbook has not been obtained in the acquisition module The webpage opened;
Screenshotss detection module, for detecting whether there is screenshotss movement.
CN201610238759.2A 2016-04-15 2016-04-15 A kind of method and system of anti-screenshotss Active CN105930152B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610238759.2A CN105930152B (en) 2016-04-15 2016-04-15 A kind of method and system of anti-screenshotss

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610238759.2A CN105930152B (en) 2016-04-15 2016-04-15 A kind of method and system of anti-screenshotss

Publications (2)

Publication Number Publication Date
CN105930152A CN105930152A (en) 2016-09-07
CN105930152B true CN105930152B (en) 2019-04-26

Family

ID=56838436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610238759.2A Active CN105930152B (en) 2016-04-15 2016-04-15 A kind of method and system of anti-screenshotss

Country Status (1)

Country Link
CN (1) CN105930152B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106936998B (en) * 2017-03-21 2019-11-22 北京小米移动软件有限公司 Screenshotss method and screen video recorder

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1735870A (en) * 2003-01-20 2006-02-15 富士通株式会社 Copy preventing apparatus, duplicate the method for preventing and make computing machine carry out the program of this method
CN102110113A (en) * 2009-12-28 2011-06-29 北京安码科技有限公司 Method for preventing screen copy of webpage content and device thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7836301B2 (en) * 2004-03-10 2010-11-16 Harris Steven M Computer program for securely viewing a file

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1735870A (en) * 2003-01-20 2006-02-15 富士通株式会社 Copy preventing apparatus, duplicate the method for preventing and make computing machine carry out the program of this method
CN102110113A (en) * 2009-12-28 2011-06-29 北京安码科技有限公司 Method for preventing screen copy of webpage content and device thereof

Also Published As

Publication number Publication date
CN105930152A (en) 2016-09-07

Similar Documents

Publication Publication Date Title
Hamad et al. A detailed analysis of optical character recognition technology
Agasti et al. Fake currency detection using image processing
US20120087537A1 (en) System and methods for reading and managing business card information
CN110059596B (en) Image identification method, device, medium and electronic equipment
CN103208004A (en) Automatic recognition and extraction method and device for bill information area
CN109740417B (en) Invoice type identification method, invoice type identification device, storage medium and computer equipment
CN101599125A (en) The binarization method that the complex background hypograph is handled
Mayan et al. Number plate recognition using template comparison for various fonts in MATLAB
Nagabhushan et al. Text extraction in complex color document images for enhanced readability
CN105303363A (en) Data processing method and data processing system
CN105930152B (en) A kind of method and system of anti-screenshotss
CN102915522A (en) Smart phone name card extraction system and realization method thereof
Grover et al. Text extraction from document images using edge information
Boiangiu et al. Handwritten documents text line segmentation based on information energy
Chadha et al. License plate recognition system using OpenCV & PyTesseract
Colaco et al. Efficient Image Processing Technique for Authentication of Indian Paper Currency
CN111563845A (en) Bill surface scratch detection method, device, equipment and storage medium
EP4105825A1 (en) Generalised anomaly detection
Saxena Identification of Fake Currency: A Case Study of Indian Scenario.
Van Beusekom et al. Document signature using intrinsic features for counterfeit detection
Vishnu et al. Principal component analysis on Indian currency recognition
Ahmed et al. Indian Currency Detection Using Image Recognition Technique
Saxena et al. Fake currency detection using image processing
Mane et al. Signature matching with automated cheque system
Colaco et al. Image Processing Technique for Authentication of Indian Paper Currency.

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant