Webpage recording prevention method and device, electronic equipment and computer storage medium
By obtaining the webpage address in the Tongxin operating system and calling the anti-screen recording interface to detect screen recording tools, the screen recording operation is interrupted, thus solving the compatibility and efficiency issues of browser webpage anti-screen recording, achieving effective protection of sensitive information and improving user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING HONGTENG INTELLIGENT TECH CO LTD
- Filing Date
- 2024-12-05
- Publication Date
- 2026-06-05
AI Technical Summary
Existing technologies lack efficient, stable, and compatible browser-based screen recording prevention solutions, and cannot effectively prevent the leakage of sensitive information in the Tongxin operating system environment.
By obtaining the current target webpage address of the browser, it is determined whether it is on the list of webpages protected against screen recording. The anti-screen recording interface of the Tongxin operating system is then called to determine whether the screen recording tool is open. If it is open, the screen recording operation is interrupted. By combining the detection of the anti-screen recording interface and the processing of prompt information, sensitive information is ensured to be protected from being recorded.
It achieves efficient, stable, and highly compatible webpage screen recording prevention under the UnionTech operating system, preventing the leakage of sensitive information and improving user experience.
Smart Images

Figure CN122153193A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data security, and in particular to a method, apparatus, electronic device, and computer storage medium for preventing webpage screen recording. Background Technology
[0002] With the rapid development of internet technology, webpage screen recording technology has matured and is widely used in scenarios such as online exams, remote monitoring, and screen sharing. However, this technological development has also brought new challenges to information security. Under the Tongxin operating system environment, especially during webpage browsing involving sensitive information, trade secrets, or intellectual property protection, screen recording only requires a simple capture action to extract important content and send it anywhere. This means that a simple operation can leak important corporate secrets. Under the Tongxin operating system environment, accompanying every employee's entire workflow, preventing the leakage of important corporate data through anti-screen recording measures is a crucial way to protect important corporate data and meet the security requirements of the corporate security department. However, currently, there is a lack of an efficient, stable, and compatible browser-based webpage anti-screen recording technology solution. How to effectively prevent screen recording has become an urgent technical problem to be solved. Summary of the Invention
[0003] This application provides a method, apparatus, electronic device, and computer storage medium for preventing webpage screen recording. This method, based on the UnionTech operating system, effectively prevents the leakage of sensitive information and protects user privacy and information security. Furthermore, by using the anti-recording interface provided by the UnionTech operating system for detecting screen recording tools, it achieves efficient, stable, and highly compatible webpage screen recording prevention while ensuring uninterrupted webpage browsing, thus enhancing the user experience.
[0004] In a first aspect, embodiments of this application provide a method for preventing webpage screen recording, including:
[0005] After the browser starts, obtain the current target webpage address of the browser;
[0006] Determine whether the target webpage address is in the list of webpages protected against screen recording; the list of webpages protected against screen recording includes at least one preset webpage address that prohibits screen recording.
[0007] If the target webpage address is on the list of anti-screen recording webpages, the anti-screen recording interface provided by the UnionTech operating system is called to determine whether the screen recording tool is open.
[0008] With the aforementioned screen recording tool open, interrupt the screen recording operation of the aforementioned screen recording tool on the target webpage corresponding to the aforementioned target webpage address.
[0009] In one possible implementation, before determining whether the target webpage address is in the anti-screen recording webpage list, the method further includes:
[0010] Apply to enable the screen recording protection feature;
[0011] In response to the above request to enable the anti-screen recording function, the anti-screen recording web page configuration page is displayed.
[0012] The list of anti-screen recording web pages can be obtained based on the anti-screen recording web page configuration page.
[0013] In one possible implementation, after interrupting the screen recording operation of the screen recording tool on the target webpage corresponding to the target webpage address while the screen recording tool is open, the method further includes:
[0014] After detecting a redirection to the target webpage, obtain the URL of the redirected webpage;
[0015] Determine whether the redirected webpage address is in the aforementioned list of anti-screen recording webpages;
[0016] If the redirected webpage is not on the list of anti-screen recording webpages, resume the screen recording operation of the screen recording tool.
[0017] In one possible implementation, interrupting the screen recording operation of the screen recording tool on the target webpage corresponding to the target webpage address when the screen recording tool is open includes:
[0018] When the aforementioned screen recording tool is open, a prompt message is displayed, and the display area of the prompt message covers the display area of the target webpage, so as to interrupt the screen recording operation of the screen recording tool on the target webpage, and / or, pause the screen recording operation of the screen recording tool, and / or, close the target webpage.
[0019] In one possible implementation, after determining whether the target webpage address is in the list of anti-screen recording webpages, the method further includes:
[0020] If the target webpage address is not on the list of anti-screen recording webpages, the display status of the target webpage corresponding to the target webpage address will be maintained.
[0021] In one possible implementation, after determining whether the screen recording tool is open when the target webpage address is on the list of anti-screen recording webpages, the method further includes:
[0022] Even if the screen recording tool mentioned above is not open, maintain the display status of the target webpage corresponding to the target webpage address mentioned above.
[0023] In one possible implementation, after obtaining the browser's current target webpage address, the method further includes:
[0024] Detect whether there is sensitive information in the target webpage corresponding to the above target webpage address;
[0025] If the aforementioned sensitive information exists on the target webpage and the screen recording tool is open, interrupt the screen recording operation of the screen recording tool on the target webpage, or hide the aforementioned sensitive information on the target webpage.
[0026] Secondly, embodiments of this application provide an anti-webpage screen recording device, comprising:
[0027] The first acquisition module is used to obtain the current target webpage address of the browser after the browser starts.
[0028] The first judgment module is used to determine whether the target webpage address is in the list of webpages protected against screen recording; the list of webpages protected against screen recording includes at least one preset webpage address that prohibits screen recording.
[0029] The calling module is used to call the anti-screen recording interface provided by the Tongxin operating system to determine whether the screen recording tool is open when the target webpage address is in the list of anti-screen recording webpages.
[0030] The interrupt module is used to interrupt the screen recording operation of the screen recording tool on the target webpage corresponding to the target webpage address when the screen recording tool is open.
[0031] Thirdly, embodiments of this application provide an electronic device, including: a processor and a memory; wherein the memory stores executable program code, and the processor reads the executable program code stored in the memory to run a program corresponding to the executable program code, so as to execute the method steps provided by the first aspect of the embodiments of this application or any possible implementation of the first aspect.
[0032] Fourthly, embodiments of this application provide a computer storage medium storing a plurality of instructions, which are adapted to be loaded by a processor and executed by the method steps provided in the first aspect of the embodiments of this application or any possible implementation thereof.
[0033] The beneficial effects of the technical solutions provided in some embodiments of this application include at least the following:
[0034] In this embodiment, the method determines whether screen recording of the target webpage exists by checking if the target webpage address is on the anti-screen recording webpage list and by calling the anti-screen recording interface provided by the UnionTech operating system to check in real time whether a screen recording tool is open. If such a situation exists, the screen recording operation is immediately interrupted. This method, by implementing webpage anti-screen recording functionality based on the UnionTech operating system, can effectively prevent the leakage of sensitive information and protect user privacy and information security. Simultaneously, the use of the anti-screen recording interface provided by the UnionTech operating system for detecting screen recording tools provides an efficient, stable, and compatible implementation that ensures uninterrupted webpage browsing while implementing anti-screen recording functionality, thus improving user experience. Attached Figure Description
[0035] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0036] Figure 1 A schematic diagram of the architecture of an anti-webpage screen recording system provided for an exemplary embodiment of this application;
[0037] Figure 2 A flowchart illustrating an exemplary embodiment of this application provides a method for preventing webpage screen recording.
[0038] Figure 3 A flowchart illustrating a method for obtaining a list of websites to prevent screen recording, provided as an exemplary embodiment of this application;
[0039] Figure 4 A flowchart illustrating another method for preventing webpage screen recording provided as an exemplary embodiment of this application;
[0040] Figure 5 A flowchart illustrating another method for preventing webpage screen recording provided as an exemplary embodiment of this application;
[0041] Figure 6 A schematic diagram illustrating the implementation process of an exemplary embodiment of this application for a method to prevent webpage screen recording;
[0042] Figure 7 A schematic diagram of a device for preventing webpage screen recording is provided as an exemplary embodiment of this application;
[0043] Figure 8 This is a schematic diagram of the structure of an electronic device provided as an exemplary embodiment of this application. Detailed Implementation
[0044] To make the features and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0045] The terms "first," "second," "third," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.
[0046] Please refer to the following. Figure 1 This is a schematic diagram of the architecture of an anti-webpage screen recording system provided in an exemplary embodiment of this specification. Figure 1 As shown, the anti-webpage screen recording system may include: a terminal 110 and a server 120. Wherein:
[0047] Terminal 110 can interact with server 120 via a network to receive messages from or send messages to server 120. Terminal 110 can be hardware or software. When terminal 110 is hardware, it can be various electronic devices, including but not limited to smartwatches, smartphones, tablets, laptops, and desktop computers. When terminal 110 is software, it can be installed in the electronic devices listed above, and it can be implemented as multiple software programs or software modules (e.g., to provide distributed services) or as a single software program or software module; no specific limitation is made here.
[0048] In this embodiment of the specification, terminal 110 may be a user terminal with anti-screen recording functionality. After the browser starts, the current target webpage address of the browser is obtained; it is determined whether the target webpage address is in the anti-screen recording webpage list; the anti-screen recording webpage list includes at least one preset webpage address that prohibits screen recording; if the target webpage address is in the anti-screen recording webpage list, the anti-screen recording interface provided by the Tongxin operating system is called to determine whether the screen recording tool is open; if the screen recording tool is open, the screen recording operation of the screen recording tool on the target webpage corresponding to the target webpage address is interrupted.
[0049] Server 120 can interact with terminal 110 via a network to receive messages from or send messages to terminal 110. Server 120 can be hardware or software. When server 120 is hardware, it can be various electronic devices, including but not limited to smartwatches, smartphones, tablets, laptops, and desktop computers. When server 120 is software, it can be installed in the aforementioned electronic devices, and can be implemented as multiple software programs or software modules (e.g., to provide distributed services) or as a single software program or software module; no specific limitation is made here.
[0050] It is understood that the anti-screen recording method provided in this application embodiment can be executed by the terminal 110 alone, or by the terminal 110 and the server 120 together. This application embodiment does not limit this.
[0051] The network can be a medium that provides a communication link between terminal 110 and server 120, or it can be the Internet, which includes network devices and transmission media, and is not limited thereto. The transmission media can be a wired link, such as, but not limited to, coaxial cable, fiber optic cable, and digital subscriber line (DSL), or a wireless link, such as, but not limited to, wireless fidelity (WIFI), Hypertext Transfer Protocol (HTTP), Bluetooth, and mobile device networks.
[0052] Understandably, Figure 1 The number of terminals 110 and servers 120 in the illustrated anti-webpage screen recording system is only an example. In a specific implementation, the anti-webpage screen recording system can contain any number of terminals 110 and servers 120.
[0053] Next, combine Figure 1 Taking the execution of anti-webpage screen recording on terminal 110 as an example, this application introduces an exemplary embodiment of the anti-webpage screen recording method. Please refer to [link / reference] for details. Figure 2 The example illustrates a flowchart of a method for preventing webpage screen recording provided in an embodiment of this application. Figure 2 As shown, this method for preventing webpage screen recording may include the following steps:
[0054] S201, after the browser starts, obtain the current target webpage address of the browser.
[0055] Specifically, in the Tongxin operating system environment, to prevent users or software from leaking sensitive information, trade secrets, or intellectual property protection information from web pages through screen recording in the background while using the browser, an anti-screen recording function can be enabled before browsing web pages. After the browser starts, it can first obtain the browser's current target web page address. This target web page address, also known as a Uniform Resource Locator (URL), is used to completely describe the address of web pages and other resources on the network. Users can access the corresponding web page or resource by entering this address in the browser.
[0056] S202, Determine whether the target webpage address is in the list of webpages protected against screen recording.
[0057] Specifically, after obtaining the browser's current target webpage address, in order to determine whether the target webpage contains private or confidential information that needs to be protected from leakage, it can be done, but is not limited to, by checking whether the target webpage address exists in the anti-screen recording webpage list. The aforementioned anti-screen recording webpage list includes at least one preset webpage address for which screen recording is prohibited. This preset webpage address can be, but is not limited to, a webpage address that is preset by the user or administrator to prevent information leakage and thus prohibits screen recording.
[0058] Optionally, Figure 3 An exemplary flowchart illustrates a method for obtaining a list of websites to prevent screen recording, provided in an embodiment of this application. Figure 3 As shown, the method for obtaining the list of anti-screen recording web pages may include, but is not limited to, the following steps:
[0059] S301, apply to enable the screen recording protection function.
[0060] Specifically, to enhance security, the UnionTech operating system integrates several basic security features, including screen recording protection. These features are typically implemented through system-provided APIs or interfaces, allowing applications or third-party software to access and use these security functions. When a user or administrator wants to use the screen recording protection feature, they can, but are not limited to, triggering the screen recording protection activation control. After receiving the user's screen recording protection activation request, the terminal responds to the request and executes subsequent operations.
[0061] S302, in response to the request to enable the screen recording function, displays the screen recording protection web page configuration page.
[0062] Specifically, upon receiving a request to enable the screen recording protection function, the system can display a screen recording protection configuration page in response to the request. This allows users or administrators to configure the list of websites protected against screen recording.
[0063] S303, obtain the list of anti-screen recording web pages based on the anti-screen recording web page configuration page.
[0064] Specifically, the aforementioned list of websites to prevent screen recording can be, but is not limited to, configured by the user or administrator based on the anti-screen recording website configuration page. This configuration can be achieved by directly entering the web address to be blocked on the anti-screen recording website configuration page, or by having the anti-screen recording website configuration page display various frequently visited web addresses or web addresses that may involve privacy or important confidential information. The user or administrator can then select the web address to be blocked from the web addresses displayed on the anti-screen recording website configuration page. This application embodiment does not limit this approach. The preset web address in the aforementioned anti-screen recording website list can be a specific URL address or a domain name. This application embodiment does not limit this approach. When the web address in the aforementioned anti-screen recording website list is a domain name, then all URL addresses containing this domain name need to be blocked from screen recording.
[0065] Please continue to refer to the following. Figure 2 ,like Figure 2 As shown, in step S202 above, after determining whether the target webpage address is in the list of webpages to prevent screen recording, the method for preventing webpage screen recording may also include, but is not limited to:
[0066] S203, if the target webpage address is not in the list of anti-screen recording webpages, maintain the display status of the target webpage corresponding to the target webpage address.
[0067] Specifically, if the target webpage address is not on the list of webpages to prevent screen recording, it means that the target webpage corresponding to the target webpage address currently displayed by the browser is not a webpage that needs to be kept confidential and screen recording can be performed. In order not to affect the user experience, the normal display of the target webpage corresponding to the target webpage address can be maintained.
[0068] Please continue to refer to the following. Figure 2 ,like Figure 2 As shown, in step S202 above, after determining whether the target webpage address is in the list of webpages to prevent screen recording, the method for preventing webpage screen recording may also include, but is not limited to:
[0069] S204: If the target webpage address is in the list of anti-screen recording webpages, call the anti-screen recording interface provided by Tongxin Operating System to determine whether the screen recording tool is open.
[0070] Specifically, if the target webpage address is on the list of anti-screen recording webpages, it means that the target webpage currently displayed by the browser may contain sensitive information such as personal privacy information or trade secrets, and is therefore a confidential webpage that cannot be recorded. To determine whether the screen recording tool is currently enabled, the anti-screen recording interface provided by the D-Bus service in the Tongxin operating system can be called to determine whether the screen recording tool is enabled within a preset period. The preset period can be 5 seconds, 10 seconds, etc., and this application embodiment does not limit this. The D-Bus service is a message bus system widely used in Linux and other Unix-like operating systems, allowing efficient message exchange between different processes or interfaces and applications, including browsers, thereby achieving inter-process communication. The anti-screen recording interface is a low-level anti-screenshot recording interface built into the Tongxin operating system, typically integrated into the Tongxin operating system's security framework. It controls the screen recording behavior of all software installed in the system through low-level monitoring and permission management, preventing information leakage. The anti-screen recording interface can be called based on interface parameters to detect screen recording operations. When an application attempts to record the screen, the anti-screen recording interface will detect and record the behavior, and then respond according to a preset strategy, such as, but not limited to, blocking screen recording, issuing a warning, or logging. Using the anti-screen recording interface built into the Tongxin operating system to detect screen recording operations can detect screen recording operations from all software installed on the system, making it widely applicable and able to meet the anti-screen recording needs of different users in different scenarios. Moreover, this efficient, stable, and compatible implementation method can ensure that users are not disturbed when browsing the web, improving the user experience.
[0071] S205, when the screen recording tool is open, interrupt the screen recording operation of the screen recording tool for the target webpage corresponding to the target webpage address.
[0072] Specifically, when the aforementioned anti-screen recording interface detects that the screen recording tool is open, it indicates that a screen recording operation is in progress. In order to prevent the information in the target webpage corresponding to the target webpage address from being leaked, the screen recording operation of the screen recording tool on the target webpage can be interrupted.
[0073] Optionally, when the aforementioned anti-screen recording interface detects that the screen recording tool is open, it indicates that screen recording is in progress. After receiving the recording message from the anti-screen recording interface, the browser can display a prompt message on the current webpage to prevent information leakage from the target webpage corresponding to the target webpage address. The display area of the prompt message covers the display area of the target webpage, thereby interrupting the screen recording operation of the screen recording tool on the target webpage. Alternatively, the anti-screen recording interface can be used to directly pause the screen recording operation of the aforementioned screen recording tool by interrupting the recording process. Or, after receiving the recording message, the browser can automatically close the aforementioned target webpage. Alternatively, when the browser receives the return result of the anti-screen recording interface method through the D-Bus service, it can perform corresponding processing based on the result. For example, but not limited to, if the return result indicates that the screen recording operation was successfully interrupted, the browser can pop up a prompt box to inform the user that the screen recording behavior has been interrupted.
[0074] Please continue to refer to the following. Figure 2 ,like Figure 2 As shown in S204 above, if the target webpage address is in the list of webpages protected against screen recording, after calling the screen recording protection interface provided by the Tongxin operating system to determine whether the screen recording tool is open, this method of preventing webpage screen recording may also include, but is not limited to:
[0075] S206, Maintain the display state of the target webpage corresponding to the target webpage address when the screen recording tool is not open.
[0076] Specifically, if the screen recording tool is not open, it means that although the target webpage corresponding to the target webpage address currently displayed by the browser is a webpage that needs to be kept confidential, no screen recording operation is being performed at this time, and there is no situation where screen recording leaks the target webpage information. Therefore, in order not to affect the user experience, the target webpage corresponding to the target webpage address can continue to be displayed normally.
[0077] In this embodiment, the method determines whether screen recording of the target webpage exists by checking if the target webpage address is on the anti-screen recording webpage list and by calling the anti-screen recording interface provided by the UnionTech operating system to check in real time whether a screen recording tool is open. If such a situation exists, the screen recording operation is immediately interrupted. This method, by implementing webpage anti-screen recording functionality based on the UnionTech operating system, can effectively prevent the leakage of sensitive information and protect user privacy and information security. Simultaneously, the use of the anti-screen recording interface provided by the UnionTech operating system for detecting screen recording tools provides an efficient, stable, and compatible implementation that ensures uninterrupted webpage browsing while implementing anti-screen recording functionality, thus improving user experience.
[0078] Please refer to the following. Figure 4 The example illustrates a flowchart of another method for preventing webpage screen recording provided in an embodiment of this application. Figure 4 As shown, this method for preventing webpage screen recording may include the following steps:
[0079] S401: After the browser starts, obtain the current target webpage address of the browser.
[0080] Specifically, S401 is the same as S201, and will not be repeated here.
[0081] S402, Detect whether there is sensitive information in the target webpage corresponding to the target webpage address.
[0082] Specifically, after obtaining the current target webpage address of the browser, it is possible to detect whether there is sensitive information in the target webpage corresponding to the target webpage address. If sensitive information is found in the target webpage, it means that the sensitive information contained in the target webpage cannot be leaked, and screen recording prevention is required. The aforementioned sensitive information may include, but is not limited to, the user's personal information, login page account and password information, etc. The above detection method can be to write a program to crawl the content of the target webpage based on the target webpage address, and then perform sensitive word matching detection on the content of the target webpage; or it can be to use a sensitive information detection tool (such as, but not limited to, the big data detection system of Antfang Software) to detect the sensitive information in the target webpage corresponding to the target webpage address, and then output the detection results (including but not limited to the type, location and other detailed information of the sensitive information). This application embodiment does not limit this.
[0083] S403, if sensitive information exists on the target webpage and the screen recording tool is open, interrupt the screen recording operation of the screen recording tool on the target webpage, or hide the sensitive information on the target webpage.
[0084] Specifically, if sensitive information exists on the target webpage corresponding to the target webpage address, the anti-screen recording interface provided by the Tongxin operating system can be called to determine whether the screen recording tool is enabled. If the screen recording tool is enabled, the screen recording process can be interrupted through the anti-screen recording interface to stop the screen recording operation of the screen recording tool on the target webpage. Alternatively, the browser can be used to hide the sensitive information on the target webpage so that the sensitive information is not directly displayed. The above-mentioned hiding process can be to use encrypted characters to replace the sensitive information, or to mosaic the sensitive information. This application embodiment does not limit this. By automatically detecting whether the target webpage address belongs to the prohibited screen recording webpage address, the webpages that prohibit screen recording can be identified more intelligently and quickly, avoiding information leakage problems caused by omissions or misconfigurations when manually configuring the anti-screen recording webpage list, which affects the user experience.
[0085] Please refer to the following. Figure 5The example illustrates a flowchart of another method for preventing webpage screen recording provided in an embodiment of this application. Figure 5 As shown, this method for preventing webpage screen recording may include the following steps:
[0086] S501: After the browser starts, obtain the current target webpage address of the browser.
[0087] Specifically, S501 is the same as S201, and will not be repeated here.
[0088] S502, if the target webpage address is in the list of webpages to prevent screen recording and the screen recording tool is open, interrupt the screen recording operation of the screen recording tool on the target webpage corresponding to the target webpage address.
[0089] Specifically, the implementation process of S502 is the same as that of S202, S204 and S205, and will not be repeated here.
[0090] S503: After detecting that the target webpage has been redirected, obtain the address of the redirected webpage.
[0091] Specifically, when browsing the web, multiple web pages may be open, but only one page will be displayed at any given time. If some of these web pages are screen-recording-protected, screen recording can be interrupted only when a screen-recording-protected page is detected, and resumed when a non-screen-recording-protected page is detected, thus providing a better user experience. The aforementioned screen-recording-protected pages are those corresponding to preset URLs in the screen-recording-protected page list. Therefore, when a redirect is detected to the currently displayed target page, the URL of the redirected page can be obtained.
[0092] S504: If the redirected webpage address is not on the list of anti-screen recording webpages, resume the screen recording operation of the screen recording tool.
[0093] Specifically, after obtaining the redirected webpage address, it's possible to determine if the redirected webpage address is on the anti-screen-recording webpage list, but not limited to this method. If the redirected webpage address is not on the anti-screen-recording webpage list, it means the webpage corresponding to the redirected webpage address is not a confidential webpage. In this case, the screen recording tool can be automatically resumed using the anti-screen-recording interface, but not limited to this method. This approach not only interrupts the screen recording tool's operation when the target webpage address is detected to be on the anti-screen-recording webpage list and the screen recording tool is open, thus more conveniently and effectively preventing the leakage of sensitive or important confidential information, but also resumes the screen recording tool's operation when the currently displayed webpage is not a confidential webpage, providing users with a more intelligent and convenient user experience.
[0094] Please refer to the following. Figure 6 The illustration shows a schematic diagram of the implementation process of a method for preventing webpage screen recording provided in an embodiment of this application. Figure 6 As shown, when the anti-screen recording function is enabled, the browser's current target webpage address is first obtained. Then, it is determined whether the target webpage address belongs to the anti-screen recording webpage list. If the target webpage address does not belong to the anti-screen recording webpage list, the presence of sensitive information in the target webpage is checked. If the target webpage address belongs to the anti-screen recording webpage list, the anti-screen recording interface provided by the Tongxin Operating System is called to determine whether the screen recording tool is open. If the target webpage contains sensitive information, the anti-screen recording interface provided by the Tongxin Operating System is called to determine whether the screen recording tool is open. If the target webpage does not contain sensitive information, the target webpage corresponding to the target webpage address is displayed normally. If the screen recording tool is not open, the target webpage corresponding to the target webpage address is displayed normally. If the target webpage contains sensitive information or the target webpage address belongs to the anti-screen recording webpage list, and the screen recording tool is open, the screen recording operation of the screen recording tool can be interrupted, and a prompt box (prompt message) will pop up, reminding the user that the content of the target webpage may be at risk of leakage.
[0095] Please refer to the following. Figure 7 The illustration shows a schematic diagram of the structure of an anti-webpage screen recording device provided in an embodiment of this application. Figure 7 As shown, the anti-webpage screen recording device 700 may include:
[0096] The first acquisition module 710 is used to obtain the current target webpage address of the browser after the browser starts.
[0097] The first judgment module 720 is used to determine whether the target webpage address is in the anti-screen recording webpage list; the anti-screen recording webpage list includes at least one preset webpage address that prohibits screen recording;
[0098] Module 730 is used to call the anti-screen recording interface provided by the Tongxin operating system to determine whether the screen recording tool is open when the target webpage address is in the list of anti-screen recording webpages.
[0099] Interrupt module 740 is used to interrupt the screen recording operation of the screen recording tool on the target webpage corresponding to the target webpage address when the screen recording tool is open.
[0100] In some possible embodiments, the above-described anti-webpage screen recording device 700 further includes:
[0101] The second acquisition module is used to acquire applications for enabling the screen recording protection function.
[0102] The display module is used to display the anti-screen recording webpage configuration page in response to the above-mentioned request to enable the anti-screen recording function.
[0103] The third acquisition module is used to obtain the list of anti-screen recording web pages based on the aforementioned anti-screen recording web page configuration page.
[0104] In some possible embodiments, the above-described anti-webpage screen recording device 700 further includes:
[0105] The fourth acquisition module is used to obtain the URL of the redirected webpage after detecting that the target webpage has been redirected.
[0106] The second judgment module is used to determine whether the webpage address after the above jump is in the above list of anti-screen recording webpages;
[0107] The recovery module is used to restore the screen recording operation of the screen recording tool if the redirected webpage address is not in the list of anti-screen recording webpages.
[0108] In some possible embodiments, the interrupt module 740 is specifically used to: display a prompt message when the screen recording tool is open, wherein the display area of the prompt message covers the display area of the target webpage, so as to interrupt the screen recording operation of the screen recording tool on the target webpage, and / or, pause the screen recording operation of the screen recording tool, and / or, close the target webpage.
[0109] In some possible embodiments, the above-described anti-webpage screen recording device 700 further includes:
[0110] The first retention module is used to maintain the display status of the target webpage corresponding to the target webpage address when the target webpage address is not in the list of anti-screen recording webpages.
[0111] In some possible embodiments, the above-described anti-webpage screen recording device 700 further includes:
[0112] The second holding module is used to maintain the display state of the target webpage corresponding to the target webpage address when the screen recording tool is not turned on.
[0113] In some possible embodiments, the above-described anti-webpage screen recording device 700 further includes:
[0114] The detection module is used to detect whether there is sensitive information in the target webpage corresponding to the above target webpage address;
[0115] The processing module is used to interrupt the screen recording operation of the screen recording tool on the target webpage when the target webpage contains the aforementioned sensitive information and the screen recording tool is open, or to hide the aforementioned sensitive information on the target webpage.
[0116] The division of modules in the above-described anti-webpage screen recording device is for illustrative purposes only. In other embodiments, the anti-webpage screen recording device can be divided into different modules as needed to complete all or part of the functions of the above-described anti-webpage screen recording device. The implementation of each module in the anti-webpage screen recording device provided in the embodiments of this specification can be in the form of a computer program. This computer program can run on a terminal or server. The program modules constituted by this computer program can be stored in the memory of the terminal or server. When the computer program is executed by a processor, it implements all or part of the steps of the anti-webpage screen recording method described in the embodiments of this specification.
[0117] Please refer to the following. Figure 8 This is a schematic diagram of the structure of an electronic device provided in an exemplary embodiment of this specification. Figure 8 As shown, the electronic device 800 may include: at least one processor 810, at least one communication bus 820, user interface 830, at least one network interface 840, and memory 850.
[0118] The communication bus 820 can be used to realize the connection and communication of the above components.
[0119] The user interface 830 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.
[0120] The network interface 840 may optionally include a Bluetooth module, an NFC module, a Wi-Fi module, etc.
[0121] The processor 810 may include one or more processing cores. The processor 810 connects to various parts within the electronic device 800 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 850, and by calling data stored in the memory 850. Optionally, the processor 810 may be implemented using at least one hardware form of DSP, FPGA, or PLA. The processor 810 may integrate one or more of the following: CPU, GPU, and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 810 and may be implemented as a separate chip.
[0122] The memory 850 may include RAM or ROM. Optionally, the memory 850 may include a non-transitory computer-readable medium. The memory 850 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 850 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as obtaining the current target webpage address of a browser), instructions for implementing the various method embodiments described above, etc.; the data storage area may store data involved in the various method embodiments described above, etc. Optionally, the memory 850 may also be at least one storage device located remotely from the aforementioned processor 810. Figure 8 As shown, the memory 850, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and program instructions.
[0123] In some possible embodiments, the electronic device 800 may be as described above. Figure 7 The screen recording prevention device 700 shown has a processor 810 that can call program instructions stored in memory 850 and specifically perform the following operations: after the browser starts, obtain the current target webpage address of the browser; determine whether the target webpage address is in the screen recording prevention webpage list; the screen recording prevention webpage list includes at least one preset webpage address that prohibits screen recording; if the target webpage address is in the screen recording prevention webpage list, call the screen recording prevention interface provided by the Tongxin operating system to determine whether the screen recording tool is open; if the screen recording tool is open, interrupt the screen recording operation of the screen recording tool on the target webpage corresponding to the target webpage address.
[0124] In some possible embodiments, before the processor 810 performs the above-mentioned determination of whether the target webpage address is in the list of anti-screen recording webpages, it is further configured to perform: obtaining an application to enable the anti-screen recording function; in response to the application to enable the anti-screen recording function, displaying an anti-screen recording webpage configuration page; and obtaining the list of anti-screen recording webpages based on the anti-screen recording webpage configuration page.
[0125] In some possible embodiments, after the processor 810 executes the above-mentioned interruption of the screen recording operation of the screen recording tool on the target webpage corresponding to the target webpage address when the screen recording tool is open, it is further configured to: after detecting that the target webpage has been redirected, obtain the webpage address after the redirection; determine whether the webpage address after the redirection is in the anti-screen recording webpage list; and if the webpage address after the redirection is not in the anti-screen recording webpage list, resume the screen recording operation of the screen recording tool.
[0126] In some possible embodiments, when the processor 810 performs the above-mentioned interruption of the screen recording operation of the screen recording tool on the target webpage corresponding to the target webpage address when the screen recording tool is open, it is specifically used to perform the following: when the screen recording tool is open, displaying a prompt message, the display area of the prompt message covering the display area of the target webpage, so as to interrupt the screen recording operation of the screen recording tool on the target webpage, and / or pausing the screen recording operation of the screen recording tool, and / or closing the target webpage.
[0127] In some possible embodiments, after the processor 810 performs the above-mentioned determination of whether the target webpage address is in the anti-screen recording webpage list, it is further configured to perform: if the target webpage address is not in the anti-screen recording webpage list, maintain the display state of the target webpage corresponding to the target webpage address.
[0128] In some possible embodiments, after the processor 810 performs the above-mentioned determination of whether the screen recording tool is open when the target webpage address is in the anti-screen recording webpage list, it is also used to perform the following: if the screen recording tool is not open, maintain the display state of the target webpage corresponding to the target webpage address.
[0129] In some possible embodiments, after the processor 810 performs the above-mentioned acquisition of the current target webpage address of the browser, it is further configured to perform: detect whether there is sensitive information in the target webpage corresponding to the target webpage address; if the sensitive information exists in the target webpage and the screen recording tool is open, interrupt the screen recording operation of the screen recording tool on the target webpage, or hide the sensitive information in the target webpage.
[0130] This application also provides a computer storage medium storing instructions that, when executed on a computer or processor, cause the computer or processor to perform one or more steps of any of the above methods. If the constituent modules of the above-described anti-webpage screen recording device are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned storage medium.
[0131] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented, in whole or in part, as 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, all or part of the processes or functions described in the embodiments of this application are generated. 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 or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0132] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks. Unless otherwise specified, the technical features of this embodiment and its implementation can be combined arbitrarily.
[0133] The above-described embodiments are merely preferred embodiments of this application and are not intended to limit the scope of this application. Any modifications and improvements made by those skilled in the art to the technical solutions of this application without departing from the spirit of this application should fall within the protection scope defined by the claims of this application.
Claims
1. A method for preventing webpage screen recording, characterized in that, include: After the browser starts, obtain the current target webpage address of the browser; Determine whether the target webpage address is in the list of webpages protected against screen recording; The list of web pages to prevent screen recording includes at least one preset web page address that prohibits screen recording; If the target webpage address is in the list of anti-screen recording webpages, the anti-screen recording interface provided by the UnionTech operating system is called to determine whether the screen recording tool is open. When the screen recording tool is open, interrupt the screen recording operation of the screen recording tool on the target webpage corresponding to the target webpage address.
2. The method as described in claim 1, characterized in that, Before determining whether the target webpage address is in the list of anti-screen recording webpages, the method further includes: Apply to enable the screen recording protection feature; In response to the request to enable the screen recording prevention function, the screen recording prevention web page configuration page is displayed. The list of anti-screen recording web pages is obtained based on the anti-screen recording web page configuration page.
3. The method as described in claim 1, characterized in that, When the screen recording tool is open, after interrupting the screen recording operation of the screen recording tool for the target webpage corresponding to the target webpage address, the method further includes: After detecting that the target webpage has redirected, obtain the URL of the redirected webpage; Determine whether the redirected webpage address is in the list of anti-screen recording webpages; If the redirected webpage address is not in the list of anti-screen recording webpages, the screen recording operation of the screen recording tool shall be resumed.
4. The method as described in claim 1, characterized in that, The step of interrupting the screen recording operation of the screen recording tool for the target webpage corresponding to the target webpage address when the screen recording tool is open includes: When the screen recording tool is open, a prompt message is displayed, and the display area of the prompt message covers the display area of the target webpage, so as to interrupt the screen recording operation of the screen recording tool on the target webpage, and / or, pause the screen recording operation of the screen recording tool, and / or, close the target webpage.
5. The method as described in claim 1, characterized in that, After determining whether the target webpage address is in the list of anti-screen recording webpages, the method further includes: If the target webpage address is not in the list of anti-screen recording webpages, the display status of the target webpage corresponding to the target webpage address shall be maintained.
6. The method as described in claim 1, characterized in that, After determining whether the screen recording tool is open when the target webpage address is in the list of anti-screen recording webpages, the method further includes: Even when the screen recording tool is not open, maintain the display state of the target webpage corresponding to the target webpage address.
7. The method as described in claim 1, characterized in that, After obtaining the current target webpage address of the browser, the method further includes: Detect whether there is sensitive information in the target webpage corresponding to the target webpage address; If the sensitive information exists on the target webpage and the screen recording tool is open, interrupt the screen recording operation of the screen recording tool on the target webpage, or hide the sensitive information on the target webpage.
8. A device for preventing webpage screen recording, characterized in that, include: The first acquisition module is used to acquire the current target webpage address of the browser after the browser is launched; The first judgment module is used to determine whether the target webpage address is in the list of anti-screen recording webpages; The list of web pages to prevent screen recording includes at least one preset web page address that prohibits screen recording; The calling module is used to call the anti-screen recording interface provided by the Tongxin operating system to determine whether the screen recording tool is open when the target webpage address is in the list of anti-screen recording webpages. An interrupt module is used to interrupt the screen recording operation of the screen recording tool on the target webpage corresponding to the target webpage address when the screen recording tool is open.
9. An electronic device, characterized in that, include: A processor and a memory; wherein the memory stores executable program code, and the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing the method as described in any one of claims 1-7.
10. A computer storage medium, characterized in that, The computer storage medium stores a plurality of instructions adapted for loading by a processor and executing the steps of the method as described in any one of claims 1-7.