[go: up one dir, main page]

CN117076003A - Method, device and computer equipment for generating application page watermark - Google Patents

Method, device and computer equipment for generating application page watermark Download PDF

Info

Publication number
CN117076003A
CN117076003A CN202311323631.2A CN202311323631A CN117076003A CN 117076003 A CN117076003 A CN 117076003A CN 202311323631 A CN202311323631 A CN 202311323631A CN 117076003 A CN117076003 A CN 117076003A
Authority
CN
China
Prior art keywords
watermark
application
page
configuration
strategy
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
CN202311323631.2A
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.)
Shenzhen Zhuyun Technology Co ltd
Original Assignee
Shenzhen Zhuyun Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhuyun Technology Co ltd filed Critical Shenzhen Zhuyun Technology Co ltd
Priority to CN202311323631.2A priority Critical patent/CN117076003A/en
Publication of CN117076003A publication Critical patent/CN117076003A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The present application relates to a method, an apparatus, a computer device, a storage medium and a computer program product for generating an application page watermark. The method comprises the following steps: displaying a configuration page of the application; receiving a setting operation of the applied watermark strategy on the configuration page, and generating the applied watermark configuration strategy; responsive to a request by the client to access the application, forwarding the request to a server of the application; receiving application page data returned by the application server, and adding the watermark corresponding to the watermark configuration strategy to an application page corresponding to the application page data to obtain an application page with the watermark; and sending the application page with the watermark to the client so as to instruct the client to display the application page with the watermark. By adopting the method, the watermark adding of the application page is more unified, concise and convenient.

Description

