Browser window locking and unlocking method

Through real-time monitoring and automatic locking of browser windows, combined with mobile authentication, the problem of existing technology being unable to effectively prevent information leakage and unauthorized access is solved, and browser security and user experience are improved.

CN118536099APending Publication Date: 2024-08-23HEFEI D2S INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410732246.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing browser security measures cannot effectively prevent information leakage and unauthorized access, especially when multiple people use the computer, and the method of regularly logging out of the session is inconvenient for users.

Method used

By monitoring the status of the browser window in real time, real-time activity is generated, and user behavior is judged based on the active time model, and the browser window is automatically locked or unlocked, combined with mobile authentication to ensure security.

Benefits of technology

It achieves the goal of reducing the possibility of browser window being abused without increasing user convenience, improving information security and user experience, and avoiding illegal access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536099A
    Figure CN118536099A
Patent Text Reader

Abstract

The invention relates to the technical field of networks, in particular to a browser window locking and unlocking method. Firstly, the system performs real-time monitoring, evaluates the real-time activeness of a user in a browser, and automatically locks a browser window according to the real-time activeness to avoid unauthorized access when the user is absent. The real-time activeness is generated based on a real-time behavior contrast activeness time model, and the model is generated from user behavior data, so that the locking action accurately reflects the actual use habit of the user. And when the browser window is in the locking state, all external requests are monitored and stopped, so that the safety is ensured. Unlocking is carried out through a mobile terminal instruction, and it is ensured that only the user successfully verified can unlock the browser window. The protection of browser data is enhanced, and the convenience of user operation is taken into account at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of network technology, and in particular to a browser window locking and unlocking method. Background Art

[0002] As an important part of information acquisition and daily work, the security of browser web pages has become extremely important. When users leave their computers for a period of time, the web pages they temporarily leave may encounter malware and other forms of network control. These threats may lead to sensitive information leakage or illegal control of the user's browser. At the same time, it is also particularly important to protect corporate web page data from unauthorized access. Therefore, technology that can monitor and control the status of browser windows in real time is of great significance to ensure information security and user privacy protection.

[0003] Traditional browser security measures prohibit access to the browser by directly locking the computer system by the user, but this method is a one-size-fits-all approach. When a computer is needed by multiple people, it is impossible to protect the browser window by locking the computer system. The existing technology implements the exit of browsing web pages by periodically exiting the session. Although it provides protection to a certain extent, it usually cannot effectively prevent information leakage when the user is not paying attention. If the regular session exit time is too long, it cannot be guaranteed that the browser window will not be abused when the user forgets to close the browser or leaves the workstation. If the regular session exit time is too short, it will cause the user to frequently re-login or verify, which brings great inconvenience.

[0004] Therefore, it is necessary to propose a browser window locking and unlocking method to reduce the possibility of browser window being abused while not adding too many inconveniences to user operations. Summary of the invention

[0005] In order to solve the above problems, the present invention provides a browser window locking and unlocking method.

[0006] To achieve the above object, the technical solution adopted by the present invention is:

[0007] A browser window locking and unlocking method comprises the following steps:

[0008] Monitor the status of the browser window in real time to generate real-time activity;

[0009] Lock the browser window based on real-time activity;

[0010] The mobile terminal obtains the unlock instruction, and the server terminal unlocks the browser window according to the unlock instruction;

[0011] The real-time monitoring includes:

[0012] When the browser window is locked, listen for requests and prevent them from passing through;

[0013] When the browser window is unlocked, user behavior is collected in real time, and an active time model is built based on the user behavior. The user activity is judged in real time based on the active time model, and the real-time activity is output.

[0014] Furthermore, the locking operation of the browser window generated according to the real-time activity includes:

[0015] When the real-time activity is higher than the preset value, the user behavior is judged by human and machine, and the browser window is locked according to the result of the human and machine judgment;

[0016] When the real-time activity is lower than the preset value, the browser window is locked.

[0017] Furthermore, the locking operation includes:

[0018] Change the state of the browser window to a locked state, and perform locked rendering on the browser window.

[0019] Furthermore, the real-time collection of user behavior includes:

[0020] Track and record activity within the browser window in real time, including mouse movements, clicks, scrolling, and keyboard input.

[0021] Furthermore, the constructing of the active time model includes:

[0022] Through time series data processing technology, the collected user behaviors are integrated and converted into time series action data;

[0023] Based on the convolutional neural network model, time series data is identified to extract the user's operation mode, including the operation start time, operation end time, operation frequency and operation duration;

[0024] Build an active time model based on the user's operation pattern.

