Webpage content unhealthy information detection method of Android system browser and related device

CN122548052APending Publication Date: 2026-08-11IFLYTEK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-15
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

然而,第三方网站内容良莠不齐,部分网站可能包含色情、暴力、恐怖等不良信息

Benefits of technology

[0021]本申请第五方面提供一种计算机可读存储介质,所述存储介质承载有一个或多个计算机程序,当所述一个或多个计算机程序被电子设备执行时,能够使所述电子设备上述第一方面或第一方面任一实现方式的Android系统浏览器的网页内容不良信息检测方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122548052A_ABST
    Figure CN122548052A_ABST
Patent Text Reader

Abstract

This application discloses a method and related apparatus for detecting inappropriate webpage content in an Android system browser, relating to the field of internet content security supervision technology. This application, by customizing a webpage review view client within the Android system browser, fully utilizes the native capabilities of WebView. After the webpage loads, a script is directly injected to obtain the content to be detected and perform local inappropriate information detection, avoiding cloud transmission delays and privacy leak risks, and achieving millisecond-level real-time response. When inappropriate information is detected, the webpage is immediately blocked, and the detection result is sent to the review end for secondary manual review. The decision to unblock the webpage is based on the review result, improving the reliability of the detection results and enabling effective supervision of inappropriate webpage content when users browse webpages using browsers on Android-based learning terminal devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of internet content security supervision technology, and in particular to a method and related device for detecting inappropriate web page content in an Android system browser. Background Technology

[0002] With the continuous development and stabilization of the Android system, all kinds of terminal devices running on the Android system have filled our living spaces, ranging from small smart wearable products to large smart TVs. Among them, learning terminal devices (educational tablets, learning machines, etc.) also need to run on the Android system.

[0003] Educational tablets, learning machines, and other learning terminal devices running Android typically come with a built-in browser, allowing users to access third-party websites. However, the content on these websites varies greatly in quality, with some potentially containing pornography, violence, terrorism, or other harmful information. For learning terminal devices primarily used by minors, without effective oversight, minors are highly susceptible to exposure to inappropriate content while browsing the web, which can not only negatively impact their physical and mental health but also potentially trigger public outcry, damaging the credibility and social image of these learning terminal device brands.

[0004] Therefore, how to provide a method for detecting inappropriate web page content in an Android system browser, so as to effectively monitor inappropriate web page content when users browse web pages using a browser on a learning terminal device built with the Android system, has become a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0005] In view of the above problems, this application provides a method and related apparatus for detecting inappropriate web page content in an Android system browser, so as to effectively monitor inappropriate web page content when users browse web pages using a browser on an Android-based learning terminal device. The specific solution is as follows: The first aspect of this application provides a method for detecting inappropriate webpage content in an Android system browser, including: In response to a user's request to browse a webpage, after the webpage is loaded, the webpage content to be detected is obtained based on a script for obtaining webpage content to be detected within a custom webpage view client in the Android system. The webpage content to be detected is then subjected to inappropriate information detection to obtain inappropriate information detection results. When the detection result of the harmful information indicates that the content of the webpage to be detected contains harmful information, the webpage is blocked to prevent the user from continuing to browse the webpage, and the detection result of the harmful information is sent to the review end for review; Receive the review result returned by the review terminal, and control whether to unblock the webpage based on the review result returned by the review terminal.

[0006] In one possible implementation, the webpage content to be detected includes image content, video content, and text content within the webpage.

[0007] In one possible implementation, when the content of the webpage to be detected is image content, the script for obtaining the content of the webpage to be detected, based on a custom webpage view client within the Android system, acquires the content of the webpage to be detected and performs inappropriate information detection on the content of the webpage to be detected to obtain inappropriate information detection results, including: Call and execute the script for obtaining the image content to be detected in the custom image content review manager, obtain all image URLs after the document object model of the webpage is loaded, filter all image URLs to obtain the target image URL, and download the original image corresponding to the target image URL as the image content to be detected. The content of the image to be detected is sent to the content review abstract service interface for detection of inappropriate information, and the inappropriate information detection result returned by the inappropriate information detection service interface is obtained.