Method, device and computer equipment for generating application page watermark
Technical Field
The present application relates to the field of computer network security technology, and in particular, to a method, an apparatus, a computer device, a storage medium, and a computer program product for generating an application page watermark.
Background
With the development of computer science, the computer network security problem has become more serious, by stealing other works for unauthorized use. Watermarking is a technical means for protecting user copyrights, preventing theft, promoting brands, protecting copyrights and eliminating misunderstanding. Currently, in order to prevent information leakage of application pages accessed by a browser based on proxy service, a watermark adding mode is generally adopted. In the related art, a web page is usually processed at an application server, so that all web pages acquired by the application server are guaranteed to be provided with watermarks, or watermark patterns or characters are superimposed on pictures through cascading style sheets in front-end codes of the web pages, so that the addition of the watermarks is completed. However, both the two methods require the developer of each application to add the watermark itself, so the method of adding the watermark in the related art is complicated.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, apparatus, computer device, computer readable storage medium, and computer program product for generating an application page watermark.
In a first aspect, the present application provides a method of generating an application page watermark, the method comprising:
displaying a configuration page of the application;
receiving a setting operation of the applied watermark strategy on the configuration page, and generating the applied watermark configuration strategy;
responsive to a request by the client to access the application, forwarding the request to a server of the application;
receiving application page data returned by the application server, and adding the watermark corresponding to the watermark configuration strategy to an application page corresponding to the application page data to obtain an application page with the watermark;
and sending the application page with the watermark to the client so as to instruct the client to display the application page with the watermark.
In one embodiment, the presenting the configuration page of the application includes:
acquiring an application page to be added with a watermark in a server of the application;
determining the uniform resource location website of the application page to be added with the watermark;
and displaying the configuration page of the application according to the uniform resource location website.
In one embodiment, a setting control of the client whitelist information is set on the configuration page, a setting operation of the applied watermark strategy is received on the configuration page, and the generating of the applied watermark configuration strategy includes:
receiving setting operation of watermark patterns and client side white list information in the applied watermark strategy in the configuration page, and generating the applied watermark configuration strategy;
the step of adding the watermark corresponding to the watermark configuration policy to the application page corresponding to the application page data to obtain the application page with the watermark, includes:
and adding the watermark corresponding to the watermark configuration strategy to the application page corresponding to the application page data under the condition that the client does not belong to the client white list information in the watermark configuration strategy, so as to obtain the application page with the watermark.
In one embodiment, the receiving, at the configuration page, a setting operation for the applied watermark policy, and generating the applied watermark configuration policy includes:
receiving a setting operation of the applied watermark strategy on the configuration page, and generating an applied initial watermark strategy;
responding to triggering operation of a preview function in the watermark configuration page, and displaying an application page of the watermark matched with the initial watermark strategy;
and responding to the triggering operation of the save function in the watermark configuration page, and determining the applied watermark configuration strategy as the initial watermark strategy.
In one embodiment, a dark watermark setting control is set on the configuration page, and the receiving, on the configuration page, a setting operation on the applied watermark policy, and generating the applied initial watermark policy includes:
receiving transparency setting operation in the applied watermark strategy in the configuration page, and generating an applied initial watermark strategy; the initial watermark strategy comprises an initial bright watermark strategy and an initial dark watermark strategy, and the initial bright watermark strategy and the initial dark watermark strategy have different transparency value ranges.
In one embodiment, the adding the watermark corresponding to the watermark configuration policy to the application page corresponding to the application page data to obtain the application page with the watermark includes:
adding watermarks corresponding to the watermark strategies of the bright watermark and the dark watermark in the watermark configuration strategy to the application page corresponding to the application page data to obtain an application page with the watermark; wherein, the dark watermark can be displayed by adjusting the webpage attribute through image processing software.
In one embodiment, the adding the watermark corresponding to the watermark configuration policy to the application page corresponding to the application page data to obtain the application page with the watermark includes:
acquiring an application page returned by the application server;
adding canvas on the application page, and adding the watermark corresponding to the watermark configuration strategy into the canvas according to the watermark configuration strategy;
and adjusting the canvas to the uppermost layer of the page to obtain the application page with the watermark.
In a second aspect, the application further provides a device for generating the application page watermark. The device comprises:
the configuration display module is used for displaying the configuration page of the application;
the strategy configuration module is used for receiving the setting operation of the applied watermark strategy in the configuration page and generating the applied watermark configuration strategy;
a request forwarding module, configured to respond to a request of the client for accessing the application, and forward the request to a server of the application;
the page acquisition module is used for receiving application page data returned by the application server, adding the watermark corresponding to the watermark configuration strategy to an application page corresponding to the application page data, and obtaining an application page with the watermark;
and the page display module is used for sending the application page with the watermark to the client so as to instruct the client to display the application page with the watermark.
In one embodiment, the configuration display module includes:
the first acquisition sub-module is used for acquiring an application page needing to be added with the watermark in the application server;
the determining submodule is used for determining the uniform resource location website of the application page needing to be added with the watermark;
and the display sub-module is used for displaying the configuration page of the application according to the uniform resource location website.
In one embodiment, the policy configuration module includes:
the white name list module is used for receiving setting operation of watermark patterns and client white list information in the applied watermark strategy in the configuration page and generating the applied watermark configuration strategy;
the step of adding the watermark corresponding to the watermark configuration policy to the application page corresponding to the application page data to obtain the application page with the watermark, includes:
and the page sub-module is used for adding the watermark corresponding to the watermark configuration strategy to the application page corresponding to the application page data to obtain the application page with the watermark under the condition that the client does not belong to the client white list information in the watermark configuration strategy.
In one embodiment, the policy configuration module includes:
the setting sub-module is used for receiving the setting operation of the applied watermark strategy at the configuration page and generating the applied initial watermark strategy;
a preview sub-module, configured to respond to a triggering operation of a preview function in the watermark configuration page, and display an application page of the watermark matched with the initial watermark policy;
and the storage sub-module is used for responding to the triggering operation of the storage function in the watermark configuration page and determining the applied watermark configuration strategy as the initial watermark strategy.
In one embodiment, the setting submodule includes:
the setting unit is used for receiving transparency setting operation in the applied watermark strategy in the configuration page and generating the applied initial watermark strategy; the initial watermark strategy comprises an initial bright watermark strategy and an initial dark watermark strategy, and the initial bright watermark strategy and the initial dark watermark strategy have different transparency value ranges.
In one embodiment, the page acquisition module includes:
a display sub-module, configured to add watermarks corresponding to the watermark policies of the bright watermark and the dark watermark in the watermark configuration policy to an application page corresponding to the application page data, so as to obtain an application page with the watermark; wherein, the dark watermark can be displayed by adjusting the webpage attribute through image processing software.
In one embodiment, the page acquisition module includes:
the second acquisition sub-module is used for acquiring an application page returned by the application server;
the canvas adding submodule is used for adding a canvas on the application page and adding a watermark corresponding to the watermark configuration strategy into the canvas according to the watermark configuration strategy;
and the target page sub-module is used for adjusting the canvas to the uppermost layer of the page to obtain the application page with the watermark.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing a method of generating an application page watermark as in any of the embodiments of the present disclosure when the computer program is executed.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements a method of generating an application page watermark as in any of the embodiments of the present disclosure.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which when executed by a processor implements a method of generating an application page watermark as in any of the embodiments of the present disclosure.
The method, the device, the computer equipment, the storage medium and the computer program product for generating the watermark of the application page acquire the watermark configuration strategy of the application through the configuration page of the application, and when the client side makes an access request to the application, the watermark is added to the corresponding request account and the client side according to the watermark configuration strategy. The watermark adding of the configuration page reduces the burden of adding the watermark to the front end code and the back end code, and simultaneously ensures that the watermark adding of the application page is more uniform, concise and convenient; meanwhile, the security of the application page is further protected through the addition of the bright and dark watermarks.
Drawings
FIG. 1 is a flow diagram of a method of generating an application page watermark in one embodiment;
FIG. 2 is a flow diagram illustrating a configuration page of an application in one embodiment;
FIG. 3 is a flow diagram of generating watermark policies by configuring pages in one embodiment;
FIG. 4 is a schematic flow diagram of watermark generation in one embodiment;
FIG. 5 is a timing diagram of a method application for generating an application page watermark in one embodiment;
FIG. 6 is an interface schematic of a watermark configuration page in one embodiment;
FIG. 7 is a block diagram of an apparatus for generating an application page watermark in one embodiment;
fig. 8 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In one embodiment, as shown in FIG. 1, a method of generating an application page watermark is provided, comprising the steps of:
step S1, displaying a configuration page of the application;
step S2, receiving a setting operation of the applied watermark strategy in the configuration page, and generating the applied watermark configuration strategy;
step S3, responding to the request of the client for accessing the application, and forwarding the request to a server of the application;
step S4, receiving application page data returned by the application server, and adding the watermark corresponding to the watermark configuration strategy to an application page corresponding to the application page data to obtain an application page with the watermark;
and S5, sending the application page with the watermark to the client so as to instruct the client to display the application page with the watermark.
In an exemplary embodiment, the configuration page of the application may include a system preset bright watermark, a system preset dark watermark, watermark content, watermark pattern, and whitelist information, etc.
In an exemplary embodiment, the setting operation for applying the watermark policy may include: setting the kind of the watermark, the content of the watermark, the pattern of the watermark, white list information and the like, for example, the kind of the watermark may include: a bright watermark or a dark watermark, etc., the content of the watermark may include: the ID, the user name, the time, the custom information and the like of the account, and the watermark pattern comprises: the size, color, angle, word spacing, line spacing, transparency, etc. of the watermark.
In an exemplary embodiment, the server forwarding the request to the application in response to the request of the client to access the application may include the browser sending the access request to a proxy service, the proxy service forwarding the request to an application program; in an exemplary embodiment, the request to access the application in response to the client may be directly responsive to the access request through a web page preset by a proxy service.
In an exemplary embodiment, the receiving data of the application page returned by the server of the application may include: and acquiring an html page returned by the application program and responding to the access request.
In an exemplary embodiment, the watermark corresponding to the watermark configuration policy is added to the application page corresponding to the application page data, where the watermark configuration policy includes a type, content, style, type, and the like of the watermark.
In an exemplary embodiment, the adding the watermark corresponding to the watermark configuration policy to the application page corresponding to the application page data may include previewing a watermark effect corresponding to the watermark configuration policy through a preset style set by the applied configuration policy, and determining the watermark configuration policy based on the watermark effect.
In an exemplary embodiment, the adding the watermark corresponding to the watermark configuration policy to the application page corresponding to the application page data may include: and adding watermark codes in the front end codes of the application pages, embedding < script > tags in the pages, drawing canvas on the uppermost layer of the pages, and adding watermarks on the canvas to obtain the application pages with the watermarks.
In the method for generating the watermark of the application page, the watermark configuration strategy of the application is obtained through the configuration page of the application, and when the client side makes an access request to the application, the watermark is added to the corresponding request account and the client side according to the watermark configuration strategy. The watermark adding of the configuration page reduces the burden of adding the watermark to the front end code and the back end code, and simultaneously ensures that the watermark adding of the application page is more uniform, concise and convenient.
In one embodiment, as shown in fig. 2, step S1 includes:
step S11, an application page needing to be added with watermark in a server of the application is obtained;
step S12, determining the uniform resource location website of the application page to be added with the watermark;
and step S13, displaying the configuration page of the application according to the uniform resource location website.
In an exemplary embodiment, the uniform resource location website of the application page can be obtained through the application page added with the watermark, and the uniform resource location website is sent to the configuration page to display the configuration page of the application. In another exemplary embodiment, the configuration page may be a plug-in of a page, and an application page needing to be watermarked in a server of the application is obtained, where the plug-in may display the configuration page of the application.
In an exemplary embodiment, the configuration page of the application may include a watermark configuration page of the application, and the watermark configuration policy that needs to be added by the application page may be determined through the configuration page.
In this embodiment, the uniform resource location website is determined by the application page to be added with the watermark, and the application page is determined and the configuration page of the application is displayed according to the uniform resource location website, so that the application page to be added with the watermark can be ensured to display the configuration page, the accuracy of adding the watermark is ensured, and meanwhile, the watermark addition of the application page is more unified, concise and convenient.
In one embodiment, step S2 includes:
step S31, receiving setting operation of watermark patterns and client side white list information in the applied watermark strategy in the configuration page, and generating the applied watermark configuration strategy;
the step of adding the watermark corresponding to the watermark configuration policy to the application page corresponding to the application page data to obtain the application page with the watermark, includes:
step S32, adding the watermark corresponding to the watermark configuration policy to the application page corresponding to the application page data, to obtain the application page with the watermark, when the client does not belong to the client whitelist information in the watermark configuration policy.
In one exemplary embodiment, the setting policy of the whitelist may be determined by client whitelist information. In another exemplary embodiment, the setting policy of the whitelist may be determined according to whitelist information in a server of the application.
In one exemplary embodiment, the whitelist information may be determined by configuring the page to set an account ID or the like of the whitelist information. In another exemplary embodiment, the accounts may be classified, and the account categories may be whitelisted in a configuration page, for example, the accounts may be classified into a general account, a member account, and a super member account, a general user added with a bright watermark and a dark watermark may be set in the configuration page, a member user added with a dark watermark, and a super member user added with no watermark.
In one exemplary embodiment, the watermark may not be added to the application page accessed by the whitelist user when the whitelist account requests access to the application page, and in another exemplary embodiment, the dark watermark may be added only to the application page accessed by the whitelist user when the whitelist account requests access to the application page.
In this embodiment, by setting the client whitelist information, the whitelist account views the corresponding application page without adding watermarks, so that the watermarks of the application page are more perfect, the diversity of the watermarks of the application page is increased, and meanwhile, the security of the application page is further ensured.
In one embodiment, as illustrated in fig. 3, step S2 includes:
step S41, receiving a setting operation of the applied watermark strategy in the configuration page, and generating the applied initial watermark strategy;
step S42, responding to the triggering operation of the preview function in the watermark configuration page, and displaying the application page of the watermark matched with the initial watermark strategy;
step S43, in response to a triggering operation of a save function in the watermark configuration page, determining the applied watermark configuration policy as the initial watermark policy.
In an exemplary embodiment, the responding to the triggering operation of the preview function in the watermark configuration page, displaying the watermark application page matched with the initial watermark policy may include: in another exemplary embodiment, the watermark effect corresponding to the watermark strategy can be displayed in the configuration page through the preview function, the watermark effect is updated in real time based on the watermark configuration strategy of the configuration page, and the watermark added application page corresponding to the watermark configuration strategy is checked through the adding function.
In this embodiment, an initial watermark strategy is set through a configuration page, a watermark image corresponding to the initial watermark strategy can be checked through a preview function, the watermark pattern can be added to a corresponding application page through a storage function, and the watermark image corresponding to the watermark strategy can be checked in real time, so that an account can know the watermark strategy more clearly and make adjustments in time, and the application page watermark adding is more visual and convenient.
In one embodiment, step S41 includes:
step S410, receiving transparency setting operation in the applied watermark strategy in the configuration page, and generating the applied initial watermark strategy; the initial watermark strategy comprises an initial bright watermark strategy and an initial dark watermark strategy, and the initial bright watermark strategy and the initial dark watermark strategy have different transparency value ranges.
In one exemplary embodiment, the bright watermark and the dark watermark may be selectively generated by setting a transparency range of the watermark, and in another exemplary embodiment, the dark watermark which is indistinguishable to the naked eye may be automatically generated by a function of setting the dark watermark.
In an exemplary embodiment, the dark watermark may be generated by setting the watermark transparency below 0.01.
In this embodiment, by setting the transparency of the watermark, watermark policies of bright and dark watermarks can be set for the application page, so that the application page can be protected to a greater extent, the page is prevented from being stolen by others, and the security of the application page is greatly enhanced.
In one embodiment, step S4 includes:
step S70, adding watermarks corresponding to the watermark strategies of the bright watermark and the dark watermark in the watermark configuration strategy to the application page corresponding to the application page data to obtain an application page with the watermark; wherein, the dark watermark can be displayed by adjusting the webpage attribute through image processing software.
In an exemplary embodiment, the screenshot of the page can be subjected to color attribute adjustment through Adobe Photoshop to reproduce the dark watermark; wherein the color attributes include: contrast, saturation, sharpness, etc.
In this embodiment, by adding the watermarks corresponding to the bright watermark and the dark watermark policies to the application page, the application page can be enabled to add both bright and dark watermarks, and meanwhile, the dark watermark is reproduced through the image processing software, so that the illegal user can be locked rapidly, and the security of the application page is greatly enhanced.
In one embodiment, as illustrated in fig. 4, step S4 includes:
step S71, obtaining an application page returned by the server of the application;
step S72, adding canvas on the application page, and adding the watermark corresponding to the watermark configuration strategy into the canvas according to the watermark configuration strategy;
and step 73, adjusting the canvas to the uppermost layer of the page to obtain the application page with the watermark.
In one exemplary embodiment, the watermarked application page may be obtained by embedding a < script > tag in the page, drawing a canvas at the top layer in the page, and adding a watermark on the canvas. In another exemplary embodiment, the watermark picture may be set as a background image on the element through a background attribute in the CSS, so as to obtain an application page with the watermark. In another exemplary embodiment, the text, graphics or images may be presented in a scalable vector graphic to obtain the watermarked application page.
In the embodiment, the canvas is drawn on the application page returned by the application server and the watermark is added, so that when the watermark is added to the application page, the original code factors are not influenced, the burden of front-end codes and back-end codes in the original application page is reduced, and convenience is further provided for adding the watermark to the application page.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
In an exemplary embodiment, the method for generating the application page watermark may be performed as shown in the flowchart of fig. 5:
the Web browser sends a request for accessing the application to the proxy service;
the proxy service forwards the access request to the application;
the application program sends the corresponding html page to proxy service based on the access request;
the proxy service adds the watermark to the html page to obtain a watermarked page;
the proxy service returns the watermarked page to the Web browser.
In an exemplary embodiment, the watermark configuration page may be as shown in fig. 6:
determining the content of the watermark by setting specified attributes of the watermark and custom information, for example, the specified attributes may include: an ID of an account, a user name of the account on a webpage, and the like;
the properties of the watermark are set by setting the properties of the watermark, e.g. the properties of the watermark include: size, color, transparency, etc. of the watermark;
watermarks corresponding to the watermark content and attributes may be viewed through the previews;
the set watermark content and the watermark format can be added into the corresponding application page through storage.
Based on the same inventive concept, the embodiment of the application also provides a device for generating the application page watermark, which is used for realizing the method for generating the application page watermark. The implementation of the solution provided by the apparatus is similar to the implementation described in the above method, so the specific limitation in the embodiment of one or more apparatuses for generating an application page watermark provided below may refer to the limitation of the method for generating an application page watermark hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 7, there is provided an apparatus 001 for generating an application page watermark, including: configuration presentation module 101, policy configuration module 102, request forwarding module 103, page acquisition module 104, and page presentation module 105, wherein:
the configuration display module is used for displaying the configuration page of the application;
the strategy configuration module is used for receiving the setting operation of the applied watermark strategy in the configuration page and generating the applied watermark configuration strategy;
a request forwarding module, configured to respond to a request of the client for accessing the application, and forward the request to a server of the application;
the page acquisition module is used for receiving application page data returned by the application server, adding the watermark corresponding to the watermark configuration strategy to an application page corresponding to the application page data, and obtaining an application page with the watermark;
and the page display module is used for sending the application page with the watermark to the client so as to instruct the client to display the application page with the watermark.
In one embodiment, the configuration display module includes: the first acquisition sub-module, the determination sub-module and the display sub-module, wherein:
the first acquisition sub-module is used for acquiring an application page needing to be added with the watermark in the application server;
the determining submodule is used for determining the uniform resource location website of the application page needing to be added with the watermark;
and the display sub-module is used for displaying the configuration page of the application according to the uniform resource location website.
In one embodiment, the policy configuration module includes a white name sub-module and a page sub-module, wherein:
the white name list module is used for receiving setting operation of watermark patterns and client white list information in the applied watermark strategy in the configuration page and generating the applied watermark configuration strategy;
the step of adding the watermark corresponding to the watermark configuration policy to the application page corresponding to the application page data to obtain the application page with the watermark, includes:
and the page sub-module is used for adding the watermark corresponding to the watermark configuration strategy to the application page corresponding to the application page data to obtain the application page with the watermark under the condition that the client does not belong to the client white list information in the watermark configuration strategy.
In one embodiment, the policy configuration module includes a setting sub-module, a preview sub-module, and a save sub-module, where:
the setting sub-module is used for receiving the setting operation of the applied watermark strategy at the configuration page and generating the applied initial watermark strategy;
a preview sub-module, configured to respond to a triggering operation of a preview function in the watermark configuration page, and display an application page of the watermark matched with the initial watermark policy;
and the storage sub-module is used for responding to the triggering operation of the storage function in the watermark configuration page and determining the applied watermark configuration strategy as the initial watermark strategy.
In one embodiment, the setting sub-module comprises a setting unit, wherein:
the setting unit is used for receiving transparency setting operation in the applied watermark strategy in the configuration page and generating the applied initial watermark strategy; the initial watermark strategy comprises an initial bright watermark strategy and an initial dark watermark strategy, and the initial bright watermark strategy and the initial dark watermark strategy have different transparency value ranges.
In one embodiment, the page acquisition module includes a rendering sub-module, wherein:
a display sub-module, configured to add watermarks corresponding to the watermark policies of the bright watermark and the dark watermark in the watermark configuration policy to an application page corresponding to the application page data, so as to obtain an application page with the watermark; wherein, the dark watermark can be displayed by adjusting the webpage attribute through image processing software.
In one embodiment, the page acquisition module includes a second acquisition sub-module, a canvas addition sub-module, and a target page sub-module, wherein:
the second acquisition sub-module is used for acquiring an application page returned by the application server;
the canvas adding submodule is used for adding a canvas on the application page and adding a watermark corresponding to the watermark configuration strategy into the canvas according to the watermark configuration strategy;
and the target page sub-module is used for adjusting the canvas to the uppermost layer of the page to obtain the application page with the watermark.
The above-described means for generating an application page watermark may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 8. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of generating an application page watermark. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 8 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as Static Random access memory (Static Random access memory AccessMemory, SRAM) or dynamic Random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (11)