[0025] Furthermore, the real-time determination of user activity based on the active time model includes:

[0026] When the real-time activity in the browser window is consistent with the behavior pattern predicted by the active time model, the real-time activity of the user is adjusted to the maximum value in the preset range;

[0027] When the real-time activity in the browser window deviates from the prediction of the active time model, that is, no operation is detected within the expected active time window, the real-time activity decrement mechanism is triggered.

[0028] Furthermore, the real-time activity reduction mechanism includes:

[0029] The real-time activity is decreased according to a decreasing function, where the decreasing function is determined according to the length of time when no real-time operation is performed and the prediction of the active time model.

[0030] Furthermore, obtaining the unlock instruction through the mobile terminal includes:

[0031] The mobile terminal receives the identity verification information and performs a first verification, wherein the first verification includes mobile terminal face verification and fingerprint verification;

[0032] After the first verification is passed, the mobile terminal encrypts the identity authentication information and sends it to the server.

[0033] Furthermore, the server side unlocks the browser window according to the unlock instruction, including:

[0034] The server receives the encrypted identity verification information and performs a second verification;

[0035] After the second verification is passed, the server sends an unlock instruction to the browser;

[0036] The state of the browser window is changed to an unlocked state according to the unlock instruction, and the browser window is displayed and rendered normally.

[0037] Furthermore, the second verification includes performing a server-side database comparison verification on the identity verification information.

[0038] The beneficial effect of the present invention is that the present invention generates a real-time activity by real-time monitoring of the user's behavior in the browser window. When the user leaves the computer, if it is detected that there is no activity in the browser window, the system will automatically lock the browser window according to the real-time activity, thereby preventing unauthorized access. The real-time activity is generated by constructing an active time model, and the active time model is generated according to the user's behavior, reflecting the user's usage habits. The system can automatically lock when the user's activity is low. At the same time, when the user's activity is restored, the real-time activity is adjusted by comparing the browser window activity with the active time model in real time, so that the system's response is more flexible and accurate, and more targeted to individual users, avoiding the need for users to frequently unlock the browser window. The present invention also unlocks the browser window through the mobile terminal, further improving the security of the browser window, and avoiding the abuse of the browser window by illegal personnel who know the user's password and other unlocking information. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 The present invention is a flowchart of the steps of a browser window locking and unlocking method.

[0040] Figure 2 It is a flow chart of the steps to build an active time model.

[0041] Figure 3 It is a flowchart of the steps of unlocking the browser window according to the unlock instruction. DETAILED DESCRIPTION

[0042] See also Figure 1-3 As shown, the present invention relates to a browser window locking and unlocking method;

[0043] Specifically, the present invention provides a browser window locking and unlocking method, comprising the following steps:

[0044] S1. Monitor the status of the browser window in real time to generate real-time activity;

[0045] Wherein, the real-time monitoring includes:

[0046] When the browser window is locked, listen for requests and prevent them from passing through;

[0047] Specifically, any request captured in the locked state will be blocked by the system. This means that even when the user is not present, illegal persons cannot use the browser window to perform potentially harmful operations. In addition, because the request is blocked, sensitive data will not be transmitted in an unprotected network, thereby reducing the risk of data leakage.

[0048] To prevent accidental operations, when the system enters a locked state, not only are requests blocked, but appropriate user notifications are also made. For example, the user may see an overlay indicating that the window is locked and authentication is required to resume interaction. Such feedback ensures that the user is clearly aware of the state of the browser and can take the necessary steps to unlock the window.

[0049] The real-time monitoring also includes: when the browser window is unlocked, collecting user behavior in real time, building an active time model according to the user behavior, judging the user activity in real time based on the active time model, and outputting the real-time activity.

[0050] Specifically, first set up a set of event listeners that are designed to be activated when the user interacts with the browser window. When the user performs actions such as clicking, scrolling, or keyboard input, the corresponding event listeners will capture these behaviors and record them as event objects. Monitor all mouse clicks in click events, whether they are links, buttons, or any other interactive elements. Each click generates an event object that contains the location, time, and information about the clicked element. When the user scrolls the page to view content, scroll events are triggered. These events not only record the direction and distance of the scroll, but may also evaluate the scrolling speed as an indicator of user activity. Then listen for keyboard events to capture user input, including various types of typing behaviors, including text input, command shortcuts, etc.

[0051] The constructing of the active time model comprises:

[0052] Through time series data processing technology, the collected user behaviors are integrated and converted into time series action data;

[0053] Based on the convolutional neural network model, time series data is identified to extract the user's operation mode, including the operation start time, operation end time, operation frequency and operation duration;