[0008] In one possible implementation, when the content of the webpage to be detected is video content, the script for obtaining the content of the webpage to be detected, based on a custom webpage view client within the Android system, acquires the content of the webpage to be detected and performs inappropriate information detection on the content of the webpage to be detected to obtain inappropriate information detection results, including: The script for obtaining the video content to be detected is called and executed in the custom video content review manager. The video elements in the document object model of the webpage are monitored, and the video frames are obtained by taking screenshots of the monitored video elements based on the set timer as the video content to be detected. The video content to be detected is sent to the content review abstract service interface for inappropriate information detection, and the inappropriate information detection result returned by the inappropriate information detection service interface is obtained.

[0009] In one possible implementation, the step of taking screenshots of the monitored video elements based on a set timer includes: The video content review manager is invoked to manage the video playback status, and a timer is used to periodically trigger video frame capture based on the video playback status.

[0010] In one possible implementation, when the content of the webpage to be detected is text content, the script for obtaining the content of the webpage to be detected, based on a custom-defined webpage view client within the Android system, obtains the content of the webpage to be detected and performs inappropriate information detection on the content of the webpage to be detected to obtain inappropriate information detection results, including: The script for obtaining the text content to be detected within the custom text content moderation manager is invoked and executed to obtain the text content in the document object model of the webpage as the text content to be detected, and the text content to be detected is subjected to inappropriate information detection to obtain the inappropriate information detection result.

[0011] In one possible implementation, the detection of inappropriate content in the text to be detected includes: The text content review manager is invoked to read all sensitive word files in the local resource directory, summarize all sensitive keywords and remove duplicates, construct a unified sensitive word library, and then traverse and search the text content to be detected against the sensitive word library; when the number of matched sensitive words reaches a preset threshold, the search process is immediately terminated, and the results of the detection of inappropriate information are obtained.

[0012] A second aspect of this application provides a webpage content inappropriate information detection device for an Android system browser, comprising: The detection unit is used to respond to the user's browsing request for a webpage. After the webpage is loaded, it obtains the content of the webpage to be detected based on the webpage content acquisition script in the webpage view client customized in the Android system and performs inappropriate information detection on the webpage content to be detected to obtain inappropriate information detection results. The post-detection processing unit is used to block the webpage when the detection result indicates that the webpage content contains harmful information, so as to prevent the user from continuing to browse the webpage, and send the detection result to the review end for review. The review result response unit is used to receive the review result returned by the review terminal, and control whether the webpage is unblocked based on the review result returned by the review terminal.

[0013] In one possible implementation, the webpage content to be detected includes image content, video content, and text content within the webpage.

[0014] In one possible implementation, when the content of the webpage to be detected is image content, the detection unit is specifically used for: Call and execute the script for obtaining the image content to be detected in the custom image content review manager, obtain all image URLs after the document object model of the webpage is loaded, filter all image URLs to obtain the target image URL, and download the original image corresponding to the target image URL as the image content to be detected. The content of the image to be detected is sent to the content review abstract service interface for detection of inappropriate information, and the inappropriate information detection result returned by the inappropriate information detection service interface is obtained.

[0015] In one possible implementation, when the content of the webpage to be detected is video content, the detection unit is specifically used for: The script for obtaining the video content to be detected is called and executed in the custom video content review manager. The video elements in the document object model of the webpage are monitored, and the monitored video elements are captured based on the set timer to obtain video frames as the video content to be detected. The video content to be detected is sent to the content review abstract service interface for inappropriate information detection, and the inappropriate information detection result returned by the inappropriate information detection service interface is obtained.

[0016] In one possible implementation, the detection unit is further specifically used for: The video content review manager is invoked to manage the video playback status, and a timer is used to periodically trigger video frame capture based on the video playback status.

