A method and device for recording and replaying web page operation process

By combining web page record data key frames and change data, record data of controllable size is generated, and a message digest algorithm is used to ensure data authenticity, which solves the problems of excessive data files and tampering risks in the existing technology, and achieves flexible playback and security. sex.

CN112148573BActive Publication Date: 2024-09-06QINGDAO HUAZI BIOTECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010991032.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-21
Publication Date
2024-09-06
Estimated Expiration
2040-09-21

AI Technical Summary

Technical Problem

When the existing technology records the web page operation process, the generated data files are too large and cannot be flexibly controlled for playback. They cannot be used as effective operation evidence, and there is a risk of data tampering.

Method used

The webpage operation process is recorded by combining webpage record data key frames and webpage change data to generate record data with controllable file size, and the message digest algorithm is used to ensure data authenticity and non-tamperability.

Benefits of technology

It achieves flexible control of data playback, reduces the amount of calculation, and ensures the authenticity and security of recorded data, making it usable as operational evidence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112148573B
    Figure CN112148573B
Patent Text Reader

Abstract

The present application discloses a method for recording a web page operation process, which is applied to a web page operation process recording device, and the method includes: collecting data in the web page snapshot data content and creating a web page recording data key frame; during the web page operation process, based on the changes in the web page snapshot data, calculating and generating web page content change data and storing it; collecting operation process verification data based on the web page operation process; generating web page operation process recording data based on the above collected data. The present application also discloses a method for replaying a web page operation process, which is applied to a web page operation process playback device, reading in and parsing the web page operation process recording data, generating a playback instruction and executing the playback, calculating and rendering the web page content based on the web page recording data key frame and the web page content change data, and restoring the web page operation process. The web page operation process recording and playback method provided by the present application ensures the authenticity and verifiability of the recorded data, and the recorded data can be used as a valid operation credential.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of data collection and verification, and information security, and in particular to a method and device for recording and replaying a web page operation process. Background Art

[0002] With the development of the Internet, more and more business operations are carried out online. However, due to the characteristics of Internet operations, the security and standardization of the operation process have also attracted much attention. Therefore, the requirement to record the web page operation process and generate playback data and operation evidence has emerged. For example, online signing, examinations, account opening, transactions, etc. all have the need to record the operation process. For example, for online insurance transactions, in order to standardize the insurance process, effectively curb sales misleading, and protect the legitimate rights and interests of consumers, the China Banking and Insurance Regulatory Commission issued the "Notice on Standardizing the Traceable Management of Internet Insurance Sales Behaviors", requiring the formulation of a traceable system for Internet insurance sales behaviors and strict control of sales pages to achieve the restoration of sales behaviors.

[0003] The prior art provides a recording method for a web page operation process. According to the changes in the web page snapshot data during the web page operation process, each web page snapshot data or web page snapshot change data is recorded, and the recorded data is used to generate web page operation process playback data. During the playback process, the web page snapshot data is provided to the browser, and the web page is rendered to realize playback.

[0004] In the process of implementing the present invention, the inventors found that the prior art has at least the following problems: the recorded data is generated by recording each web page snapshot data. For web pages with large web page snapshot data, the recorded data file generated is too large, and some are even larger than the video recording method; if the difference data is recorded according to the changes in the recorded web page snapshot, the generated recorded data cannot be played according to the specified position. For example, if a 10-minute recorded data is required to be played from the 8th minute, it is necessary to perform all the web page difference calculations from 0 to 8 minutes at one time to obtain the required web page data, and the amount of calculation is too large; more importantly, the recorded data generated by this recording method can be easily modified by the user, forged to request to change the recorded content, etc., and cannot be used as evidence of the operation process. Therefore, it is urgent to strictly record the web page operation process and generate playback data that can be used as operation evidence. Summary of the invention

[0005] In view of the above-mentioned existing situation, the present application applies web pages and related technologies to solve the following problems: record data according to the web page operation process so that the recorded data can be used for playback, the file size can be controlled, and flexible control like video playback can be achieved, such as fast forward, fast rewind, play at a specified position, etc., so that the recorded data can be used as valid evidence of the operation process.

[0006] In a first aspect, the present application provides a method for recording a webpage operation process, which is applied to a webpage operation process recording device, and the method comprises:

[0007] Collecting data in the web page snapshot data content, and creating a web page record data key frame based on the collected data; wherein the web page snapshot data content includes one or more of web page HTML data, DOM data, CSSOM data, and web page element object data; the web page record data key frame is used to provide complete web page data for a moment during playback, and at least one web page record data key frame is generated at the start moment of the web page operation process recording, and also includes collecting data based on the web page snapshot data content at different moments, and correspondingly generating multiple web page record data key frames;

[0008] Based on the changes in the content of the web page snapshot data during the web page operation, web page content change data is calculated and generated, and the time information of the change is recorded; wherein the web page content change data also includes the web page element object change data contained in the web page; the web page content change data is used for web page content data calculation, and during the playback process, the latest web page content data is calculated based on the current web page content data and the web page content change data;

[0009] Collecting operation process verification data based on the webpage operation process; wherein the operation process verification data is used to verify the authenticity of the data collected or recorded at the client, including generating the operation process verification data according to the webpage operation occurring at the client and the data to be verified and sending it to the verification server for real-time verification, or collecting data at the client to generate the operation process verification data, wherein the operation process verification data can be used to restore the process of the webpage operation and data change at the client, thereby verifying the authenticity of the data collected or recorded at the client;

[0010] The collected key frame data of the web page record data, the time information of the web page content change data and its change, and one or more of the operation process verification data are used to generate web page operation process record data, and the web page operation process record data is used for verification and playback of this web page operation process.

[0011] The solution provided in the embodiment of the present application is based on recording the result data of web page operations (i.e., web page snapshot data). Compared with the implementation method of recording based on web page operation behaviors (user operation behaviors, server interactions, etc.), the generated record data is more accurate.

[0012] Through the solution provided in the embodiment of the present application, the web page operation process data is recorded by combining the web page record data key frame with the web page change data. The web page change data is the differential data during the change process of the web page snapshot data. The generated record data file has the advantage of small size.

[0013] In addition, in the solution provided in the embodiment of the present application, the collected operation process verification data can verify the authenticity of the recorded web page operation process record data. Therefore, the web page operation process record data finally generated by the solution provided in the embodiment of the present application can be used as valid evidence.

[0014] In one implementation of the present application, the method for generating the web page record data key frame data includes the following two methods: recording the complete web page content data to generate independent web page record data key frame data, or generating differential web page record data key frame data by recording the difference information between the web page record data key frame and the specified web page record data key frame.

[0015] In the above two different key frame generation methods, the independent web page record data key frame data stores the complete web page snapshot data content, which is convenient for quickly obtaining the data content; the difference key frame only stores the difference data between the specified key frame, and the amount of data generated is small, which is conducive to storage. In the implementation scheme provided in the embodiment of the present application, the above two types of key frames are generally combined, that is, a part of independent key frames is created, and another part of difference key frames is created based on it, thereby achieving the purpose of controlling the data storage amount and quickly providing data.

[0016] In one implementation of the present application, during the web page operation process, one or more of the web page's operating environment information, web page program, web page and external request and interaction information, web page operation data environment information, and user operation behavior information are collected to generate operation process verification data that can restore the client's web page operation and data change process. Based on the restored client web page operation and data change process, the authenticity of the data collected or recorded by the client is verified.

[0017] The various data collected by the above implementation methods can be used to restore the operation process of the web page. Therefore, saving the above data can be used to verify the operation process of the web page.

[0018] In another implementation of the present application, a method for collecting operation process verification data based on a webpage operation process performs real-time verification on the collected webpage data and operations, specifically:

[0019] During the web page operation process, when the web page snapshot data content changes and / or the web page operation is collected, the operation process verification data is calculated and generated based on the change in the web page snapshot data content and / or the web page operation, and the operation process verification data includes the web page operation content and the data content to be verified; the operation process verification data is sent to the verification server for verification, and the verification server verifies the data content to be verified based on the web page operation it contains, thereby verifying the authenticity of the data collected or recorded by the client, and returning the verification result.

[0020] Since the present application records the web page operation process by recording the result data generated by the web page operation, and the web page operation result data is generated in the client (i.e., the browser), there is a security problem. According to the above implementation method, the authenticity of the web page snapshot data content changes, web page operations, and web page operation process record data recorded during the web page operation process is ensured, effectively preventing the client web page data from being maliciously modified, and providing a guarantee that the recorded data can be used as operation evidence.

[0021] In one implementation of the present application, the method of determining whether the content of the webpage snapshot data has changed also includes the following method:

[0022] Establishing monitoring of the webpage snapshot data content inside the webpage, and when monitoring that the webpage snapshot data content changes, calculating the webpage content change data or creating the webpage record data key frame;

[0023] Establishing a monitor for HTML events in the web page, and when an HTML event is monitored, determining that the content of the web page snapshot data changes before and after the HTML event is executed, calculating the web page content change data or creating a key frame of the web page record data;

[0024] According to a preset time interval, the web page content change data is calculated or the web page record data key frame is created.

[0025] In the implementation of the present application, the data of the web page operation process is recorded based on the changes in the content data of the web page snapshot. The above implementation method provides three methods for triggering data recording execution. The first method is to establish a monitor based on the web page snapshot data itself. Any event or program that causes the change of the web page data content can be obtained by this monitoring method; the second method is to establish a monitor in combination with the events occurring inside the web page, which is conducive to recording the changes of web page data in combination with the web page operation, and at the same time, provides support for verifying the changes of web page data based on the web page operation; the third method is relatively special, which periodically obtains the web page content change data according to the time interval, which is more conducive to processing special web page objects, such as video elements, canvas elements, etc.

[0026] In one implementation of the present application, the operating environment information of the web page is recorded, and the web page operating environment data is generated, and the web page operating environment data is used to judge and set the web page operating environment of the playback client when executing playback; during the web page operation process, the browsing operation and browsing status information of the web page are monitored and recorded, and the corresponding time information is recorded to generate the browsing operation and browsing status data of the web page, and the browsing operation and browsing status data of the web page are used to set the browsing operation and browsing status of the web page accordingly during the playback process, and restore the web page browsing process.

[0027] In the above implementation, recording the web page operating environment is conducive to providing information support for judging and setting the operating environment when replaying the web page operation process, and the web page operating environment includes browser information, viewport size, etc. The web page browsing operation is a web page operation that does not cause changes in the web page data content, such as user cursor movement, cursor change, page sliding, content change in web page controls, viewport size change, etc. This implementation provides a method for recording web page browsing operations and browsing status information, which is conducive to completely recording the web page operation process.

[0028] In one implementation of the present application, one or more of the key frame data of the web page record data, the web page content change data, the resource file data related to the web page content, the operation process verification data, the operation process verification result data, the web page operating environment data, the web page browsing operation data, and the web page browsing status data are structured and stored to generate web page operation process record data, a message digest algorithm is used to generate a message digest for the web page operation process record data, and the message digest is displayed or stored; wherein the message digest is used to identify the current web page operation process and verify the consistency of the web page operation process record data, and the storage method includes one or more of printing, local storage, server storage, third-party storage, and blockchain storage.

[0029] In the above implementation, the generation of web page operation process record data and the generation of message digests based on the data occur in the "transaction area" of both parties, that is, the client browser. At the end of the web page operation process, both the web page operator and the web page provider can obtain the data and message digest of the operation process. The data record and message digest generation process are fair, open, and verifiable, thereby obtaining effective operation evidence.

[0030] According to the above implementation, preferably, in the process of recording the web page operation, a message digest is generated for the data recorded in the web page operation process, and at the same time, a message digest algorithm and calculation steps corresponding to the generation of the message digest are recorded.

[0031] In a possible implementation of the present application, when the web page operation process record data changes, a message digest algorithm is used to generate a message digest for the web page operation process record data, and the message digest is added to the message digest history record. The message digest record contained in the message digest history record is used to verify the corresponding web page operation steps.

[0032] In the above implementation, the changes in the web page operation process record data correspond to various changes in the web page operation, including web page operation, server interaction, web page program operation, etc. This implementation generates a message digest corresponding to the web page operation process record data in each operation state, that is, generates operation evidence for each operation state, and each message digest is generated based on the previous message digest, which is conducive to generating unalterable operation evidence. Each data provided by the web page provider or operation performed by the web page operator is a fixation of the historical operation evidence. In addition, this implementation is also conducive to verifying each operation step and web page data.

[0033] In another possible implementation of the present application, during the webpage operation process, the client displays a message summary generated by the current webpage operation process record data or related data generated according to the message summary, and requires the operating user to read according to the displayed content;

[0034] According to the registration of the operating user, the registration data is collected and added to the web page operation process record data, and according to the new web page operation process record data, a new message summary is generated again for it. The new message summary contains authentication information on the operating user identity and user operation.

[0035] In the above possible implementation methods, a message summary is generated based on the record data generated by the user during the web page operation process. The message summary represents this operation. On this basis, the user reads the summary or its related information to generate a message summary again, forming confirmation information of "Who am I, I confirm the operation I have done", which is suitable for the operation content and operator identity identification of key business operations.

[0036] In a second aspect, the present application further provides a webpage operation process playback method, which is applied to a webpage operation process playback device, and the method comprises:

[0037] Read in the recorded data of the web page operation process;

[0038] Parsing the webpage operation process record data, parsing one or more of the webpage record data key frame data, webpage content change data, webpage content related resource file data, webpage operating environment data, webpage browsing operation information, and webpage browsing status information contained therein, and generating a playback instruction, including:

[0039] Generate a playback instruction for determining and setting a web page playback environment based on the web page running environment data;

[0040] Based on the key frame data of the web page record data, generating a playback instruction for setting the web page content data;

[0041] Based on the webpage content change data, a playback instruction for modifying and / or setting the webpage content data is generated, and the execution time of the playback instruction is set according to the time information corresponding to the webpage content change data; when it is determined that the webpage content change data includes webpage element object change data, the method further includes: generating a playback instruction for setting the corresponding webpage element object according to the webpage element object change data, and setting the execution time of the playback instruction according to the time information corresponding to the webpage content change data;

[0042] Based on the web browsing operation data and browsing status record data, and according to their corresponding time information, generating a playback instruction for setting the web browsing operation and web browsing status;

[0043] Executing the playback instruction includes executing the playback instruction for determining and setting the web page playback environment, and executing the playback instruction for setting the web page content data; executing the corresponding playback instruction according to the time information contained in the playback instruction for modifying and / or setting the web page content data, the playback instruction for setting the web page element object, the playback instruction for setting the web page browsing operation, and the playback instruction for setting the web page browsing state.

[0044] Through the solution provided in the embodiment of the present application, the web page operation process recording data recorded in the first aspect is used to perform web page operation process playback, which can achieve a playback effect consistent with the recording process.

[0045] In a possible implementation of the present application, during the web page playback process, when a control instruction for setting a playback position is received, the process further includes:

[0046] Taking the time information corresponding to the playback position contained in the control instruction as the first moment, searching in the starting direction of the web page playback to obtain the most recent web page recording data key frame as the first key frame, and taking the corresponding time information as the second moment;

[0047] The web page data of the first key frame is calculated according to the data generation method of the first key frame. Specifically, when the first key frame is determined to be an independent web page record data key frame, the web page content data contained therein is obtained as the web page data of the first key frame. When the first key frame is determined to be a difference key frame, the web page record data key frame with which the difference calculation is performed is recursively searched until an independent key frame is obtained, and the web page content data contained therein is used as the basic web page content data. According to the web page record data key frame sequence obtained by the recursive search, the difference information recorded in each web page record data key frame is extracted one by one in the order from back to front of the recursive search path. On the basis of the basic web page content data, the web page data is restored and calculated one by one according to the difference information of the extracted web page record data key frames, and finally the web page content data of the first key frame is obtained.

[0048] The web page change data having an execution time between a first moment and a second moment is searched for in the web page change data to generate a web page change data sequence; based on the web page data contained in the first key frame, an execution order is generated according to the web page change records contained in the web page change data sequence and based on the time information of the web page change records contained therein; according to the execution order, the web page content data modification operation corresponding to the web page change records is executed to generate the web page content data corresponding to the first moment; and the web page is displayed based on the web page content data.

[0049] In the above implementation, the web page data content of the specified playback position is obtained according to the key frames and web page change records. The calculation speed is fast, which is conducive to quickly obtaining the web page data content. In addition, the flexibility of playback control during playback is improved, and the same playback control as video is achieved.

[0050] In a possible implementation of the present application, after reading in the web page operation process record data, it also includes: generating a message digest for verification corresponding to the web page operation process record data according to the message digest algorithm used in the web page operation record process and the steps of generating the message digest, and comparing it with the message digest generated correspondingly in the web page operation record process to verify the consistency of the web page operation process record data, or reading a pre-stored summary history record and performing consistency verification on the data of each step used for playback according to the message digest record contained therein.

