WO2022078021A1 - Privacy information protection method and apparatus, storage medium, and electronic device - Google Patents

Privacy information protection method and apparatus, storage medium, and electronic device Download PDF

Info

Publication number
WO2022078021A1
WO2022078021A1 PCT/CN2021/110052 CN2021110052W WO2022078021A1 WO 2022078021 A1 WO2022078021 A1 WO 2022078021A1 CN 2021110052 W CN2021110052 W CN 2021110052W WO 2022078021 A1 WO2022078021 A1 WO 2022078021A1
Authority
WO
WIPO (PCT)
Prior art keywords
browsing mode
page
user
information
currently browsed
Prior art date
Application number
PCT/CN2021/110052
Other languages
French (fr)
Chinese (zh)
Inventor
刘汉军
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022078021A1 publication Critical patent/WO2022078021A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Definitions

  • the present application relates to the technical field of electronic devices, and in particular, to a method, device, storage medium and electronic device for protecting privacy information.
  • the embodiments of the present application provide a privacy information protection method, device, storage medium and electronic device, which can effectively protect user privacy information.
  • an embodiment of the present application provides a privacy information protection method, which is applied to an electronic device, including:
  • first prompt information is used to prompt to switch the current browsing mode
  • an embodiment of the present application provides a privacy information protection device, which is applied to an electronic device, including:
  • a detection module used to detect whether there is user privacy information in the currently browsed page
  • a generating module configured to generate first prompt information if yes, wherein the first prompt information is used to prompt to switch the current browsing mode
  • the switching module is configured to prohibit the screen capture or screen recording of the currently browsed page if the current browsing mode is switched to the first browsing mode.
  • the embodiments of the present application provide a storage medium on which a computer program is stored, and when the computer program is executed on a computer, the computer is made to execute the process in the privacy information protection method provided by the embodiments of the present application .
  • the embodiments of the present application further provide an electronic device, including a memory, a processor, and a display module.
  • the processor is used to execute the privacy provided by the embodiments of the present application by invoking a computer program stored in the memory. Processes in Information Protection Methods.
  • FIG. 1 is a schematic flowchart of a privacy information protection method provided by an embodiment of the present application.
  • FIG. 2 is another schematic flowchart of a privacy information protection method provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a page including a first page element provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a part of the code corresponding to the page in FIG. 3 provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of another page including a first page element provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a part of code corresponding to the page in FIG. 5 provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a scenario in which first prompt information is given on a browsed page according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a scenario in which a user chooses to ignore the first prompt information to take a screenshot according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a scenario of switching to an incognito browsing mode provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a scenario of starting a soft keyboard in an incognito browsing mode provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a scenario of taking a screenshot when a soft keyboard is activated in an incognito browsing mode according to an embodiment of the present application.
  • FIG. 12 is a schematic diagram of a scenario of taking a screenshot when the soft keyboard is not activated in an incognito browsing mode according to an embodiment of the present application.
  • FIG. 13 is a schematic diagram of a scenario of taking a screenshot of a login interface of an outsourcing software in an incognito browsing mode according to an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a privacy information protection device provided by an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 16 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • smartphones With the development of electronic device technology such as mobile phones, smartphones basically support screen capture and screen recording functions, and users are accustomed to using them to capture or record browsing information to share with friends, send WeChat Moments, etc. Since the screen capture and screen recording functions are basically accompanied by the smartphone system, for the browser application running on the smartphone system, when the user needs to take a screenshot or record the screen, it is easy to expose the user's private information.
  • some domestic browsers support incognito browsers, which can effectively prevent user information from leaking to a certain extent.
  • using screenshots can capture user information
  • using screen recording can record user information, which can easily expose users' private information.
  • browser applications can provide an incognito browser mode
  • the incognito browser mode refers to not saving user private information, such as any form history, search history, download history, browsing history, cookies or temporary Internet files, etc.
  • screen capture or screen recording to record, it is still unable to effectively protect the possibility of user privacy information being intercepted or recorded. It can be seen from this that any user's private information is captured or screen-recorded without the user's confirmation of the screenshot or screen recording during the browser browsing process, causing the problem of privacy information leakage.
  • the execution body of the embodiment of the present application may be an electronic device having a display module, such as a smart phone, a tablet computer, a TV, and a set-top box.
  • a display module such as a smart phone, a tablet computer, a TV, and a set-top box.
  • An embodiment of the present application provides a privacy information protection method, which is applied to an electronic device, and the privacy information protection method includes:
  • first prompt information is used to prompt to switch the current browsing mode
  • the detecting whether there is user privacy information in the currently browsed page includes:
  • the first page element or the second page element exists, it is determined that the user privacy information exists in the currently browsed page.
  • the first page elements include account number, user name, password, email address, name, ID number, mobile phone number, SMS verification code, urban area where the unit is located, detailed address of the unit, name of the unit, educational background and position. any one or more of them.
  • the second page element is a page whitelist.
  • prohibiting the screen capture or recording of the currently browsed page includes:
  • second prompt information is generated, or the screen recording result cannot be displayed, wherein the second prompt information is used to prompt that the screen capture cannot be taken because of the user's private information.
  • the privacy information protection method further includes:
  • the privacy information protection method further includes:
  • the first browsing mode is an incognito browsing mode.
  • the second browsing mode is a non-private browsing mode.
  • FIG. 1 is a schematic flowchart of a privacy information protection method provided by an embodiment of the present application. The process may include:
  • the browser can automatically detect whether the web page involves the user's private information. For example, when the user uses the first browser in the smartphone to browse the web page, the first browser parses the currently browsed page, extracts page information from it, and then can obtain the information involved in the currently browsed page, and then Detect whether the information involved in the currently browsed page contains user privacy information.
  • User privacy information can be such as user name, account information, email information, bank account number, password, etc.
  • the second browser parses the currently browsed page, extracts page information from it, and then can obtain the information involved in the currently browsed page, Then, it is detected whether the information involved in the currently browsed page includes user privacy information.
  • the third browser parses the currently browsed page, extracts page information from it, and then can obtain the information involved in the currently browsed page, Then, it is detected whether the information involved in the currently browsed page includes user privacy information.
  • first browser the second browser, and the third browser may be domestic browsers or foreign browsers, and the embodiments of the present application do not limit the types of browsers.
  • first prompt information is used to prompt to switch the current browsing mode.
  • the first browser when a user browses a web page through the first browser among domestic browsers, if the first browser detects that the currently browsed page contains user privacy information, it generates first prompt information, and displays the first browser through the first browser.
  • a prompt message the first prompt message is used to prompt the user to switch the current browsing mode.
  • the first prompt message can be "Your browsing the web involves user privacy, it is recommended to switch to Incognito browse”
  • the first prompt message can be "The page you are browsing involves user privacy, it is recommended to switch to private browsing mode", etc.
  • the second browser detects that the currently browsed page has user privacy information, it generates the first prompt information, and displays the information through the second browser.
  • the first prompt information is used to prompt the user to switch the current browsing mode, for example, the first prompt information may be "Your browsing the web involves user privacy, it is recommended to switch to incognito browsing", and the first prompt information may be "You browse The pages involve user privacy, and it is recommended to switch to incognito browsing mode" and so on.
  • the first prompt information is generated, and the third browser displays the information.
  • the first prompt information, the first prompt information is used to prompt the user to switch the current browsing mode, for example, the first prompt information may be "Your browsing the web involves user privacy, it is recommended to switch to incognito browsing", and the first prompt information may be "You browse The pages involve user privacy, and it is recommended to switch to incognito browsing mode" and so on.
  • the user confirms whether to switch the first browsing mode according to the warm prompt of the first prompt message.
  • screenshots or screen recordings of the currently browsed page are prohibited.
  • the screen capture or screen recording instruction the screen capture or screen recording is not allowed.
  • the browser intelligently detects whether it is necessary to switch to the first browsing mode and warmly reminds the user to pay attention to the user's privacy information, and the user confirms whether to switch the first browsing mode according to the warm prompt. It does not depend on whether the server sends the first browsing mode switching information, but intelligently detects whether the browsed page carries user privacy information through the browser, and then warmly prompts the user whether to switch the first browsing mode to prevent pages that involve user privacy information. Screenshots or screen recordings are taken. The embodiments of the present application can solve the problem of user privacy information leakage caused by screenshots or screen recordings during browser browsing, without user confirmation, any user privacy information is captured or screen recorded.
  • the electronic device can detect whether there is user privacy information in the currently browsed page; if so, generate first prompt information, where the first prompt information is used to prompt to switch the current browsing mode; If the current browsing mode is switched to the first browsing mode, the screen capture or recording of the currently browsed page is prohibited. That is, in this embodiment of the present application, the electronic device can detect whether there is user privacy information in the page that the user is currently browsing, and when there is user privacy information, prompt the user to switch the current browsing mode; when the user switches the current browsing mode to the first browsing mode After the mode, you can disable screen capture or screen recording. Therefore, the embodiments of the present application can effectively protect user privacy information. That is, it can effectively protect the user's private information from being screenshotted or recorded, and prevent it from being shared by the user himself in the WeChat Moments.
  • FIG. 2 is another schematic flowchart of a privacy information protection method provided by an embodiment of the present application.
  • the process may include:
  • the browser can parse the page currently browsed by the user, and extract the information contained in the page from the currently browsed page. For example, when a user uses a first browser to browse a web page on a smartphone, the first browser parses the page currently browsed by the user, and extracts the information contained in the page from the currently browsed page. For another example, when a user browses a web page using a second browser on a smartphone, the second browser parses the page currently browsed by the user, and extracts information contained in the page from the currently browsed page.
  • the third browser parses the page currently browsed by the user, extracts information contained in the page from the currently browsed page, and so on.
  • the information contained in the page is extracted from the currently browsed page for the purpose of subsequently analyzing whether there is user privacy information in the information.
  • the first browsing mode may be an incognito browsing mode.
  • the browser can detect whether the user has previously switched the browsing mode to private browsing mode. If the user has switched the browsing mode to the incognito browsing mode in advance, the page is rendered by the browser in the incognito browsing mode, and then displayed.
  • the browser detects whether the first page element or the second page element exists in the currently browsed page.
  • the first page element is user privacy information that needs to be input by the user, and the first page element may include account number, user name, password, email, name, ID number, mobile phone number, SMS verification code, the city where the unit is located, and the detailed address of the unit , any one or more of unit name, education background and position.
  • FIG. 3 is a schematic diagram of a page including a first page element provided by an embodiment of the present application. It can be seen that Figure 3 contains the first page elements such as account number, user name and email address. The account number, username and email address are required to be entered by the user.
  • the page in Figure 3 involves a submission form, which includes information such as account number, user name, password, and email address.
  • h represents a user name starting with h
  • V represents a user name starting with V.
  • Hypertext Markup Language (Html) tag form where form is the form, method is the method, post is the data upload in the form, and button is the submit button.
  • FIG. 5 is a schematic diagram of another page including a first page element provided by an embodiment of the present application. It can be seen that Figure 5 contains the first page elements such as name, ID number, mobile phone number, SMS verification code, urban area where the unit is located, detailed address of the unit, name of the unit, educational background and position.
  • FIG. 6 is a schematic diagram of a part of code corresponding to the page in FIG. 5 provided by an embodiment of the present application.
  • the second page element may be a page whitelist, such as a bank page, a shopping mall page, a takeaway application software page, a login email page, and the like.
  • the user privacy information exists in the currently browsed page. For example, if it is detected that an account exists in the currently browsed page, it is determined that user privacy information exists in the currently browsed page. If it is detected that the user name exists in the currently browsed page, it is determined that user privacy information exists in the currently browsed page. If it is detected that there is a password in the currently browsed page, it is determined that user privacy information exists in the currently browsed page. If it is detected that a mailbox exists in the currently browsed page, it is determined that user privacy information exists in the currently browsed page.
  • the currently browsed page For example, if it is detected that there is an SMS verification code in the currently browsed page, it is determined that there is user privacy information in the currently browsed page. If it is detected that there is an urban area where the unit is located in the currently browsed page, it is determined that there is user privacy information in the currently browsed page. If it is detected that there is a detailed address of the unit in the currently browsed page, it is determined that there is user privacy information in the currently browsed page. If it is detected that a unit name exists in the currently browsed page, it is determined that user privacy information exists in the currently browsed page. If it is detected that there is an academic degree in the currently browsed page, it is determined that there is user privacy information in the currently browsed page. If it is detected that there is a job title in the currently browsed page, it is determined that there is user privacy information in the currently browsed page.
  • first prompt information is used to prompt to switch the current browsing mode.
  • the process 206 and the process 209 may also be executed.
  • the browser parses the web page and detects that the page you are currently browsing involves user privacy information, it will warmly prompt the user that "the page you are browsing involves user privacy, please switch to incognito browsing" for the user to choose (do not switch by default). If the user feels that the privacy information of the user is important, the user manually selects to switch the current browsing mode to the first browsing mode, and then detects whether a screen capture or screen recording instruction is received. That is, if the user chooses to switch the current browsing mode to the incognito browsing mode after seeing the first prompt message such as "The page you are browsing involves user privacy, please switch to incognito browsing", it will detect whether the user's screenshot or Screen recording command.
  • second prompt information is generated, or the screen recording result cannot be displayed, wherein the second prompt information is used to prompt that the screen capture cannot be taken because of the user's private information.
  • incognito browsing mode the browser does not allow screenshots, or the screen recording effect of the page in incognito browsing mode is black screen or mosaic display.
  • the browser will generate a second prompt message for the screen capture command and display it to the user.
  • the user's privacy information cannot be screened, for example, the second prompt message prompts "privacy involved and cannot be screened", or the browser directly sets the screen recording result to not be displayed for the screen recording command, such as the screen recording result is a black screen or displayed in a mosaic manner.
  • the pages browsed at different browsing times may also change.
  • you want to switch back to the second browsing mode while recording the screen for sharing the user can manually switch to the second browsing mode.
  • the second browsing mode may be a non-incognito browsing mode, that is, a common browsing mode.
  • a non-incognito browsing mode users are allowed to take screenshots and screen recordings, and users are also allowed to share screenshots and screen recording information.
  • a user browses in a non-incognito browsing mode
  • the user is prompted to switch to the incognito browsing mode, and after the user chooses to switch to the incognito browsing mode , you cannot take screenshots or screen recordings of the browsed pages.
  • the user wants to take screenshots or screen recordings of the browsed pages later, the user needs to manually switch back to the non-incognito browsing mode, and the system will not automatically switch to the non-incognito browsing mode. , because it is confirmed by the user, it will not randomly take screenshots or record the screen of the page that the user browses and share it, which can effectively protect the user's privacy information.
  • the user can ignore the prompt or choose to give up the incognito browsing switch, and can manually choose to switch to the non-incognito browsing mode, browse
  • the browser records the behavior of users set to non-private browsing mode.
  • non-incognito browsing mode you can share information by taking screenshots, and you can obtain browser page information by recording the screen.
  • the browser when using a browser to browse a web page, the browser can intelligently detect whether it is necessary to switch to the incognito browsing mode, and warmly remind the user to pay attention to the user's privacy information, and the user confirms whether to switch to the incognito mode according to the warm prompt.
  • Browsing mode It does not depend on whether the server sends the incognito browsing mode switching information, but intelligently detects whether the browsed webpage carries the user's private information through the browser, and then warmly prompts the user whether to switch the incognito mode.
  • the embodiment of the present application can effectively protect the user's private information from being screen-captured and recorded, and prevent the user from sharing the WeChat Moments by himself/herself.
  • FIG. 7 is a schematic diagram of a scenario in which first prompt information is given on a browsed page according to an embodiment of the present application.
  • the browser automatically detects whether the page currently browsed by the user involves user privacy information, and when it is detected that the page currently browsed involves user privacy information, the browser prompts the user to choose to switch to incognito browsing mode.
  • the browser detects that the login page of the food delivery software currently browsed by the user involves the first page elements 301 such as the mobile phone number and the SMS verification code, and generates the first prompt message 302, and the first prompt message 302 is generated.
  • the information 302 is displayed on the current page, and a warm prompt is given through the first prompt information 302, such as "Your browsing the web page involves user privacy, it is recommended to switch to incognito browsing".
  • first page elements 301 such as mobile phone number and SMS verification code are involved in the takeout software login page
  • Generate first prompt information 302 display the first prompt information 302 on the current takeaway software login page, and give a warm prompt through the first prompt information 302, such as "Your browsing the web involves user privacy, it is recommended to switch to incognito browsing".
  • the browser directly detects that it is a takeaway software login page, that is, detects the second page element, and directly believes that the currently browsed page involves user privacy information, then generates the first prompt information 302, and displays the first prompt information 302 on the current takeaway software.
  • a warm prompt is given through the first prompt message 302, such as "Your browsing the web page involves user privacy, it is recommended to switch to incognito browsing".
  • FIG. 8 is a schematic diagram of a scenario in which a user chooses to ignore the first prompt information to take a screenshot according to an embodiment of the present application. For example, when a user sees a warm prompt given on the login page of the food delivery software, "Your browsing the web involves user privacy, it is recommended to switch to incognito browsing", if you think that the user privacy information involved in the current food delivery software login page is not important, the user can ignore the Prompt information, continue browsing, in non-incognito browsing mode, that is, in normal browsing mode, the user can take screenshots or screen recordings of the currently browsed page, and can also take screenshots or screen recordings of other pages browsed subsequently.
  • FIG. 8 illustrates a process in which the screenshot image 303 obtained in the screenshot process is gradually reduced in the current page.
  • FIG. 9 is a schematic diagram of a scenario of switching to an incognito browsing mode provided by an embodiment of the present application.
  • the browser automatically detects whether the login page of the food delivery software currently browsed by the user involves the user's private information. Prompt, prompt "Your browsing the web involves user privacy, it is recommended to switch to incognito browsing", if the user thinks that the user's privacy information involved in the login page of the takeaway software currently being browsed is more important, then choose to switch to incognito browsing mode, you can manually switch to incognito Browsing mode, in the incognito browsing mode, an incognito browsing mode icon 304 as shown in FIG. 9 will appear on the page.
  • FIG. 10 is a schematic diagram of a scenario of starting a soft keyboard in an incognito browsing mode provided by an embodiment of the present application.
  • the incognito browsing mode when the user needs to input a web address in the currently browsed page, he can start the soft keyboard for input. is a black screen.
  • FIG. 11 is a schematic diagram of a scenario of taking a screenshot when a soft keyboard is activated in an incognito browsing mode according to an embodiment of the present application.
  • the second prompt information 306 is generated, and the second prompt information 306 is displayed on the page currently being browsed.
  • the incognito browsing mode when the user takes a screenshot, the user will be prompted that the screenshot cannot be taken, and when the screen is recorded, a black screen display or mosaic display will be performed. Therefore, in the incognito browsing mode, it is impossible to take screenshots or screen recordings, which can prevent the screenshots or recordings of pages involving user private information from being shared without the user's confirmation, which can effectively protect user privacy. information.
  • FIG. 12 is a schematic diagram of a scenario of taking a screenshot when the soft keyboard is not activated in an incognito browsing mode provided by an embodiment of the present application.
  • the incognito browsing mode when the soft keyboard is not activated, if the user takes a screenshot of the currently browsed page, the second prompt information 306 is generated, and the second prompt information 306 is displayed in the currently browsed page.
  • the prompt message 306 prompts "involving private content, and cannot take screenshots". If the user records the screen of the currently browsed page, the entire page except the second prompt message 306 will be displayed in a black screen or in a mosaic manner, that is, in the incognito browsing mode. It is not possible to take screenshots or record the screen below.
  • FIG. 13 is a schematic diagram of a scenario of taking a screenshot of a login interface of food delivery software in an incognito browsing mode according to an embodiment of the present application.
  • the incognito browsing mode when the user browses the login page of the food delivery software, if the user takes a screenshot of the currently browsed food delivery software page, the second prompt information 306 is generated, and the second prompt information 306 is displayed in the currently browsed food delivery software.
  • the second prompt message 306 prompts "involving privacy content, cannot take screenshots". That is, in the incognito browsing mode, the user cannot take screenshots or record the screen of the currently browsed page.
  • the user thinks that the user's privacy information involved in the browsed page is not important or does not involve user's privacy information in the subsequent browsing process, and wants to take a screenshot or record the screen of the browsed page, then Users are required to manually switch to the non-incognito browsing mode, that is, the normal browsing mode. After switching to the non-incognito browsing mode, the user can take screenshots or screen recordings of the browsed pages, which can increase the flexibility of use. The content of the screen has been confirmed by the user, so it can further ensure that the shared content will not reveal the user's private information.
  • FIG. 14 is a schematic structural diagram of a privacy information protection device provided by an embodiment of the present application.
  • the privacy information protection device 400 may include: a detection module 401 , a generation module 402 and a switching module 403 .
  • the detection module 401 is used to detect whether there is user privacy information in the currently browsed page;
  • the generating module 402 is configured to generate first prompt information if yes, wherein the first prompt information is used to prompt to switch the current browsing mode;
  • the switching module 403 is configured to prohibit the screen capture or recording of the currently browsed page if the current browsing mode is switched to the first browsing mode.
  • the detection module 401 can be used to:
  • the first page element or the second page element exists, it is determined that the user privacy information exists in the currently browsed page.
  • the first page element may include account number, user name, password, email address, name, ID number, mobile phone number, SMS verification code, urban area where the unit is located, detailed address of the unit, name of the unit, educational background and any one or more of the positions.
  • the second page element may be a page whitelist.
  • the switching module 403 may be used to:
  • second prompt information is generated, or the screen recording result cannot be displayed, wherein the second prompt information is used to prompt that the screen capture cannot be taken because of the user's private information.
  • the generation module 402 may be used to:
  • the switching module 403 may be used to:
  • the first browsing mode may be an incognito browsing mode.
  • the second browsing mode is a non-private browsing mode.
  • An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, causes the computer to execute the process in the privacy information protection method provided by this embodiment. .
  • An embodiment of the present application further provides an electronic device, including a memory, a processor, and a display module.
  • the processor is configured to execute the method in the privacy information protection method provided in this embodiment by calling a computer program stored in the memory. process.
  • the above-mentioned electronic device may be a mobile terminal such as a tablet computer or a smart phone.
  • the above electronic device may also be a terminal device such as a TV set or a set-top box.
  • FIG. 15 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device 500 may include a display module 501 , a memory 502 , a processor 503 and other components.
  • a display module 501 may include a display module 501 , a memory 502 , a processor 503 and other components.
  • FIG. 15 does not constitute a limitation to the electronic device, and may include more or less components than the one shown, or combine some components, or arrange different components.
  • the display module 501 can be used to realize the display of browsing web pages and the like.
  • the display module 501 may include components such as a display screen and a backlight assembly.
  • Memory 502 may be used to store applications and data.
  • the application program stored in the memory 502 contains executable code.
  • Applications can be composed of various functional modules.
  • the processor 503 executes various functional applications and data processing by running the application programs stored in the memory 502 .
  • the processor 503 is the control center of the electronic device, uses various interfaces and lines to connect various parts of the entire electronic device, and executes the electronic device by running or executing the application program stored in the memory 502 and calling the data stored in the memory 502.
  • the various functions and processing data of the device are used to monitor the electronic equipment as a whole.
  • the processor 503 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 503 executes and stores it in the memory 502 in the application, which executes:
  • first prompt information is used to prompt to switch the current browsing mode
  • the electronic device 500 may include a display module 501 , a memory 502 , a processor 503 , an input unit 504 , an output unit 505 , a speaker 506 and other components.
  • the display module 501 can be used to realize the display of browsing web pages and the like.
  • the display module 501 may include components such as a display screen and a backlight assembly.
  • Memory 502 may be used to store applications and data.
  • the application program stored in the memory 502 contains executable code.
  • Applications can be composed of various functional modules.
  • the processor 503 executes various functional applications and data processing by running the application programs stored in the memory 502 .
  • the processor 503 is the control center of the electronic device, uses various interfaces and lines to connect various parts of the entire electronic device, and executes the electronic device by running or executing the application program stored in the memory 502 and calling the data stored in the memory 502.
  • the various functions and processing data of the device are used to monitor the electronic equipment as a whole.
  • the input unit 504 may be used to receive input numbers, character information, or user characteristic information (such as fingerprints), and generate keyboard, mouse, joystick, optical, or trackball signal input related to user settings and function control.
  • user characteristic information such as fingerprints
  • the output unit 505 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, which may be composed of graphics, text, icons, videos, and any combination thereof.
  • the output unit may include a display panel.
  • Speaker 506 may be used to play sound signals.
  • electronic devices may also include components such as batteries, microphones, and the like.
  • the battery is used to power the various modules of the electronic device, and the microphone can be used to pick up sound signals from the surrounding environment.
  • the processor 503 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 503 executes and stores it in the memory 502 in the application, which executes:
  • first prompt information is used to prompt to switch the current browsing mode
  • the processor 503 when the processor 503 executes to detect whether there is user privacy information in the currently browsed page, it can execute: parse the currently browsed page; detect whether the first browsing mode has been switched; if If no, it is detected whether the first page element or the second page element exists in the currently browsed page; if the first page element or the second page element exists, it is determined that the user exists in the currently browsed page Privacy Information.
  • the first page element may include any one of account number, user name, password, email address, name, ID number, mobile phone number, SMS verification code, urban area where the unit is located, detailed address of the unit, name of the unit, education background and position one or more.
  • the second page element may be a page whitelist.
  • the first browsing mode may be an incognito browsing mode.
  • the processor 503 when the processor 503 executes the process of prohibiting the screen capture or recording of the currently browsed page if the current browsing mode is switched to the first browsing mode, the processor 503 may also execute: if the current browsing mode is The browsing mode is switched to the first browsing mode, and it is detected whether a screenshot or screen recording instruction is received; if so, a second prompt message is generated, or the screen recording result cannot be displayed, wherein the second prompt message is used to prompt that the user's privacy information is involved Can't take screenshot.
  • the processor 503 may execute, after generating the first prompt information if the yes, the processor 503 may further execute: if the current browsing mode is switched to the second browsing mode, allow the currently browsed page to be viewed Take a screenshot or record a screen.
  • the processor 503 may execute, after prohibiting the screen capture or recording of the currently browsed page if the current browsing mode is switched to the first browsing mode: if the first browsing mode is set by the first browsing mode When the browsing mode is switched back to the second browsing mode, a screen shot or a screen recording of the browsed page is allowed.
  • the second browsing mode may be a non-incognito browsing mode.
  • the privacy information protection device provided by the embodiment of the present application and the privacy information protection method in the above embodiment belong to the same concept, and any one of the privacy information protection method provided in the embodiment of the privacy information protection method can be executed on the privacy information protection device.
  • the specific implementation process is described in the embodiment of the privacy information protection method, which will not be repeated here.
  • the privacy information protection method described in the embodiments of the present application can be controlled by a computer program.
  • the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and the execution process can include the implementation of the privacy information protection method. example process.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), and the like.
  • each functional module may be integrated in one processing chip, or each module may exist physically alone, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, etc. .