[0017] In one possible implementation, when the content of the webpage to be detected is text content, the detection unit is specifically used for: The script for obtaining the text content to be detected within the custom text content moderation manager is invoked and executed to obtain the text content in the document object model of the webpage as the text content to be detected, and the text content to be detected is subjected to inappropriate information detection to obtain the inappropriate information detection result.

[0018] In one possible implementation, the detection unit is further specifically used for: The text content review manager is invoked to read all sensitive word files in the local resource directory, summarize all sensitive keywords and remove duplicates, construct a unified sensitive word library, and traverse and search the text content to be detected against the sensitive word library; when the number of matched sensitive words reaches a preset threshold, the search process is immediately terminated, and the result of the detection of inappropriate information is obtained.

[0019] A third aspect of this application provides a computer program product, including computer-readable instructions, which, when executed on an electronic device, cause the electronic device to implement the Android system browser's method for detecting inappropriate web page content as described in the first aspect or any implementation thereof.

[0020] A fourth aspect of this application provides an electronic device, including at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the Android system browser's method for detecting inappropriate web page content, as described in the first aspect or any implementation thereof.

[0021] The fifth aspect of this application provides a computer-readable storage medium carrying one or more computer programs that, when executed by an electronic device, enable the Android system browser of the electronic device to perform a method for detecting inappropriate web page content when the one or more computer programs are executed by the electronic device, as described in the first aspect or any implementation thereof.

[0022] By employing the aforementioned technical solution, the method and apparatus for detecting inappropriate webpage content in an Android system browser provided in this application, through a custom webpage review view client within the Android system browser, fully utilizes the native capabilities of WebView. After the webpage loads, a script is directly injected to obtain the content to be detected and perform local inappropriate information detection, avoiding cloud transmission delays and privacy leakage risks, and achieving millisecond-level real-time response. When inappropriate information is detected, the webpage is immediately blocked, and the detection result is sent to a review end (such as a parent's end) for secondary manual review. The decision to unblock the webpage is based on the review result, effectively compensating for the high false positive rate of pure machine detection, improving the reliability of the detection results, and enabling effective monitoring of inappropriate webpage content when users browse webpages using browsers on Android-based learning terminal devices. Attached Figure Description

[0023] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0024] Figure 1 A flowchart illustrating a method for detecting inappropriate webpage content in an Android system browser, provided in an embodiment of this application; Figure 2A schematic diagram of the structure of a webpage content inappropriate information detection device for an Android system browser provided in this application embodiment; Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0025] The embodiments of this application are described below with reference to the accompanying drawings. The terminology used in the implementation section of this application is for explaining specific embodiments only and is not intended to limit the scope of this application.

[0026] The embodiments of this application will now be described with reference to the accompanying drawings. Those skilled in the art will recognize that, with technological advancements and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are equally applicable to similar technical problems.

[0027] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of elements is not necessarily limited to those elements, but may include other elements not explicitly listed or inherent to those processes, methods, products, or apparatuses.

[0028] With the continuous development and stabilization of the Android system, all kinds of terminal devices running on the Android system have filled our living spaces, ranging from small smart wearable products to large smart TVs. Among them, learning terminal devices (educational tablets, learning machines, etc.) also need to run on the Android system.

[0029] Educational tablets, learning machines, and other learning terminal devices running Android typically come with a built-in browser, allowing users to access third-party websites. However, the content on these websites varies greatly in quality, with some potentially containing pornography, violence, terrorism, or other harmful information. For learning terminal devices primarily used by minors, without effective oversight, minors are highly susceptible to exposure to inappropriate content while browsing the web, which can not only negatively impact their physical and mental health but also potentially trigger public outcry, damaging the credibility and social image of these learning terminal device brands.