[0051] The above possible implementation methods provide a method for verifying the recorded web page operation process data, and also provide a method for verifying the recorded data of a single step contained in the web page operation process recorded data, which not only can provide verification results, but also is conducive to analyzing and locating the cause of the problem.

[0052] In a third aspect, the present application further provides a device for recording a web page operation process, wherein the device is used to implement any one of the web page operation process recording methods in the first aspect above.

[0053] In a fourth aspect, the present application further provides a web page operation process playback device, which is used to implement any one of the web page operation process playback methods in the second aspect above.

[0054] In a fifth aspect, the present application also provides a computer program product, comprising instructions, which, when executed on a computer, enable the computer to execute any method as described in the first aspect above, or enable the computer to execute any method as described in the second aspect above.

[0055] In a sixth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer-readable storage medium is run on a computer, the computer executes a method as described in any one of the first aspects above, or the computer executes a method as described in any one of the second aspects above. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 A schematic diagram of a process flow of recording a web page operation process provided by an embodiment of the present application;

[0057] Figure 2 A schematic diagram of a process for recording different types of web page record data key frames and web page change data during web page operation provided by an embodiment of the present application;

[0058] Figure 3 A schematic diagram of a web page operation process verification data recording process provided by an embodiment of the present application;

[0059] Figure 4 A schematic diagram of a process for real-time verification of web page operation process data recording provided by an embodiment of the present application;

[0060] Figure 5 A schematic diagram of a process for recording data collection during a web page operation provided in an embodiment of the present application;

[0061] Figure 6 A schematic diagram of a process flow for recording data of a web page operation process and generating a message summary thereof provided in an embodiment of the present application;

[0062] Figure 7 A schematic diagram of a process for generating a summary history record provided in an embodiment of the present application;

[0063] Figure 8 A schematic diagram of a process for generating authentication information for a web page operation process and a user identity provided in an embodiment of the present application;

[0064] Fig. 9 A schematic diagram of a process flow of replaying a web page operation process provided in an embodiment of the present application;

[0065] Fig.10 A schematic diagram of a process for calculating web page data according to a specified position during playback provided by an embodiment of the present application;

[0066] Fig.11 A schematic diagram of a process for verifying web page operation process record data and verifying single playback step web page operation process record data provided by an embodiment of the present application;

[0067] Fig.12 A structural block diagram of a web page operation process recording device provided in an embodiment of the present application;

[0068] Fig.13 A structural block diagram of a web page operation process playback device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0069] The implementation mode part of this application is only used to explain this application but is not intended to limit this application.

[0070] The following describes the embodiments of the present application in conjunction with the accompanying drawings. Obviously, the described embodiments are only embodiments of a part of the present application, rather than all embodiments. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0071] Below, some terms in this application are explained to facilitate understanding by those skilled in the art:

[0072] 1) Web page snapshot refers to the result data generated by the browser receiving and parsing the web page during web browsing and operation. It is the web page data directly or indirectly used by the browser for rendering in a browsing state, such as static web page data corresponding to the web page display content. The data content contained in the web page snapshot includes web page HTML data, DOM data, CSSOM data, web page element object data, etc. Among them, the web page element object data is the data related to the elements or objects contained in the web page, such as the video element object, and its related data includes the video length, current playback position, etc. In addition, the data content contained in the web page snapshot also includes the resource file data contained in the web page content data, such as CSS files, pictures and other resource files.

[0073] 2) Web page content change data, based on the recording form of the web page snapshot data content, the web page content change data is recorded based on the web page snapshot data content change. For example, if a tree structure is used to store the web page snapshot data content, the web page content change data is generated based on one or more of the node information, change nature, and change content that have changed in the tree structure, wherein the change nature includes addition, deletion, modification, etc.

[0074] 3) Information about the web page’s operating environment, including but not limited to information about the server, client operating system, network, browser, the operating environment provided by the browser for the web page, web page programs, time, location, etc., such as the browser’s version, kernel, viewport size, etc.

[0075] 4) Web page browsing operations and browsing status information. The web page browsing operations refer to web page operations that do not cause changes in the web page data content, such as user cursor movement, cursor changes, page sliding, changes in the content of web page controls, changes in viewport size, etc.; the browsing status information refers to relevant information of the web page in a certain browsing state, such as cursor position, cursor status, window size, page position information, etc.

[0076] 5) And / or describes the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, B exists alone, and A and B exist at the same time. The character " / " generally indicates that the related objects are in an "or" relationship.

[0077] The present application provides a method for recording the operation process of a web page, which is used to record the entire process of a user browsing and operating a web page, and to generate recorded data that can be used for playback, while generating valid operation credentials. The following is a brief description of the principles adopted by the method of the present application.

[0078] First, let's analyze the existing methods for recording web page operation processes. The shortcomings are mainly manifested in two aspects:

[0079] First, the recorded data is used for playback and cannot be flexibly controlled like video. The main reason is that the existing technology records the web page operation process by recording web page snapshot data and web page snapshot difference data. Taking 10 minutes of web page browsing and operation as an example, the operator fills in information, jumps to web pages, submits information, etc., which will cause hundreds of web page snapshot content changes. When the generated data is used for playback using the recording method of the existing technology, if it is specified to play from the 9th minute, it is necessary to start from the time the web page is loaded to generate the first web page snapshot data, and calculate and restore all web page snapshot content data changes that occurred in the previous 9 minutes, which results in excessive calculation.

[0080] Second, the existing technology lacks a secure collection and verification mechanism in the process of recording data, so it is only applicable to ordinary application scenarios that generate user operation trajectory data. If it is applied to more stringent scenarios such as Internet insurance, fund transfer, etc., there are major defects.

[0081] In the embodiment provided by the present application, a method of recording multiple key frame data is adopted to solve the above first problem. For example, in the above example, inserting 10 key frames can reduce the amount of calculation by about one order of magnitude, but the storage of key frames will cause another problem, that is, the amount of recorded data increases. For example, the key frame data stored in the above example may increase by one order of magnitude. Based on this, the present application solves the above problem of too much recorded data by adopting the method of calculating the difference between key frames and storing the difference data. When the final generated recorded data is used for playback, as in the above example, the playback is required to be performed from the 9th minute, then the key frame closest to the specified time point is found. First, the web page data of the key frame is calculated based on the data stored in the key frame and the difference relationship with other key frames, and then the web page content data recorded between the key frame and the specified time point is finally calculated and the web page content data at the specified time point is displayed, thereby realizing playback according to the specified position and effectively reducing the amount of calculation.

[0082] Analyzing the second problem existing in the prior art, if it needs to be solved, the following points need to be guaranteed: collect and record data of the web page operation process in an open and fair environment, and the collected data can obtain unanimous approval from the web page provider and the web page operator; the collected data is not likely to be tampered with, and has a verification mechanism to discover anomalies in the operations and data during the collection process. The solution provided in the embodiment of the present application collects data during the web page operation process on the client (browser), and does not allow any processing related to the collection and recording of data to be performed outside the client before the final operation evidence is generated; according to each change in web page data or each web page operation, a message digest algorithm is applied to generate operation credentials for the recorded data, and each operation credential is based on the previous operation credential, and finally an unmodifiable operation credential is generated. Each credential generation is an effective fix of the previous operation credential. The above mechanism does not allow the web page operation data to be modified after it is generated; in the process of web page data collection, two methods are provided to ensure the validity of the collected data. First, while collecting the data recorded during the web page operation process, the operation of the web page is also collected. Environmental information, web page programs, web page and external requests and interaction information, data environment information of web page operation, user operation behavior information, etc., generate operation process verification data, and the verification data is used to restore the web page operation process, and verify the validity of the recorded web page operation process record data according to the restored web page operation process. Secondly, when the web page snapshot data content changes or web page operations are collected, operation process verification data is generated based on it, and the operation process verification data includes relevant operation information and data content to be verified. The operation process verification data is sent to the verification server for verification, and the verification server verifies the validity of the data to be verified according to the operations performed by the client, and returns the verification result. This is a method of real-time verification of web page operation process record data.

[0083] Figure 1 A possible flow chart of recording a webpage operation process is shown, including the following steps:

[0084] S101, collecting data in the webpage snapshot data content, and creating a webpage record data key frame based on the collected data;

[0085] S102, based on the changes in the content of the webpage snapshot data during the webpage operation process, calculate and generate webpage content change data, and record the time information of the change;

[0086] S103, collecting operation process verification data based on the webpage operation process;

[0087] S104, storing the collected data in a structured manner to generate web page operation process record data.

[0088] The following is a detailed description of the above steps:

[0089] In S101, the web page record data key frame is created during the web page operation process, which is used to store the web page snapshot data content in an operation state. The complete web page snapshot data content can be directly or calculated based on the web page record data key frame. During the recording process of the web page operation, multiple web page record data key frames can be created according to the recording requirements and the data characteristics of the web page snapshot content. The specific creation method is as follows: when the start time of the operation process is recorded, the start time of web page loading, when the web page is loaded for the first time, after the web page jumps, when the web page data content exceeds a predetermined percentage, when the number of web page operations reaches a predetermined value, when the number of web page content changes reaches a predetermined value, according to a predefined operation stage, according to a predetermined time interval, etc.

[0090] In S102, the changes in the web page snapshot data content include HTML data changes, DOM changes, CSSOM changes, etc., depending on the type of web page snapshot data content. It should be noted that it also includes changes inside web page element objects, such as canvas elements, video elements, etc. When changes occur inside such elements (such as changes in the drawing content contained in the canvas), the HTML, DOM, etc. corresponding to the web page snapshot do not change. Therefore, it is necessary to use a corresponding recording method to record the changes inside such web page elements. The time information when the web page snapshot data content changes is recorded for setting the execution time of the corresponding playback instruction during playback.

[0091] It should be noted that there is at least one step S101 above, and there may be multiple steps, that is, multiple combinations of steps S101 and S102. Each S102 has a corresponding S101, but there are independent S101s without corresponding S102s.

[0092] In S103, the operation process verification data is mainly used to verify the validity of the web page operation that occurred, and the data collected or recorded in S101 and S102, that is, to ensure that the web page snapshot content data and web page content change data collected during the web page operation are authentic and valid, or verifiable. The specific verification method is described in detail in the subsequent embodiments. The operation process verification data includes content such as the web page operation data that occurred, data used for verification, or data generated based on the above data, etc., wherein the data used for verification includes the data content to be verified. According to the web page operation that occurred, the verification terminal or server verifies the data to be verified to obtain the final verification result.

[0093] S104 stores the collected data to generate web page operation process record data, and the storage method includes tree structure storage, relational storage, etc., which will be described in detail in the subsequent embodiments. In addition, storing the web page operation process record data also includes storing the relevant resource file records in the web page record data key frames and web page content change data, and generating resource file record data, including CSS files, pictures and other resource files.

[0094] In a preferred implementation of the above embodiment, a data model is established based on the structure of the web page snapshot data content, key frame (web page record data key frame) data is generated based on the data model, and web page content change data is analyzed and generated based on the data model. If the data model adopts a tree structure, key frame data in JSON format is generated based on the data model, and when the web page content changes, based on the node information, change nature, change content, etc. of the changed node in the data model corresponding to the web page content change, a web page content change data record is recorded and generated.

[0095] It should be noted that the above steps of collecting key frame data of web page record data, collecting web page content change data, collecting operation process verification data, and generating web page operation process record data are all performed on the client (browser that performs web page operation) before generating valid operation credentials. In an optional implementation, according to the above, after the client generates valid operation credentials, the operation credentials and / or the web page operation process record data are stored on the client and / or server.

[0096] Optionally, the webpage operation process verification data generated in S103 is sent to a verification server or verification terminal for real-time verification, and according to the verification result returned by the verification server or verification terminal, the valid webpage operation process record data is stored in S104. It should be noted that in this implementation, the webpage operation process record data stored in S104 may not include the operation process verification data.

[0097] Through the above embodiments, a recording method combining key frame data and web page content change data is adopted, and the generated web page operation process recording data supports flexible playback control; the data is verified simultaneously during the data recording process to ensure that the recorded data is authentic and valid, or, during the data recording process, data that can verify the web page operation process is collected to generate data that can verify the validity of the web page operation process recording data, so that the recorded data can be verified.

[0098] In a possible implementation scenario, the key frame data recorded during the web page operation process includes the following two methods: recording the complete web page content data to generate independent web page record data key frame data, or recording the difference data information between the web page record data key frame and the specified web page record data key frame to generate difference web page record data key frame data. Figure 2 An example of recording keyframes and web page changes (i.e., web page content changes) during web page operation is shown. As shown in the figure, four keyframes are generated according to the recording requirements, among which keyframe A and keyframe D are independent keyframes, which store complete web page data content. In addition, keyframe B and keyframe C are differential keyframes, that is, keyframe B records the difference information between keyframe A and keyframe C, and keyframe C records the difference information between keyframe B. Between every two keyframes, multiple web page change data may be included, such as web page change a and web page change b between keyframe A and keyframe B, wherein web page change a records web page changes based on keyframe A, and web page change b records web page changes based on web page change a.

[0099] The implementation principle of the above possible implementation scenarios has the following two advantages:

[0100] First, the generated web page operation process record data solves the problem of executing playback at a specified time point during playback, which is conducive to achieving flexible playback control like video. For details, please refer to the relevant embodiments of the playback part.

[0101] Second, it reduces the amount of data to be stored, which is beneficial for storage. According to the setting requirements of independent key frames, it is usually used when the web page content data undergoes a major change or a complete change. Therefore, the data recorded by the independent key frames is the necessary web page content data. In addition, the differentiated key frames and web page change data are recorded in a way that minimizes the volume. Therefore, the purpose of controlling the data volume is achieved as a whole.

[0102] In a possible implementation scenario, Figure 3 As shown, the operation process verification data is collected based on the web page operation process. The steps are as follows:

[0103] S301, collecting operating environment information of the web page;

[0104] S302, collecting web page programs;

[0105] S303, collecting the request and interaction information between the web page and the outside world;

[0106] S304, collecting data environment information of web page operation;

[0107] S305, collecting user operation behavior information;

[0108] S306, generating web page operation process verification data.

[0109] In the above implementation scenario, the information collected from S301 to S305 is used to generate verification data of the operation process. When the webpage operation process verification data is used for verification, the above various data are parsed and obtained, and the operating environment and operation process of the user performing the webpage operation are restored based on the data, thereby verifying the validity of the various data contained in the webpage operation process record data. In some possible implementations, the collection of verification data for the webpage operation process includes one or more of S301 to S305, but is not limited to the information contained in S301 to S305.

[0110] The web page operating environment information collected in step S301 is used to set the operating environment for execution verification, that is, to set its relevant parameters and data; the web page program collected in S302 includes but is not limited to the digital signature of the front-end business program, the server-side business program, and the recording program used to implement the method of this application; the web page and the external request and interaction information in S303 includes but is not limited to the interaction information between the web page and the server, the request and interaction information between the web page and the local operating system, and the web page and the supporting operating environment of the web page, such as requesting data from the server, obtaining data from the server, selecting local files to upload, etc.; the data environment information of the web page operation collected in S304 aims to record the data environment of the browser when the web page operation starts or the execution record starts, and the acquired data includes the local database, local storage, cache, etc. stored in the browser; the user operation behavior in S305 is the various operations performed by the user on the web page, including clicking, dragging, inputting, page sliding, etc.

[0111] Through the above, multi-dimensional data collection is performed on the operating environment, external interaction, user interaction, data environment, programs, etc. during the web page operation process to meet the necessary conditions for building an operating environment for execution verification, facilitate the restoration of the web page operation process in the operating environment for execution verification, and verify the validity of the recorded web page operation process data based on the restored results.

[0112] It should be noted that the recording program for implementing the method of the present application is required to be implemented on the front end (client) to ensure that the implementation method of the present application is open and transparent. Based on the above implementation, the following effects can be obtained: for the web page operator, the recording program applied to the web page operation process is located on the client and runs, and its program content is open to it, so there is no possibility that the web page provider modifies the recorded data; for the web page provider, the operation process verification data can be used to restore the environment and process of the web page operator performing the web page operation, verify the validity of the recorded data, and thus exclude the possibility that the web page operator modifies the recorded data of the web page operation process. Therefore, the recorded data is credible to both parties.

[0113] According to the above embodiments, a verification and verifiability mechanism is provided for the web page operation process record data, thereby ensuring the validity of the collected and recorded web page operation process record data, or when encountering problems with the relevant recorded data, the cause of the problem can be verified, thereby providing a guarantee for the final generation of web page operation process evidence.

[0114] In another possible implementation scenario, during the web page operation process, the operations occurring in the web page and the resulting web page data changes are verified in real time, such as Figure 4 As shown, the webpage operation is performed on the webpage operation client, and the independent verification server (or verification terminal) performs real-time verification. The detailed steps are as follows:

[0115] S401, collecting web page operations, web page snapshot data content or changes thereof at a web page operation client;

[0116] S402, generating the operation process verification data on the web operating client;

[0117] S403, at the verification server, verifying the web page operation and web page data content change occurring at the client according to the operation process verification data;

[0118] S404, generating a verification result at the verification server;