1. A method for generating an application page watermark, which is characterized by being applied to a proxy server, wherein the proxy server is electrically connected with a server of an application, the proxy server is electrically connected with a client, and application data corresponding to the server of the application is displayed on the client through a browser page of the proxy server, and the method comprises the following steps:
displaying a configuration page of the application;
receiving a setting operation of the applied watermark strategy on the configuration page, and generating the applied watermark configuration strategy;
responsive to a request by the client to access the application, forwarding the request to a server of the application;
receiving application page data returned by the application server, and adding the watermark corresponding to the watermark configuration strategy to an application page corresponding to the application page data to obtain an application page with the watermark;
and sending the application page with the watermark to the client so as to instruct the client to display the application page with the watermark.
2. The method of claim 1, wherein the presenting the configuration page of the application comprises:
acquiring an application page to be added with a watermark in a server of the application;
determining the uniform resource location website of the application page to be added with the watermark;
and displaying the configuration page of the application according to the uniform resource location website.
3. The method according to claim 1, wherein the configuration page is provided with a setting control of client whitelist information, and the receiving a setting operation of the application watermark policy on the configuration page, and generating the application watermark configuration policy includes:
receiving setting operation of watermark patterns and client side white list information in the applied watermark strategy in the configuration page, and generating the applied watermark configuration strategy;
the step of adding the watermark corresponding to the watermark configuration policy to the application page corresponding to the application page data to obtain the application page with the watermark, includes:
and adding the watermark corresponding to the watermark configuration strategy to the application page corresponding to the application page data under the condition that the client does not belong to the client white list information in the watermark configuration strategy, so as to obtain the application page with the watermark.
4. The method of claim 1, wherein the receiving, at the configuration page, a setting operation for the applied watermark policy, generating the applied watermark configuration policy, comprises:
receiving a setting operation of the applied watermark strategy on the configuration page, and generating an applied initial watermark strategy;
responding to triggering operation of a preview function in the watermark configuration page, and displaying an application page of the watermark matched with the initial watermark strategy;
and responding to the triggering operation of the save function in the watermark configuration page, and determining the applied watermark configuration strategy as the initial watermark strategy.
5. A method according to claim 3, wherein the configuration page is provided with a dark watermark setting control, the receiving, at the configuration page, a setting operation for the application watermark policy, generating the applied initial watermark policy, includes:
receiving transparency setting operation in the applied watermark strategy in the configuration page, and generating an applied initial watermark strategy; the initial watermark strategy comprises an initial bright watermark strategy and an initial dark watermark strategy, and the initial bright watermark strategy and the initial dark watermark strategy have different transparency value ranges.
6. The method according to claim 1, wherein adding the watermark corresponding to the watermark configuration policy to the application page corresponding to the application page data, to obtain the application page with the watermark, includes:
adding watermarks corresponding to the watermark strategies of the bright watermark and the dark watermark in the watermark configuration strategy to the application page corresponding to the application page data to obtain an application page with the watermark; wherein, the dark watermark can be displayed by adjusting the webpage attribute through image processing software.
7. The method according to claim 1, wherein adding the watermark corresponding to the watermark configuration policy to the application page corresponding to the application page data, to obtain the application page with the watermark, includes:
acquiring an application page returned by the application server;
adding canvas on the application page, and adding the watermark corresponding to the watermark configuration strategy into the canvas according to the watermark configuration strategy;
and adjusting the canvas to the uppermost layer of the page to obtain the application page with the watermark.
8. The device for generating the application page watermark is characterized in that the device is applied to a proxy server, the proxy server is electrically connected with an application server, the proxy server is electrically connected with a client, and application data corresponding to the application server is displayed on the client through a browser page of the proxy server, and the device comprises:
the configuration display module is used for displaying the configuration page of the application;
the strategy configuration module is used for receiving the setting operation of the applied watermark strategy in the configuration page and generating the applied watermark configuration strategy;
a request forwarding module, configured to respond to a request of the client for accessing the application, and forward the request to a server of the application;
the page acquisition module is used for receiving application page data returned by the application server, and adding the watermark corresponding to the watermark strategy to an application page corresponding to the application page data to obtain an application page with the watermark;
and the page display module is used for sending the application page with the watermark to the client so as to instruct the client to display the application page with the watermark.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
11. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202311323631.2A 2023-10-13 2023-10-13 Method, device and computer equipment for generating application page watermark Pending CN117076003A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311323631.2A CN117076003A (en) 2023-10-13 2023-10-13 Method, device and computer equipment for generating application page watermark

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311323631.2A CN117076003A (en) 2023-10-13 2023-10-13 Method, device and computer equipment for generating application page watermark