Abstract

The present application discloses a privacy information protection method and apparatus, a storage medium, and an electronic device. The method comprises: detecting whether user privacy information is present on a page currently being browsed; if so, generating first instruction information used to instruct switching of a current browsing mode; and if the current browsing mode is switched to a first browsing mode, prohibiting screen capturing or screen recording to be performed on the page currently being browsed.

Description

隐私信息保护方法、装置、存储介质及电子设备Privacy information protection method, device, storage medium and electronic device
本申请要求于2020年10月13日提交中国专利局、申请号为202011092871.2、发明名称为“隐私信息保护方法、装置、存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011092871.2 and the invention title "Privacy Information Protection Method, Device, Storage Medium and Electronic Device" filed with the China Patent Office on October 13, 2020, the entire contents of which are by reference Incorporated in this application.
技术领域technical field
本申请涉及电子设备技术领域,具体涉及一种隐私信息保护方法、装置、存储介质及电子设备。The present application relates to the technical field of electronic devices, and in particular, to a method, device, storage medium and electronic device for protecting privacy information.
背景技术Background technique
随着互联网技术的发展,人类社会已经迈入了网络时代,浏览器成为人们通过电子设备获取各种信息的重要通道。随着电子设备技术的发展,诸如智能手机等的电子设备基本都支持截屏和录屏功能,人们在使用浏览器浏览信息时,习惯使用电子设备的截屏或录屏功能,将浏览的信息截取或者录制后分享给朋友。With the development of Internet technology, human society has entered the Internet age, and the browser has become an important channel for people to obtain various information through electronic devices. With the development of electronic device technology, electronic devices such as smart phones basically support screen capture and screen recording functions. When people use browsers to browse information, they are accustomed to using the screen capture or screen recording functions of electronic devices to capture or record the browsing information. Share with friends after recording.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种隐私信息保护方法、装置、存储介质及电子设备,可以有效的保护用户隐私信息。The embodiments of the present application provide a privacy information protection method, device, storage medium and electronic device, which can effectively protect user privacy information.
第一方面,本申请实施例提供一种隐私信息保护方法,应用于电子设备,包括:In a first aspect, an embodiment of the present application provides a privacy information protection method, which is applied to an electronic device, including:
检测当前浏览的页面中是否存在用户隐私信息;Detect whether there is user privacy information in the currently browsed page;
若是,则生成第一提示信息,其中,所述第一提示信息用于提示切换当前浏览模式;If so, generating first prompt information, wherein the first prompt information is used to prompt to switch the current browsing mode;
若所述当前浏览模式切换为第一浏览模式,则禁止对所述当前浏览的页面进行截屏或录屏。If the current browsing mode is switched to the first browsing mode, screen capture or recording of the currently browsed page is prohibited.
第二方面,本申请实施例提供一种隐私信息保护装置,应用于电子设备,包括:In a second aspect, an embodiment of the present application provides a privacy information protection device, which is applied to an electronic device, including:
检测模块,用于检测当前浏览的页面中是否存在用户隐私信息;A detection module, used to detect whether there is user privacy information in the currently browsed page;
生成模块,用于若是,则生成第一提示信息,其中,所述第一提示信息用于提示切换当前浏览模式;a generating module, configured to generate first prompt information if yes, wherein the first prompt information is used to prompt to switch the current browsing mode;
切换模块,用于若所述当前浏览模式切换为第一浏览模式,则禁止对所述当前浏览的页面进行截屏或录屏。The switching module is configured to prohibit the screen capture or screen recording of the currently browsed page if the current browsing mode is switched to the first browsing mode.
第三方面,本申请实施例提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行本申请实施例提供的隐私信息保护方法中的流程。In a third aspect, the embodiments of the present application provide a storage medium on which a computer program is stored, and when the computer program is executed on a computer, the computer is made to execute the process in the privacy information protection method provided by the embodiments of the present application .
第四方面,本申请实施例还提供一种电子设备,包括存储器,处理器以及显示模组,所述处理器通过调用所述存储器中存储的计算机程序,用于执行本申请实施例提供的隐私信息保护方法中的流程。In a fourth aspect, the embodiments of the present application further provide an electronic device, including a memory, a processor, and a display module. The processor is used to execute the privacy provided by the embodiments of the present application by invoking a computer program stored in the memory. Processes in Information Protection Methods.
附图说明Description of drawings
下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其有益效果显而易见。The technical solutions of the present application and the beneficial effects thereof will be apparent through the detailed description of the specific embodiments of the present application in conjunction with the accompanying drawings.
图1是本申请实施例提供的隐私信息保护方法的流程示意图。FIG. 1 is a schematic flowchart of a privacy information protection method provided by an embodiment of the present application.
图2是本申请实施例提供的隐私信息保护方法的另一流程示意图。FIG. 2 is another schematic flowchart of a privacy information protection method provided by an embodiment of the present application.
图3是本申请实施例提供的含有第一页面元素的一个页面示意图。FIG. 3 is a schematic diagram of a page including a first page element provided by an embodiment of the present application.
图4是本申请实施例提供的与图3中的页面对应的部分代码示意图。FIG. 4 is a schematic diagram of a part of the code corresponding to the page in FIG. 3 provided by an embodiment of the present application.
图5是本申请实施例提供的含有第一页面元素的另一个页面示意图。FIG. 5 is a schematic diagram of another page including a first page element provided by an embodiment of the present application.
图6是本申请实施例提供的与图5中的页面对应的部分代码示意图。FIG. 6 is a schematic diagram of a part of code corresponding to the page in FIG. 5 provided by an embodiment of the present application.
图7是本申请实施例提供的在浏览的页面给出第一提示信息的场景示意图。FIG. 7 is a schematic diagram of a scenario in which first prompt information is given on a browsed page according to an embodiment of the present application.
图8是本申请实施例提供的用户选择忽略第一提示信息进行截屏的场景示意图。FIG. 8 is a schematic diagram of a scenario in which a user chooses to ignore the first prompt information to take a screenshot according to an embodiment of the present application.
图9是本申请实施例提供的切换到无痕浏览模式的场景示意图。FIG. 9 is a schematic diagram of a scenario of switching to an incognito browsing mode provided by an embodiment of the present application.
图10是本申请实施例提供的在无痕浏览模式下启动软键盘的场景示意图。FIG. 10 is a schematic diagram of a scenario of starting a soft keyboard in an incognito browsing mode provided by an embodiment of the present application.
图11是本申请实施例提供的在无痕浏览模式下启动软键盘时进行截屏的场景示意图。FIG. 11 is a schematic diagram of a scenario of taking a screenshot when a soft keyboard is activated in an incognito browsing mode according to an embodiment of the present application.
图12是本申请实施例提供的在无痕浏览模式下未启动软键盘时进行截屏的场景示意图。FIG. 12 is a schematic diagram of a scenario of taking a screenshot when the soft keyboard is not activated in an incognito browsing mode according to an embodiment of the present application.
图13是本申请实施例提供的在无痕浏览模式下对外卖软件登录界面进行截屏的场景示意图。FIG. 13 is a schematic diagram of a scenario of taking a screenshot of a login interface of an outsourcing software in an incognito browsing mode according to an embodiment of the present application.
图14是本申请实施例提供的隐私信息保护装置的结构示意图。FIG. 14 is a schematic structural diagram of a privacy information protection device provided by an embodiment of the present application.
图15是本申请实施例提供的电子设备的结构示意图。FIG. 15 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图16是本申请实施例提供的电子设备的另一结构示意图。FIG. 16 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
请参照图示,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Please refer to the drawings, wherein the same component symbols represent the same components, and the principles of the present application are exemplified by being implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the present application and should not be construed as limiting other specific embodiments of the present application not detailed herein.
随着互联网技术的发展,人类社会已经迈入了网络时代,人们通过电子设备中的浏览器可以浏览各种信息,因此浏览器成为人们通过电子设备(如手机,电脑,电视,机顶盒等)获取各种信息的重要通道。当用户在使用浏览器浏览网页时,经常会分享链接。With the development of Internet technology, human society has entered the Internet era. People can browse various information through browsers in electronic devices. Therefore, browsers have become the way people obtain information through electronic devices (such as mobile phones, computers, TVs, set-top boxes, etc.). important channel for all kinds of information. Links are often shared when users browse the web using their browsers.
随着诸如手机等电子设备技术的发展,智能手机基本都支持截屏和录屏功能,用户习惯使用它们截取或者录制浏览的信息分享给朋友,发微信朋友圈等。由于截屏、录屏功能基本都是伴随智能手机系统的,针对运行在智能手机系统的浏览器应用,当用户需要截屏或者录屏时,很容易暴露用户的隐私信息。With the development of electronic device technology such as mobile phones, smartphones basically support screen capture and screen recording functions, and users are accustomed to using them to capture or record browsing information to share with friends, send WeChat Moments, etc. Since the screen capture and screen recording functions are basically accompanied by the smartphone system, for the browser application running on the smartphone system, when the user needs to take a screenshot or record the screen, it is easy to expose the user's private information.
比如,在相关技术中,有些国内浏览器支持无痕浏览器,在一定程度上可以有效的防止用户信息泄露,但是当用户浏览需要用户信息登录的页面时,如当用户输入银行账号,登录账号等涉及用户信息时,使用截屏能截取用户信息,使用录屏能录制用户信息,这样很容易暴露用户的隐私信息。虽然浏览器应用可以提供无痕浏览器模式,该无痕浏览器模式指的是不保存用户隐私信息,如不会保存任何表单历史、搜索历史、下载历史、浏览历史、cookie或者Internet临时文件等,但是在用户使用截屏或者录屏录制时,还是无法有效的保护用户隐私信息被截取或者录制的可能。由此可知,用户在浏览器浏览过程中的截屏或者录屏,在未经过用户确认的情况下,任何用户隐私信息被截取或者录屏引起隐私信息泄露的问题。For example, in the related art, some domestic browsers support incognito browsers, which can effectively prevent user information from leaking to a certain extent. When user information is involved, using screenshots can capture user information, and using screen recording can record user information, which can easily expose users' private information. Although browser applications can provide an incognito browser mode, the incognito browser mode refers to not saving user private information, such as any form history, search history, download history, browsing history, cookies or temporary Internet files, etc. However, when the user uses screen capture or screen recording to record, it is still unable to effectively protect the possibility of user privacy information being intercepted or recorded. It can be seen from this that any user's private information is captured or screen-recorded without the user's confirmation of the screenshot or screen recording during the browser browsing process, causing the problem of privacy information leakage.
又如,国外浏览器相较于国内浏览器,其隐私信息保护要安全些,在用户通过无痕浏览模式浏览网页时,用户在任何页面截屏时,提示“涉及隐私,无法截屏”,录屏时针对无痕浏览模式的浏览器浏览的任何页面录屏结果是黑屏显示,其他页面正常显示,也有效的防止录制用户隐私信息页面。由此可知,用户通过无痕浏览模式浏览网页时,即使浏览的页面不涉及用户隐私信息,也同样不能截屏或录屏,即在无痕浏览模式下浏览网页时,所有的页面都不允许截屏或录屏。当用户浏览的到不涉及用户隐私信息的页面时,用户有可能想要将一些有趣的信息截屏或录屏分享给朋友,然而由于当前无痕浏览模式的限制,不允许截屏或录屏,因此用户想要分享的不涉及用户隐私信息的内容就无法分享出去,这种针对用户浏览的任何页面都不能截屏或录屏分享的用户隐私保护方法,显然严重影响用户的使用体验。Another example is that foreign browsers are more secure in protecting privacy information than domestic browsers. When a user browses a web page through incognito browsing mode, when the user takes a screenshot of any page, it will prompt "Privacy involved, cannot take screenshots", and record the screen. At the same time, the screen recording result of any page browsed by the browser in the incognito browsing mode is a black screen display, and other pages are displayed normally, which also effectively prevents the recording of user privacy information pages. It can be seen from this that when a user browses a web page in the incognito browsing mode, even if the page they browse does not involve the user's private information, they cannot take screenshots or record the screen. or screen recording. When the user browses to a page that does not involve the user's private information, the user may want to share some interesting screenshots or recordings with friends. However, due to the limitations of the current incognito browsing mode, screenshots or recordings are not allowed. Therefore, The content that the user wants to share that does not involve the user's private information cannot be shared. This kind of user privacy protection method for any page that the user browses cannot take screenshots or screen recordings for sharing, which obviously seriously affects the user's experience.
为了解决上述技术问题,有效的保护用户隐私信息,本申请实施例当用户使用浏览器浏览网页时,浏览涉及用户隐私信息的页面,且用户需要使用截屏或者录屏等功能时,提示用户涉及隐私信息,是否允许截屏或者录屏的信息不显示涉及的用户隐私信息,以解决用户通过截屏或录屏分享信息时,泄露用户隐私信息的问题。以下将对其进行详细说明。In order to solve the above technical problems and effectively protect user privacy information, in this embodiment of the present application, when a user browses a web page with a browser, browses a page involving user privacy information, and the user needs to use functions such as screen capture or screen recording, the user is prompted that privacy is involved information, whether to allow screen capture or screen recording information not to display the involved user privacy information, so as to solve the problem of leaking user privacy information when users share information through screen capture or screen recording. It will be explained in detail below.
可以理解的是,本申请实施例的执行主体可以是诸如智能手机、平板电脑、电视、机顶盒等具有显示模组的电子设备。It can be understood that, the execution body of the embodiment of the present application may be an electronic device having a display module, such as a smart phone, a tablet computer, a TV, and a set-top box.
本申请实施例提供一种隐私信息保护方法,应用于电子设备,所述隐私信息保护方法包括:An embodiment of the present application provides a privacy information protection method, which is applied to an electronic device, and the privacy information protection method includes:
检测当前浏览的页面中是否存在用户隐私信息;Detect whether there is user privacy information in the currently browsed page;
若是,则生成第一提示信息,其中,所述第一提示信息用于提示切换当前浏览模式;If so, generating first prompt information, wherein the first prompt information is used to prompt to switch the current browsing mode;
若所述当前浏览模式切换为第一浏览模式,则禁止对所述当前浏览的页面进行截屏或录屏。If the current browsing mode is switched to the first browsing mode, screen capture or recording of the currently browsed page is prohibited.
在一实施例中,所述检测当前浏览的页面中是否存在用户隐私信息,包括:In one embodiment, the detecting whether there is user privacy information in the currently browsed page includes:
对所述当前浏览的页面进行解析;parsing the currently browsed page;
检测是否已切换为所述第一浏览模式;detecting whether the first browsing mode has been switched;
若否,则检测所述当前浏览的页面中是否存在第一页面元素或第二页面元素;If not, detecting whether there is a first page element or a second page element in the currently browsed page;
若存在所述第一页面元素或第二页面元素,则确定所述当前浏览的页面中存在所述用户隐私信息。If the first page element or the second page element exists, it is determined that the user privacy information exists in the currently browsed page.
在一实施例中,所述第一页面元素包括账号、用户名、密码、邮箱、姓名、身份证号、手机号、短信验证码、单位所在城区、单位详细地址、单位名称、学历和职务中的任意一种或多种。In one embodiment, the first page elements include account number, user name, password, email address, name, ID number, mobile phone number, SMS verification code, urban area where the unit is located, detailed address of the unit, name of the unit, educational background and position. any one or more of them.
在一实施例中,所述第二页面元素为页面白名单。In one embodiment, the second page element is a page whitelist.
在一实施例中,所述若所述当前浏览模式切换为第一浏览模式,则禁止对所述当前浏览的页面进行截屏或录屏,包括:In one embodiment, if the current browsing mode is switched to the first browsing mode, prohibiting the screen capture or recording of the currently browsed page includes:
若所述当前浏览模式切换为第一浏览模式,检测是否收到截屏或录屏指令;If the current browsing mode is switched to the first browsing mode, detecting whether a screenshot or screen recording instruction is received;
若是,则生成第二提示信息,或者录屏结果不能显示,其中,所述第二提示信息用于提示涉及用户隐私信息无法截屏。If so, second prompt information is generated, or the screen recording result cannot be displayed, wherein the second prompt information is used to prompt that the screen capture cannot be taken because of the user's private information.
在一实施例中,在所述若是,则生成第一提示信息之后,所述隐私信息保护方法还包括:In an embodiment, after the first prompt information is generated if the yes, the privacy information protection method further includes:
若所述当前浏览模式切换为第二浏览模式,则允许对所述当前浏览的页面进行截屏或录屏。If the current browsing mode is switched to the second browsing mode, a screen shot or a screen recording of the currently browsed page is allowed.
在一实施例中,在若所述当前浏览模式切换为第一浏览模式,则禁止对所述当前浏览的页面进行截屏或录屏之后,所述隐私信息保护方法还包括:In an embodiment, if the current browsing mode is switched to the first browsing mode, after the screen capture or recording of the currently browsed page is prohibited, the privacy information protection method further includes:
若由所述第一浏览模式切换回所述第二浏览模式,则允许对浏览的页面进行截屏或录屏。If the first browsing mode is switched back to the second browsing mode, a screen shot or a screen recording of the browsed page is allowed.
在一实施例中,所述第一浏览模式为无痕浏览模式。In one embodiment, the first browsing mode is an incognito browsing mode.
在一实施例中,所述第二浏览模式为非无痕浏览模式。In one embodiment, the second browsing mode is a non-private browsing mode.
请参阅图1,图1是本申请实施例提供的隐私信息保护方法的流程示意图,流程可以包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a privacy information protection method provided by an embodiment of the present application. The process may include:
101、检测当前浏览的页面中是否存在用户隐私信息。101. Detect whether there is user privacy information in the currently browsed page.
比如,用户采用电子设备中的浏览器浏览网页时,浏览器可以自动检测网页是否涉及用户隐私信息。例如,当用户采用智能手机中的第一浏览器浏览网页时,该第一浏览器对当前浏览的页面进行解析,从中提取页面信息,进而可以获取到当前浏览的页面中所涉及的信息,然后检测当前浏览的页面中所涉及的信息中是否包含用户隐私信息。用户隐私信息可以是诸如用户名,账号信息,邮箱信息,银行账号,密码等。For example, when a user uses a browser in an electronic device to browse a web page, the browser can automatically detect whether the web page involves the user's private information. For example, when the user uses the first browser in the smartphone to browse the web page, the first browser parses the currently browsed page, extracts page information from it, and then can obtain the information involved in the currently browsed page, and then Detect whether the information involved in the currently browsed page contains user privacy information. User privacy information can be such as user name, account information, email information, bank account number, password, etc.
又如,当用户采用智能手机中的第二浏览器浏览网页时,该第二浏览器对当前浏览的页面进行解析,从中提取页面信息,进而可以获取到当前浏览的页面中所涉及的信息,然后检测当前浏览的页面中所涉及的信息中是否包含用户隐私信息。For another example, when the user uses the second browser in the smartphone to browse the web page, the second browser parses the currently browsed page, extracts page information from it, and then can obtain the information involved in the currently browsed page, Then, it is detected whether the information involved in the currently browsed page includes user privacy information.
再如,当用户采用智能手机中的第三浏览器浏览网页时,该第三浏览器对当前浏览的页面进行解析,从中提取页面信息,进而可以获取到当前浏览的页面中所涉及的信息,然后检测当前浏览的页面中所涉及的信息中是否包含用户隐私信息。For another example, when the user uses the third browser in the smart phone to browse the web page, the third browser parses the currently browsed page, extracts page information from it, and then can obtain the information involved in the currently browsed page, Then, it is detected whether the information involved in the currently browsed page includes user privacy information.
需要说明的是,第一浏览器、第二浏览器、第三浏览器可以是国内浏览器,也可以是国外浏览器,本申请实施例对浏览器的类型不做限定。It should be noted that the first browser, the second browser, and the third browser may be domestic browsers or foreign browsers, and the embodiments of the present application do not limit the types of browsers.
102、若是,则生成第一提示信息,其中,第一提示信息用于提示切换当前浏览模式。102. If yes, generate first prompt information, where the first prompt information is used to prompt to switch the current browsing mode.
比如,当用户通过国内浏览器中的第一浏览器浏览网页时,如果第一浏览器检测到当前浏览的页面存在用户隐私信息,则生成第一提示信息,并通过第一浏览器显示该第一提示信息,该第一提示信息用于提示用户切换当前浏览模式,如第一提示信息可以是“您浏览网页涉及用户隐私,建议切换无痕浏览(Incognito browse)”,第一提示信息可以是“您浏览的页面涉及用户隐私,建议切换到无痕浏览模式”,等等。For example, when a user browses a web page through the first browser among domestic browsers, if the first browser detects that the currently browsed page contains user privacy information, it generates first prompt information, and displays the first browser through the first browser. A prompt message, the first prompt message is used to prompt the user to switch the current browsing mode. For example, the first prompt message can be "Your browsing the web involves user privacy, it is recommended to switch to Incognito browse", the first prompt message can be "The page you are browsing involves user privacy, it is recommended to switch to private browsing mode", etc.
又如,当用户通过国内浏览器中的第二浏览器浏览网页时,如果第二浏览器检测到当前浏览的页面存在用户隐私信息,则生成第一提示信息,并通过第二浏览器显示该第一提示信息,该第一提示信息用于提示用户切换当前浏览模式,如第一提示信息可以是“您浏览网页涉及用户隐私,建议切换无痕浏览”,第一提示信息可以是“您浏览的页面涉及用户隐私,建议切换到无痕浏览模式”等。For another example, when the user browses a webpage through the second browser in the domestic browser, if the second browser detects that the currently browsed page has user privacy information, it generates the first prompt information, and displays the information through the second browser. The first prompt information, the first prompt information is used to prompt the user to switch the current browsing mode, for example, the first prompt information may be "Your browsing the web involves user privacy, it is recommended to switch to incognito browsing", and the first prompt information may be "You browse The pages involve user privacy, and it is recommended to switch to incognito browsing mode" and so on.
再如,当用户通过国外浏览器中的第三浏览器浏览网页时,如果第三浏览器检测到当前浏览的页面存在用户隐私信息,则生成第一提示信息,并通过第三浏览器显示该第一提示信息,该第一提示信息用于提示用户切换当前浏览模式,如第一提示信息可以是“您浏览网页涉及用户隐私,建议切换无痕浏览”,第一提示信息可以是“您浏览的页面涉及用户隐私,建议切换到无痕浏览模式”等。用户根据第一提示信息的温馨提示,确认是否切换第一浏览模式。For another example, when the user browses a web page through a third browser in a foreign browser, if the third browser detects that there is user privacy information in the currently browsed page, the first prompt information is generated, and the third browser displays the information. The first prompt information, the first prompt information is used to prompt the user to switch the current browsing mode, for example, the first prompt information may be "Your browsing the web involves user privacy, it is recommended to switch to incognito browsing", and the first prompt information may be "You browse The pages involve user privacy, and it is recommended to switch to incognito browsing mode" and so on. The user confirms whether to switch the first browsing mode according to the warm prompt of the first prompt message.
若当前浏览模式切换为第一浏览模式,则禁止对当前浏览的页面进行截屏或录屏。If the current browsing mode is switched to the first browsing mode, screenshots or screen recordings of the currently browsed page are prohibited.
比如,若用户根据第一提示信息的温馨提示,将当前浏览模式切换为第一浏览模式,在该第一浏览模式下,禁止对当前浏览的页面进行截屏或录屏。如,当用户选择切换到第一浏览模式后,用户在该第一浏览模式下浏览网页时,如果收到截屏或录屏的指令,则不允许截屏或录屏。For example, if the user switches the current browsing mode to the first browsing mode according to the warm prompt of the first prompt information, in the first browsing mode, screenshots or screen recordings of the currently browsed page are prohibited. For example, after the user chooses to switch to the first browsing mode, when the user browses the web page in the first browsing mode, if the user receives a screen capture or screen recording instruction, the screen capture or screen recording is not allowed.
由此可知,当用户使用浏览器浏览网页时,浏览器智能检测是否需要切换到第一浏览模式并温馨提示用户注意用户隐私信息,用户根据温馨提示确认是否切换第一浏览模式。不依赖服务端是否下发第一浏览模式切换信息,而是通过浏览器智能检测所浏览的页面是否携带用户隐私信息,进而温馨提示用户是否切换第一浏览模式,以防止涉及用户隐私信息的页面被截屏或录屏。本申请实施例可以解决在浏览器浏览过程中的截屏或录屏,在未经过用户确认的情况下,任何用户隐私信息被截取或者录屏所引起的用户隐私信息泄露的问题。It can be seen that when a user browses a web page with a browser, the browser intelligently detects whether it is necessary to switch to the first browsing mode and warmly reminds the user to pay attention to the user's privacy information, and the user confirms whether to switch the first browsing mode according to the warm prompt. It does not depend on whether the server sends the first browsing mode switching information, but intelligently detects whether the browsed page carries user privacy information through the browser, and then warmly prompts the user whether to switch the first browsing mode to prevent pages that involve user privacy information. Screenshots or screen recordings are taken. The embodiments of the present application can solve the problem of user privacy information leakage caused by screenshots or screen recordings during browser browsing, without user confirmation, any user privacy information is captured or screen recorded.
可以理解的是,本申请实施例中,电子设备可以检测当前浏览的页面中是否存在用户隐私信息;若是,则生成第一提示信息,其中,该第一提示信息用于提示切换当前浏览模式;若当前浏览模式切换为第一浏览模式,则禁止对该当前浏览的页面进行截屏或录屏。即,本申请实施例中,电子设备可以检测用户当前浏览的页面中是否存在用户隐私信息,当存在用户隐私信息时,则提示用户切换当前浏览模式;当用户将当前浏览模式切换到第一浏览模式后,就可以禁止截屏或录屏。因此,本申请实施例可以有效的保护用户隐私信息。即可以有效的保护用户隐私信息被截屏或录屏,防止被用户自己分享微信朋友圈等。It can be understood that, in this embodiment of the present application, the electronic device can detect whether there is user privacy information in the currently browsed page; if so, generate first prompt information, where the first prompt information is used to prompt to switch the current browsing mode; If the current browsing mode is switched to the first browsing mode, the screen capture or recording of the currently browsed page is prohibited. That is, in this embodiment of the present application, the electronic device can detect whether there is user privacy information in the page that the user is currently browsing, and when there is user privacy information, prompt the user to switch the current browsing mode; when the user switches the current browsing mode to the first browsing mode After the mode, you can disable screen capture or screen recording. Therefore, the embodiments of the present application can effectively protect user privacy information. That is, it can effectively protect the user's private information from being screenshotted or recorded, and prevent it from being shared by the user himself in the WeChat Moments.
请参阅图2,图2为本申请实施例提供的隐私信息保护方法的另一流程示意图,流程可以包括:Please refer to FIG. 2. FIG. 2 is another schematic flowchart of a privacy information protection method provided by an embodiment of the present application. The process may include:
201、对当前浏览的页面进行解析。201. Analyze the currently browsed page.
比如,当用户采用浏览器浏览网页时,浏览器可以对用户当前浏览的页面进行解析,从该当前浏览的页面中提取该页面所包含的信息。比如,当用户在智能手机上采用第一浏览器浏览网页时,该第一浏览器对用户当前浏览的页面进行解析,从该当前浏览的页面中 提取该页面所包含的信息。又如,当用户在智能手机上采用第二浏览器浏览网页时,该第二浏览器对用户当前浏览的页面进行解析,从该当前浏览的页面中提取该页面所包含的信息。再如,当用户在智能手机上采用第三浏览器浏览网页时,该第三浏览器对用户当前浏览的页面进行解析,从该当前浏览的页面中提取该页面所包含的信息,等等。从当前浏览的页面中提取该页面所包含的信息,是为了后续分析该信息中是否存在用户隐私信息。For example, when a user uses a browser to browse a web page, the browser can parse the page currently browsed by the user, and extract the information contained in the page from the currently browsed page. For example, when a user uses a first browser to browse a web page on a smartphone, the first browser parses the page currently browsed by the user, and extracts the information contained in the page from the currently browsed page. For another example, when a user browses a web page using a second browser on a smartphone, the second browser parses the page currently browsed by the user, and extracts information contained in the page from the currently browsed page. For another example, when a user browses a web page using a third browser on a smartphone, the third browser parses the page currently browsed by the user, extracts information contained in the page from the currently browsed page, and so on. The information contained in the page is extracted from the currently browsed page for the purpose of subsequently analyzing whether there is user privacy information in the information.
202、检测是否已切换为第一浏览模式。202. Detect whether the first browsing mode has been switched.
比如,检测用户是否事先已经将浏览模式切换为第一浏览模式。本申请实施例中,第一浏览模式可以是无痕浏览模式。浏览器可以检测用户是否已经事先将浏览模式切换为无痕浏览模式。如果用户已经事先将浏览模式切换为无痕浏览模式,则在该无痕浏览模式下通过浏览器进行页面渲染,然后进行显示。For example, it is detected whether the user has switched the browsing mode to the first browsing mode in advance. In this embodiment of the present application, the first browsing mode may be an incognito browsing mode. The browser can detect whether the user has previously switched the browsing mode to private browsing mode. If the user has switched the browsing mode to the incognito browsing mode in advance, the page is rendered by the browser in the incognito browsing mode, and then displayed.
203、若否,则检测当前浏览的页面中是否存在第一页面元素或第二页面元素。203. If not, detect whether there is a first page element or a second page element in the currently browsed page.
比如,如果用户未事先将浏览模式切换为第一浏览模式,即用户未事先将浏览模式切换为无痕浏览模式,则浏览器检测当前浏览的页面中是否存在第一页面元素或第二页面元素。其中,第一页面元素是需要用户输入的用户隐私信息,第一页面元素可以包括账号、用户名、密码、邮箱、姓名、身份证号、手机号、短信验证码、单位所在城区、单位详细地址、单位名称、学历和职务中的任意一种或多种。For example, if the user does not switch the browsing mode to the first browsing mode in advance, that is, the user does not switch the browsing mode to the incognito browsing mode in advance, the browser detects whether the first page element or the second page element exists in the currently browsed page. . Among them, the first page element is user privacy information that needs to be input by the user, and the first page element may include account number, user name, password, email, name, ID number, mobile phone number, SMS verification code, the city where the unit is located, and the detailed address of the unit , any one or more of unit name, education background and position.
请参阅图3,图3是本申请实施例提供的含有第一页面元素的一个页面示意图。可以看出图3中含有账号、用户名和邮箱等第一页面元素。账号、用户名和邮箱是需要用户输入的。图3中的页面涉及提交表单,该提交表单中包括账号、用户名、密码和邮箱等信息。图3中的h表示以h开头的用户名,V表示以V开头的用户名。Please refer to FIG. 3 . FIG. 3 is a schematic diagram of a page including a first page element provided by an embodiment of the present application. It can be seen that Figure 3 contains the first page elements such as account number, user name and email address. The account number, username and email address are required to be entered by the user. The page in Figure 3 involves a submission form, which includes information such as account number, user name, password, and email address. In Figure 3, h represents a user name starting with h, and V represents a user name starting with V.
请参阅图4,图4是本申请实施例提供的与图3中的页面对应的部分代码示意图。如果检测到图4中的代码中<form method=“post”><button></form>,则表示涉及到提交表单方法,将表单中的账号、用户名、密码和邮箱进行提交。超文本链接标示语言(Hypertext Markup Language,Html)标签form,其中,form为表单,method为方法,post为表单中的数据上传,button为提交按钮。Please refer to FIG. 4 . FIG. 4 is a schematic diagram of a part of the code corresponding to the page in FIG. 3 provided by an embodiment of the present application. If it is detected that <form method="post"><button></form> in the code in Figure 4, it means that the form submission method is involved, and the account number, user name, password and email address in the form are submitted. Hypertext Markup Language (Html) tag form, where form is the form, method is the method, post is the data upload in the form, and button is the submit button.
请参阅图5,图5是是本申请实施例提供的含有第一页面元素的另一个页面示意图。可以看出图5中含有姓名、身份证号、手机号、短信验证码、单位所在城区、单位详细地址、单位名称、学历和职务等第一页面元素。图6是本申请实施例提供的与图5中的页面对应的部分代码示意图。如果检测到图6中的代码<input/>,表示识别用户输入的信息;input type为输入类型,<input type=”tel”/>表示输入类型为电话号码类,<input type="email"/>表示输入类型为邮箱类,<input type="submit"/>表示提交所有输入的信息。Please refer to FIG. 5. FIG. 5 is a schematic diagram of another page including a first page element provided by an embodiment of the present application. It can be seen that Figure 5 contains the first page elements such as name, ID number, mobile phone number, SMS verification code, urban area where the unit is located, detailed address of the unit, name of the unit, educational background and position. FIG. 6 is a schematic diagram of a part of code corresponding to the page in FIG. 5 provided by an embodiment of the present application. If the code <input/> in Figure 6 is detected, it means identifying the information input by the user; input type is the input type, <input type="tel"/> means the input type is phone number type, <input type="email" /> indicates that the input type is mailbox type, and <input type="submit"/> indicates that all input information is submitted.
在一种实施方式中,第二页面元素可以为页面白名单,如银行页面,购物商城页面,外卖应用软件页面,登录邮箱页面等。In one embodiment, the second page element may be a page whitelist, such as a bank page, a shopping mall page, a takeaway application software page, a login email page, and the like.
204、若存在第一页面元素或第二页面元素,则确定当前浏览的页面中存在用户隐私信息。204. If there is the first page element or the second page element, determine that there is user privacy information in the currently browsed page.
比如,若检测到当前浏览的页面中存在第一页面元素或第二页面元素,则确定当前浏览的页面中存在用户隐私信息。如,若检测到当前浏览的页面中存在账号,则确定当前浏览的页面中存在用户隐私信息。若检测到当前浏览的页面中存在用户名,则确定当前浏览的页面中存在用户隐私信息。若检测到当前浏览的页面中存在密码,则确定当前浏览的页面中存在用户隐私信息。若检测到当前浏览的页面中存在邮箱,则确定当前浏览的页面中存在用户隐私信息。若检测到当前浏览的页面中存在姓名,则确定当前浏览的页面中存在用户隐私信息。若检测到当前浏览的页面中存在身份证号,则确定当前浏览的页面中存在用户隐私信息。若检测到当前浏览的页面中存在手机号,则确定当前浏览的页面中存在用户隐私信息。For example, if it is detected that the first page element or the second page element exists in the currently browsed page, it is determined that the user privacy information exists in the currently browsed page. For example, if it is detected that an account exists in the currently browsed page, it is determined that user privacy information exists in the currently browsed page. If it is detected that the user name exists in the currently browsed page, it is determined that user privacy information exists in the currently browsed page. If it is detected that there is a password in the currently browsed page, it is determined that user privacy information exists in the currently browsed page. If it is detected that a mailbox exists in the currently browsed page, it is determined that user privacy information exists in the currently browsed page. If it is detected that a name exists in the currently browsed page, it is determined that user privacy information exists in the currently browsed page. If it is detected that there is an ID number in the currently browsed page, it is determined that there is user privacy information in the currently browsed page. If it is detected that there is a mobile phone number in the currently browsed page, it is determined that there is user privacy information in the currently browsed page.
如,若检测到当前浏览的页面中存在短信验证码,则确定当前浏览的页面中存在用户 隐私信息。若检测到当前浏览的页面中存在单位所在城区,则确定当前浏览的页面中存在用户隐私信息。若检测到当前浏览的页面中存在单位详细地址,则确定当前浏览的页面中存在用户隐私信息。若检测到当前浏览的页面中存在单位名称,则确定当前浏览的页面中存在用户隐私信息。若检测到当前浏览的页面中存在学历,则确定当前浏览的页面中存在用户隐私信息。若检测到当前浏览的页面中存在职务,则确定当前浏览的页面中存在用户隐私信息。For example, if it is detected that there is an SMS verification code in the currently browsed page, it is determined that there is user privacy information in the currently browsed page. If it is detected that there is an urban area where the unit is located in the currently browsed page, it is determined that there is user privacy information in the currently browsed page. If it is detected that there is a detailed address of the unit in the currently browsed page, it is determined that there is user privacy information in the currently browsed page. If it is detected that a unit name exists in the currently browsed page, it is determined that user privacy information exists in the currently browsed page. If it is detected that there is an academic degree in the currently browsed page, it is determined that there is user privacy information in the currently browsed page. If it is detected that there is a job title in the currently browsed page, it is determined that there is user privacy information in the currently browsed page.
如,若检测到当前浏览的页面中存在银行页面,则确定当前浏览的页面中存在用户隐私信息。若检测到当前浏览的页面中存在购物商城页面,则确定当前浏览的页面中存在用户隐私信息。若检测到当前浏览的页面中存在登录邮箱页面,则确定当前浏览的页面中存在用户隐私信息,等等。For example, if it is detected that there is a bank page in the currently browsed page, it is determined that there is user privacy information in the currently browsed page. If it is detected that there is a shopping mall page in the currently browsed page, it is determined that user privacy information exists in the currently browsed page. If it is detected that there is a login mailbox page in the currently browsed page, it is determined that there is user privacy information in the currently browsed page, and so on.
205、若是,则生成第一提示信息,其中,第一提示信息用于提示切换当前浏览模式。205. If yes, generate first prompt information, where the first prompt information is used to prompt to switch the current browsing mode.
比如,若用户根据第一提示信息的温馨提示,将当前浏览模式切换为第一浏览模式,在该第一浏览模式下,禁止对当前浏览的页面进行截屏或录屏。如,当用户选择切换到第一浏览模式后,用户在该第一浏览模式下浏览网页时,如果收到截屏或录屏的指令,则不允许截屏或录屏。执行完本流程,可以执行流程206,也可以执行流程209。For example, if the user switches the current browsing mode to the first browsing mode according to the warm prompt of the first prompt information, in the first browsing mode, screenshots or screen recordings of the currently browsed page are prohibited. For example, after the user chooses to switch to the first browsing mode, when the user browses the web page in the first browsing mode, if the user receives a screen capture or screen recording instruction, the screen capture or screen recording is not allowed. After this process is executed, the process 206 and the process 209 may also be executed.
206、若当前浏览模式切换为第一浏览模式,检测是否收到截屏或录屏指令。206. If the current browsing mode is switched to the first browsing mode, detect whether a screenshot or screen recording instruction is received.
比如,当浏览器解析网页,检测到当前浏览的页面涉及用户隐私信息时,则温馨提示用户“您浏览的页面涉及用户隐私,请切换无痕浏览”供用户选择(默认不切换),若用户觉得该用户隐私信息比较重要,则用户手动选择将当前浏览模式切换为第一浏览模式,则检测是否收到截屏或录屏指令。即若用户看到诸如“您浏览的页面涉及用户隐私,请切换无痕浏览”的第一提示信息后,选择将当前浏览模式切换为无痕浏览模式,则检测当前是否收到用户的截屏或录屏指令。For example, when the browser parses the web page and detects that the page you are currently browsing involves user privacy information, it will warmly prompt the user that "the page you are browsing involves user privacy, please switch to incognito browsing" for the user to choose (do not switch by default). If the user feels that the privacy information of the user is important, the user manually selects to switch the current browsing mode to the first browsing mode, and then detects whether a screen capture or screen recording instruction is received. That is, if the user chooses to switch the current browsing mode to the incognito browsing mode after seeing the first prompt message such as "The page you are browsing involves user privacy, please switch to incognito browsing", it will detect whether the user's screenshot or Screen recording command.
若是,则生成第二提示信息,或者录屏结果不能显示,其中,第二提示信息用于提示涉及用户隐私信息无法截屏。If so, second prompt information is generated, or the screen recording result cannot be displayed, wherein the second prompt information is used to prompt that the screen capture cannot be taken because of the user's private information.
需要注意的是,在无痕浏览模式下,浏览器不允许截屏或者在无痕浏览模式的页面录屏效果为黑屏或马赛克方式显示。It should be noted that in incognito browsing mode, the browser does not allow screenshots, or the screen recording effect of the page in incognito browsing mode is black screen or mosaic display.
比如,用户选择切换为无痕浏览模式,在该无痕浏览模式下,用户是无法通过截屏分享信息的,也无法通过录屏获取浏览器的网页信息。具体而言,在无痕浏览模式下,若收到用户的截屏或录屏指令,则浏览器针对截屏指令会生成一条第二提示信息,并显示给用户,该第二提示信息用于提示涉及用户隐私信息无法截屏,如第二提示信息提示“涉及隐私,无法截屏”,或者浏览器针对录屏指令直接将录屏结果设置为不能显示,如录屏结果为黑屏或以马赛克方式显示。For example, if the user chooses to switch to the incognito browsing mode, in the incognito browsing mode, the user cannot share information by taking screenshots, and cannot obtain web page information of the browser by recording the screen. Specifically, in the incognito browsing mode, if a screen capture or screen recording command is received from the user, the browser will generate a second prompt message for the screen capture command and display it to the user. The user's privacy information cannot be screened, for example, the second prompt message prompts "privacy involved and cannot be screened", or the browser directly sets the screen recording result to not be displayed for the screen recording command, such as the screen recording result is a black screen or displayed in a mosaic manner.
208、若由第一浏览模式切换回第二浏览模式,则允许对浏览的页面进行截屏或录屏。208. If the first browsing mode is switched back to the second browsing mode, a screen shot or a screen recording of the browsed page is allowed.
比如,用户在第一浏览模式下浏览网页的过程中,由于在不同的浏览时间所浏览的页面可能也会发生变化,如果用户觉得后续浏览的页面涉及的用户隐私信息不重要,想要截屏或录屏进行分享时,想要切换回第二浏览模式时,则用户可以手动切换到第二浏览模式。For example, when a user browses a web page in the first browsing mode, the pages browsed at different browsing times may also change. When you want to switch back to the second browsing mode while recording the screen for sharing, the user can manually switch to the second browsing mode.
需要说明的是,本申请实施例中,第二浏览模式可以是非无痕浏览模式,即普通浏览模式。在该非无痕浏览模式下,是允许用户截屏和录屏的,也允许用户分享截屏和录屏信息。It should be noted that, in this embodiment of the present application, the second browsing mode may be a non-incognito browsing mode, that is, a common browsing mode. In this non-incognito browsing mode, users are allowed to take screenshots and screen recordings, and users are also allowed to share screenshots and screen recording information.
在一种可能的实施方式中,用户在非无痕浏览模式浏览时,如果检测到当前浏览的页面涉及用户隐私信息,则提示用户切换到无痕浏览模式,用户选择切换到无痕浏览模式后,则不能对浏览的页面进行截屏或录屏,如果用户后续想要对浏览的页面截屏或录屏,则需要用户手动切换回非无痕浏览模式,系统不会自动切换到非无痕浏览模式,由于是经过用户确认的,因此就不会随意的将用户浏览的页面进行截屏或录屏后分享出去,可以有效的保护用户隐私信息。In a possible implementation, when a user browses in a non-incognito browsing mode, if it is detected that the page currently being browsed involves the user's private information, the user is prompted to switch to the incognito browsing mode, and after the user chooses to switch to the incognito browsing mode , you cannot take screenshots or screen recordings of the browsed pages. If the user wants to take screenshots or screen recordings of the browsed pages later, the user needs to manually switch back to the non-incognito browsing mode, and the system will not automatically switch to the non-incognito browsing mode. , because it is confirmed by the user, it will not randomly take screenshots or record the screen of the page that the user browses and share it, which can effectively protect the user's privacy information.
209、若当前浏览模式切换为第二浏览模式,则允许对当前浏览的页面进行截屏或录屏。209. If the current browsing mode is switched to the second browsing mode, a screen shot or a screen recording of the currently browsed page is allowed.
比如,用户根据第一提示信息的温馨提示,如果觉得浏览的页面涉及的用户隐私信息不重要,则用户可以忽略提示或者选择放弃无痕浏览切换,可以手动选择切换到非无痕浏览模式,浏览器记录用户设置为非无痕浏览模式的行为。在非无痕浏览模式下,可以通过截屏分享信息,可以通过录屏获取浏览器的页面信息。For example, according to the warm prompt of the first prompt message, if the user feels that the user's privacy information involved in the page being browsed is not important, the user can ignore the prompt or choose to give up the incognito browsing switch, and can manually choose to switch to the non-incognito browsing mode, browse The browser records the behavior of users set to non-private browsing mode. In non-incognito browsing mode, you can share information by taking screenshots, and you can obtain browser page information by recording the screen.
需要注意的是,当用户浏览网页时,如果浏览器检测到用户设置了非无痕浏览模式,当浏览到涉及用户隐私信息的页面时,由于用户觉得用户隐私用户不重要,用户可以将涉及用户隐私信息的页面截屏或录屏后分享出去,则浏览器不再提示用户切换为无痕浏览模式,以保证尽可能少的打扰用户,提升用户使用体验。It should be noted that, when a user browses a web page, if the browser detects that the user has set a non-incognito browsing mode, when browsing a page involving user privacy information, the user may consider the user's privacy as unimportant. After sharing the screen capture or recording of the page of the private information, the browser will no longer prompt the user to switch to the incognito browsing mode, so as to ensure that the user is disturbed as little as possible and the user experience is improved.
可以理解的是,本申请实施例中,使用浏览器浏览网页时,浏览器可以智能检测是否需要切换为无痕浏览模式,并温馨提示用户注意用户隐私信息,用户根据温馨提示确认是否切换为无痕浏览模式。其不依赖服务端是否下发无痕浏览模式切换信息,而是通过浏览器智能检测所浏览的网页是否携带用户隐私信息,进而温馨提示用户是否切换无痕模式。本申请实施例可以有效的保护用户隐私信息被截屏和录屏,防止被用户自己分享微信朋友圈等。It can be understood that, in this embodiment of the present application, when using a browser to browse a web page, the browser can intelligently detect whether it is necessary to switch to the incognito browsing mode, and warmly remind the user to pay attention to the user's privacy information, and the user confirms whether to switch to the incognito mode according to the warm prompt. Browsing mode. It does not depend on whether the server sends the incognito browsing mode switching information, but intelligently detects whether the browsed webpage carries the user's private information through the browser, and then warmly prompts the user whether to switch the incognito mode. The embodiment of the present application can effectively protect the user's private information from being screen-captured and recorded, and prevent the user from sharing the WeChat Moments by himself/herself.
请参阅图7,图7是本申请实施例提供的在浏览的页面给出第一提示信息的场景示意图。比如,当用户浏览网页时,浏览器自动检测用户当前浏览的页面是否涉及用户隐私信息,当检测到当前浏览的页面涉及用户隐私信息时,则提示用户选择切换无痕浏览模式浏览。比如,当用户浏览外卖软件登录页面时,浏览器检测到用户当前浏览的外卖软件登录页面涉及到手机号和短信验证码等第一页面元素301,则生成第一提示信息302,将第一提示信息302显示在当前页面中,通过第一提示信息302给出温馨提示,如“您浏览网页涉及用户隐私,建议切换无痕浏览”。Please refer to FIG. 7 . FIG. 7 is a schematic diagram of a scenario in which first prompt information is given on a browsed page according to an embodiment of the present application. For example, when a user browses a web page, the browser automatically detects whether the page currently browsed by the user involves user privacy information, and when it is detected that the page currently browsed involves user privacy information, the browser prompts the user to choose to switch to incognito browsing mode. For example, when the user browses the login page of the food delivery software, the browser detects that the login page of the food delivery software currently browsed by the user involves the first page elements 301 such as the mobile phone number and the SMS verification code, and generates the first prompt message 302, and the first prompt message 302 is generated. The information 302 is displayed on the current page, and a warm prompt is given through the first prompt information 302, such as "Your browsing the web page involves user privacy, it is recommended to switch to incognito browsing".
例如,首先用户进入外卖软件登录页面,浏览器检测到外卖软件登录页面中涉及到手机号和短信验证码等第一页面元素301时,则认为用户当前浏览的外卖软件登录涉及用户隐私信息,则生成第一提示信息302,将第一提示信息302显示在当前外卖软件登录页面中,通过第一提示信息302给出温馨提示,如“您浏览网页涉及用户隐私,建议切换无痕浏览”。或者浏览器直接检测到是外卖软件登录页面,即检测到第二页面元素,直接认为当前浏览的页面涉及用户隐私信息,则生成第一提示信息302,将第一提示信息302显示在当前外卖软件登录页面中,通过第一提示信息302给出温馨提示,如“您浏览网页涉及用户隐私,建议切换无痕浏览”。For example, when the user first enters the takeout software login page, and the browser detects that the first page elements 301 such as mobile phone number and SMS verification code are involved in the takeout software login page, it is considered that the user's current takeout software login involves user privacy information, then Generate first prompt information 302, display the first prompt information 302 on the current takeaway software login page, and give a warm prompt through the first prompt information 302, such as "Your browsing the web involves user privacy, it is recommended to switch to incognito browsing". Or the browser directly detects that it is a takeaway software login page, that is, detects the second page element, and directly believes that the currently browsed page involves user privacy information, then generates the first prompt information 302, and displays the first prompt information 302 on the current takeaway software. On the login page, a warm prompt is given through the first prompt message 302, such as "Your browsing the web page involves user privacy, it is recommended to switch to incognito browsing".
请参阅图8,图8是本申请实施例提供的用户选择忽略第一提示信息进行截屏的场景示意图。比如,当用户看到外卖软件登录页面中给出的温馨提示“您浏览网页涉及用户隐私,建议切换无痕浏览”,如果认为当前外卖软件登录页面涉及的用户隐私信息不重要,用户可以忽略该提示信息,继续浏览,在非无痕浏览模式下,即在普通浏览模式下,用户可以对当前浏览的页面进行截屏或录屏,也可以对后续浏览的其他页面进行截屏或录屏。图8中示意出了截屏过程中所得到的截屏图片303在当前页面中逐渐缩小的过程。Please refer to FIG. 8. FIG. 8 is a schematic diagram of a scenario in which a user chooses to ignore the first prompt information to take a screenshot according to an embodiment of the present application. For example, when a user sees a warm prompt given on the login page of the food delivery software, "Your browsing the web involves user privacy, it is recommended to switch to incognito browsing", if you think that the user privacy information involved in the current food delivery software login page is not important, the user can ignore the Prompt information, continue browsing, in non-incognito browsing mode, that is, in normal browsing mode, the user can take screenshots or screen recordings of the currently browsed page, and can also take screenshots or screen recordings of other pages browsed subsequently. FIG. 8 illustrates a process in which the screenshot image 303 obtained in the screenshot process is gradually reduced in the current page.
请参阅图9,图9是本申请实施例提供的切换到无痕浏览模式的场景示意图。比如,当用户再次进入外卖软件登录页面时,浏览器自动检测用户当前浏览的外卖软件登录页面是否涉及用户隐私信息,当检测到当前浏览的外卖软件登录页面涉及用户隐私信息时,则给出温馨提示,提示“您浏览网页涉及用户隐私,建议切换无痕浏览”,如果用户认为当前浏览的外卖软件登录页面涉及的用户隐私信息比较重要,则选择切换无痕浏览模式,可以手动切换到无痕浏览模式,在无痕浏览模式下,页面会出现如图9所示的无痕浏览模式图标304。Please refer to FIG. 9. FIG. 9 is a schematic diagram of a scenario of switching to an incognito browsing mode provided by an embodiment of the present application. For example, when the user enters the login page of the food delivery software again, the browser automatically detects whether the login page of the food delivery software currently browsed by the user involves the user's private information. Prompt, prompt "Your browsing the web involves user privacy, it is recommended to switch to incognito browsing", if the user thinks that the user's privacy information involved in the login page of the takeaway software currently being browsed is more important, then choose to switch to incognito browsing mode, you can manually switch to incognito Browsing mode, in the incognito browsing mode, an incognito browsing mode icon 304 as shown in FIG. 9 will appear on the page.
请参阅图10,图10是本申请实施例提供的在无痕浏览模式下启动软键盘的场景示意图。比如,在无痕浏览模式下,当用户需要在当前浏览的页面中输入网址时,可以启动软键盘进行输入,此时,可以显示启动软键盘输入网址浏览页面,在当前浏览页面的其余位置305是黑屏显示。Please refer to FIG. 10 . FIG. 10 is a schematic diagram of a scenario of starting a soft keyboard in an incognito browsing mode provided by an embodiment of the present application. For example, in the incognito browsing mode, when the user needs to input a web address in the currently browsed page, he can start the soft keyboard for input. is a black screen.
请参阅图11,图11是本申请实施例提供的在无痕浏览模式下启动软键盘时进行截屏的场景示意图。比如,当用户针对图10的页面进行截屏时,则生成第二提示信息306,将第二提示信息306显示在当前浏览的页面中,第二提示信息306提示“涉及隐私内容,无法截屏”,由此可知,在无痕浏览模式下,用户截屏时会提示用户无法截屏,在录屏时,会进行黑屏显示或马赛克方式显示。因此,在无痕浏览模式下,是无法截屏或录屏的,这样可以防止在未经用户确定的情况下,将涉及用户隐私信息的页面截屏或录屏后分享出去,可以有效的保护用户隐私信息。Please refer to FIG. 11 . FIG. 11 is a schematic diagram of a scenario of taking a screenshot when a soft keyboard is activated in an incognito browsing mode according to an embodiment of the present application. For example, when the user takes a screenshot of the page in FIG. 10 , the second prompt information 306 is generated, and the second prompt information 306 is displayed on the page currently being browsed. It can be seen that in the incognito browsing mode, when the user takes a screenshot, the user will be prompted that the screenshot cannot be taken, and when the screen is recorded, a black screen display or mosaic display will be performed. Therefore, in the incognito browsing mode, it is impossible to take screenshots or screen recordings, which can prevent the screenshots or recordings of pages involving user private information from being shared without the user's confirmation, which can effectively protect user privacy. information.
请参阅图12,图12是本申请实施例提供的在无痕浏览模式下未启动软键盘时进行截屏的场景示意图。比如,在无痕浏览模式下,在未启动软键盘时,如果用户对当前浏览的页面进行截屏,则生成第二提示信息306,将第二提示信息306显示在当前浏览的页面中,第二提示信息306提示“涉及隐私内容,无法截屏”,如果用户对当前浏览的页面进行录屏,则整个页面除了第二提示信息306部分均以黑屏显示或以马赛克方式显示,即在无痕浏览模式下是无法截屏或录屏的。Please refer to FIG. 12 . FIG. 12 is a schematic diagram of a scenario of taking a screenshot when the soft keyboard is not activated in an incognito browsing mode provided by an embodiment of the present application. For example, in the incognito browsing mode, when the soft keyboard is not activated, if the user takes a screenshot of the currently browsed page, the second prompt information 306 is generated, and the second prompt information 306 is displayed in the currently browsed page. The prompt message 306 prompts "involving private content, and cannot take screenshots". If the user records the screen of the currently browsed page, the entire page except the second prompt message 306 will be displayed in a black screen or in a mosaic manner, that is, in the incognito browsing mode. It is not possible to take screenshots or record the screen below.
请参阅图13,图13是本申请实施例提供的在无痕浏览模式下对外卖软件登录界面进行截屏的场景示意图。比如,在无痕浏览模式下,当用户浏览外卖软件登录页面时,如果用户对当前浏览的外卖软件页面进行截屏,则生成第二提示信息306,将第二提示信息306显示在当前浏览的外卖软件页面中,第二提示信息306提示“涉及隐私内容,无法截屏”。即在无痕浏览模式下,用户无法对当前浏览的页面进行截屏或录屏。Please refer to FIG. 13 . FIG. 13 is a schematic diagram of a scenario of taking a screenshot of a login interface of food delivery software in an incognito browsing mode according to an embodiment of the present application. For example, in the incognito browsing mode, when the user browses the login page of the food delivery software, if the user takes a screenshot of the currently browsed food delivery software page, the second prompt information 306 is generated, and the second prompt information 306 is displayed in the currently browsed food delivery software. On the software page, the second prompt message 306 prompts "involving privacy content, cannot take screenshots". That is, in the incognito browsing mode, the user cannot take screenshots or record the screen of the currently browsed page.
需要说明的是,如果用户在后续的浏览过程中,认为浏览的页面涉及的用户隐私信息不重要,或者不涉及到用户隐私信息,想要对浏览的页面进行截屏或录屏时,则此时需要用户手动切换到非无痕浏览模式,即普通浏览模式,切换到非无痕浏览模式后,用户就可以对浏览的页面进行截屏或录屏,这样可以增加使用的灵活性,所有截屏或录屏的内容都是经过用户确认过的,因此可以进一步保证分享出去的内容不会泄露用户隐私信息。It should be noted that if the user thinks that the user's privacy information involved in the browsed page is not important or does not involve user's privacy information in the subsequent browsing process, and wants to take a screenshot or record the screen of the browsed page, then Users are required to manually switch to the non-incognito browsing mode, that is, the normal browsing mode. After switching to the non-incognito browsing mode, the user can take screenshots or screen recordings of the browsed pages, which can increase the flexibility of use. The content of the screen has been confirmed by the user, so it can further ensure that the shared content will not reveal the user's private information.
请参阅图14,图14为本申请实施例提供的隐私信息保护装置的结构示意图。隐私信息保护装置400可以包括:检测模块401、生成模块402和切换模块403。Please refer to FIG. 14 , FIG. 14 is a schematic structural diagram of a privacy information protection device provided by an embodiment of the present application. The privacy information protection device 400 may include: a detection module 401 , a generation module 402 and a switching module 403 .
检测模块401,用于检测当前浏览的页面中是否存在用户隐私信息;The detection module 401 is used to detect whether there is user privacy information in the currently browsed page;
生成模块402,用于若是,则生成第一提示信息,其中,所述第一提示信息用于提示切换当前浏览模式;The generating module 402 is configured to generate first prompt information if yes, wherein the first prompt information is used to prompt to switch the current browsing mode;
切换模块403,用于若所述当前浏览模式切换为第一浏览模式,则禁止对所述当前浏览的页面进行截屏或录屏。The switching module 403 is configured to prohibit the screen capture or recording of the currently browsed page if the current browsing mode is switched to the first browsing mode.
在一种实施方式中,所述检测模块401可以用于:In one embodiment, the detection module 401 can be used to:
对所述当前浏览的页面进行解析;parsing the currently browsed page;
检测是否已切换为所述第一浏览模式;detecting whether the first browsing mode has been switched;
若否,则检测所述当前浏览的页面中是否存在第一页面元素或第二页面元素;If not, detecting whether there is a first page element or a second page element in the currently browsed page;
若存在所述第一页面元素或第二页面元素,则确定所述当前浏览的页面中存在所述用户隐私信息。If the first page element or the second page element exists, it is determined that the user privacy information exists in the currently browsed page.
在一种实施方式中,所述第一页面元素可以包括账号、用户名、密码、邮箱、姓名、身份证号、手机号、短信验证码、单位所在城区、单位详细地址、单位名称、学历和职务中的任意一种或多种。In one embodiment, the first page element may include account number, user name, password, email address, name, ID number, mobile phone number, SMS verification code, urban area where the unit is located, detailed address of the unit, name of the unit, educational background and any one or more of the positions.
在一种实施方式中,所述第二页面元素可以为页面白名单。In one embodiment, the second page element may be a page whitelist.
在一种实施方式中,所述切换模块403可以用于:In one embodiment, the switching module 403 may be used to:
若所述当前浏览模式切换为第一浏览模式,检测是否收到截屏或录屏指令;If the current browsing mode is switched to the first browsing mode, detecting whether a screenshot or screen recording instruction is received;
若是,则生成第二提示信息,或者录屏结果不能显示,其中,所述第二提示信息用于提示涉及用户隐私信息无法截屏。If so, second prompt information is generated, or the screen recording result cannot be displayed, wherein the second prompt information is used to prompt that the screen capture cannot be taken because of the user's private information.
在一种实施方式中,所述生成模块402可以用于:In one embodiment, the generation module 402 may be used to:
若所述当前浏览模式切换为第二浏览模式,则允许对所述当前浏览的页面进行截屏或录屏。If the current browsing mode is switched to the second browsing mode, a screen shot or a screen recording of the currently browsed page is allowed.
在一种实施方式中,所述切换模块403可以用于:In one embodiment, the switching module 403 may be used to:
若由所述第一浏览模式切换回所述第二浏览模式,则允许对浏览的页面进行截屏或录屏。If the first browsing mode is switched back to the second browsing mode, a screen shot or a screen recording of the browsed page is allowed.
在一种实施方式中,所述第一浏览模式可以为无痕浏览模式。In one embodiment, the first browsing mode may be an incognito browsing mode.
在一种实施方式中,所述第二浏览模式为非无痕浏览模式。In one embodiment, the second browsing mode is a non-private browsing mode.
本申请实施例提供一种计算机可读的存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行如本实施例提供的隐私信息保护方法中的流程。An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, causes the computer to execute the process in the privacy information protection method provided by this embodiment. .
本申请实施例还提供一种电子设备,包括存储器,处理器以及显示模组,所述处理器通过调用所述存储器中存储的计算机程序,用于执行本实施例提供的隐私信息保护方法中的流程。An embodiment of the present application further provides an electronic device, including a memory, a processor, and a display module. The processor is configured to execute the method in the privacy information protection method provided in this embodiment by calling a computer program stored in the memory. process.
例如,上述电子设备可以是诸如平板电脑或者智能手机等移动终端。上述电子设备还可以是电视机或机顶盒等终端设备。请参阅图15,图15为本申请实施例提供的电子设备的结构示意图。For example, the above-mentioned electronic device may be a mobile terminal such as a tablet computer or a smart phone. The above electronic device may also be a terminal device such as a TV set or a set-top box. Please refer to FIG. 15 , which is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
该电子设备500可以包括显示模组501、存储器502、处理器503等部件。本领域技术人员可以理解,图15中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The electronic device 500 may include a display module 501 , a memory 502 , a processor 503 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 15 does not constitute a limitation to the electronic device, and may include more or less components than the one shown, or combine some components, or arrange different components.
显示模组501可以用于实现对浏览网页的显示等。显示模组501可以包括诸如显示屏、背光组价等部件。The display module 501 can be used to realize the display of browsing web pages and the like. The display module 501 may include components such as a display screen and a backlight assembly.
存储器502可用于存储应用程序和数据。存储器502存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器503通过运行存储在存储器502的应用程序,从而执行各种功能应用以及数据处理。 Memory 502 may be used to store applications and data. The application program stored in the memory 502 contains executable code. Applications can be composed of various functional modules. The processor 503 executes various functional applications and data processing by running the application programs stored in the memory 502 .
处理器503是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器502内的应用程序,以及调用存储在存储器502内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 503 is the control center of the electronic device, uses various interfaces and lines to connect various parts of the entire electronic device, and executes the electronic device by running or executing the application program stored in the memory 502 and calling the data stored in the memory 502. The various functions and processing data of the device are used to monitor the electronic equipment as a whole.
在本实施例中,电子设备中的处理器503会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器502中,并由处理器503来运行存储在存储器502中的应用程序,从而执行:In this embodiment, the processor 503 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 503 executes and stores it in the memory 502 in the application, which executes:
检测当前浏览的页面中是否存在用户隐私信息;Detect whether there is user privacy information in the currently browsed page;
若是,则生成第一提示信息,其中,所述第一提示信息用于提示切换当前浏览模式;If so, generating first prompt information, wherein the first prompt information is used to prompt to switch the current browsing mode;
若所述当前浏览模式切换为第一浏览模式,则禁止对所述当前浏览的页面进行截屏或录屏。If the current browsing mode is switched to the first browsing mode, screen capture or recording of the currently browsed page is prohibited.
请参阅图16,电子设备500可以包括显示模组501、存储器502、处理器503、输入单元504、输出单元505、扬声器506等部件。Referring to FIG. 16 , the electronic device 500 may include a display module 501 , a memory 502 , a processor 503 , an input unit 504 , an output unit 505 , a speaker 506 and other components.
显示模组501可以用于实现对浏览网页的显示等。显示模组501可以包括诸如显示屏、背光组价等部件。The display module 501 can be used to realize the display of browsing web pages and the like. The display module 501 may include components such as a display screen and a backlight assembly.
存储器502可用于存储应用程序和数据。存储器502存储的应用程序中包含有可执行 代码。应用程序可以组成各种功能模块。处理器503通过运行存储在存储器502的应用程序,从而执行各种功能应用以及数据处理。 Memory 502 may be used to store applications and data. The application program stored in the memory 502 contains executable code. Applications can be composed of various functional modules. The processor 503 executes various functional applications and data processing by running the application programs stored in the memory 502 .
处理器503是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器502内的应用程序,以及调用存储在存储器502内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 503 is the control center of the electronic device, uses various interfaces and lines to connect various parts of the entire electronic device, and executes the electronic device by running or executing the application program stored in the memory 502 and calling the data stored in the memory 502. The various functions and processing data of the device are used to monitor the electronic equipment as a whole.
输入单元504可用于接收输入的数字、字符信息或用户特征信息(比如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。The input unit 504 may be used to receive input numbers, character information, or user characteristic information (such as fingerprints), and generate keyboard, mouse, joystick, optical, or trackball signal input related to user settings and function control.
输出单元505可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。输出单元可包括显示面板。The output unit 505 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, which may be composed of graphics, text, icons, videos, and any combination thereof. The output unit may include a display panel.
扬声器506可以用于播放声音信号。 Speaker 506 may be used to play sound signals.
此外,电子设备还可以包括诸如电池、麦克风等部件。电池用于为电子设备的各个模块供应电力,麦克风可以用于拾取周围环境中的声音信号。In addition, electronic devices may also include components such as batteries, microphones, and the like. The battery is used to power the various modules of the electronic device, and the microphone can be used to pick up sound signals from the surrounding environment.
在本实施例中,电子设备中的处理器503会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器502中,并由处理器503来运行存储在存储器502中的应用程序,从而执行:In this embodiment, the processor 503 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 503 executes and stores it in the memory 502 in the application, which executes:
检测当前浏览的页面中是否存在用户隐私信息;Detect whether there is user privacy information in the currently browsed page;
若是,则生成第一提示信息,其中,所述第一提示信息用于提示切换当前浏览模式;If so, generating first prompt information, wherein the first prompt information is used to prompt to switch the current browsing mode;
若所述当前浏览模式切换为第一浏览模式,则禁止对所述当前浏览的页面进行截屏或录屏。If the current browsing mode is switched to the first browsing mode, screen capture or recording of the currently browsed page is prohibited.
在一种实施方式中,处理器503执行检测当前浏览的页面中是否存在用户隐私信息时,可以执行:对所述当前浏览的页面进行解析;检测是否已切换为所述第一浏览模式;若否,则检测所述当前浏览的页面中是否存在第一页面元素或第二页面元素;若存在所述第一页面元素或第二页面元素,则确定所述当前浏览的页面中存在所述用户隐私信息。其中,所述第一页面元素可以包括账号、用户名、密码、邮箱、姓名、身份证号、手机号、短信验证码、单位所在城区、单位详细地址、单位名称、学历和职务中的任意一种或多种。所述第二页面元素可以为页面白名单。第一浏览模式可以是无痕浏览模式。In one embodiment, when the processor 503 executes to detect whether there is user privacy information in the currently browsed page, it can execute: parse the currently browsed page; detect whether the first browsing mode has been switched; if If no, it is detected whether the first page element or the second page element exists in the currently browsed page; if the first page element or the second page element exists, it is determined that the user exists in the currently browsed page Privacy Information. Wherein, the first page element may include any one of account number, user name, password, email address, name, ID number, mobile phone number, SMS verification code, urban area where the unit is located, detailed address of the unit, name of the unit, education background and position one or more. The second page element may be a page whitelist. The first browsing mode may be an incognito browsing mode.
在一种实施方式中,处理器503执行所述若所述当前浏览模式切换为第一浏览模式,则禁止对所述当前浏览的页面进行截屏或录屏时,还可以执行:若所述当前浏览模式切换为第一浏览模式,检测是否收到截屏或录屏指令;若是,则生成第二提示信息,或者录屏结果不能显示,其中,所述第二提示信息用于提示涉及用户隐私信息无法截屏。In one embodiment, when the processor 503 executes the process of prohibiting the screen capture or recording of the currently browsed page if the current browsing mode is switched to the first browsing mode, the processor 503 may also execute: if the current browsing mode is The browsing mode is switched to the first browsing mode, and it is detected whether a screenshot or screen recording instruction is received; if so, a second prompt message is generated, or the screen recording result cannot be displayed, wherein the second prompt message is used to prompt that the user's privacy information is involved Can't take screenshot.
在一种实施方式中,处理器503执行在所述若是,则生成第一提示信息之后,还可以执行:若所述当前浏览模式切换为第二浏览模式,则允许对所述当前浏览的页面进行截屏或录屏。In one embodiment, the processor 503 may execute, after generating the first prompt information if the yes, the processor 503 may further execute: if the current browsing mode is switched to the second browsing mode, allow the currently browsed page to be viewed Take a screenshot or record a screen.
在一种实施方式中,处理器503执行在若所述当前浏览模式切换为第一浏览模式,则禁止对所述当前浏览的页面进行截屏或录屏之后,还可以执行:若由所述第一浏览模式切换回所述第二浏览模式,则允许对浏览的页面进行截屏或录屏。其中,所述第二浏览模式可以为非无痕浏览模式。In one embodiment, the processor 503 may execute, after prohibiting the screen capture or recording of the currently browsed page if the current browsing mode is switched to the first browsing mode: if the first browsing mode is set by the first browsing mode When the browsing mode is switched back to the second browsing mode, a screen shot or a screen recording of the browsed page is allowed. Wherein, the second browsing mode may be a non-incognito browsing mode.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对隐私信息保护方法的详细描述,此处不再赘述。In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the detailed description of the privacy information protection method above, which will not be repeated here.
本申请实施例提供的所述隐私信息保护装置与上文实施例中的隐私信息保护方法属于同一构思,在所述隐私信息保护装置上可以运行所述隐私信息保护方法实施例中提供的任一方法,其具体实现过程详见所述隐私信息保护方法实施例,此处不再赘述。The privacy information protection device provided by the embodiment of the present application and the privacy information protection method in the above embodiment belong to the same concept, and any one of the privacy information protection method provided in the embodiment of the privacy information protection method can be executed on the privacy information protection device. The specific implementation process is described in the embodiment of the privacy information protection method, which will not be repeated here.
需要说明的是,对本申请实施例所述隐私信息保护方法而言,本领域普通技术人员可以理解实现本申请实施例所述隐私信息保护方法的全部或部分流程,是可以通过计算机程 序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在存储器中,并被至少一个处理器执行,在执行过程中可包括如所述隐私信息保护方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)等。It should be noted that, for the privacy information protection method described in the embodiments of the present application, those of ordinary skill in the art can understand that all or part of the process for realizing the privacy information protection method described in the embodiments of the present application can be controlled by a computer program. hardware, the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and the execution process can include the implementation of the privacy information protection method. example process. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), and the like.
对本申请实施例的所述隐私信息保护装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the privacy information protection device of the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, etc. .
以上对本申请实施例所提供的一种隐私信息保护方法、装置、存储介质以及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The method, device, storage medium, and electronic device for protecting privacy information provided by the embodiments of the present application have been described in detail above. The principles and implementations of the present application are described with specific examples in this article. The description of the above embodiments It is only used to help understand the method of the present application and its core idea; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation and application scope. The contents of the description should not be construed as limiting the application.