[0119] S405, operating the client on the web page to determine the verification result;

[0120] S406, the web page operation and the recorded data are normal, and subsequent processing is performed on the web page operation client;

[0121] S407, the web page operation and the recorded data are abnormal, and the abnormality processing is performed on the web page operation client.

[0122] It should be noted that the above S401 and the web page operations in this application cannot be simply understood as web page operations of user behavior. They include but are not limited to various web page operation behaviors triggered by user behavior, network interaction, programs, data, operating environment, etc., such as button clicks, web page loading completion, execution of a program by a timer in the web page program, execution triggered by server push, etc.

[0123] S402 generates operation process verification data according to the collected web page operations, web page snapshot data content or changes occurring thereto. The generation requirement of the operation process verification data is that the verification end can complete the verification operation according to the web page operations occurring on the client and the recorded web page operation process record data. For example, the operation process verification data may include the web page operation information and data occurring on the client, data used for verification, etc., wherein the data used for verification includes data content to be verified. For example, after the content data of the client web page snapshot changes, a message digest algorithm is used to generate a message digest for the latest web page operation process record data, and the message digest is used as the data content to be verified.

[0124] The verification server in S403 verifies the validity of the web page operation, the generated web page content data, and the generated web page operation process record data of the client according to the operation information and the data information for verification contained in the operation process verification data. In a preferred implementation, a simulation is established in the verification server to establish an operating environment for executing verification that runs synchronously with the web page operation environment. After receiving the operation process verification data, the web page operation contained therein is executed in the operating environment for executing verification, and then the data to be verified is verified according to the web page data generated in the operating environment for executing verification. As in the example of the generation method of the operation process verification data corresponding to the above S402, the web page operation needs to be executed in the same steps as the client on the server end for executing verification, the web page operation is generated, and a message digest is generated for it, and the verification is completed by comparing the message digest with the message digest contained in the data to be verified. The implementation principle of the above verification method is to synchronously execute the web page operations of the client and the verification server, and verify the web page data finally recorded by the client based on the web page data of the server. Preferably, for the requests and interactions between the client and the business server, the verification server directly obtains the server response data received by the client from the business server according to the web page operation, and performs verification, so as to effectively prevent the client from destroying the client's web page data by forging web page requests and forging server response data.

[0125] According to the above, the verification server verifies the authenticity of the client operation, client web page data, and the recorded web page operation process record data through the operation process verification data. Therefore, the operation process verification data must meet the verification requirements of the verification server, and the data to be verified contained therein includes but is not limited to the following methods: the web page operation process record data or the message digest generated for it; the newly added data content of the web page operation process record data or the message digest generated for it; the web page snapshot data content or the message digest generated for it; the web page content change data or the message digest generated for it; the data of one or more web page elements extracted from the web page snapshot data content according to the specification, or the message digest generated for it. It should be noted that the web page operation information contained in the operation process verification data also includes data content related to the web page operation, such as the input data content for input operations.

[0126] In the verification server, S404 is executed to generate a verification result and sent to the web page operation client. In the web page operation client, S405 is executed to judge the verification result. If the verification passes, S406 performs subsequent processing. If the verification fails, S406 performs exception processing. Preferably, the verification result generated by S404 includes not only the result information of whether the verification is passed, but also the verification code information generated by the verification server based on this verification, and ensures that the verification code cannot be generated based on the client data, such as jointly generating a message digest based on the verified data, the web page operation information, and the character string retained by the server alone. Optionally, the verification server sends the generated verification result to the business server at the same time. Optionally, the verification code information is stored in the web page operation process record data on the client. In a preferred implementation of this embodiment, the subsequent operations performed in S406 are all performed based on the verification result information obtained in the previous step (such as the received verification code information), such as: when sending a request to the business server, the verification result information is carried to indicate "my previous step is verified, please receive and process my request", and the business server verifies the validity of the client request based on the verification result information sent by the verification server when performing the verification in the previous step. For another example, the webpage operation client sends the operation process verification data to the verification server, and the operation process verification data is generated based on the previous verification result information. The verification server performs this verification operation based on the verification of the validity of the historical verification.

[0127] In an optional implementation of the present embodiment, the verification server and the client perform encrypted transmission of the operation verification data and verification result data by means of public keys, private keys, and digital signatures to ensure the security of the data sent by the client and the verification server, and the identity of the client is confirmed. For example, the verification server generates a public key and a private key, and the verification data sent by the client is encrypted by the public key. The verification server receives and decrypts the data using the private key and performs verification. When sending the verification result data, a message digest is generated for the sent verification data and the digest is encrypted using the private key to generate a digital signature. The generated digital signature is sent to the client together with the verification result data. The client uses the public key to decrypt and obtain the digest, and uses the digest to verify the verification result data. Furthermore, the verification server authenticates the public key at the certificate center and generates a digital certificate. When sending the verification result data to the client, in addition to the digital signature, the digital certificate is attached. After receiving the verification result data, the client uses the public key of the certificate center to decrypt the digital certificate, obtains the public key of the verification server, further decrypts the digest, and verifies the received verification result data.

[0128] The following is an example of combining the above implementation methods. For example, if you enter the user name and password on the client, click the login button to log in, and enter the system homepage after the login is completed, the above process is analyzed and 4 verification operations are performed:

[0129] The first time, enter the user name. The web page operation information that occurs on the client is "the input operation that occurs on the user name web page element", and also includes the input data content. According to the changes in the web page snapshot content data after the input is completed, a new web page operation process record data is generated on the client, and a message digest algorithm is used to generate a message digest for it. The above data are combined to generate operation process verification data; after the verification server receives the above data, in the operating environment where the verification is performed, according to the input content, the input operation is synchronously performed, and in the operating environment where the verification is performed, a new web page operation process record data is generated, and a message digest is generated for it. The message digest is compared with the message digest contained in the data content to be verified in the operation process verification data. If the two are the same, the verification is passed, and a verification code is generated in the verification server, and the verification code is added to the verification result and sent to the client. The client receives the verification result data and writes the verification code information into the web page operation process record data;

[0130] The second time, enter the password. The method of generating the operation process verification data and the process of the verification server performing the verification are basically the same as the first time;

[0131] The third time, login. The webpage operation information generated by the client is "a click operation occurred on the login button, and a webpage login request was sent to the server". The method of generating the operation process verification data and the process of the verification server performing the verification are basically the same as the first and second times. It should be noted that the webpage operation information data sent may include the request content sent by the client to the business server. Preferably, the verification server verifies the content of the request according to the request information received by the business server.

[0132] The fourth time, after the login is completed, the web page is loaded, the client receives the web page data returned by the business server, and the system homepage is loaded. The web page operation performed by the client is "receiving server response data, web page loading". According to the changes in the web page snapshot content data after the web page is loaded, new web page operation process record data is generated on the client and a message digest is generated for it. The above data are combined to generate operation process verification data; after the verification server receives the above data, in the operating environment for performing verification, according to the client request received by the business server and the data content sent to the client, it simulates login and loads the homepage after login, and in the operating environment for performing verification, it generates new web page operation process record data and generates a message digest for it, compares the message digest with the message digest contained in the data content to be verified in the operation process verification data, generates a verification code based on the comparison result, adds it to the verification result and sends it to the client, and the client receives the verification result data and writes the verification code information into the web page operation process record data.

[0133] In combination with the above embodiments, the principle of real-time verification of the present application is briefly described, wherein the content of the operation process verification data, the verification method and steps in the verification server, and the processing method of the verification result data on the client are not unique, and the present application should not be limited by the examples in this embodiment. The principle of real-time verification of the present application is that, according to the operations and data occurring on the client, when the operation process record data is effectively included, the verification server verifies its validity, which is helpful to prevent the client from tampering with the web page data, forging the server request, etc., thereby ensuring that the generated web page operation process record data can be used as evidence.

[0134] In a possible implementation scenario, the data recorded during the web page operation process also includes the web page operation environment, web page browsing operations, and web page browsing status information, such as Figure 5 Steps shown:

[0135] S501, recording the operating environment information of the webpage and generating webpage operating environment data;

[0136] S502, based on the webpage snapshot, collecting the data content contained therein or the changes in the webpage data content;

[0137] S503, monitoring and recording the browsing operation and browsing status information of the web page, and recording the corresponding time information;

[0138] S504, storing the collected data in a structured manner to generate web page operation process record data.

