CN110276175A - Watermark generation method, device, client and server in webpage - Google Patents
Watermark generation method, device, client and server in webpage Download PDFInfo
- Publication number
- CN110276175A CN110276175A CN201910570448.XA CN201910570448A CN110276175A CN 110276175 A CN110276175 A CN 110276175A CN 201910570448 A CN201910570448 A CN 201910570448A CN 110276175 A CN110276175 A CN 110276175A
- Authority
- CN
- China
- Prior art keywords
- target
- background
- client
- server
- watermark
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 67
- 238000004590 computer program Methods 0.000 claims description 18
- 238000012512 characterization method Methods 0.000 claims description 12
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims description 3
- 238000009877 rendering Methods 0.000 abstract description 3
- 238000004891 communication Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000005055 memory storage Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007717 exclusion Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/16—Program or content traceability, e.g. by watermarking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
Abstract
The embodiment of the present application provides watermark generation method in webpage, device, client and server, in the cascading style sheets CSS style sheet of active client load target pages, the label for needing to add Background by the selector matching of the CSS style sheet of target pages, obtains specified label;The downloading request of the corresponding target background figure of logon account of active client is sent to server, wherein target background figure includes the watermark of the identity information of the logon account of active client;The target background figure that server is returned according to downloading request is obtained, adds target background figure in the element of specified label.Active client adds target background figure in the element layer of specified label, and subsequent client is after the completion of rendering, all over the watermark for the identity information for containing the logon account including active client in target pages.If divulging a secret screenshot or by way of taking pictures, can be divulged a secret source by watermark search, facilitated and determined source of divulging a secret, be conducive to information protection.
Description
Technical field
This application involves field of computer technology, more particularly to watermark generation method, device, client and clothes in webpage
Business device.
Background technique
In the related technology, the higher built-in system of security requirement usually requires connection VPN (Virtual Private
Network, Virtual Private Network) it acts on behalf of and could access, to guarantee the safety of data, but it is hidden still to there are some safety in this way
Suffer from, for example, log on to management system after intra-company employee A connects VPN, at this time user A can by taking pictures, the modes such as screenshot
Internal data is passed into other companies.When above situation occurs, it can not determine the source of divulging a secret, be unfavorable for information protection.
Summary of the invention
The embodiment of the present application is designed to provide watermark generation method, device, client and server in a kind of webpage,
Source of divulging a secret is determined to realize to facilitate.Specific technical solution is as follows:
In a first aspect, the embodiment of the present application provides watermark generation method in a kind of webpage, it is applied to client, the side
Method includes:
In the cascading style sheets CSS style sheet of active client load target pages, pass through the CSS of the target pages
The selector matching of style sheet needs to add the label of Background, obtains specified label;
The downloading request of the corresponding target background figure of logon account of active client is sent to server, wherein described
Target background figure includes the watermark of the identity information of the logon account of the active client;
Obtain the target background figure that the server is returned according to the downloading request;
The target background figure is added in the element of the specified label.
Optionally, in the CSS style sheet of active client load target pages, pass through the CSS sample of the target pages
Before the selector of formula table matches the label of the target pages, the method also includes:
Logging request is sent to server;
Obtain the token Token that the server is issued according to the logging request.
Optionally, after the token Token that the acquisition server is issued according to the logging request, the side
Method further include:
Access request for the target page is sent to the server, wherein includes described in the access request
Token;
Obtain the load data for the target pages that the server is returned according to the access request, wherein described
Loading in data includes specified label, and the specified tag characterization adds Background.
It is optionally, described that the target background figure is added in the element of the specified label, comprising:
The target background figure is adjusted to specified size;
By the size target background figure adjusted in a manner of repeated arrangement, it is paved with the element area of the specified label
Domain.
Second aspect, the embodiment of the present application provide watermark generation method in a kind of webpage, are applied to server, the side
Method includes:
When receiving downloading request of the destination client for target background figure, according to the login of the destination client
The identity information of account generates the target background figure of the watermark including the identity information;
The target background figure is sent to the destination client, so that the destination client is in load target pages
In the process, the target background figure is added in the element of specified label.
Optionally, when receiving downloading request of the destination client for target background figure, according to the target customer
The identity information of the logon account at end, before generation includes the target background figure of the watermark of the identity information, the method is also
Include:
Obtain the logging request sent by the destination client;
According to the logging request, the identity information of the logon account of the destination client is determined;
The corresponding Token of the identity information is issued to the destination client.
Optionally, the method also includes:
Obtain the access request of the destination client for the target page, wherein include described in the access request
Token;
When the corresponding permission of the Token reaches the access authority of the target pages, the destination client Xiang Suoshu hair
Send the load data of the target pages, wherein it include specified label in the load data, the specified tag characterization addition
Target background figure.
Optionally, described when receiving downloading request of the destination client for target background figure, according to the target
The identity information of the logon account of client generates the target background figure of the watermark including the identity information, comprising:
When receiving downloading request of the destination client for target background figure, according to the Token, the mesh is obtained
Mark the identity information of the logon account of client;
Generate the target background figure of the watermark including the identity information.
The third aspect, the embodiment of the present application provide watermark generating means in a kind of webpage, are applied to client, the dress
It sets and includes:
Tag match module, for passing through in the cascading style sheets CSS style sheet of active client load target pages
The selector matching of the CSS style sheet of the target pages needs to add the label of Background, obtains specified label;
Background request module, for the corresponding target background figure of logon account to server transmission active client
Downloading request, wherein the target background figure includes the watermark of the identity information of the logon account of the active client;
Background obtains module, the target background returned for obtaining the server according to the downloading request
Figure;
Background adding module, for adding the target background figure in the element of the specified label.
Optionally, described device further include:
Logging request sending module, for sending logging request to server;
Token obtains module, the token Token issued for obtaining the server according to the logging request.
Optionally, described device further include:
Access request sending module, for sending access request for the target page to the server, wherein described
It include the Token in access request;
Load data acquisition module, the target pages returned for obtaining the server according to the access request
Load data, wherein include specified label in the load data, the specified tag characterization adds Background.
Optionally, the Background adding module, is specifically used for:
The target background figure is adjusted to specified size;
By the size target background figure adjusted in a manner of repeated arrangement, it is paved with the element area of the specified label
Domain.
Fourth aspect, the embodiment of the present application provide watermark generating means in a kind of webpage, are applied to server, the dress
It sets and includes:
Background generation module, for receive destination client for target background figure downloading request when, according to
The identity information of the logon account of the destination client generates the target background figure of the watermark including the identity information;
Background sending module, for sending the target background figure to the destination client, so that the target is objective
The target background figure is added in the element of specified label during loading target pages in family end.
Optionally, described device further include:
Logging request obtains module, for obtaining the logging request sent by the destination client;
Identity information determining module, for determining the logon account of the destination client according to the logging request
Identity information;
Token sending module, for issuing the corresponding Token of the identity information to the destination client.
Optionally, described device further include:
Access request obtains module, for obtaining the access request of the destination client for the target page, wherein institute
Stating includes the Token in access request;
Data transmission blocks are loaded, for reaching the access authority of the target pages in the corresponding permission of the Token
When, the destination client Xiang Suoshu sends the load data of the target pages, wherein includes specified mark in the load data
Label, the specified tag characterization add target background figure.
Optionally, the Background generation module, is specifically used for:
When receiving downloading request of the destination client for target background figure, according to the Token, the mesh is obtained
Mark the identity information of the logon account of client;
Generate the target background figure of the watermark including the identity information.
5th aspect, the embodiment of the present application provide a kind of client, including processor and memory;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes any institute of above-mentioned first aspect
Watermark generation method in the webpage applied to client stated.
6th aspect, the embodiment of the present application provide a kind of server, including processor and memory;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes any institute of above-mentioned second aspect
Watermark generation method in the webpage applied to server stated.
7th aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer-readable storage
Dielectric memory contains computer program, and the computer program realizes that above-mentioned first aspect is any described when being executed by processor
Applied to watermark generation method in the webpage of client.
Eighth aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer-readable storage
Dielectric memory contains computer program, and the computer program realizes that above-mentioned first aspect is any described when being executed by processor
Applied to watermark generation method in the webpage of server.
Watermark generation method, device, client and server in webpage provided by the embodiments of the present application, in active client
When loading the cascading style sheets CSS style sheet of target pages, need to add by the selector matching of the CSS style sheet of target pages
The label for adding Background obtains specified label;The corresponding target background figure of logon account of active client is sent to server
Downloading request, wherein target background figure includes the watermark of the identity information of the logon account of active client;Obtain server
According to the target background figure that downloading request returns, target background figure is added in the element of specified label.Active client is referring to
Calibrate label element layer in add target background figure, subsequent client after the completion of rendering, in target pages all over contain including
The watermark of the identity information of the logon account of active client.If divulging a secret screenshot or by way of taking pictures, can lead to
It crosses watermark search to divulge a secret source, facilitates and determine source of divulging a secret, be conducive to information protection.Certainly, implement any product or the side of the application
Method does not necessarily require achieving all the advantages described above at the same time.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the first schematic diagram of watermark generation method in the webpage applied to client of the embodiment of the present application;
Fig. 2 is a kind of schematic diagram of the Background of the embodiment of the present application;
Fig. 3 is a kind of schematic diagram of the target webpage display effect of the embodiment of the present application;
Fig. 4 is second of schematic diagram of watermark generation method in the webpage applied to client of the embodiment of the present application;
Fig. 5 is the first schematic diagram of watermark generation method in the webpage applied to server of the embodiment of the present application;
Fig. 6 is second of schematic diagram of watermark generation method in the webpage applied to server of the embodiment of the present application;
Fig. 7 is a kind of schematic diagram of watermark generating means in the webpage applied to client of the embodiment of the present application;
Fig. 8 is a kind of schematic diagram of watermark generating means in the webpage applied to server of the embodiment of the present application;
Fig. 9 is a kind of schematic diagram of the client of the embodiment of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
Firstly, the term to the embodiment of the present application explains:
Watermark server: API (Application Programming Interface, application program are provided to client
Programming interface) interface, client by the interface obtain watermark picture, image content mainly include user name, company name and
User ID.
Label: the infrastructure elements of webpage, such as form tag, hyperlink label, heading label etc. are formed.
CSS (Cascading Style Sheets, cascading style sheets) style sheet: it is in for controlling each label on webpage
Reveal the appearance style come, for example rectangularity can be presented by button element by CSS style sheet.
Selector: for matching the rule of label, such as label selector, ID selector, class selector in CSS style sheet
Deng.
In the Telnet technology based on VPN, in order to which aspect confirms source of divulging a secret, the embodiment of the present application provides a kind of net
Watermark generation method in page is applied to client, referring to Fig. 1, this method comprises:
S101, in the CSS (Cascading Style Sheets, cascading style sheets) of active client load target pages
When style sheet, needs to add the label of Background by the selector matching of the CSS style sheet of above-mentioned target pages, specified
Label.
Watermark generation method is applied to client in the webpage of the embodiment of the present application, therefore can specifically pass through client reality
It is existing.Target pages are any page to be shown, during active client loads target pages, in load target pages
CSS style sheet when, need to add the label of Background using the selector matching of the CSS style sheet of target pages, referred to
Calibration label.The selector of CSS style sheet can specifically include class selector (such as Ksc-mask etc.) and tag name selection herein
Device (such as Table label etc.).It needs to preset the label for needing to add Background, and informs that selector needs to add background
The feature of the label of figure, to realize the matching of the label of addition Background.
S102 sends the downloading request of the corresponding target background figure of logon account of active client to server, wherein
Above-mentioned target background figure includes the watermark of the identity information of the logon account of above-mentioned active client.
Active client sends Background downloading request to server, and server obtains the login account including active client
The target background figure of the watermark of the identity information at family, and target background figure is returned to active client.
S103 obtains the above-mentioned target background figure that above-mentioned server is returned according to above-mentioned downloading request.
Active client receives the target background figure returned by server.Stepping on including active client in target background figure
The watermark of the identity information of account is recorded, the identity information of logon account may include the user name of logon account, company name and use
Family ID etc. is one of data or a variety of.For example, a kind of possible target background figure can be as shown in Figure 2.
S104 adds above-mentioned target background figure in the element of above-mentioned specified label.
Active client adds target background figure in the element layer of specified label, subsequent client after the completion of rendering,
All over the watermark for the identity information for containing the logon account including active client, such as a kind of possible load in target pages
The target pages of completion can be as shown in Figure 3.If divulging a secret screenshot or by way of taking pictures, watermark search can be passed through
It divulges a secret source.Facilitate and determine source of divulging a secret, is conducive to information protection.
It is above-mentioned that above-mentioned target background figure is added in the element of above-mentioned specified label in a kind of possible embodiment,
Include:
Above-mentioned target background figure is adjusted to specified size by step 1.
Specified size can be to be preset, can also be true according to the elemental areas size of the specified label of target pages
It is fixed, for example, being set as one of 1/8th, four parts or the elemental areas with specified label of the elemental areas size of specified label
It is equal in magnitude.
Step 2 is paved with above-mentioned specified label by size above-mentioned target background figure adjusted in a manner of repeated arrangement
Elemental areas.
For example, being close in the elemental areas of specified label and what is be not overlapped being paved with target background figure, beyond specified label
Elemental areas part need get rid of.
Optionally, in the CSS style sheet of active client load target pages, pass through the CSS sample of above-mentioned target pages
Before the selector of formula table matches the label of above-mentioned target pages, referring to fig. 4, the above method further include:
S401 sends logging request to server.
In landfall process, client needs to send logging request to server, needs to include close guarantor in the logging request
Information, such as account and password or close guarantor's password etc..
S402 obtains the Token (token) that above-mentioned server is issued according to above-mentioned logging request.
When the log on request of active client passes through the certification of server, server allows logging in for active client,
And Token is issued to current server.Current server obtains the Token that server is issued.
Optionally, after the token Token that the above-mentioned server of above-mentioned acquisition is issued according to above-mentioned logging request, above-mentioned side
Method further include:
S403, Xiang Shangshu server send access request for the target page, wherein include upper in above-mentioned access request
State Token.
It is subsequent when sending data to server after current server obtains Token, it is specifically as follows transmission for mesh
When marking the access request of the page, need to carry the Token, using as authentication.
S404 obtains the load data for the above-mentioned target pages that above-mentioned server is returned according to above-mentioned access request, wherein
It include specified label in above-mentioned load data, above-mentioned specified tag characterization adds Background.
In the load data of target pages other than the data needed comprising target pages normal load, it is also necessary to including referring to
Calibration label, the specified label are the label for needing to add Background that pre-selection is appointed, characterization addition Background.In addition, may be used also
To include that taking for Background flows address.
The embodiment of the present application also provides watermark generation methods in a kind of webpage, are applied to server, referring to Fig. 5, the party
Method includes:
S501, when receiving downloading request of the destination client for target background figure, according to above-mentioned destination client
Logon account identity information, generate include above-mentioned identity information watermark target background figure.
Watermark generation method is applied to server in the webpage of the embodiment of the present application, therefore can specifically pass through server reality
It is existing.Destination client is any client, needed in server include the logon account of destination client identity information.Service
Identity information of the device according to the logon account of destination client, the target background figure of watermark of the generation including the identity information, one
The possible target background figure of kind can be as shown in Figure 2.
The destination client S502, Xiang Shangshu sends above-mentioned target background figure, so that above-mentioned destination client is in load target
During the page, above-mentioned target background figure is added in the element of specified label.
The step of server sends target background figure to destination client, and destination client loads target background figure specifically may be used
With referring to watermark generation method in the above-mentioned webpage applied to client, details are not described herein again.Destination client loads page object
After the completion of face, all over the watermark for the identity information for containing the logon account including active client, such as one kind in target pages
The target pages that possible load is completed can be as shown in Figure 3.If divulging a secret screenshot or by way of taking pictures, can lead to
Watermark search is crossed to divulge a secret source.Facilitate and determine source of divulging a secret, is conducive to information protection.
Optionally, referring to Fig. 6, when receiving downloading request of the destination client for target background figure, according to above-mentioned
The identity information of the logon account of destination client, before generation includes the target background figure of the watermark of above-mentioned identity information, on
State method further include:
S601 obtains the logging request sent by above-mentioned destination client.
It needs to include close breath information-preserving in logging request, such as account and password or close guarantor's password etc..
S602 determines the identity information of the logon account of above-mentioned destination client according to above-mentioned logging request.
For example, can determine the identity information of the logon account of destination client according to the close breath information-preserving of logging request.?
When identity information confirmation failure, login failure message can be returned to destination client.
S603, Xiang Shangshu issue destination client the corresponding Token of above-mentioned identity information.
Different identity information corresponds to different Token, corresponding with its identity information to issuing for destination client
Token。
Optionally, referring to watermark generation method in the webpage of Fig. 6 the embodiment of the present application further include:
S604 obtains the access request of above-mentioned destination client for the target page, wherein include in above-mentioned access request
Above-mentioned Token.
S605, when the corresponding permission of above-mentioned Token reaches the access authority of above-mentioned target pages, Xiang Shangshu target customer
End sends the load data of above-mentioned target pages, wherein includes specified label, above-mentioned specified tag characterization in above-mentioned load data
Add target background figure.
It may include capability identification in Token, by the capability identification in Token, judge whether destination client possesses
Access authority for the target page.When destination client possesses access authority for the target page, to destination client
Send the load data of target pages;In destination client when not access authority for the target page.To destination client
Return to the prompt information that characterization exceeds permission.It in Token can not also include capability identification in a kind of possible embodiment,
Server can be by determining the corresponding identity information of Token, and then determines access right according to the corresponding identity information of Token
Limit.
Optionally, above-mentioned when receiving downloading request of the destination client for target background figure, according to above-mentioned target
The identity information of the logon account of client generates the target background figure of the watermark including above-mentioned identity information, comprising:
Step A, according to above-mentioned Token, is obtained when receiving downloading request of the destination client for target background figure
The identity information of the logon account of above-mentioned destination client.
Step B generates the target background figure of the watermark including above-mentioned identity information.
The embodiment of the present application also provides watermark generating means in a kind of webpage, are applied to client, referring to Fig. 7, the dress
It sets and includes:
Tag match module 701, when for loading the cascading style sheets CSS style sheet of target pages in active client,
The label for needing to add Background by the selector matching of the CSS style sheet of the target pages, obtains specified label;
Background request module 702, for sending the corresponding target background of logon account of active client to server
The downloading of figure is requested, wherein the target background figure includes the watermark of the identity information of the logon account of the active client;
Background obtains module 703, carries on the back for obtaining the server according to the target that the downloading request returns
Jing Tu;
Background adding module 704, for adding the target background figure in the element of the specified label.
Optionally, watermark generating means in the webpage applied to client of the embodiment of the present application further include:
Logging request sending module, for sending logging request to server;
Token obtains module, the token Token issued for obtaining the server according to the logging request.
Optionally, watermark generating means in the webpage applied to client of the embodiment of the present application further include:
Access request sending module, for sending access request for the target page to the server, wherein described
It include the Token in access request;
Load data acquisition module, the target pages returned for obtaining the server according to the access request
Load data, wherein include specified label in the load data, the specified tag characterization adds Background.
Optionally, the Background adding module 704, is specifically used for:
The target background figure is adjusted to specified size;
By the size target background figure adjusted in a manner of repeated arrangement, it is paved with the element area of the specified label
Domain.
The embodiment of the present application also provides watermark generating means in a kind of webpage, are applied to server, referring to Fig. 8, the dress
It sets and includes:
Background generation module 801, for pressing when receiving downloading request of the destination client for target background figure
According to the identity information of the logon account of the destination client, the target background figure of the watermark including the identity information is generated;
Background sending module 802, for sending the target background figure to the destination client, so that the target
Client adds the target background figure in the element of specified label during loading target pages.
Optionally, watermark generating means in the webpage applied to server of the embodiment of the present application further include:
Logging request obtains module, for obtaining the logging request sent by the destination client;
Identity information determining module, for determining the logon account of the destination client according to the logging request
Identity information;
Token sending module, for issuing the corresponding Token of the identity information to the destination client.
Optionally, watermark generating means in the webpage applied to server of the embodiment of the present application further include:
Access request obtains module, for obtaining the access request of the destination client for the target page, wherein institute
Stating includes the Token in access request;
Data transmission blocks are loaded, for reaching the access authority of the target pages in the corresponding permission of the Token
When, the destination client Xiang Suoshu sends the load data of the target pages, wherein includes specified mark in the load data
Label, the specified tag characterization add target background figure.
Optionally, the Background generation module 801, is specifically used for:
When receiving downloading request of the destination client for target background figure, according to the Token, the mesh is obtained
Mark the identity information of the logon account of client;
Generate the target background figure of the watermark including the identity information.
The embodiment of the present application also provides a kind of clients, including processor and memory;
The memory, for storing computer program;
The processor, when for executing the program stored on the memory, for realizing following steps:
In the cascading style sheets CSS style sheet of active client load target pages, pass through the CSS of the target pages
The selector matching of style sheet needs to add the label of Background, obtains specified label;
The downloading request of the corresponding target background figure of logon account of active client is sent to server, wherein described
Target background figure includes the watermark of the identity information of the logon account of the active client;
Obtain the target background figure that the server is returned according to the downloading request;
The target background figure is added in the element of the specified label.
Optionally, referring to Fig. 9, the client of the embodiment of the present application further includes communication interface 902 and communication bus 904,
In, processor 901, communication interface 902, memory 903 completes mutual communication by communication bus 904.
Optionally, when above-mentioned processor is used to execute the computer program of above-mentioned memory storage, additionally it is possible to realize above-mentioned
Watermark generation method in any webpage applied to client.
The embodiment of the present application also provides a kind of servers, including processor and memory;
The memory, for storing computer program;
The processor, when for executing the program stored on the memory, for realizing following steps:
When receiving downloading request of the destination client for target background figure, according to the login of the destination client
The identity information of account generates the target background figure of the watermark including the identity information;
The target background figure is sent to the destination client, so that the destination client is in load target pages
In the process, the target background figure is added in the element of specified label.
Optionally, when above-mentioned processor is used to execute the computer program of above-mentioned memory storage, additionally it is possible to realize above-mentioned
Watermark generation method in any webpage applied to server.
The communication bus that above-mentioned electronic equipment is mentioned can be PCI (Peripheral Component
Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard
Architecture, expanding the industrial standard structure) bus etc..The communication bus can be divided into address bus, data/address bus, control
Bus etc..Only to be indicated with a thick line in figure convenient for indicating, it is not intended that an only bus or a type of total
Line.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include RAM (Random Access Memory, random access memory), also may include NVM
(Non-Volatile Memory, nonvolatile memory), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including CPU (Central Processing Unit, central processing
Device), NP (Network Processor, network processing unit) etc.;Can also be DSP (Digital Signal Processing,
Digital signal processor), ASIC (Application Specific Integrated Circuit, specific integrated circuit),
FPGA (Field-Programmable Gate Array, field programmable gate array) or other programmable logic device are divided
Vertical door or transistor logic, discrete hardware components.
The embodiment of the present application also provides a kind of computer readable storage medium, the computer readable storage medium memory
Computer program is contained, the computer program realizes water in any of the above-described webpage applied to client when being executed by processor
Print generation method.
The embodiment of the present application also provides a kind of computer readable storage medium, the computer readable storage medium memory
Computer program is contained, the computer program realizes water in any of the above-described webpage applied to server when being executed by processor
Print generation method.
It should be noted that, in this document, as long as the technical characteristic non-contradiction in each optinal plan can combine and carry out shape
At scheme, these schemes are in range disclosed in the present application.Relational terms such as first and second and the like are used merely to
It distinguishes one entity or operation from another entity or operation, without necessarily requiring or implying these entities or behaviour
There are any actual relationship or orders between work.Moreover, the terms "include", "comprise" or its any other variant
It is intended to non-exclusive inclusion, so that including that the process, method, article or equipment of a series of elements not only includes
Those elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of person's equipment.In the absence of more restrictions, the element limited by sentence "including a ...", not
There is also other identical elements in the process, method, article or apparatus that includes the element for exclusion.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
For the embodiment of electronic equipment and storage medium, since it is substantially similar to the method embodiment, so be described relatively simple,
The relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely the preferred embodiments of the application, are not intended to limit the protection scope of the application.It is all
Any modification, equivalent replacement, improvement and so within spirit herein and principle are all contained in the protection scope of the application
It is interior.
Claims (14)
1. watermark generation method in a kind of webpage, which is characterized in that be applied to client, which comprises
In the cascading style sheets CSS style sheet of active client load target pages, pass through the CSS style of the target pages
The selector matching of table needs to add the label of Background, obtains specified label;
The downloading request of the corresponding target background figure of logon account of active client is sent to server, wherein the target
Background includes the watermark of the identity information of the logon account of the active client;
Obtain the target background figure that the server is returned according to the downloading request;
The target background figure is added in the element of the specified label.
2. the method according to claim 1, wherein in the CSS style sheet of active client load target pages
When, before the label that the target pages are matched by the selector of the CSS style sheet of the target pages, the method is also wrapped
It includes:
Logging request is sent to server;
Obtain the token Token that the server is issued according to the logging request.
3. according to the method described in claim 2, it is characterized in that, obtaining the server according to the logging request described
After the token Token issued, the method also includes:
Access request for the target page is sent to the server, wherein includes the Token in the access request;
Obtain the load data for the target pages that the server is returned according to the access request, wherein the load
It include specified label in data, the specified tag characterization adds Background.
4. the method according to claim 1, wherein described add the mesh in the element of the specified label
Mark Background, comprising:
The target background figure is adjusted to specified size;
By the size target background figure adjusted in a manner of repeated arrangement, it is paved with the elemental areas of the specified label.
5. watermark generation method in a kind of webpage, which is characterized in that be applied to server, which comprises
When receiving downloading request of the destination client for target background figure, according to the logon account of the destination client
Identity information, generate include the identity information watermark target background figure;
The target background figure is sent to the destination client, so that process of the destination client in load target pages
In, the target background figure is added in the element of specified label.
6. according to the method described in claim 5, it is characterized in that, in the case where receiving destination client for target background figure
When carrying request, according to the identity information of the logon account of the destination client, the watermark including the identity information is generated
Before target background figure, the method also includes:
Obtain the logging request sent by the destination client;
According to the logging request, the identity information of the logon account of the destination client is determined;
The corresponding Token of the identity information is issued to the destination client.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
Obtain the access request of the destination client for the target page, wherein include described in the access request
Token;
When the corresponding permission of the Token reaches the access authority of the target pages, the destination client Xiang Suoshu sends institute
State the load data of target pages, wherein include specified label in the load data, the specified tag characterization adds target
Background.
8. the method according to the description of claim 7 is characterized in that described receiving destination client for target background figure
Downloading request when, according to the identity information of the logon account of the destination client, generate include the identity information water
The target background figure of print, comprising:
When receiving downloading request of the destination client for target background figure, according to the Token, the target visitor is obtained
The identity information of the logon account at family end;
Generate the target background figure of the watermark including the identity information.
9. watermark generating means in a kind of webpage, which is characterized in that be applied to client, described device includes:
Tag match module, when for loading the cascading style sheets CSS style sheet of target pages in active client, by described
The selector matching of the CSS style sheet of target pages needs to add the label of Background, obtains specified label;
Background request module, the downloading of the corresponding target background figure of logon account for sending active client to server
Request, wherein the target background figure includes the watermark of the identity information of the logon account of the active client;
Background obtains module, the target background figure returned for obtaining the server according to the downloading request;
Background adding module, for adding the target background figure in the element of the specified label.
10. watermark generating means in a kind of webpage, which is characterized in that be applied to server, described device includes:
Background generation module, for receive destination client for target background figure downloading request when, according to described
The identity information of the logon account of destination client generates the target background figure of the watermark including the identity information;
Background sending module, for sending the target background figure to the destination client, so that the destination client
During loading target pages, the target background figure is added in the element of specified label.
11. a kind of client, which is characterized in that including processor and memory;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, being realized that claim 1-4 is any described and being answered
For watermark generation method in the webpage of client.
12. a kind of server, which is characterized in that including processor and memory;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, being realized that claim 5-8 is any described and being answered
For watermark generation method in the webpage of server.
13. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium
Program realizes claim 1-4 any webpage applied to client when the computer program is executed by processor
Middle watermark generation method.
14. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium
Program realizes claim 5-8 any webpage applied to server when the computer program is executed by processor
Middle watermark generation method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910570448.XA CN110276175A (en) | 2019-06-27 | 2019-06-27 | Watermark generation method, device, client and server in webpage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910570448.XA CN110276175A (en) | 2019-06-27 | 2019-06-27 | Watermark generation method, device, client and server in webpage |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110276175A true CN110276175A (en) | 2019-09-24 |
Family
ID=67962447
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910570448.XA Pending CN110276175A (en) | 2019-06-27 | 2019-06-27 | Watermark generation method, device, client and server in webpage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110276175A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111914226A (en) * | 2020-08-06 | 2020-11-10 | 星辰天合(北京)数据科技有限公司 | Background picture generation method and device |
CN112333558A (en) * | 2020-10-27 | 2021-02-05 | 江苏税软软件科技有限公司 | Video file watermarking method |
CN112632440A (en) * | 2020-12-18 | 2021-04-09 | 西安博达软件股份有限公司 | Static resource generation method for teacher personal homepage based on watermark characteristic rule string |
CN112966277A (en) * | 2020-12-16 | 2021-06-15 | 南京指掌易信息科技有限公司 | Webpage protection method and device, computer equipment and storage medium |
CN113296773A (en) * | 2021-05-28 | 2021-08-24 | 北京思特奇信息技术股份有限公司 | Copyright marking method and system for cascading style sheet |
CN113852592A (en) * | 2021-07-13 | 2021-12-28 | 天翼智慧家庭科技有限公司 | Big data security operation and maintenance control method and system based on dynamic access control strategy |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110314550A1 (en) * | 2010-06-22 | 2011-12-22 | Microsoft Corporation | Watermark to identify leak source |
CN103379101A (en) * | 2012-04-20 | 2013-10-30 | 腾讯科技(深圳)有限公司 | Watermark generation method, client side and server |
CN109598140A (en) * | 2018-11-28 | 2019-04-09 | 国家电网有限公司 | A kind of guard method of webpage information and device |
-
2019
- 2019-06-27 CN CN201910570448.XA patent/CN110276175A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110314550A1 (en) * | 2010-06-22 | 2011-12-22 | Microsoft Corporation | Watermark to identify leak source |
CN103379101A (en) * | 2012-04-20 | 2013-10-30 | 腾讯科技(深圳)有限公司 | Watermark generation method, client side and server |
CN109598140A (en) * | 2018-11-28 | 2019-04-09 | 国家电网有限公司 | A kind of guard method of webpage information and device |
Non-Patent Citations (1)
Title |
---|
王洪海等: "《网站开发项目实用教程》", 31 March 2014 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111914226A (en) * | 2020-08-06 | 2020-11-10 | 星辰天合(北京)数据科技有限公司 | Background picture generation method and device |
CN112333558A (en) * | 2020-10-27 | 2021-02-05 | 江苏税软软件科技有限公司 | Video file watermarking method |
CN112333558B (en) * | 2020-10-27 | 2022-06-10 | 江苏税软软件科技有限公司 | Video file watermarking method |
CN112966277A (en) * | 2020-12-16 | 2021-06-15 | 南京指掌易信息科技有限公司 | Webpage protection method and device, computer equipment and storage medium |
CN112632440A (en) * | 2020-12-18 | 2021-04-09 | 西安博达软件股份有限公司 | Static resource generation method for teacher personal homepage based on watermark characteristic rule string |
CN112632440B (en) * | 2020-12-18 | 2023-01-24 | 西安博达软件股份有限公司 | Static resource generation method for teacher personal homepage based on watermark characteristic rule string |
CN113296773A (en) * | 2021-05-28 | 2021-08-24 | 北京思特奇信息技术股份有限公司 | Copyright marking method and system for cascading style sheet |
CN113296773B (en) * | 2021-05-28 | 2023-07-25 | 北京思特奇信息技术股份有限公司 | Copyright labeling method and system for cascading style sheets |
CN113852592A (en) * | 2021-07-13 | 2021-12-28 | 天翼智慧家庭科技有限公司 | Big data security operation and maintenance control method and system based on dynamic access control strategy |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110276175A (en) | Watermark generation method, device, client and server in webpage | |
WO2019085699A1 (en) | Data sharing method, client, server, computing device, and storage medium | |
JP5585969B2 (en) | Method, program and computer system for reading attribute from ID token | |
JP3871300B2 (en) | A method for job-based authorization between companies | |
US7788499B2 (en) | Security tokens including displayable claims | |
KR101276201B1 (en) | Identity management server, system and method using the same | |
CN108701309A (en) | A kind of distributed user profile authentication system for security of e-commerce transactions | |
US20070203852A1 (en) | Identity information including reputation information | |
US20090165107A1 (en) | Identification managment system for electronic device authentication | |
CN105871786B (en) | A kind of verification method of user information, device and system | |
US20090204542A1 (en) | Privately sharing relying party reputation with information card selectors | |
JPWO2008029723A1 (en) | Data usage management system | |
JP6042766B2 (en) | Electronic trading system, electronic trading method, and program | |
Viriyasitavat et al. | Building trust of Blockchain-based Internet-of-Thing services using public key infrastructure | |
JP2014127034A (en) | Electronic contract system | |
US20090249430A1 (en) | Claim category handling | |
Corici et al. | Enhancing European Interoperability Frameworks to Leverage Mobile Cross-Border Services in Europe | |
JP2006031522A (en) | Content relay distribution server, content relay distribution computer program | |
JP2010152492A (en) | Device, system, and method for providing personal information | |
CN108810117A (en) | Access method, device, electronic equipment and the storage medium of image | |
KR20180016447A (en) | Internet portal system and using method thereof | |
KR101591909B1 (en) | Method for providing electronic power of attorney with voice consent file | |
Hardjono et al. | Privacy-preserving claims exchange networks for virtual asset service providers | |
KR101378593B1 (en) | Electronic case management system | |
JP4611809B2 (en) | Service use qualification examination apparatus and method |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190924 |