[0030] Therefore, how to provide a method for detecting inappropriate web page content in an Android system browser, so as to effectively monitor inappropriate web page content when users browse web pages using a browser on a learning terminal device built with the Android system, has become a technical problem that urgently needs to be solved by those skilled in the art.

[0031] To address the aforementioned problems, this application provides a method for detecting inappropriate webpage content in an Android system browser. The method described below, with reference to the accompanying drawings, provides a detailed explanation of this method.

[0032] Reference Figure 1 , Figure 1 This application provides a flowchart illustrating a method for detecting inappropriate webpage content in an Android system browser, as shown in the embodiments below. Figure 1 As shown in the figure, the method for detecting inappropriate web page content in an Android system browser provided in this application embodiment may include the following steps, which are described in detail below.

[0033] S101: In response to the user's request to browse the webpage, after the webpage is loaded, based on the webpage content acquisition script in the custom audit webpage view client in the Android system, the webpage content to be detected is acquired and the webpage content to be detected is subjected to malicious information detection to obtain the malicious information detection result. This application designs a WebView content moderation manager class (WebViewContentModerationManager), which serves as the unified entry point for detecting inappropriate web page content in the Android system browser. This class is responsible for instantiating a custom moderation web page view client (ModerationWebViewClient). The moderation web page view client (ModerationWebViewClient) inherits from the Android system's WebViewClient class and contains a script (JavaScript script) for retrieving the content of the web page to be detected. There can be one or more scripts (JavaScript scripts) for retrieving the content of the web page to be detected. In one possible implementation, the scripts (JavaScript scripts) for retrieving the content of the web page to be detected can be injected into the onPageFinished method. This moderation web page view client can retrieve the content of the web page to be detected after the web page is loaded and perform inappropriate content detection on the content of the web page to be detected, obtaining the inappropriate content detection result.

[0034] In this application, detecting inappropriate content in the webpage to be detected refers to determining whether the webpage content contains inappropriate information such as pornography, violence, or terrorism. The results of the inappropriate content detection may include whether the webpage content contains inappropriate information and the confidence level.

[0035] In this application, safe web pages may not be subject to malicious information detection, while regular or risky web pages will be subject to malicious information detection. In this application, the main domain of a website can be configured to perform malicious information detection. If the main domain of the web page currently being viewed by the user is configured to perform malicious information detection, then that web page will be selected for detection.

[0036] It should be noted that in this application, DomainModerationStrategy and DomainStrategyManager can be configured to implement the detection strategy for inappropriate content on different web pages. DomainModerationStrategy (the domain review strategy entity class, which defines the review rules for a single domain (strictness level, blacklist, whitelist, special blocking strategy, etc.)) and DomainStrategyManager (the domain review strategy manager, which matches, manages, and schedules the review strategies corresponding to each domain based on the web page URL) are responsible for determining the detection strategy for inappropriate content based on the web page URL (for example, performing stricter detection of inappropriate content on certain domains).

[0037] S102: When the detection result of the harmful information indicates that the content of the webpage to be detected contains harmful information, the webpage is blocked to prevent the user from continuing to browse the webpage, and the detection result of the harmful information is sent to the review end for review. In this application, the WebView content moderation manager class (WebViewContentModerationManager) is also responsible for instantiating the web page content moderation callback interface class, which is used to send the notification of the results of the detection of inappropriate information to the moderator for review.

[0038] S103: Receive the review result returned by the review terminal, and control whether to unblock the webpage based on the review result returned by the review terminal.

[0039] In this application, the reviewing user (usually the guardian of the web browsing user) will review the results of the detection of inappropriate information. If the reviewing user believes that the detection results are unreliable, the webpage will be unblocked and the user can continue to browse the webpage. If the reviewing user believes that the detection results are reliable, the webpage will be blocked again.

[0040] Considering that traditional methods for detecting inappropriate content on web pages can only detect images or videos on web pages, but cannot detect text, in one possible implementation, the web page content to be detected includes image content, video content, and text content within the web page.

