CN114417226A - Page generation method, display method, device, electronic equipment and storage medium - Google Patents

Page generation method, display method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114417226A
CN114417226A CN202210155627.9A CN202210155627A CN114417226A CN 114417226 A CN114417226 A CN 114417226A CN 202210155627 A CN202210155627 A CN 202210155627A CN 114417226 A CN114417226 A CN 114417226A
Authority
CN
China
Prior art keywords
page
target
user
watermark
watermark font
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
CN202210155627.9A
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Publication of CN114417226A publication Critical patent/CN114417226A/en
Priority to PCT/CN2023/074824 priority Critical patent/WO2023155712A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/16Program or content traceability, e.g. by watermarking

Abstract

The application discloses a page generation method, a display device, electronic equipment and a storage medium, and belongs to the technical field of computers. The page generation method comprises the following steps: receiving a page browsing request of a first user, wherein the page browsing request carries a target user identifier of the first user and a page identifier of a target page; acquiring a target page according to the page identifier; acquiring a target watermark font file corresponding to a target user identifier of a first user from a watermark font library, embedding the target watermark font file in a target page to obtain the target page embedded with the watermark font, wherein the watermark font library is used for maintaining the watermark font file corresponding to at least one user, and the watermark font file is used for changing webpage font codes; and responding to the page browsing request, and feeding back the target page embedded with the watermark font to the first user.

Description