Publications (1)

Publication Number Publication Date
CN117076003A true CN117076003A (en) 2023-11-17

Family

ID=88719774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311323631.2A Pending CN117076003A (en) 2023-10-13 2023-10-13 Method, device and computer equipment for generating application page watermark

Country Status (1)

Country Link
CN (1) CN117076003A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119004419A (en) * 2024-10-22 2024-11-22 北京芯盾时代科技有限公司 Watermark generation method, proxy device, electronic device, and storage medium
CN119168838A (en) * 2024-11-13 2024-12-20 浙江元乙智能科技有限公司 A dark watermark generation and processing method and system based on deep learning

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190340341A1 (en) * 2018-05-04 2019-11-07 Citrix Systems, Inc. Systems and methods for adding watermarks using an embedded browser
CN111177664A (en) * 2019-12-27 2020-05-19 车智互联(北京)科技有限公司 Watermark information adding method, server and system
CN112954019A (en) * 2021-01-28 2021-06-11 浙江华途信息安全技术股份有限公司 Watermark method and system based on reverse proxy technology
CN114969681A (en) * 2022-04-14 2022-08-30 山东浪潮科学研究院有限公司 Method and system for generating webpage invisible watermark
CN116028901A (en) * 2022-12-23 2023-04-28 天翼安全科技有限公司 Watermark embedding method, device, equipment and storage medium
CN116127420A (en) * 2022-12-14 2023-05-16 北京北信源软件股份有限公司 Watermark adding method and device, storage medium and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190340341A1 (en) * 2018-05-04 2019-11-07 Citrix Systems, Inc. Systems and methods for adding watermarks using an embedded browser
CN111177664A (en) * 2019-12-27 2020-05-19 车智互联(北京)科技有限公司 Watermark information adding method, server and system
CN112954019A (en) * 2021-01-28 2021-06-11 浙江华途信息安全技术股份有限公司 Watermark method and system based on reverse proxy technology
CN114969681A (en) * 2022-04-14 2022-08-30 山东浪潮科学研究院有限公司 Method and system for generating webpage invisible watermark
CN116127420A (en) * 2022-12-14 2023-05-16 北京北信源软件股份有限公司 Watermark adding method and device, storage medium and electronic device
CN116028901A (en) * 2022-12-23 2023-04-28 天翼安全科技有限公司 Watermark embedding method, device, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119004419A (en) * 2024-10-22 2024-11-22 北京芯盾时代科技有限公司 Watermark generation method, proxy device, electronic device, and storage medium
CN119004419B (en) * 2024-10-22 2025-03-07 北京芯盾时代科技有限公司 Watermark generation method, proxy device, electronic device and storage medium
CN119168838A (en) * 2024-11-13 2024-12-20 浙江元乙智能科技有限公司 A dark watermark generation and processing method and system based on deep learning