[0139] According to the above steps, S501 is executed at the beginning of the web page operation process recording to record the web page operation environment information. The recorded information is helpful for providing information support for judging and setting the playback operation environment when performing playback. The web page operation environment includes browser information, viewport size, etc. During the web page operation process, steps S502 and S503 are executed to collect web page data content and its changes, web page browsing operations, web page browsing status information and corresponding time information based on the web page operation process. The time information is used to calculate the corresponding execution time during the playback process. Among them, S502 is based on the data content contained in the web page snapshot collection or the changes in the web page data content, such as, based on the changes in the web page DOM during the web page operation, using MutationObserver to monitor the changes made to the DOM tree during the web page operation, and generating web page DOM change information; the web page browsing operation in S503 is a web page operation that does not cause changes in the web page data content, such as user cursor movement, cursor change, page sliding, content changes in web page controls, viewport size changes, etc. The web page browsing status information in S503 is the relevant information of the web page in a certain browsing state, such as cursor position, cursor state, window size, page position information, etc. The above web page browsing operation information and browsing status information are also necessary information for recording the web page operation process. Finally, the final web page operation process record data is generated by S504.

[0140] The above implementation methods completely record all elements in the process of web page operation, and generate web page operation process record data, providing complete data support for the playback of the web page operation process.

[0141] In a possible implementation scenario, various data collected during the web page operation process are stored in a structured manner to generate web page operation process record data, and a message digest is generated for it, such as Figure 6 Steps shown:

[0142] S601, one or more of the web page record data key frame data 6001, web page content change data 6002, web page content related resource file data 6003, operation process verification data 6004, operation process verification result data 6005, web page operation environment data 6006, web page browsing operation and browsing status record data 6007 are structured and stored to generate web page operation process record data 6008;

[0143] S602, using a message digest algorithm to generate a message digest for the data in the webpage operation process record data 6008, the message digest record being the webpage operation process record data message digest 6009;

[0144] S603, storing the message summary web page operation process record data message summary 6009.

[0145] According to the above implementation mode, the data in the web page operation process is collected to generate the web page operation process record data, and a message digest is generated for the web page operation process record data, and the web page operation process record data message digest is used as evidence of this web page operation. It should be noted that the collection of the web page operation process data, the generation and storage of the web page operation process record data, and the generation and recording of its summary need to be completed and executed on the client. In addition, the data used to generate the web page operation process record data in S601 include but are not limited to one or more of 6001 to 6007. S602 is a method for generating a message digest for data 6008, including generating a message digest for the overall data in 6008, generating a message digest according to the partial data contained therein, and generating a message digest according to the data contained therein in steps. The message digest stored in S603 is used to identify this web page operation process and verify the consistency of the web page operation process record data. The storage method includes but is not limited to printing, local storage, server storage, third-party storage, blockchain storage, etc. Preferably, S603 records the message digest, and at the same time records the digest algorithm and calculation steps corresponding to the generation of the message digest.

[0146] According to the implementation method provided in this embodiment, record data and message summaries are generated in the "transaction area" of both parties, which reflects the fairness and openness of the record of the web page operation process. Ultimately, at the end of this web page operation process, both the web page operator and the provider can obtain valid operation evidence.

[0147] In another possible implementation scenario of the present application, according to the generation process of the web page operation process record data, after each change of the web page operation process record data, a message digest is generated for the current web page operation process record data, and according to each generated message digest, a summary history record is recorded, such as Figure 7 The detailed steps are as follows:

[0148] S701, the webpage operation process record data changes, and the change data is recorded in the webpage operation process record data;

[0149] S702, generating a message digest;

[0150] S703: Add the message summary to the summary history record.

[0151] According to the above implementation steps, the changes in the web page data in S701 correspond to various changes in the operation of the web page, such as web page operation, server interaction, web page program operation, etc. S702 generates a message digest for the web page operation process record data corresponding to each operation state, that is, generates operation evidence for each operation state, and each message digest is generated on the basis of the previous message digest, which is conducive to generating tamper-proof operation evidence. Optionally, after each message digest is generated, the generated message digest is added to the web page operation process record data, thereby merging the record data with the data used for verification, which is conducive to fixing the operation evidence. S703 adds the message digest to the summary history record, and the summary history record can be used to verify each operation step and web page data.

[0152] According to the above implementation, each operation state corresponds to a message digest, wherein the generation of each message digest is based on its previous message digest, thereby generating operation evidence that cannot be tampered with throughout the entire process.

[0153] In another possible implementation scenario of the present application, a message summary generated by the current web page operation process record data is displayed on the web page operation interface, and the operating user is required to read the content of the message summary or its related content, such as Figure 8 The detailed steps are as follows:

[0154] S801, displaying a message summary generated by the current web page operation process record data on the web page operation interface;

[0155] S802, the operating user reads the message summary according to the content or the content related thereto;

[0156] S803, collecting the reading content and adding it to the webpage operation process record data;

[0157] S804, generating a new message summary again according to the new web page operation process record data.

[0158] According to the above implementation, S803 collects the reported content and adds it to the web page operation process record data, and S804 generates a new message summary again based on the new web page operation process record data. The new message summary includes authentication information on the operating user identity and user operation.

[0159] The beneficial effect of the above implementation method is that a message summary is generated based on the operation process record data of the web page, and the message summary can represent the current operation. On this basis, the user reads the summary or its related information, and the web page operation process data is recorded again and a message summary is generated, thereby forming an associated authentication of the performed operation and the operator's identity, which is suitable for the operation content and operator identity identification of key business operations.

[0160] The web page operation process recording method provided in the present application verifies the collected data during the data collection process to ensure the validity of the collected and recorded data, and generates a message digest throughout the data recording process to prevent the recorded data from being tampered with, thereby ensuring that the recorded data is authentic and valid and can serve as effective evidence of the operation process.

[0161] In order to facilitate understanding of the method provided by the above web page operation process recording embodiment, Fig.12 A possible web page operation process recording device is shown, the device includes a web page operation client and a verification server (or verification terminal), wherein the web page operation client includes: a web page snapshot data reading module 1201, a web page snapshot data difference calculation module 1202, a web page browsing operation and browsing state information collection module 1203, an operation process verification data collection module 1204-1 (or an operation process verification data verification module 1204-2), a data storage module 1205, a message digest calculation module 1206, and a message digest storage module 1207; the verification server includes: an operation process and web page data verification module 1208. Those skilled in the art can understand that Fig.12 The structure of the web page operation process recording device shown in the figure does not constitute a limitation on the web page operation process recording method of the present application. The web page operation process recording device provided by the embodiment of the present application may include more or fewer modules than shown in the figure, or combine certain modules, or have different module arrangements.

[0162] Combine the following Fig.12 The various components of the webpage operation process recording device are specifically introduced as follows:

[0163] Modules included in the web operation client:

[0164] The web page snapshot data reading module 1201 is used to read the data in the web page snapshot data content, or when monitoring the web page snapshot data content changes, read the data in the web page snapshot data content or read the data in the web page snapshot data content of the changed part based on the changes that occur;

[0165] The webpage snapshot data difference calculation module 1202 is used to calculate the difference between webpage content data, such as HTML content difference, DOM difference, CSSOM difference, etc.;

[0166] The web page browsing operation and browsing status information collection module 1203 is used to collect web page browsing operation information, such as user cursor movement, cursor change, page sliding, content change in web page controls, viewport size change, etc.; it is used to collect web page browsing status information, such as cursor position, cursor state, window size, page position information, etc., and also includes corresponding time information;

[0167] The operation process verification data collection module 1204-1 is used to collect one or more of the web page's operating environment information, web page program, web page and external request and interaction information, web page operation data environment information, and user operation behavior information to generate operation process verification data;

[0168] The operation process verification data verification module 1204-2 is used to verify the web page operation, web page data or recorded data in the web page operation process in real time, collect the operation process verification data in the web page operation process, and send it to the operation process and web page data verification module 1208 of the verification server or verification terminal for real-time verification; and receive the operation process verification result data returned by the module 1208 at the same time;

[0169] The data storage module 1205 is used to generate and store web page operation process record data by structuring one or more of web page record data key frame data, web page content change data, web page content related resource file data, operation process verification data, operation process verification result data, web page operating environment data, and web page browsing operation and browsing status record data;

[0170] A message digest calculation module 1206, configured to generate a message digest for the webpage operation process record data, and add the generated message digest according to the webpage operation process record data change process to the summary history record;

[0171] The message digest storage module 1207 is used to store the message digest generated by the message digest calculation module 1206 and the digest history record.

[0172] Modules included in the verification server or verification terminal:

[0173] The operation process and web page data verification module 1208 is used to receive the operation verification data sent by the operation process verification data verification module 1204-2, and verify the validity of the operations and data contained therein.

[0174] Fig. 9 A possible flowchart of web page operation process playback is shown, including the following steps:

[0175] S901, read in the web page operation process record data;