Page generation method, display method, device, electronic equipment and storage medium
The present application claims priority of chinese patent application filed on 10/11/2021 under the application number "202111324826. X" by the chinese intellectual property office, entitled "page generation method, display method, apparatus, electronic device, and storage medium", the entire contents of which are incorporated herein by reference.
Technical Field
The application belongs to the technical field of computers, and particularly relates to a page generation method, a page display method, a page generation device, a page display device, an electronic device and a readable storage medium.
Background
In the related art, in order to protect the web page information and embed the watermark in the web page, most of the watermarks used in the web page at present are background watermarks or watermarks embedded in real time according to xml attributes. However, watermark information embedded in the web page is easily deleted, resulting in low security of the web page information.
Disclosure of Invention
An object of the embodiments of the present application is to provide a page generation method, a page display method, a page generation apparatus, a page display apparatus, an electronic device, and a readable storage medium, which can solve the problem of low security of web page information in the related art.
In a first aspect, an embodiment of the present application provides a page generation method, where the page generation method includes:
receiving a page browsing request of a first user, wherein the page browsing request carries a target user identifier of the first user and a page identifier of a target page;
acquiring a target page according to the page identifier;
acquiring a target watermark font file corresponding to a target user identifier from a watermark font library, and embedding the target watermark font file into a target page to obtain the target page embedded with the watermark font, wherein the watermark font library is used for maintaining the watermark font file corresponding to at least one user, and the watermark font file is used for changing webpage font codes;
and responding to the page browsing request, and feeding back the target page embedded with the watermark font to the first user.
In a second aspect, an embodiment of the present application provides a page display method, where the page display method includes:
sending a page browsing request to a server, wherein the page browsing request carries a target user identifier of a first user and a page identifier of a target page, and the page browsing request is used for indicating the server to embed a target watermark font file corresponding to the target user identifier in the target page to obtain the target page embedded with the watermark font;
receiving a target page embedded with a watermark font from a server;
and displaying the target page embedded with the watermark font.
In a third aspect, an embodiment of the present application provides a page generating apparatus, where the page generating apparatus includes:
the receiving module is used for receiving a page browsing request of a first user, wherein the page browsing request carries a target user identifier of the first user and a page identifier of a target page;
the acquisition module is used for acquiring a target page according to the page identifier and acquiring a target watermark font file corresponding to the target user identifier from a watermark font library, wherein the watermark font library is used for maintaining the watermark font file corresponding to at least one user, and the watermark font file is used for changing webpage font codes;
the processing module is used for embedding the target watermark font file in the target page to obtain the target page embedded with the watermark font;
and the sending module is used for responding to the page browsing request and feeding back the target page embedded with the watermark font to the first user.
In a fourth aspect, an embodiment of the present application provides a page display apparatus, including:
the system comprises a sending module, a receiving module and a processing module, wherein the sending module is used for sending a page browsing request to a server, the page browsing request carries a target user identifier of a first user and a page identifier of a target page, and the page browsing request is used for indicating the server to embed a target watermark font file corresponding to the target user identifier in the target page to obtain the target page embedded with the watermark font;
the receiving module is used for receiving the target page embedded with the watermark font from the server;
and the display module is used for displaying the target page embedded with the watermark font.
In a fifth aspect, an embodiment of the present application provides a page display system, where the page display system includes: page generating means as in the third aspect; and a page display apparatus as in the fourth aspect.
In a sixth aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect or the second aspect.
In a seventh aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, and when executed by a processor, implement the steps of the method according to the first aspect or the second aspect.
In an eighth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect or the second aspect.
In the embodiment of the application, a server receives a page browsing request of a first user, and obtains a target user identifier of the first user and a page identifier of a target page, which are carried in the page browsing request, wherein the target user identifier is used for indicating the identity of the first user, and the page identifier can refer to a page link of the target page. When a first user clicks a page link of a certain page on user equipment, a page browsing request carrying a target user identifier of the first user and a page identifier of the target page is sent to a server. Further, a target page is obtained according to the page identifier, whether a target watermark font file having an association relation with the target user identifier of the first user exists or not is searched in the watermark font library, if yes, the target watermark font file is embedded into the target page, so that font coding of the target webpage is changed, and the target page embedded with the watermark font is obtained, namely, the characters on the target page are at least part of the characters in the target watermark font file. And finally, displaying the target page embedded with the watermark font to the first user. In the embodiment of the application, the watermark fonts corresponding to the user identities are embedded into the browsed target page, so that the fonts displayed in the page are different when each user browses the page, the corresponding user can be positioned according to the page fonts, the relevance between the page and the user is enhanced, the page information tracing basis is provided, and the security of the page information is improved.
Drawings
FIG. 1 is one of the flow diagrams of a page generation method of the present application;
FIG. 2 is one of the display diagrams of text of a target font of the present application;
FIG. 3 is a second illustration of the display of text in the target font of the present application;
FIG. 4 is a logical illustration of a user browsing a page of the present application;
FIG. 5 is a second flowchart of the page generation method of the present application;
FIG. 6 is a schematic flow chart diagram of a page display method of the present application;
FIG. 7 is a schematic block diagram of a page generation apparatus of an embodiment of the present application;
FIG. 8 is a schematic block diagram of a page display apparatus of an embodiment of the present application;
fig. 9 is a schematic block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The page generation method, the page display method, the page generation apparatus, the page display apparatus, the electronic device and the readable storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
The application provides a page generation method, as shown in fig. 1, the page generation method includes:
102, receiving a page browsing request of a first user, wherein the page browsing request carries a target user identifier of the first user and a page identifier of a target page;
step 104, acquiring a target page according to the page identifier;
step 106, acquiring a target watermark font file corresponding to a target user identifier from a watermark font library, and embedding the target watermark font file in a target page to obtain the target page embedded with the watermark font, wherein the watermark font library is used for maintaining the watermark font file corresponding to at least one user, and the watermark font file is used for changing webpage font codes;
and step 108, responding to the page browsing request, and feeding back the target page embedded with the watermark font to the first user.
In this embodiment, the server receives a page browsing request of a first user, and obtains a target user identifier of the first user and a page identifier of a target page, which are carried in the page browsing request, where the target user identifier is used to indicate an identity of the first user, and the page identifier may refer to a page link of the target page. When a first user clicks a page link of a certain page on user equipment, a page browsing request carrying a target user identifier of the first user and a page identifier of the target page is sent to a server.
Further, a target page is obtained according to the page identifier, then whether a target watermark font file having an association relation with the target user identifier of the first user exists is searched in the watermark font library, if so, the target watermark font file is embedded in the target page, so that the font code of the target webpage is changed, and the target page embedded with the watermark font is obtained, that is, the characters on the target page are at least part of the characters in the target watermark font file. And finally, displaying the target page embedded with the watermark font to the first user.
In the embodiment of the application, the watermark fonts corresponding to the user identities are embedded into the browsed target page, so that the fonts displayed in the page are different when each user browses the page, the corresponding user can be positioned according to the page fonts, the relevance between the page and the user is enhanced, the page information tracing basis is provided, and the security of the page information is improved.
In addition, the whole page generation process is transparent to the user equipment, that is, the watermark font can be embedded when the user browses the page (such as a cloud document) without installing a font file at the user equipment. In addition, because obvious visible watermarks are not added to the page background, but the character fonts of the page are distinguished, the user is difficult to perceive, so that the user cannot automatically configure, the risk of avoiding the user is reduced, and the attack resistance is improved.
Illustratively, the target page may be a hypertext Markup Language (HTML) web page, which is a standard Markup Language for creating web pages, often used with Cascading Style Sheets (CSS), JavaScript to design user interfaces for web pages, web applications, and applications, specifying the font of the HTML web page through a font-family attribute. And the server reads the HTML file according to the identification information and renders the HTML file into a visual webpage by using the watermark fonts included in the target watermark font file for the user to view. Wherein, the implementation code for referencing the font using the font-family attribute is as follows:
Figure BDA0003512187430000051
Figure BDA0003512187430000061
further, in an embodiment of the present application, before receiving a page browsing request of a first user, the page generating method further includes: generating a plurality of watermark font files; establishing a corresponding relation between the watermark font file and a user identifier of a user, and storing a plurality of watermark font files into a watermark font library; wherein, the fonts of the same characters in different watermark font files are different.
In this embodiment, a plurality of watermark font files are generated in advance, each watermark font file has a different font design, that is, the fonts (or fonts) of the same characters in each watermark font file are different, for example, as shown in fig. 2 and 3, the fonts of the characters in two watermark font files are different, specifically, the characters beside the "white" characters are different, and the characters include numbers, english letters, chinese characters, and the like. And, match a watermark font file for every user, namely, establish the incidence relation of user identification and watermark font file.
Illustratively, by modifying the glyphs of common words by font editing software such as fontford, 2 sets of each word are modified, so that 2 sets of font files can be generated. Then, a character list is constructed, wherein the list comprises a plurality of characters, and the ordering of the characters is fixed, such as: "used, yes, order, trade and article". When the font of the first user needs to be generated, the fontford script is used, the first set of the 2 sets of fonts is used as the basic font, and then the 'article' character in the basic font is replaced by the 'article' character in the second set of fonts. When generating the font of the Nth user, only the binary code of N needs to be calculated, then the binary code is aligned to the character list, and which set of font corresponds to the characters in the list is determined according to the value of the code. For example, the code is 1011, and the font list is aligned as follows: 0, yes, order 1, single 0, business 1, article 1, 0 representing the first set of fonts and 1 representing the second set of fonts. After aligning and coding, counting the characters marked with 1, and then using fontford script to replace the corresponding characters in the basic font file with the characters in the second set of fonts, thus using the script to generate the watermark font of the Nth user.
And finally, storing the plurality of watermark Font files into a watermark Font library for pulling, wherein the watermark Font files can be in a Wed Open Font Format (WOFF) which is a type capable of being used by a browser.
Therefore, if the target watermark font file corresponding to the target user identifier of the first user initiating the page browsing request is stored in advance, when the first user needs to browse the target page, the target watermark font file is directly acquired from the watermark font library, and the target watermark font file is utilized to render the page. Therefore, the character font seen by the first user when browsing the target page is unique, which is equivalent to embedding the identity information of the first user in the target page, and the relevance between the target page and the first user is enhanced.
Illustratively, as shown in fig. 4, the watermark font library stores a watermark font file 1, a watermark font file 2, and a watermark font file 3, each of which has a different font, and the text in the watermark font file 1 is a font a, the text in the watermark font file 2 is a font B, and the text in the watermark font file 3 is a font C. The user a, the user B and the user C respectively request to browse the page, and then respectively select the corresponding watermark font file according to the user identifier of each user, for example, the corresponding watermark font file 1 is determined according to the user identifier of the user a, the corresponding watermark font file 3 is determined according to the user identifier of the user B, the corresponding watermark font file 4 is determined according to the user identifier of the user C, then respectively perform page rendering according to the watermark font files, and finally, the characters in the page provided for the user a are the font A, the characters in the page provided for the user B are the font B, and the characters in the page provided for the user C are the font C.
Further, in an embodiment of the present application, as shown in fig. 5, the page generating method includes:
step 502, receiving a page browsing request of a first user, wherein the page browsing request carries a target user identifier of the first user and a page identifier of a target page;
step 504, acquiring a target page according to the page identifier;
step 506, judging whether a target watermark font file corresponding to the target user identifier exists in the watermark font library, entering step 508 under the condition that the target watermark font file corresponding to the target user identifier exists in the watermark font library, and entering step 510 under the condition that the target watermark font file corresponding to the target user identifier does not exist in the watermark font library;
step 508, obtaining a target watermark font file corresponding to the target user identifier of the first user from the watermark font library, and embedding the target watermark font file in the target page to obtain a target page embedded with the watermark font;
step 510, responding to the page browsing request, and feeding back the target page to the first user.
The watermark font library is used for maintaining a watermark font file corresponding to at least one user, and the watermark font file is used for changing webpage font codes.
In this embodiment, if the target watermark font file corresponding to the user identity information does not exist in the watermark font library, which indicates that the watermark font file associated with the target user identifier of the first user is not set in advance, the target page is obtained according to the page identifier, and the target page is fed back to the first user, that is, the watermark text rendering of the target page is not performed, so that the text font in the target page is a default font and is directly displayed.
In the embodiment of the application, even if different target watermark font files corresponding to the user identification are inquired, the target page can be generated according to a default character file, so that the user can be ensured to realize the page browsing request.
Further, in an embodiment of the present application, the page generating method further includes: and under the condition that the target watermark font file corresponding to the target user identifier of the first user does not exist in the watermark font library, generating a target watermark font file corresponding to the target user identifier of the first user, and storing the target watermark font file into the watermark font library.
In this embodiment, if the target watermark font file corresponding to the target user identifier does not exist in the watermark font library, it indicates that the watermark font file associated with the target user identifier of the first user is not set in advance, that is, the first user may be a new user. And when a new user is added, adding the watermark font file corresponding to the user identifier of the new user and storing the watermark font file in the watermark font library.
According to the embodiment of the application, the real-time expansion of the watermark font library is supported, the probability of acquiring the watermark font file corresponding to the user identifier is improved, and the information security of the page which is applied by the user for browsing is further improved.
Further, in an embodiment of the present application, acquiring a target watermark font file corresponding to a target user identifier from a watermark font library, and embedding the target watermark font file in a target page to obtain the target page embedded with the watermark font includes: judging whether a watermark font is embedded into the target page or not according to the target user identification and/or the page content of the target page; and under the condition that the watermark font is judged to be embedded into the target page, acquiring a target watermark font file corresponding to the target user identifier from the watermark font library, and embedding the target watermark font file into the target page to obtain the target page embedded with the watermark font.
In this embodiment, a rendering watermark font may be added to a page requested to be browsed by a specified user without affecting all relevant pages of the user, or watermark text rendering may be performed on the specified page or a specified area of the page without affecting all pages, or watermark text rendering may be performed on the specified page requested to be browsed by the specified user or the specified area of the page.
By the method, the watermark character rendering is directionally carried out on the page, the influence on all users or the browsing of all pages is avoided, and the flexibility of generating the page is improved.
Further, in an embodiment of the present application, determining to embed the watermark font into the target page includes: and under the condition that the first user is determined to be a confidential object according to the target user identification, judging to embed the watermark font into the target page.
In the embodiment, the rendering watermark font can be added to the target page requested to be browsed by the specified user without influencing the related pages of all users. Specifically, whether the user is a confidential object is judged according to the target user identification, and if the user is the confidential object, the fact that the watermark font needs to be embedded into the target page is determined.
And under the condition that the user is not a confidential object, the watermark character rendering of the page is not carried out, so that the character font in the page is a default font and the character font is directly displayed.
According to the embodiment of the application, the watermark character rendering is directionally carried out on the page according to whether the user is a confidential object or not, and the influence on the browsing pages of all users is avoided.
Further, in an embodiment of the present application, determining to embed the watermark font into the target page includes: and under the condition that the target page comprises the secret information according to the page content, judging that the watermark font is embedded into the target page.
In the embodiment, watermark character rendering can be performed on the specified target page or the specified content of the target page without affecting all pages. Specifically, whether the target page comprises secret information or not is judged according to the page content of the target page, and if yes, the fact that a watermark font needs to be embedded into the target page is determined. And if the whole content of the target page needs to be kept secret, setting all characters of the target page as the characters of the target watermark font, and if part content of the target page needs to be kept secret, setting the characters of the part content as the characters of the target watermark font.
And under the condition that the user is not a confidential object, the watermark character rendering of the page is not carried out, so that the character font in the page is a default font and the character font is directly displayed.
According to the embodiment of the application, the watermark character rendering is directionally carried out on the page according to whether the target page requested to be browsed by the user comprises the secret-related information or not, and the influence on all browsed pages of the user is avoided.
The application provides a page display method, as shown in fig. 6, the page display method includes:
step 602, sending a page browsing request to a server, where the page browsing request carries a target user identifier of a first user and a page identifier of a target page, and the page browsing request is used to instruct the server to embed a target watermark font file corresponding to the target user identifier in the target page to obtain the target page embedded with the watermark font;
step 604, receiving a target page embedded with a watermark font from a server;
and step 606, displaying the target page embedded with the watermark font.
In this embodiment, a first user sends a page browsing request carrying a target user identifier of the first user and a page identifier of a target page to a server, and after receiving the page browsing request, the server obtains the target user identifier and the page identifier carried by the first user, where the target user identifier is used to indicate an identity of the first user, and the page identifier may refer to a page link of the target page. When a first user clicks a page link of a certain page on user equipment, a page browsing request carrying a target user identifier of the first user and a page identifier of the target page is sent to a server. The server obtains a target page according to the page identifier, and searches whether a target watermark font file having an association relation with the target user identifier exists in the watermark font library, if so, the target watermark font file is embedded in the target page, so that the font code of the target page is changed, and the target page embedded with the watermark font is obtained, namely, the characters on the target page are at least part of the characters in the target watermark font file. And finally, the user equipment receives and displays the target page which is sent by the server and embedded with the watermark font.
In the embodiment of the application, the watermark fonts corresponding to the user identities are embedded into the browsed target page, so that the fonts displayed in the page are different when each user browses the page, the corresponding user can be positioned according to the page fonts, the relevance between the page and the user is enhanced, the page information tracing basis is provided, and the security of the page information is improved.
Further, in one embodiment of the present application, the text having the watermark font includes at least one of: numbers, english letters, and chinese characters.
In the embodiment, the fonts are distinguished through the keywords such as numbers, English letters or Chinese characters, the accuracy of positioning to the corresponding user according to the page fonts can be improved, and the relevance between the page and the user is enhanced.
It should be noted that, in the page generation method provided in the embodiment of the present application, the execution subject may be a page generation apparatus, or a control module in the page generation apparatus for executing the page generation method. The page generation device provided by the embodiment of the present application is described by taking an example in which the page generation device executes a page generation method.
The present application provides a page generating apparatus, as shown in fig. 7, the page generating apparatus 700 includes:
a receiving module 702, configured to receive a page browsing request of a first user, where the page browsing request carries a target user identifier of the first user and a page identifier of a target page;
an obtaining module 704, configured to obtain a target page according to the page identifier, and obtain a target watermark font file corresponding to the target user identifier from a watermark font library, where the watermark font library is configured to maintain a watermark font file corresponding to at least one user, and the watermark font file is configured to change a webpage font code;
the processing module 706 is configured to embed a target watermark font file in the target page to obtain a target page embedded with a watermark font;
a sending module 708, configured to feed back, to the first user, the target page embedded with the watermark font in response to the page browsing request.
In this embodiment, the server receives a page browsing request of a first user, and obtains a target user identifier of the first user and a page identifier of a target page, which are carried in the page browsing request, where the target user identifier is used to indicate an identity of the first user, and the page identifier may refer to a page link of the target page. When a first user clicks a page link of a certain page on user equipment, a page browsing request carrying a target user identifier of the first user and a page identifier of the target page is sent to a server. Further, a target page is obtained according to the page identifier, whether a target watermark font file having an association relation with the target user identifier of the first user exists or not is searched in the watermark font library, if yes, the target watermark font file is embedded into the target page, so that font coding of the target webpage is changed, and the target page embedded with the watermark font is obtained, namely, the characters on the target page are at least part of the characters in the target watermark font file. And finally, displaying the target page embedded with the watermark font to the first user.
In the embodiment of the application, the watermark fonts corresponding to the user identities are embedded into the browsed target page, so that the fonts displayed in the page are different when each user browses the page, the corresponding user can be positioned according to the page fonts, the relevance between the page and the user is enhanced, the page information tracing basis is provided, and the security of the page information is improved.
Further, in an embodiment of the present application, the page generating apparatus 700 further includes: the generating module is used for generating a plurality of watermark font files and establishing a corresponding relation between the watermark font files and the user identification of the user; the processing module 706 is further configured to store the plurality of watermark font files in a watermark font library; wherein, the fonts of the same characters in different watermark font files are different.
Further, in an embodiment of the present application, the page generating apparatus 700 further includes: the judging module is used for judging whether to embed the watermark font into the target page according to the target user identification and/or the page content of the target page; the obtaining module 704 is specifically configured to, in a case that it is determined that the watermark font is embedded in the target page, obtain a target watermark font file corresponding to the target user identifier from the watermark font library.
Further, in an embodiment of the present application, the determining module is specifically configured to determine to embed the watermark font into the target page, when it is determined that the first user is a confidential object according to the target user identifier.
Further, in an embodiment of the present application, the determining module is specifically configured to determine to embed the watermark font into the target page, in a case that it is determined that the target page includes the secret information according to the page content.
It should be noted that, in the page display method provided in the embodiment of the present application, the execution main body may be a page display apparatus, or a control module in the page display apparatus for executing the page display method. The page display device provided by the embodiment of the present application is described by taking a page display device as an example to execute a page display method.
The present application provides a page display apparatus, as shown in fig. 8, the page display apparatus 800 includes:
a sending module 802, configured to send a page browsing request to a server, where the page browsing request carries a target user identifier of a first user and a page identifier of a target page, and the page browsing request is used to instruct the server to embed a target watermark font file corresponding to the target user identifier in the target page to obtain the target page embedded with a watermark font;
a receiving module 804, configured to receive a target page embedded with a watermark font from a server;
and a display module 806, configured to display the target page embedded with the watermark font.
In this embodiment, a first user sends a page browsing request carrying a target user identifier of the first user and a page identifier of a target page to a server, and after receiving the page browsing request, the server obtains the target user identifier and the page identifier carried by the first user, where the target user identifier is used to indicate an identity of the first user, and the page identifier may refer to a page link of the target page. When a first user clicks a page link of a certain page on user equipment, a page browsing request carrying a target user identifier of the first user and a page identifier of the target page is sent to a server. The server obtains a target page according to the page identifier, and searches whether a target watermark font file having an association relation with the target user identifier exists in the watermark font library, if so, the target watermark font file is embedded in the target page, so that the font code of the target page is changed, and the target page embedded with the watermark font is obtained, namely, the characters on the target page are at least part of the characters in the target watermark font file. And finally, the user equipment receives and displays the target page which is sent by the server and embedded with the watermark font.
In the embodiment of the application, the watermark fonts corresponding to the user identities are embedded into the browsed target page, so that the fonts displayed in the page are different when each user browses the page, the corresponding user can be positioned according to the page fonts, the relevance between the page and the user is enhanced, the page information tracing basis is provided, and the security of the page information is improved.
The page generation device or the page display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the Mobile electronic device may be a Mobile phone, a tablet Computer, a notebook Computer, a palm top Computer, an in-vehicle electronic device, a wearable device, an Ultra-Mobile Personal Computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-Mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (Personal Computer, PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The page generation device or the page display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The page generation device provided in this embodiment of the present application can implement each process implemented in the method embodiments of fig. 1 and fig. 5, and the page display device provided in this embodiment of the present application can implement each process implemented in the method embodiment of fig. 6, and for avoiding repetition, details are not described here again.
An embodiment of the present application further provides a page display system, where the page display system includes: the page generating device in the above embodiment; and the page display device in the above embodiment.
Optionally, as shown in fig. 9, an electronic device 900 is further provided in this embodiment of the present application, and includes a processor 902, a memory 904, and a program or an instruction stored in the memory 904 and executable on the processor 902, where the program or the instruction is executed by the processor 902 to implement each process of the above-mentioned embodiment of the page generation method or the page display method, and can achieve the same technical effect, and in order to avoid repetition, it is not described here again.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned page generating method or page displaying method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer-readable storage media, such as Read-Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, etc.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above-mentioned page generation method or page display method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition. It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. A page generation method is characterized by comprising the following steps:
receiving a page browsing request of a first user, wherein the page browsing request carries a target user identifier of the first user and a page identifier of a target page;
acquiring the target page according to the page identifier;
acquiring a target watermark font file corresponding to the target user identification from a watermark font library, and embedding the target watermark font file into the target page to obtain a target page embedded with a watermark font, wherein the watermark font library is used for maintaining the watermark font file corresponding to at least one user, and the watermark font file is used for changing webpage font codes;
and responding to the page browsing request, and feeding back the target page embedded with the watermark font to the first user.
2. The method for generating pages according to claim 1, before said receiving a page browsing request of a first user, further comprising:
generating a plurality of watermark font files;
establishing a corresponding relation between the watermark font files and user identifications of users, and storing a plurality of watermark font files to the watermark font library;
and the fonts of the same characters in different watermark font files are different.
3. The page generating method according to claim 1 or 2, wherein the obtaining a target watermark font file corresponding to the target user identifier from a watermark font library and embedding the target watermark font file in the target page to obtain the target page embedded with the watermark font includes:
judging whether a watermark font is embedded into the target page or not according to the target user identification and/or the page content of the target page;
and under the condition that the watermark font is judged to be embedded into the target page, acquiring a target watermark font file corresponding to the target user identifier from a watermark font library, and embedding the target watermark font file into the target page to obtain the target page embedded with the watermark font.
4. The method for generating a page according to claim 3, wherein said determining to embed a watermark font into the target page comprises:
and under the condition that the first user is determined to be a confidential object according to the target user identification, judging to embed a watermark font into the target page.
5. The method for generating a page according to claim 3, wherein said determining to embed a watermark font into the target page comprises:
and under the condition that the target page comprises secret information according to the page content, judging to embed a watermark font into the target page.
6. A page display method is characterized by comprising the following steps:
sending a page browsing request to a server, wherein the page browsing request carries a target user identifier of a first user and a page identifier of a target page, and the page browsing request is used for indicating the server to embed a target watermark font file corresponding to the target user identifier in the target page to obtain the target page embedded with the watermark font;
receiving the target page embedded with the watermark font from the server;
and displaying the target page embedded with the watermark font.
7. A page generating apparatus, characterized in that the page generating apparatus comprises:
the system comprises a receiving module, a processing module and a display module, wherein the receiving module is used for receiving a page browsing request of a first user, and the page browsing request carries a target user identifier of the first user and a page identifier of a target page;
an obtaining module, configured to obtain the target page according to the page identifier, and obtain a target watermark font file corresponding to the target user identifier from a watermark font library, where the watermark font library is configured to maintain a watermark font file corresponding to at least one user, and the watermark font file is used to change a webpage font code;
the processing module is used for embedding the target watermark font file in the target page to obtain the target page embedded with the watermark font;
and the sending module is used for responding to the page browsing request and feeding back the target page embedded with the watermark font to the first user.
8. A page display apparatus, characterized in that the page display apparatus comprises:
the system comprises a sending module, a receiving module and a processing module, wherein the sending module is used for sending a page browsing request to a server, the page browsing request carries a target user identifier of a first user and a page identifier of a target page, and the page browsing request is used for indicating the server to embed a target watermark font file corresponding to the target user identifier in the target page to obtain the target page embedded with a watermark font;
a receiving module, configured to receive the target page with the embedded watermark font from the server;
and the display module is used for displaying the target page embedded with the watermark font.
9. A page display system, comprising:
the page generating apparatus of claim 7; and
the page display apparatus of claim 8.
10. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the page generation method of any one of claims 1 to 5 or the page display method of claim 6.
11. A readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the page generation method of any one of claims 1 to 5 or the page display method of claim 6.
CN202210155627.9A 2021-11-10 2022-02-21 Page generation method, display method, device, electronic equipment and storage medium Pending CN114417226A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2023/074824 WO2023155712A1 (en) 2021-11-10 2023-02-07 Page generation method and apparatus, page display method and apparatus, and electronic device and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111324826X 2021-11-10
CN202111324826 2021-11-10

Publications (1)

Publication Number Publication Date
CN114417226A true CN114417226A (en) 2022-04-29

Family

ID=81261113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210155627.9A Pending CN114417226A (en) 2021-11-10 2022-02-21 Page generation method, display method, device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN114417226A (en)
WO (1) WO2023155712A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116127916A (en) * 2022-11-18 2023-05-16 百望股份有限公司 Method and device for dynamically adding watermark
WO2023155712A1 (en) * 2021-11-10 2023-08-24 北京字节跳动网络技术有限公司 Page generation method and apparatus, page display method and apparatus, and electronic device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040001606A1 (en) * 2002-06-28 2004-01-01 Levy Kenneth L. Watermark fonts
US20110203000A1 (en) * 2010-02-16 2011-08-18 Extensis Inc. Preventing unauthorized font linking
CN109635223A (en) * 2018-12-10 2019-04-16 北京字节跳动网络技术有限公司 Page display method and device
CN111191414A (en) * 2019-11-11 2020-05-22 苏州亿歌网络科技有限公司 Page watermark generation method, identification method, device, equipment and storage medium
CN112035804A (en) * 2020-09-01 2020-12-04 珠海豹趣科技有限公司 Method and device for inserting watermark identification into document page, electronic equipment and storage medium
CN112214740A (en) * 2020-09-27 2021-01-12 金蝶医疗软件科技有限公司 PDF processing method, device, computer equipment and storage medium
CN112966277A (en) * 2020-12-16 2021-06-15 南京指掌易信息科技有限公司 Webpage protection method and device, computer equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102169534A (en) * 2011-02-21 2011-08-31 北京书生国际信息技术有限公司 Method and device for displaying watermark
CN104361268A (en) * 2014-11-28 2015-02-18 广州视源电子科技股份有限公司 Watermark embedding and reading method, device and system
KR20180090044A (en) * 2017-02-02 2018-08-10 이흥범 System and method for providing web contents based on replacement of font
CN114417226A (en) * 2021-11-10 2022-04-29 北京字节跳动网络技术有限公司 Page generation method, display method, device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040001606A1 (en) * 2002-06-28 2004-01-01 Levy Kenneth L. Watermark fonts
US20110203000A1 (en) * 2010-02-16 2011-08-18 Extensis Inc. Preventing unauthorized font linking
CN109635223A (en) * 2018-12-10 2019-04-16 北京字节跳动网络技术有限公司 Page display method and device
CN111191414A (en) * 2019-11-11 2020-05-22 苏州亿歌网络科技有限公司 Page watermark generation method, identification method, device, equipment and storage medium
CN112035804A (en) * 2020-09-01 2020-12-04 珠海豹趣科技有限公司 Method and device for inserting watermark identification into document page, electronic equipment and storage medium
CN112214740A (en) * 2020-09-27 2021-01-12 金蝶医疗软件科技有限公司 PDF processing method, device, computer equipment and storage medium
CN112966277A (en) * 2020-12-16 2021-06-15 南京指掌易信息科技有限公司 Webpage protection method and device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023155712A1 (en) * 2021-11-10 2023-08-24 北京字节跳动网络技术有限公司 Page generation method and apparatus, page display method and apparatus, and electronic device and storage medium
CN116127916A (en) * 2022-11-18 2023-05-16 百望股份有限公司 Method and device for dynamically adding watermark

Also Published As

Publication number Publication date
WO2023155712A1 (en) 2023-08-24

Similar Documents

Publication Publication Date Title
CN108304498B (en) Webpage data acquisition method and device, computer equipment and storage medium
EP3518124A1 (en) Webpage rendering method and related device
US8707164B2 (en) Integrated document viewer
US20210149842A1 (en) System and method for display of document comparisons on a remote device
JP2022184964A (en) Systems and methods for direct in-browser markup of elements in internet content
US20190073342A1 (en) Presentation of electronic information
US9934206B2 (en) Method and apparatus for extracting web page content
US10817651B2 (en) Method for referring to specific content on a web page and web browsing system
WO2023155712A1 (en) Page generation method and apparatus, page display method and apparatus, and electronic device and storage medium
US9275018B2 (en) Techniques for analyzing web pages to determine font subsets
JP2005537540A (en) System and method for browser document editing
CN105205080B (en) Redundant file method for cleaning, device and system
CN104462131A (en) Method and device for processing information issuing page
US10198406B2 (en) Modifying native document comments in a preview
CN104243273A (en) Method and device for displaying information on instant messaging client and information display system
CN108595697B (en) Webpage integration method, device and system
US8332821B2 (en) Using encoding to detect security bugs
CN113382083B (en) Webpage screenshot method and device
CN114168869A (en) Information display method, device, system and storage medium
CN111414727A (en) Method and device for editing header and footer of PDF (Portable document Format) document and electronic equipment
CN113360106B (en) Webpage printing method and device
CN115587075B (en) Layout file processing method and device, terminal equipment and storage medium
US20200150855A1 (en) Information processing apparatus and non-transitory computer readable medium storing program
US20050050452A1 (en) Systems and methods for generating an electronically publishable document
CN110515618B (en) Page information input optimization method, equipment, storage medium and device

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
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information