[0041] In this application, the WebViewContentModerationManager class is also responsible for instantiating the ImageFilterManager, VideoModerationManager, and TextModerationManager. The ImageFilterManager is used to acquire the content of the image to be detected and perform inappropriate information detection on the image content to obtain the inappropriate information detection result. The VideoModerationManager is used to acquire the content of the video to be detected and perform inappropriate information detection on the video content to obtain the inappropriate information detection result. The TextModerationManager is used to acquire the content of the text to be detected and perform inappropriate information detection on the text content to obtain the inappropriate information detection result.

[0042] In one possible implementation, when the content of the webpage to be detected is image content, the script for obtaining the content of the webpage to be detected, based on a custom-defined webpage view client within the Android system, obtains the content of the webpage to be detected and performs inappropriate information detection on the content of the webpage to be detected to obtain inappropriate information detection results, including: S201: Call and execute the script for obtaining the image content to be detected in the custom image content review manager, obtain all image URLs after the document object model (DOM) of the webpage is loaded, filter all image URLs to obtain the target image URL, and download the original image corresponding to the target image URL as the image content to be detected; In this application, the WebViewContentModerationManager class is also responsible for instantiating the ImageFilterManager, which is used to obtain the content of the image to be detected and perform inappropriate information detection on the image content to obtain the inappropriate information detection result. The ImageFilterManager includes a script (JavaScript) for obtaining the content of the image to be detected. When the content of the webpage to be detected is image content, the script for obtaining the content of the image to be detected in the custom ImageFilterManager can be called and executed to obtain all the image URLs after the Document Object Model (DOM) of the webpage is loaded, filter all the image URLs to obtain the target image URL, and download the original image corresponding to the target image URL as the content of the image to be detected.

[0043] In one possible implementation, filtering all image URLs to obtain the target image URL can be achieved by requesting the `head` interface to obtain the image format and size, and then filtering all image URLs according to the configured image format and size of the image content to be detected to obtain the target image URL. For example, the Top N image URLs that satisfy the configured image format and size of the image content to be detected can be used as the target image URL, where the specific value of N can be set based on scenario requirements, and this application does not impose any limitations on this.

[0044] S202: Send the content of the image to be detected to the content review abstract service interface for inappropriate information detection, and obtain the inappropriate information detection result returned by the inappropriate information detection service interface.

[0045] In this application, a content moderation abstract service interface (ModerationService) can be designed. This service interface is responsible for receiving the image content and video content to be detected and returning the inappropriate information detection result. A content moderation result class (ModerationResult) can be designed in this application. This is a data class that encapsulates the inappropriate information detection result, which may include whether the image content to be detected contains inappropriate information and its confidence level. After obtaining the image content to be detected, it can be sent to the content moderation abstract service interface for inappropriate information detection, and the content moderation result class (ModerationResult) returned by the inappropriate information detection service interface (ModerationService) can be obtained.

[0046] In one possible implementation, when the content of the webpage to be detected is video content, the script for obtaining the content of the webpage to be detected, based on a custom webpage view client within the Android system, acquires the content of the webpage to be detected and performs inappropriate information detection on the content of the webpage to be detected to obtain inappropriate information detection results, including: S301: Call and execute the script for obtaining the video content to be detected in the custom video content review manager, listen to the video element in the document object model (DOM) of the webpage, and take screenshots of the listened video element based on the set timer to obtain video frames as the video content to be detected; In this application, the WebView content moderation manager class (WebViewContentModerationManager) is also responsible for instantiating the video content moderation manager (VideoModerationManager) and the video JS interaction communication interface (VideoJsInterface).

[0047] The VideoModerationManager is used to acquire video content to be inspected and perform inappropriate content detection on it, obtaining the inappropriate content detection results. The VideoModerationManager includes a script (JavaScript) for acquiring the video content to be inspected. When the webpage content to be inspected is video content, a custom script for acquiring the video content to be inspected within the Image Content ModerationManager can be called and executed. This script listens for video elements in the webpage's Document Object Model (DOM) and, based on a set timer, takes screenshots of the monitored video elements to obtain video frames as the video content to be inspected.