[0054] Build an active time model based on the user's operation pattern.

[0055] Specifically, first, user behavior data is processed through time series data processing technology. This involves monitoring various behaviors within the browser window, such as page clicks, mouse movements, scrolling, and keyboard input. Every interaction between a user and the browser window generates data, which is continuously generated over time to form a time series. For example, when a user scrolls while reading an article on a web page, each scroll will be recorded, including the starting point, end point, duration, and speed of the scroll.

[0056] Convolutional Neural Networks (CNNs) are a powerful pattern recognition tool in the field of deep learning, particularly suitable for processing data with a clear hierarchical structure, such as images or time series data. In the context of building an active time model, CNNs are used to extract features from time series data of user behavior and then identify patterns of user activity.

[0057] Specifically, CNN processes input time series data through a series of convolutional layers. The convolutional layer scans the input data through filters (also called convolution kernels or feature detectors) to identify local features in the data. In the scenario of user behavior analysis, these local features may correspond to high-frequency clicks in a short period of time, long-term scrolling behavior, or the rhythm of keyboard input. For example, when analyzing user click behavior, one filter may focus on identifying repeated click patterns in a short period of time, which may indicate that the user is actively interacting with the interface. Another filter may detect patterns in which no clicks occur for a long time, which may indicate that the user has temporarily left the computer. By applying these filters, CNN can extract complex relationships between timestamps, such as the frequency and persistence of click events.

[0058] After the convolutional layer extracts features, a pooling layer is usually used to reduce the spatial dimension of the features (the time dimension in time series analysis). The role of the pooling layer is to downsample the features, retaining the most important information while reducing the amount of computation and avoiding overfitting.

[0059] After the convolution and pooling layers have extracted and compressed the features, the data is passed to the fully connected layers, where all the features are combined to form a comprehensive understanding of the user's behavior patterns.

[0060] Using features extracted from a convolutional neural network (CNN), the active time model is able to transform these behaviors into a parameterized form, creating a mathematical representation that can dynamically track and reflect the user's activity level.

[0061] Model building starts with defining the parameters of user behavior, including but not limited to:

[0062] Operation frequency, the frequency with which a user performs a specific operation (such as clicking, scrolling, etc.) within a certain period of time.

[0063] Operation duration: the average duration for users to perform specific operations;

[0064] Operation regularity, the temporal distribution pattern of user behavior, such as whether certain operations occur frequently within a specific time period;

[0065] Activity start and end time: the specific moment when the user starts and ends the interaction.

[0066] Next, these extracted parameters of user behavior are converted into quantitative indicators of user behavior. For example, if a user's operation intensity exceeds their average level every weekday morning, this can be considered an indicator of activity. Similarly, if another user's behavioral activity in the evening is lower than their daily pattern, this will also be reflected in the model. Based on these quantitative indicators, a mathematical model is constructed that can dynamically represent user active time. The model continuously inputs the latest user interaction data, and the model updates the user's real-time active time interval in real time.

[0067] Next, the user activity is judged in real time based on the active time model, and the real-time activity is output, including:

[0068] When the real-time activity in the browser window is consistent with the behavior pattern predicted by the active time model, the real-time activity is adjusted to the maximum value in the preset range;

[0069] When the real-time activity in the browser window deviates from the prediction of the active time model, that is, no operation is detected within the expected active time window, the real-time activity decrement mechanism is triggered.

[0070] Specifically, the activity score is a quantitative indicator that represents the frequency and consistency of user interaction with the browser window. To achieve this, the system continuously monitors real-time user activity in the browser window and compares these activities with the predicted behavior patterns in the active time model.

[0071] Specifically, if the user's real-time activity is consistent with the behavior pattern predicted in the active time model, it indicates that the user is interacting with the browser in the expected way. In this case, the system adjusts the real-time activity to the maximum value within the preset range, which reflects that the user is highly active and the interaction with the browser is normal. This ensures that when the user is active, there will be no unnecessary interference or interruption.

[0072] Conversely, when the user's real-time activity is detected to be inconsistent with the behavior pattern predicted by the model, especially when no operation is detected within the predicted high-activity time window, the system will start a decrement mechanism for real-time activity. This means that the system begins to suspect that the user may no longer use the browser, so it gradually reduces the activity score to reflect the reduction in user interaction. This mechanism prevents the browser window from being left unmonitored when the user forgets to close the browser or accidentally leaves the workstation, thereby enhancing the security of the system.

[0073] Furthermore, the real-time activity reduction mechanism includes:

[0074] The real-time activity is decreased according to a decreasing function, where the decreasing function is determined according to the length of time when no real-time operation is performed and the prediction of the active time model.