Similar Documents

Publication Publication Date Title
US8493579B2 (en) Wireless printing from a device outside the network
KR102278932B1 (en) Application program processing method and terminal device
CN117076003A (en) Method, device and computer equipment for generating application page watermark
CN107256259B (en) Page display method and device, electronic equipment and storage medium
JP3473676B2 (en) Method, apparatus, and recording medium for controlling hard copy of document described in hypertext
CN108563930A (en) A kind of method, apparatus, medium and the system of confidential document addition watermark
CN114020756B (en) Remote sensing image real-time map service publishing method and device
CN110489943B (en) Page watermark tamper-proofing method and system
CN117093386B (en) Page screenshot method, device, computer equipment and storage medium
US9449250B1 (en) Image download protection
US10630755B2 (en) Selective consumption of web page data over a data-limited connection
CN108388463B (en) Icon processing method and device, computer equipment and storage medium
CA3027069A1 (en) Systems and methods for digital content delivery over a network
CN106375454A (en) Method and system for uploading file by scanning graphic identifier
CN115600164A (en) Method and device for adding customized watermark, intelligent terminal and storage medium
CN117113302B (en) Text watermark generation method and text verification method
CN119625137A (en) Image expansion method, device, readable storage medium and program product
CN119989306A (en) A watermark dynamic rendering method, storage medium and computer equipment
CN110675460A (en) Picture processing method, device and equipment
CN116156068B (en) Image transmission method, device, computer equipment and storage medium
CN111968727B (en) Image data display method, device, computer equipment and storage medium
CN117196924A (en) Watermark adding method, watermark adding device, computer equipment and storage medium
CN113688339A (en) Information loading method, device, electronic device and computer storage medium
CN111914226A (en) Background picture generation method and device
CN114880633B (en) Object storage method, device, equipment and storage medium

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

Application publication date: 20231117

RJ01 Rejection of invention patent application after publication