[0176] S902, parsing the webpage operation process record data;

[0177] S903, generating a playback instruction;

[0178] S904: Execute the playback instruction.

[0179] The following is a detailed description of the above steps:

[0180] The above steps are executed on a terminal for replaying the web page operation process. The terminal first loads a replay program for replaying and controlling the replay process, and performs replay based on the recorded data of the web page operation process.

[0181] S901: reading in web page operation process record data, and optionally verifying the consistency of the web page operation process record data according to a pre-stored summary;

[0182] S902: parsing the webpage operation process record data, including parsing the webpage record data key frame data, webpage content change data, webpage content related resource file data, webpage operation environment data, webpage browsing operation and browsing status record data, etc.;

[0183] S903 generates a playback instruction, including:

[0184] Generate playback instructions for judging and setting the playback environment of the playback terminal based on the web page operating environment data;

[0185] Based on the key frame data of the web page recording data, generating a playback instruction for setting the web page content data;

[0186] Based on the webpage content change data, a playback instruction for modifying and / or setting the webpage content data is generated, and the execution time of the playback instruction is set according to the time information corresponding to the webpage content change data; when it is determined that the webpage content change data includes webpage element object change data, a playback instruction for setting the corresponding webpage element object is generated according to the webpage element object change data, and the execution time of the playback instruction is set according to the time information corresponding to the webpage content change data;

[0187] Based on the web browsing operation and browsing state record data, according to the corresponding time information, a playback instruction for restoring the web browsing operation and setting the web browsing state is generated;

[0188] S904 executes playback instructions, including executing the above-mentioned playback instructions for judging and setting the web page playback environment and the playback instructions for setting the web page content data; executing corresponding playback instructions according to the time information contained in the playback instructions for modifying and / or setting the web page content data, the playback instructions for setting the web page element objects, the playback instructions for restoring the web page browsing operation, and the playback instructions for setting the web page browsing status.

[0189] In a preferred implementation of the above embodiment, a web page content data model is created in an execution environment for playback, which is used to calculate playback instructions and web page data for display, specifically: data in the web page content data model is set based on data in key frames of the web page record data, data in the web page content data model is set accordingly based on the web page content change data, web page data for rendering the web page is generated based on the data stored in the web page content data model, and corresponding playback instructions are generated based on changes in the web page content data model, such as: generating corresponding playback instructions for setting web page element objects based on content change data of web page element objects in the web page content data model. Among them, the web page content data model generally adopts a tree structure, and the steps of setting its data based on the web page content change data are, that is, according to the node information contained in the web page content change data, searching for the target modification node in the web page content data model, combining the change content information contained in the web page content change data, and adding, deleting, and replacing the target node according to the change property information contained therein; generating corresponding playback instructions based on the changes in the web page content data model, that is, according to the time information corresponding to the web page content change data and the node that has changed in the web page content data model, generating a playback instruction for setting the web page data based on the data of the node.

[0190] Through the solution provided by the above embodiment, the web page operation process is played back based on the web page operation process record data, achieving a playback effect consistent with the recorded process.

[0191] In a possible implementation scenario of the present application, during the web page playback process, when a control instruction to set a playback position is received, playback data is played according to the specified playback position, and the detailed steps are as follows:

[0192] S1001, receiving a control instruction for setting a playback position;

[0193] S1002, searching for the nearest key frame of web page record data in the starting direction of the web page playback;

[0194] S1003, calculating the web page data of the key frame of the web page record data;

[0195] S1004, calculating the web page data of the specified playback position.

[0196] The following is an example to illustrate the above steps:

[0197] As per Figure 2The web page operation process recorded data generated as shown is played back. For example, if S1001 receives a control instruction to play from the position of "web page change g", this position is taken as the first moment, and S1002 is executed to search for the nearest key frame of web page record data in the starting direction of web page playback, and the "difference key frame C" is found, and the time information corresponding to the key frame is obtained as the second moment; the nature of key frame C is judged to be a difference key frame, and the key frame specified by the difference calculation with key frame C is recursively searched, first the "difference key frame B" is found, and the "independence key frame A" is found according to key frame B, and key A is judged to be an independence key frame, and the key frame is obtained. The data content recorded in key frame A is used to calculate the complete web page data of key frame B based on the difference data between the data content and the key frame B. The complete web page data of key frame C is calculated based on the difference data between the complete web page data of key frame B and the key frame C. The web page change data between the first moment and the second moment, namely "web page change f" and "web page change g", are obtained. Based on the complete web page data of key frame C, the web page data are set and calculated in sequence according to the web page change contents recorded in "web page change f" and "web page change g", and finally the web page data at the "web page change g" position is obtained, and the web page is displayed based on the final web page content data.

[0198] According to the above implementation, the web page data content of the designated playback position is obtained based on the key frame and the web page change record. The file size is small, the calculation speed is fast, and the playback control can be flexibly performed like a video.

[0199] In a possible implementation scenario of this application, please refer to Fig.11 After reading the web page operation process record data, the web page operation process record data or the data content contained therein is verified, including two verification methods, which are described as follows:

[0200] like Fig.11 Part A in the verification of the data recorded during the web page operation process:

[0201] S1101A, reading the webpage operation process record data and the pre-stored message summary;

[0202] S1102A, generating a message digest for verification corresponding to the webpage operation process record data according to the message digest algorithm used in the webpage operation record process and the steps for generating the message digest;

[0203] S1103A, comparing the message digest generated for verification with the pre-stored message digest to verify the consistency of the data recorded during the webpage operation process.

[0204] like Fig.11Part B in the playback step verifies the data used for playback at each step:

[0205] S1101B, reading a message summary record in a pre-stored message summary history record;

[0206] S1102B, verifying the consistency of the web page operation process record data for playback in the current state according to the message summary record.

[0207] According to the verification method provided in the above embodiment, part A verifies the recorded web page operation process data, and part B verifies the recorded data of the web page operation process of a single step used for playback. Both methods ensure the correctness of the web page operation process record data, which is conducive to generating effective web page operation process playback and, at the same time, is conducive to analyzing the causes of the problem.

[0208] In step S1102B, optionally, the web page data contained in the playback terminal is verified according to the data contained in the web page operation process recording data used for playback in the current state, that is, whether the web page content data in the web page playback process is consistent with the web page operation recording process is verified.

[0209] The web page operation process playback method provided in the present application performs playback according to the recorded data of the web page operation process, and also provides a method for verifying the data used for playback and locating problems, thereby ensuring that the original web page operation process is truly restored.

[0210] In order to facilitate understanding of the method provided by the above web page operation process playback embodiment, Fig.13 A possible web page operation process playback device is shown, and the system includes: a web page operation process record data reading module 1301, a web page operation process record data parsing module 1302, a playback instruction generation module 1303, a playback instruction execution module 1304, and a data verification module 1305. Those skilled in the art can understand that Fig.13 The structure of the web page operation process playback device shown in the figure does not constitute a limitation on the web page operation process playback method of the present application. The web page operation process playback device provided by the embodiment of the present application may include more or fewer modules than shown in the figure, or combine certain modules, or have different module arrangements.

[0211] Combine the following Fig.13 The various components of the web page operation process playback device are specifically introduced as follows:

[0212] The webpage operation process record data reading module 1301 is used to read the webpage operation process record data;

[0213] The web page operation process record data parsing module 1302 is used to parse the web page operation process record data, and obtain the web page record data key frame data, web page content change data, web page content related resource file data, web page operation environment data, web page browsing operation and browsing status record data, etc.;

[0214] The playback instruction generation module 1303 is used to generate playback instructions, including playback instructions for determining and setting the web page playback environment, playback instructions for setting web page content data, playback instructions for modifying and / or setting web page content data, playback instructions for setting web page element objects, playback instructions for restoring web page browsing operations, playback instructions for setting web page browsing states, etc., and also includes arranging the above playback instructions and specifying the execution time of the execution instructions;

[0215] A playback instruction execution module 1304 is used to execute the playback instruction generated by the module 1303, including executing the playback instruction according to the above arrangement result and the specified execution time;

[0216] The data verification module 1305 is used to verify the webpage operation process record data, including the consistency of the webpage operation process record data corresponding to the individual steps.

[0217] The embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the web page operation process recording and playback method described in the above embodiment.

[0218] In addition, an embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is run on a computer, it enables the computer to execute the web page operation process recording and playback method described in the above embodiment.

[0219] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in this application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk), etc.

[0220] It is to be understood that some or all of the steps or operations in the above embodiments are merely examples, and the present application embodiments may also perform other operations or variations of various operations. In addition, the various steps may be performed in different orders presented in the above embodiments, and it is possible that not all of the operations in the above embodiments need to be performed.