[0075] Specifically, the decrement function can be linear or nonlinear, depending on the characteristics of the user's activities and security requirements. For example, a simple linear decrement function may reduce the activity score by a fixed value after a certain period of time has passed. A more complex nonlinear decrement function may take into account the cumulative effect of time. For example, if the user does not perform any operations for a short period of time, the decrement rate is slow; but if the inactivity time is too long, the decrement rate will be faster, reflecting an increasing security risk. The decrement function is often closely linked to the activity time model. The activity time model predicts the user's normal behavior patterns based on historical data, such as the frequency and duration of operations. When the user's real-time behavior deviates from these predictions, the decrement function begins to reduce the activity score according to the degree and length of this deviation. For example, if the activity time model predicts that the user usually performs frequent browser operations in the morning on weekdays, but the system cannot detect user activity during this time, the decrement function will be triggered. The decrement function will gradually reduce the real-time activity score according to the established rules, referring to the length of time without operation and the deviation from the normal behavior pattern.

[0076] This method of dynamically adjusting the real-time activity score enables the browser window security mechanism to more accurately reflect the user's actual usage status, effectively preventing unauthorized access and minimizing interference with user operations. In addition, it allows the system to respond quickly when user activity resumes, without the user having to perform complex unlocking operations, thus optimizing the user experience.

[0077] S2. Lock the browser window according to the real-time activity;

[0078] Wherein, the locking operation includes:

[0079] Change the state of the browser window to a locked state, and perform locked rendering on the browser window;

[0080] Specifically, this step involves managing the state of the browser window. Change the current state of the browser from "active" or "standby" to "locked". This state change is triggered by the real-time activity score, which determines whether it needs to be locked based on the set threshold. Once the activity score falls below a certain critical point, the state change will be executed.

[0081] After the state changes, the system will perform a lock rendering on the browser window. Lock rendering may include displaying a lock screen that covers the original content to prevent visibility of sensitive information. Lock rendering is usually accompanied by a graphic or text prompt to inform the user that the window has been locked, and may provide further instructions, such as "Please authenticate to unlock." Specifically, the lock operation can be controlled by the browser's front-end JavaScript, or by a back-end service sending instructions to change the front-end display state. The lock operation may involve modifying the attributes of DOM elements, applying new CSS styles, or popping up a modal dialog box on the user interface.

[0082] S3, obtaining an unlock instruction through the mobile terminal, and the server terminal unlocking the browser window according to the unlock instruction; step S3 includes:

[0083] S31. Obtaining an unlocking instruction through the mobile terminal, including:

[0084] The mobile terminal receives the identity verification information and performs a first verification, wherein the first verification includes mobile terminal face verification and fingerprint verification;

[0085] After the first verification is passed, the mobile terminal encrypts the identity verification information and sends it to the server;

[0086] Specifically, the mobile terminal can be a mobile phone. Once the browser window enters a locked state, the user can use his or her mobile device to authenticate. The first verification here usually involves biometric technology, such as facial recognition or fingerprint scanning. Once the mobile terminal confirms the user's identity (the first verification is passed), it will encrypt the authentication information. The authentication information can be a personal account and password. The encryption is to protect the security of the authentication information during transmission to prevent it from being intercepted. Encryption usually uses strong encryption algorithms, such as AES or RSA, to ensure that even if the information is intercepted, it cannot be interpreted by unauthorized persons. The encrypted authentication information is then sent to the server.

[0087] S32, the server performs an unlocking operation on the browser window according to the unlocking instruction, including:

[0088] The server receives the encrypted identity verification information and performs a second verification;

[0089] After the second verification is passed, the server sends an unlock instruction to the browser;

[0090] The state of the browser window is changed to an unlocked state according to the unlock instruction, and the browser window is displayed and rendered normally.

[0091] The second verification includes performing a server-side database comparison verification on the identity verification information.

[0092] Specifically, when the mobile terminal completes the identity authentication and transmits the encrypted information to the server, the server first needs to decrypt the information. The server uses a pre-set key or a dynamically generated key to decrypt the received data packet. The decryption process needs to ensure the integrity and tamper-proof of the information.

[0093] After decryption, the server compares the verification information with the user identity information stored in the server database. This step involves verifying the user credentials in the encrypted information, such as user account passwords, tokens, or other relevant security information, to ensure that they match the information stored in the server database. Database comparison verification is a key step that ensures that only users who have successfully verified on the mobile terminal can unlock the browser.