[0048] The VideoJsInterface acts as a communication bridge between JavaScript and Android. JavaScript in the webpage calls the methods defined in this interface to send video playback status change events and captured video frame data back to the Android side for subsequent processing of inappropriate information.

[0049] In this application, the VideoModerationManager can also manage video playback status and periodically trigger video frame capture based on the video playback status. The video playback status includes several states such as start playback, paused playback, resumed playback, stopped playback, network buffering, and error. When the video playback status is start playback, the timer is initialized and video frame capture is periodically triggered based on the timer. When the video playback status is paused playback or network buffering, the timer is paused and video frame capture is not triggered. When the video playback status is stopped playback or error, the previously set timer is stopped and destroyed, and video frame capture is not triggered.

[0050] In this application, the requestScreenshotFromJs method can be used to call the custom image content acquisition script in the image content moderation manager, use Canvas to capture the video, and use the (onVideoFrameCaptured) method to receive the video frames returned by the video content acquisition script (JavaScript script).

[0051] S302: Send the video content to be detected to the content review abstract service interface for inappropriate information detection, and obtain the inappropriate information detection result returned by the inappropriate information detection service interface.

[0052] In this application, a content moderation abstract service interface (ModerationService) can be designed. This service interface is responsible for receiving the image content and video content to be detected and returning the inappropriate information detection result. A content moderation result class (ModerationResult) can be designed in this application. This is a data class that encapsulates the inappropriate information detection result, which may include whether the webpage content to be detected contains inappropriate information and its confidence level. After obtaining the video content to be detected, the video content can be sent to the content moderation abstract service interface for inappropriate information detection, and the content moderation result class (ModerationResult) returned by the inappropriate information detection service interface (ModerationService) can be obtained.

[0053] In one possible implementation, when the content of the webpage to be detected is text content, the script for obtaining the content of the webpage to be detected, based on a custom-defined webpage view client within the Android system, obtains the content of the webpage to be detected and performs inappropriate information detection on the content of the webpage to be detected to obtain inappropriate information detection results, including: The script for obtaining the text content to be detected within the custom text content moderation manager is invoked and executed to obtain the text content in the document object model (DOM) of the webpage as the text content to be detected, and the text content to be detected is subjected to inappropriate information detection to obtain the inappropriate information detection result.

[0054] In this application, the WebViewContentModerationManager class is also responsible for instantiating the TextModerationManager, which is used to obtain the text content to be detected and perform inappropriate information detection on the text content to be detected, thereby obtaining the inappropriate information detection result. The TextModerationManager includes a script (JavaScript) for obtaining the text content to be detected. When the webpage content to be detected is text content, the script for obtaining the text content to be detected within the custom TextModerationManager can be called and executed to obtain the text content in the Document Object Model (DOM) of the webpage as the text content to be detected.

[0055] In this application, the text content moderation manager can also read all sensitive word files under the local resource directory assets / sensitive_data / , summarize all sensitive keywords, and remove duplicates to build a unified sensitive word library. The text content to be detected is then traversed and matched against the sensitive word library; when the number of matched sensitive words reaches a preset threshold maxSensitiveWordsToDetect, the search process is immediately terminated, and the malicious information detection result is obtained. The malicious information detection result includes the contextual text information of M characters before and after each sensitive word in the text content to be detected. The specific value of M can be set based on scenario requirements, and no limitation is imposed in this application.

[0056] The above describes a method for detecting inappropriate web page content in an Android system browser, as provided in the embodiments of this application. The following describes the apparatus for performing the above-described method for detecting inappropriate web page content in an Android system browser.