[0221] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiment of the present application, which should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.

Claims

1. A method for recording a webpage operation process, characterized in that: Applied to a web page operation process recording device, the method comprises: Collecting data in the web page snapshot data content, and creating a web page record data key frame based on the collected data; wherein the web page snapshot data content includes one or more of web page HTML data, DOM data, CSSOM data, and web page element object data; the web page record data key frame is used to provide complete web page data for a moment during playback, and at least one web page record data key frame is generated at the start moment of the web page operation process recording, and also includes collecting data based on the web page snapshot data content at different moments, and correspondingly generating multiple web page record data key frames; Based on the changes in the content of the web page snapshot data during the web page operation, web page content change data is calculated and generated, and the time information of the change is recorded; wherein the web page content change data also includes the web page element object change data contained in the web page; the web page content change data is used for web page content data calculation, and during the playback process, the latest web page content data is calculated based on the current web page content data and the web page content change data; Collecting operation process verification data based on the webpage operation process; wherein the operation process verification data is used to verify the authenticity of the data collected or recorded at the client, including generating the operation process verification data according to the webpage operation occurring at the client and the data to be verified and sending it to the verification server for real-time verification, or collecting data at the client to generate the operation process verification data, wherein the operation process verification data can be used to restore the process of the webpage operation and data change at the client, thereby verifying the authenticity of the data collected or recorded at the client; The collected key frame data of the web page record data, the time information of the web page content change data and its change, and one or more of the operation process verification data are used to generate web page operation process record data, and the web page operation process record data is used for verification and playback of this web page operation process.

2. The method according to claim 1, characterized in that The method for generating the key frame data of the web page record data further includes: Record the complete web page content data to generate independent web page record data key frame data, or generate differential web page record data key frame data by recording the difference information between the web page record data key frame and the specified web page record data key frame.

3. The method according to claim 1, characterized in that: The method for collecting the operation process verification data based on the webpage operation process also includes: During the web page operation process, one or more of the web page's operating environment information, web page program, web page and external request and interaction information, web page operation data environment information, and user operation behavior information are collected to generate operation process verification data that can restore the client's web page operation and data change process. Based on the restored client web page operation and data change process, the authenticity of the data collected or recorded by the client is verified.

4. The method according to claim 1, characterized in that: The method for collecting the operation process verification data based on the webpage operation process also includes the following real-time verification method: During the web page operation process, when the web page snapshot data content changes and / or the web page operation is collected, the operation process verification data is calculated and generated based on the change in the web page snapshot data content and / or the web page operation, and the operation process verification data includes the web page operation content and the data content to be verified; the operation process verification data is sent to the verification server for verification, and the verification server verifies the data content to be verified based on the web page operation it contains, thereby verifying the authenticity of the data collected or recorded by the client, and returning the verification result.

5. The method according to claim 1, characterized in that The method for determining whether the content of the webpage snapshot data has changed includes the following methods: Establishing monitoring of the webpage snapshot data content inside the webpage, and when monitoring that the webpage snapshot data content changes, calculating the webpage content change data or creating the webpage record data key frame; Establishing a monitor for HTML events in the web page, and when an HTML event is monitored, determining that the content of the web page snapshot data changes before and after the HTML event is executed, calculating the web page content change data or creating a key frame of the web page record data; According to a preset time interval, the web page content change data is calculated or the web page record data key frame is created.

6. The method according to claim 1, characterized in that Also includes, Recording the operating environment information of the web page and generating web page operating environment data, wherein the web page operating environment data is used to determine and set the web page operating environment of the playback client when performing playback; During the web page operation process, the browsing operation and browsing status information of the web page are monitored and recorded, and the corresponding time information is recorded to generate the browsing operation and browsing status data of the web page. The browsing operation and browsing status data of the web page are used to set the browsing operation and browsing status of the web page accordingly during the playback process to restore the web page browsing process.

7. The method according to claim 6, characterized in that Also includes, One or more of the key frame data of the web page record data, the web page content change data, the resource file data related to the web page content, the operation process verification data, the result data of the operation process verification, the web page operating environment data, the web page browsing operation data, and the web page browsing status data are structured and stored to generate web page operation process record data, use a message digest algorithm to generate a message digest for the web page operation process record data, and display or store the message digest; wherein the message digest is used to identify the current web page operation process and verify the consistency of the web page operation process record data, and the storage method includes one or more of printing, local storage, server storage, third-party storage, and blockchain storage.

8. The method according to claim 7, characterized in that It also includes, when the web page operation process record data changes, using a message digest algorithm to generate a message digest for the web page operation process record data, and adding the message digest to the message digest history record, the message digest record contained in the message digest history record is used to verify the corresponding web page operation steps.

9. The method according to claim 8, characterized in that The web page operation process also includes: Displaying a message summary generated by the current webpage operation process record data or related data generated based on the message summary on the client, and requiring the operating user to read according to the displayed content; According to the registration of the operating user, the registration data is collected and added to the web page operation process record data, and according to the new web page operation process record data, a new message summary is generated again for it. The new message summary contains authentication information on the operating user identity and user operation.

10. A web page operation process playback method, characterized in that: Applied to a web page operation process playback device, the method comprises: Read in the recorded data of the web page operation process; Parsing the webpage operation process record data, parsing one or more of the webpage record data key frame data, webpage content change data, webpage content related resource file data, webpage operating environment data, webpage browsing operation information, and webpage browsing status information contained therein, and generating a playback instruction, including: Generate a playback instruction for determining and setting a web page playback environment based on the web page running environment data; Based on the key frame data of the web page record data, generating a playback instruction for setting the web page content data; Based on the webpage content change data, a playback instruction for modifying and / or setting the webpage content data is generated, and the execution time of the playback instruction is set according to the time information corresponding to the webpage content change data; when it is determined that the webpage content change data includes webpage element object change data, the method further includes: generating a playback instruction for setting the corresponding webpage element object according to the webpage element object change data, and setting the execution time of the playback instruction according to the time information corresponding to the webpage content change data; Based on the web browsing operation data and browsing status record data, and according to their corresponding time information, generating a playback instruction for setting the web browsing operation and web browsing status; Executing the playback instruction includes executing the playback instruction for determining and setting the web page playback environment, and executing the playback instruction for setting the web page content data; executing the corresponding playback instruction according to the time information contained in the playback instruction for modifying and / or setting the web page content data, the playback instruction for setting the web page element object, the playback instruction for setting the web page browsing operation, and the playback instruction for setting the web page browsing state.

11. The method according to claim 10, characterized in that During the web page playback process, when a control instruction to set the playback position is received, the following steps are also included: Taking the time information corresponding to the playback position contained in the control instruction as the first moment, searching in the starting direction of the web page playback to obtain the most recent web page recording data key frame as the first key frame, and taking the corresponding time information as the second moment; The web page data of the first key frame is calculated according to the data generation method of the first key frame. Specifically, when the first key frame is determined to be an independent web page record data key frame, the web page content data contained therein is obtained as the web page data of the first key frame. When the first key frame is determined to be a difference key frame, the web page record data key frame with which the difference calculation is performed is recursively searched until an independent key frame is obtained, and the web page content data contained therein is used as the basic web page content data. According to the web page record data key frame sequence obtained by the recursive search, the difference information recorded in each web page record data key frame is extracted one by one in the order from back to front of the recursive search path. On the basis of the basic web page content data, the web page data is restored and calculated one by one according to the difference information of the extracted web page record data key frames, and finally the web page content data of the first key frame is obtained. The web page change data having an execution time between a first moment and a second moment is searched for in the web page change data to generate a web page change data sequence; based on the web page data contained in the first key frame, an execution order is generated according to the web page change records contained in the web page change data sequence and based on the time information of the web page change records contained therein; according to the execution order, the web page content data modification operation corresponding to the web page change records is executed to generate the web page content data corresponding to the first moment; and the web page is displayed based on the web page content data.

12. The method according to claim 10, characterized in that After reading the web page operation process record data, it also includes: According to the message digest algorithm used in the web page operation recording process and the steps for generating the message digest, a message digest for verification is generated for the web page operation process recording data, and the message digest is compared with the message digest generated correspondingly in the web page operation recording process to verify the consistency of the web page operation process recording data. Alternatively, a pre-stored summary history record is read to perform consistency verification on the data of each step used for playback based on the message digest record contained therein.

13. A web page operation process recording device, the device is used to implement any one of the web page operation process recording methods in 1 to 9 above.

14. A web page operation process playback device, the device is used to implement any one of the web page operation process playback methods 10 to 12 above.