[0094] The server generates an unlock instruction based on the decrypted verification information. This instruction is usually a data packet containing unlock action information, and may also include a timestamp and a one-time token to prevent replay attacks. Before sending, the unlock instruction will be securely encapsulated again. This may involve digital signatures or encryption using the server's private key to ensure that the instruction will not be intercepted or tampered with during transmission. The communication between the server and the browser is carried out through an established secure channel (such as an SSL / TLS connection). This ensures that the data is encrypted during transmission on the Internet and prevents the data from being stolen or modified by a man-in-the-middle attacker. After receiving the unlock instruction, the browser will perform necessary security checks, including verifying the integrity of the data packet and verifying the digital signature. Once the verification is correct, the browser will perform the unlock operation. The unlock action will cause the browser window state to change from "locked" to "unlocked".

[0095] When the state changes, the view controller hosted by the browser window will call the rendering engine to end the protection screen or prompt interface in the locked state and restore the layout and view when the user is operating normally. This rendering update is dynamic, which may involve the re-layout of interface components and the restoration of dynamic content (such as real-time information flow, video playback, etc.) that may be suspended or reduced due to the locked state.

[0096] Furthermore, unlocking operations are usually accompanied by security log records to ensure event traceability. This is not only for security audit needs, but also to optimize user experience so that the unlocking mechanism can be adjusted and improved. These records may include the time of the unlocking operation, the user identity, and any internal event markers related to the state change.

[0097] The above implementation modes are merely descriptions of the preferred implementation modes of the present invention, and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary engineering and technical personnel in the field shall fall within the protection scope determined by the claims of the present invention.

Claims

1. A browser window locking and unlocking method, characterized in that: The following steps are involved: Monitor the status of the browser window in real time to generate real-time activity; Lock the browser window based on real-time activity; The mobile terminal obtains the unlock instruction, and the server terminal unlocks the browser window according to the unlock instruction; The real-time monitoring includes: When the browser window is locked, listen for requests and prevent them from passing through; When the browser window is unlocked, user behavior is collected in real time, and an active time model is built based on the user behavior. The user activity is judged in real time based on the active time model, and the real-time activity is output.

2. A browser window locking and unlocking method according to claim 1, characterized in that: The locking operation of the browser window generated according to the real-time activity includes: When the real-time activity is higher than the preset value, the user behavior is judged by human and machine, and the browser is locked according to the result of the human and machine judgment; When the real-time activity is lower than the preset value, the browser window is locked.

3. A browser window locking and unlocking method according to claim 1, characterized in that: The locking operation includes: Change the state of the browser window to a locked state, and perform locked rendering on the browser window.

4. A browser window locking and unlocking method according to claim 1, characterized in that: The real-time collection of user behavior includes: Track and record activity within the browser window in real time, including mouse movements, clicks, scrolling, and keyboard input.

5. A browser window locking and unlocking method according to claim 1, characterized in that: The constructing of the active time model comprises: Through time series data processing technology, the collected user behaviors are integrated and converted into time series action data; Based on the convolutional neural network model, time series data is identified to extract the user's operation mode, including the operation start time, operation end time, operation frequency and operation duration; Build an active time model based on the user's operation pattern.

6. A browser window locking and unlocking method according to claim 5, characterized in that: The real-time determination of user activity based on the active time model includes: When the real-time activity in the browser window is consistent with the behavior pattern predicted by the active time model, the user's activity score is adjusted to the maximum value in the preset range; When the real-time activity in the browser window deviates from the prediction of the active time model, that is, no operation is detected within the expected active time window, the decrement mechanism of the activity score is triggered.

7. A browser window locking and unlocking method according to claim 6, characterized in that: The activity score reduction mechanism includes: The activity score is decremented according to a decrement function, where the decrement function is determined according to the length of time in which no operation is performed in real time and the prediction of the activity time model.

8. A browser window locking and unlocking method according to claim 1, characterized in that: The obtaining of the unlock instruction through the mobile terminal includes: The mobile terminal receives the identity verification information and performs a first verification, wherein the first verification includes mobile terminal face verification and fingerprint verification; After the first verification is passed, the mobile terminal encrypts the identity authentication information and sends it to the server.

9. A browser window locking and unlocking method according to claim 8, characterized in that: The server side performs an unlocking operation on the browser window according to the unlocking instruction, including: The server receives the encrypted identity verification information and performs a second verification; When the decryption verification is passed, the server sends an unlock instruction to the browser; The state of the browser window is changed to an unlocked state according to the unlock instruction, and the browser window is displayed and rendered normally.

10. A browser window locking and unlocking method according to claim 9, characterized in that: The second verification includes performing a server-side database comparison verification on the identity verification information.