[0057] Please see Figure 2 , Figure 2 This is a schematic diagram of the structure of a webpage content inappropriate information detection device for an Android system browser, provided as an embodiment of this application. Figure 2 As shown, the webpage content inappropriate information detection device of this Android system browser includes: The detection unit 11 is used to respond to the user's browsing request for a webpage. After the webpage is loaded, it obtains the webpage content to be detected based on the webpage content acquisition script in the webpage view client customized in the Android system and performs inappropriate information detection on the webpage content to be detected to obtain inappropriate information detection results. The post-detection processing unit 12 is used to block the webpage when the detection result indicates that the content of the webpage to be detected contains harmful information, so as to prevent the user from continuing to browse the webpage, and send the detection result to the review end for review. The review result response unit 13 is used to receive the review result returned by the review terminal and control whether the webpage is unblocked based on the review result returned by the review terminal.

[0058] In one possible implementation, the webpage content to be detected includes image content, video content, and text content within the webpage.

[0059] In one possible implementation, when the content of the webpage to be detected is image content, the detection unit is specifically used for: Call and execute the script for obtaining the image content to be detected in the custom image content review manager, obtain all image URLs after the document object model of the webpage is loaded, filter all image URLs to obtain the target image URL, and download the original image corresponding to the target image URL as the image content to be detected. The content of the image to be detected is sent to the content review abstract service interface for detection of inappropriate information, and the inappropriate information detection result returned by the inappropriate information detection service interface is obtained.

[0060] In one possible implementation, when the content of the webpage to be detected is video content, the detection unit is specifically used for: The script for obtaining the video content to be detected is called and executed in the custom video content review manager. The video elements in the document object model of the webpage are monitored, and the monitored video elements are captured based on the set timer to obtain video frames as the video content to be detected. The video content to be detected is sent to the content review abstract service interface for inappropriate information detection, and the inappropriate information detection result returned by the inappropriate information detection service interface is obtained.

[0061] In one possible implementation, the detection unit is further specifically used for: The video content review manager is invoked to manage the video playback status, and a timer is used to periodically trigger video frame capture based on the video playback status.

[0062] In one possible implementation, when the content of the webpage to be detected is text content, the detection unit is specifically used for: The script for obtaining the text content to be detected within the custom text content moderation manager is invoked and executed to obtain the text content in the document object model of the webpage as the text content to be detected, and the text content to be detected is subjected to inappropriate information detection to obtain the inappropriate information detection result.

[0063] In one possible implementation, the detection unit is further specifically used for: The text content review manager is invoked to read all sensitive word files in the local resource directory, summarize all sensitive keywords and remove duplicates, construct a unified sensitive word library, and traverse and search the text content to be detected against the sensitive word library; when the number of matched sensitive words reaches a preset threshold, the search process is immediately terminated, and the result of the detection of inappropriate information is obtained.

[0064] Each unit in the aforementioned webpage content inappropriate information detection device for the Android system browser can be implemented entirely or partially through software, hardware, or a combination thereof. These units can be embedded in or independent of the processor in a computer device, or stored in the computer device's memory as software, so that the processor can call and execute the corresponding operations of each unit.

[0065] This application also provides an electronic device in its embodiments. (See reference...) Figure 3 The diagram illustrates a structural schematic suitable for implementing the electronic device in the embodiments of this application. The electronic device in the embodiments of this application may include, but is not limited to, fixed terminals such as mobile phones, laptops, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Figure 3 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0066] like Figure 3 As shown, the electronic device may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. When the electronic device is powered on, the RAM 603 also stores various programs and data required for the operation of the electronic device. The processing unit 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0067] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 608 including, for example, memory cards, hard drives, etc.; and communication devices 609. Communication device 609 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 3 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.

[0068] This application also provides a computer program product including computer-readable instructions, which, when executed on an electronic device, cause the electronic device to implement any of the Android system browser's methods for detecting inappropriate web page content provided in this application.

[0069] This application also provides a computer-readable storage medium that carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any of the Android system browser's methods for detecting inappropriate web page content provided in this application.