Claims (20)

  1. 一种隐私信息保护方法,应用于电子设备,其中,包括:A privacy information protection method, applied to an electronic device, comprising:
    检测当前浏览的页面中是否存在用户隐私信息;Detect whether there is user privacy information in the currently browsed page;
    若是,则生成第一提示信息,其中,所述第一提示信息用于提示切换当前浏览模式;If so, generating first prompt information, wherein the first prompt information is used to prompt to switch the current browsing mode;
    若所述当前浏览模式切换为第一浏览模式,则禁止对所述当前浏览的页面进行截屏或录屏。If the current browsing mode is switched to the first browsing mode, screen capture or recording of the currently browsed page is prohibited.
  2. 根据权利要求1所述的隐私信息保护方法,其中,所述检测当前浏览的页面中是否存在用户隐私信息,包括:The privacy information protection method according to claim 1, wherein the detecting whether there is user privacy information in the currently browsed page comprises:
    对所述当前浏览的页面进行解析;parsing the currently browsed page;
    检测是否已切换为所述第一浏览模式;detecting whether the first browsing mode has been switched;
    若否,则检测所述当前浏览的页面中是否存在第一页面元素或第二页面元素;If not, detecting whether there is a first page element or a second page element in the currently browsed page;
    若存在所述第一页面元素或第二页面元素,则确定所述当前浏览的页面中存在所述用户隐私信息。If the first page element or the second page element exists, it is determined that the user privacy information exists in the currently browsed page.
  3. 根据权利要求2所述的隐私信息保护方法,其中,所述第一页面元素包括账号、用户名、密码、邮箱、姓名、身份证号、手机号、短信验证码、单位所在城区、单位详细地址、单位名称、学历和职务中的任意一种或多种。The privacy information protection method according to claim 2, wherein the first page elements include account number, user name, password, email address, name, ID number, mobile phone number, SMS verification code, city area where the unit is located, and detailed address of the unit , any one or more of unit name, education background and position.
  4. 根据权利要求2所述的隐私信息保护方法,其中,所述第二页面元素为页面白名单。The privacy information protection method according to claim 2, wherein the second page element is a page whitelist.
  5. 根据权利要求1所述的隐私信息保护方法,其中,所述若所述当前浏览模式切换为第一浏览模式,则禁止对所述当前浏览的页面进行截屏或录屏,包括:The privacy information protection method according to claim 1, wherein, if the current browsing mode is switched to the first browsing mode, prohibiting screen capture or recording of the currently browsed page, comprising:
    若所述当前浏览模式切换为第一浏览模式,检测是否收到截屏或录屏指令;If the current browsing mode is switched to the first browsing mode, detecting whether a screenshot or screen recording instruction is received;
    若是,则生成第二提示信息,或者录屏结果不能显示,其中,所述第二提示信息用于提示涉及用户隐私信息无法截屏。If so, second prompt information is generated, or the screen recording result cannot be displayed, wherein the second prompt information is used to prompt that the screen capture cannot be taken because of the user's private information.
  6. 根据权利要求1所述的隐私信息保护方法,其中,在所述若是,则生成第一提示信息之后,所述方法还包括:The privacy information protection method according to claim 1, wherein, after the first prompt information is generated in the yes, the method further comprises:
    若所述当前浏览模式切换为第二浏览模式,则允许对所述当前浏览的页面进行截屏或录屏。If the current browsing mode is switched to the second browsing mode, a screen shot or a screen recording of the currently browsed page is allowed.
  7. 根据权利要求6所述的隐私信息保护方法,其中,在若所述当前浏览模式切换为第一浏览模式,则禁止对所述当前浏览的页面进行截屏或录屏之后,所述方法还包括:The privacy information protection method according to claim 6, wherein, after the current browsing mode is switched to the first browsing mode, after the screen capture or recording of the currently browsed page is prohibited, the method further comprises:
    若由所述第一浏览模式切换回所述第二浏览模式,则允许对浏览的页面进行截屏或录屏。If the first browsing mode is switched back to the second browsing mode, a screen shot or a screen recording of the browsed page is allowed.
  8. 根据权利要求1所述的隐私信息保护方法,其中,所述第一浏览模式为无痕浏览模式。The privacy information protection method according to claim 1, wherein the first browsing mode is an incognito browsing mode.
  9. 根据权利要求6所述的隐私信息保护方法,其中,所述第二浏览模式为非无痕浏览模式。The privacy information protection method according to claim 6, wherein the second browsing mode is a non-incognito browsing mode.
  10. 一种隐私信息保护装置,应用于电子设备,其中,包括:A privacy information protection device, applied to electronic equipment, comprising:
    检测模块,用于检测当前浏览的页面中是否存在用户隐私信息;A detection module, used to detect whether there is user privacy information in the currently browsed page;
    生成模块,用于若是,则生成第一提示信息,其中,所述第一提示信息用于提示切换当前浏览模式;a generating module, configured to generate first prompt information if yes, wherein the first prompt information is used to prompt to switch the current browsing mode;
    切换模块,用于若所述当前浏览模式切换为第一浏览模式,则禁止对所述当前浏览的页面进行截屏或录屏。The switching module is configured to prohibit the screen capture or screen recording of the currently browsed page if the current browsing mode is switched to the first browsing mode.
  11. 一种计算机可读的存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上执行时,使得所述计算机执行如权利要求1至9中任一项所述的方法。A computer-readable storage medium having a computer program stored thereon, wherein, when the computer program is executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 9.
  12. 一种电子设备,包括存储器,处理器以及显示模组,其中,所述处理器通过调用所述存储器中存储的计算机程序,用于执行:An electronic device, comprising a memory, a processor and a display module, wherein the processor is used to execute: by invoking a computer program stored in the memory:
    检测当前浏览的页面中是否存在用户隐私信息;Detect whether there is user privacy information in the currently browsed page;
    若是,则生成第一提示信息,其中,所述第一提示信息用于提示切换当前浏览模式;If so, generating first prompt information, wherein the first prompt information is used to prompt to switch the current browsing mode;
    若所述当前浏览模式切换为第一浏览模式,则禁止对所述当前浏览的页面进行截屏或录屏。If the current browsing mode is switched to the first browsing mode, screen capture or recording of the currently browsed page is prohibited.
  13. 根据权利要求12所述的电子设备,其中,在检测当前浏览的页面中是否存在用户隐私信息时,所述处理器用于执行:The electronic device according to claim 12, wherein, when detecting whether there is user privacy information in the currently browsed page, the processor is configured to execute:
    对所述当前浏览的页面进行解析;parsing the currently browsed page;
    检测是否已切换为所述第一浏览模式;detecting whether the first browsing mode has been switched;
    若否,则检测所述当前浏览的页面中是否存在第一页面元素或第二页面元素;If not, detecting whether there is a first page element or a second page element in the currently browsed page;
    若存在所述第一页面元素或第二页面元素,则确定所述当前浏览的页面中存在所述用户隐私信息。If the first page element or the second page element exists, it is determined that the user privacy information exists in the currently browsed page.
  14. 根据权利要求13所述的电子设备,其中,所述第一页面元素包括账号、用户名、密码、邮箱、姓名、身份证号、手机号、短信验证码、单位所在城区、单位详细地址、单位名称、学历和职务中的任意一种或多种。The electronic device according to claim 13, wherein the first page elements include account number, user name, password, email address, name, ID number, mobile phone number, SMS verification code, urban area where the unit is located, detailed address of the unit, and the unit Any one or more of name, education and job title.
  15. 根据权利要求13所述的电子设备,其中,所述第二页面元素为页面白名单。The electronic device of claim 13, wherein the second page element is a page whitelist.
  16. 根据权利要求12所述的电子设备,其中,在若所述当前浏览模式切换为第一浏览模式,则禁止对所述当前浏览的页面进行截屏或录屏时,所述处理器用于执行:The electronic device according to claim 12, wherein, if the current browsing mode is switched to the first browsing mode, when the screen capture or screen recording of the currently browsed page is prohibited, the processor is configured to execute:
    若所述当前浏览模式切换为第一浏览模式,检测是否收到截屏或录屏指令;If the current browsing mode is switched to the first browsing mode, detecting whether a screenshot or screen recording instruction is received;
    若是,则生成第二提示信息,或者录屏结果不能显示,其中,所述第二提示信息用于提示涉及用户隐私信息无法截屏。If so, second prompt information is generated, or the screen recording result cannot be displayed, wherein the second prompt information is used to prompt that the screen capture cannot be taken because of the user's private information.
  17. 根据权利要求12所述的电子设备,其中,在所述若是,则生成第一提示信息之后,所述处理器还用于执行:The electronic device according to claim 12, wherein, after generating the first prompt information if the yes, the processor is further configured to execute:
    若所述当前浏览模式切换为第二浏览模式,则允许对所述当前浏览的页面进行截屏或录屏。If the current browsing mode is switched to the second browsing mode, a screen shot or a screen recording of the currently browsed page is allowed.
  18. 根据权利要求17所述的电子设备,其中,在若所述当前浏览模式切换为第一浏览模式,则禁止对所述当前浏览的页面进行截屏或录屏之后,所述处理器还用于执行:The electronic device according to claim 17, wherein, after the current browsing mode is switched to the first browsing mode, the processor is further configured to execute a screenshot or screen recording of the currently browsed page is prohibited. :
    若由所述第一浏览模式切换回所述第二浏览模式,则允许对浏览的页面进行截屏或录屏。If the first browsing mode is switched back to the second browsing mode, a screen shot or a screen recording of the browsed page is allowed.
  19. 根据权利要求12所述的电子设备,其中,所述第一浏览模式为无痕浏览模式。The electronic device of claim 12, wherein the first browsing mode is an incognito browsing mode.
  20. 根据权利要求17所述的电子设备,其中,所述第二浏览模式为非无痕浏览模式。The electronic device of claim 17, wherein the second browsing mode is a non-private browsing mode.