[0070] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the device embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.

[0071] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, training equipment, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0072] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.

[0073] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).

Claims

1. A method for detecting harmful information in web contents of an Android system browser, characterized by, include: In response to a user's request to browse a webpage, after the webpage is loaded, the webpage content to be detected is obtained based on a script for obtaining webpage content to be detected within a custom webpage view client in the Android system. The webpage content to be detected is then subjected to inappropriate information detection to obtain inappropriate information detection results. When the detection result of the harmful information indicates that the content of the webpage to be detected contains harmful information, the webpage is blocked to prevent the user from continuing to browse the webpage, and the detection result of the harmful information is sent to the review end for review; Receive the review result returned by the review terminal, and control whether to unblock the webpage based on the review result returned by the review terminal.

2. The method of claim 1, wherein, The content of the webpage to be detected includes images, videos, and text.

3. The method of claim 1, wherein, When the content of the webpage to be detected is image content, the script for obtaining the content of the webpage to be detected, based on a custom webpage view client within the Android system, obtains the content of the webpage to be detected and performs inappropriate information detection on the content of the webpage to be detected, and obtains the inappropriate information detection result, including: Call and execute the script for obtaining the image content to be detected in the custom image content review manager, obtain all image URLs after the document object model of the webpage is loaded, filter all image URLs to obtain the target image URL, and download the original image corresponding to the target image URL as the image content to be detected. The content of the image to be detected is sent to the content review abstract service interface for detection of inappropriate information, and the inappropriate information detection result returned by the inappropriate information detection service interface is obtained.

4. The method of claim 2, wherein, When the content of the webpage to be detected is video content, the script for obtaining the content of the webpage to be detected, based on a custom webpage review view client within the Android system, obtains the content of the webpage to be detected and performs inappropriate information detection on the content of the webpage to be detected to obtain inappropriate information detection results, including: The script for obtaining the video content to be detected is called and executed in the custom video content review manager. The video elements in the document object model of the webpage are monitored, and the video frames are obtained by taking screenshots of the monitored video elements based on the set timer as the video content to be detected. The video content to be detected is sent to the content review abstract service interface for inappropriate information detection, and the inappropriate information detection result returned by the inappropriate information detection service interface is obtained.

5. The method of claim 4, wherein, The step of taking screenshots of monitored video elements based on a set timer includes: The video content review manager is invoked to manage the video playback status, and a timer is used to periodically trigger video frame capture based on the video playback status.

6. The method of claim 2, wherein, When the content of the webpage to be detected is text content, the script for obtaining the content of the webpage to be detected, based on a custom webpage view client within the Android system, obtains the content of the webpage to be detected and performs inappropriate information detection on the content of the webpage to be detected to obtain inappropriate information detection results, including: The script for obtaining the text content to be detected within the custom text content moderation manager is invoked and executed to obtain the text content in the document object model of the webpage as the text content to be detected, and the text content to be detected is subjected to inappropriate information detection to obtain the inappropriate information detection result.

7. The method according to claim 6, characterized in that, The detection of inappropriate information in the text content to be detected includes: The text content review manager is invoked to read all sensitive word files in the local resource directory, summarize all sensitive keywords and remove duplicates, construct a unified sensitive word library, and then traverse and search the text content to be detected against the sensitive word library; when the number of matched sensitive words reaches a preset threshold, the search process is immediately terminated, and the results of the detection of inappropriate information are obtained.

8. A computer program product, characterized in that, The method includes computer-readable instructions that, when executed on an electronic device, cause the electronic device to implement the method for detecting inappropriate web page content in an Android system browser as described in any one of claims 1 to 7.

9. An electronic device, characterized in that, It includes at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the method for detecting inappropriate web page content in the Android system browser as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The storage medium carries one or more computer programs, which, when executed by an electronic device, enable the electronic device to implement the method for detecting inappropriate web page content in an Android system browser as described in any one of claims 1 to 7.