PCT/CN2021/110052 2020-10-13 2021-08-02 Privacy information protection method and apparatus, storage medium, and electronic device WO2022078021A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011092871.2A CN112182656A (en) 2020-10-13 2020-10-13 Privacy information protection method and device, storage medium and electronic equipment
CN202011092871.2 2020-10-13

Publications (1)

Publication Number Publication Date
WO2022078021A1 true WO2022078021A1 (en) 2022-04-21

Family

ID=73949767

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/110052 WO2022078021A1 (en) 2020-10-13 2021-08-02 Privacy information protection method and apparatus, storage medium, and electronic device

Country Status (2)

Country Link
CN (1) CN112182656A (en)
WO (1) WO2022078021A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112182656A (en) * 2020-10-13 2021-01-05 Oppo广东移动通信有限公司 Privacy information protection method and device, storage medium and electronic equipment
TWI778533B (en) * 2021-03-03 2022-09-21 樂建中 Browsing track recording method of a web browser

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9167047B1 (en) * 2014-09-24 2015-10-20 Oracle International Corporation System and method for using policies to support session recording for user account management in a computing environment
CN106650441A (en) * 2016-11-01 2017-05-10 宇龙计算机通信科技(深圳)有限公司 Screen recording method and device
CN107748847A (en) * 2017-10-11 2018-03-02 惠州Tcl移动通信有限公司 A kind of browsing method, storage medium and the mobile terminal of user's secret file
CN107958168A (en) * 2017-12-19 2018-04-24 广东欧珀移动通信有限公司 Record screen method, apparatus and terminal
CN109521935A (en) * 2018-10-24 2019-03-26 维沃移动通信有限公司 It is a kind of to record screen, the reproducing method based on record screen, terminal
CN112182656A (en) * 2020-10-13 2021-01-05 Oppo广东移动通信有限公司 Privacy information protection method and device, storage medium and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11316896B2 (en) * 2016-07-20 2022-04-26 International Business Machines Corporation Privacy-preserving user-experience monitoring
CN109085975A (en) * 2018-08-06 2018-12-25 Oppo广东移动通信有限公司 Screenshotss method, apparatus, storage medium and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9167047B1 (en) * 2014-09-24 2015-10-20 Oracle International Corporation System and method for using policies to support session recording for user account management in a computing environment
CN106650441A (en) * 2016-11-01 2017-05-10 宇龙计算机通信科技(深圳)有限公司 Screen recording method and device
CN107748847A (en) * 2017-10-11 2018-03-02 惠州Tcl移动通信有限公司 A kind of browsing method, storage medium and the mobile terminal of user's secret file
CN107958168A (en) * 2017-12-19 2018-04-24 广东欧珀移动通信有限公司 Record screen method, apparatus and terminal
CN109521935A (en) * 2018-10-24 2019-03-26 维沃移动通信有限公司 It is a kind of to record screen, the reproducing method based on record screen, terminal
CN112182656A (en) * 2020-10-13 2021-01-05 Oppo广东移动通信有限公司 Privacy information protection method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN112182656A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
JP6522164B2 (en) Information acquisition method and device
US20220377128A1 (en) File transfer display control method and apparatus, and corresponding terminal
US11119627B2 (en) Information display method, device, apparatus and storage medium
US10187419B2 (en) Method and system for processing notification messages of a website
WO2022078021A1 (en) Privacy information protection method and apparatus, storage medium, and electronic device
US20140325323A1 (en) Online video playing method and apparatus and computer readable medium
EP2840802A1 (en) Method and apparatus for sharing media content and method and apparatus for displaying media content
CN107257510B (en) Video unified playing method, terminal and computer readable storage medium
JP6910300B2 (en) A method for displaying chat history records and a device for displaying chat history records
US20210042792A1 (en) Advertising during the loading of content
US10650118B2 (en) Authentication-based presentation of virtual content
US8225403B2 (en) Displaying a security element to help detect spoofing
WO2018000633A1 (en) Page information processing method, apparatus and electronic device
WO2018076269A1 (en) Data processing method, and electronic terminal
US9805181B1 (en) Messaging channel for web pages and web applications
JP2023550819A (en) Presentation method, equipment and electronic equipment
CN112711366A (en) Image generation method and device and electronic equipment
US11301345B2 (en) Desktop sound source discovery
US20240089223A1 (en) Information display method and apparatus, and electronic device
CN112015309B (en) Display switching method and device and mobile terminal
WO2023030234A1 (en) Video processing method and apparatus
WO2023030116A1 (en) Display method and apparatus
CN106933666B (en) Method for calling information input program and electronic equipment
CN112925458B (en) Information processing method, device, equipment and computer readable storage medium
CN113268185B (en) Information providing method and device and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21879068

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21879068

Country of ref document: EP

Kind code of ref document: A1