技术领域technical field
本申请涉及互联网技术领域,更具体地,涉及一种网页数据屏蔽方法、装置及移动终端。The present application relates to the technical field of the Internet, and more specifically, to a web page data shielding method, device and mobile terminal.
背景技术Background technique
在浏览器的网页浏览过程中,可能出现非法的或者不健康的网页,如非法或者黄色站点,传播非法信息或者不健康信息,因此,需要对浏览器网页的非法信息、不健康信息等具有负面影响的信息进行屏蔽。During the web browsing process of the browser, illegal or unhealthy web pages may appear, such as illegal or pornographic sites, spreading illegal information or unhealthy information. Therefore, information that has a negative impact on illegal information and unhealthy information on browser web pages is required to block.
发明内容Contents of the invention
鉴于上述问题,本申请提出了一种网页数据屏蔽方法、装置及移动终端,对某些网页数据进行屏蔽,从而屏蔽具有负面影响的信息,净化网络环境。In view of the above problems, the present application proposes a webpage data shielding method, device, and mobile terminal, which shield certain webpage data, thereby shielding information with negative impacts and purifying the network environment.
第一方面,本申请实施例提供了一种网页数据屏蔽方法,应用于移动终端的浏览器,所述方法包括:浏览器接收发送数据获取请求的任务,所述数据获取请求中包括目标网址;根据安全协议文件判断所述目标网址是否为安全网址,所述安全协议文件中包括有风险的网址元素;若所述目标网址是安全网址,根据所述目标网址发送所述数据获取请求;若所述目标网址不是安全网址,不发送所述数据获取请求。In the first aspect, the embodiment of the present application provides a method for shielding web page data, which is applied to a browser of a mobile terminal, and the method includes: the browser receives and sends a data acquisition request task, and the data acquisition request includes a target URL; Judging whether the target URL is a secure URL according to the security protocol file, the security protocol file includes risky URL elements; if the target URL is a secure URL, sending the data acquisition request according to the target URL; if the target URL is a secure URL; The above target URL is not a secure URL, the data fetch request is not sent.
第二方面,本申请实施例提供了一种网页数据屏蔽装置,应用于移动终端的浏览器,所述装置包括:任务接收模块,用于接收发送数据获取请求的任务,所述数据获取请求中包括目标网址;安全判断模块,用于根据安全协议文件判断所述目标网址是否为安全网址,所述安全协议文件中包括有风险的网址元素;请求发送模块,用于若所述目标网址是安全网址,根据所述目标网址发送所述数据获取请求,若所述目标网址不是安全网址,不发送所述数据获取请求。In the second aspect, the embodiment of the present application provides a webpage data shielding device, which is applied to a browser of a mobile terminal, and the device includes: a task receiving module, configured to receive and send a task for data acquisition request, in which the data acquisition request Including the target URL; a security judging module, used to judge whether the target URL is a secure URL according to a security protocol file, and the security protocol file includes risky URL elements; a request sending module, used to determine whether the target URL is a secure URL URL, sending the data acquisition request according to the target URL, and not sending the data acquisition request if the target URL is not a secure URL.
第三方面,本申请实施例提供了一种移动终端,包括显示屏、存储器及处理器,所述显示屏及所述存储器耦接到所述处理器,所述显示屏用于显示网页内容,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行上述应用于移动终端的方法。In a third aspect, an embodiment of the present application provides a mobile terminal, including a display screen, a memory, and a processor, the display screen and the memory are coupled to the processor, and the display screen is used to display webpage content, The memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method applied to the mobile terminal.
第四方面,本申请实施例提供了一种具有处理器可执行的程序代码的计算机可读存储介质,所述程序代码使所述处理器执行上述方法。In a fourth aspect, the embodiment of the present application provides a computer-readable storage medium having a program code executable by a processor, and the program code causes the processor to execute the above method.
本申请提供的网页数据屏蔽方法、装置及移动终端,浏览器在接收到发送数据获取请求的任务时,判断该数据获取请求中的目标网址是否安全,若安全,再发送数据获取请求,若不安全,则不发送数据获取请求,通过对不安全网页数据的屏蔽,可以有效屏蔽具有负面影响的信息。In the web page data shielding method, device and mobile terminal provided by this application, when the browser receives the task of sending a data acquisition request, it judges whether the target website address in the data acquisition request is safe, and if it is safe, then sends the data acquisition request, if not If it is safe, no data acquisition request is sent, and information with negative impact can be effectively shielded by shielding unsafe webpage data.
本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These or other aspects of the present application will be more concise and understandable in the description of the following embodiments.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1示出了本申请第一实施例提出的网页数据屏蔽方法的流程图;Fig. 1 shows the flowchart of the web page data shielding method proposed in the first embodiment of the present application;
图2示出了本申请第二实施例提出的网页数据屏蔽方法的流程图;Fig. 2 shows the flowchart of the web page data shielding method proposed in the second embodiment of the present application;
图3示出了本申请第三实施例提出的网页数据屏蔽方法的流程图;Fig. 3 shows the flowchart of the web page data shielding method proposed in the third embodiment of the present application;
图4示出了本申请第四实施例提出的网页数据屏蔽装置的功能模块图;Fig. 4 shows the functional block diagram of the web page data shielding device proposed by the fourth embodiment of the present application;
图5示出了本申请实施例提出的移动终端的一种结构框图;FIG. 5 shows a structural block diagram of a mobile terminal proposed in an embodiment of the present application;
图6示出了本申请实施例提出的移动终端的一种结构图;FIG. 6 shows a structural diagram of a mobile terminal proposed in an embodiment of the present application;
图7示出了本申请实施例的用于执行根据本申请实施例的网页数据屏蔽方法的移动终端的框图。Fig. 7 shows a block diagram of a mobile terminal for executing the method for shielding webpage data according to the embodiment of the present application according to the embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
在浏览器的使用过程中,可能会遇到非法站点或者不健康的站点,如进行黄、赌、毒或者暴力宣传的站点,或者从事黄、赌、毒或暴力活动的站点。另外,在某些网页中,也可能出现非法信息或者不健康信息,如暴力图片、非法宣传文件等。一方面,这些站点或者网页中的这些负面信息极大影响用户体验,另一方面,也会传播相关负面信息,甚至对用户产生负面诱导。因此,需要对浏览器的网页进行一定的信息屏蔽。During the use of the browser, you may encounter illegal sites or unhealthy sites, such as sites that promote pornography, gambling, drugs, or violence, or sites that engage in pornography, gambling, drugs, or violence. In addition, illegal or unhealthy information may also appear on some web pages, such as violent pictures, illegal propaganda documents, etc. On the one hand, the negative information in these sites or webpages greatly affects the user experience, on the other hand, it will also disseminate related negative information, and even generate negative inducements to users. Therefore, certain information shielding needs to be performed on the webpage of the browser.
通常的,对网页进行信息屏蔽只能依靠服务端判断,服务器通过判断是否响应浏览器请求的数据做到屏蔽站点。但是,服务器只能对整个网页进行屏蔽,不能实现对整个网页进行监控,即不能监控网页内是否有负面信息,不能够动态的调整部分网页是否能访问,或者网页中某个资源能否加载。并且,若由服务器进行屏蔽,需要浏览器向服务器发送数据获取请求后,再经服务器判断为需要屏蔽的网站,服务器返回不能返回的相关页面到浏览器,所需时间长,且具有一定的流量消耗。Usually, the information shielding of web pages can only rely on the judgment of the server, and the server can shield the site by judging whether to respond to the data requested by the browser. However, the server can only shield the entire webpage, and cannot monitor the entire webpage, that is, it cannot monitor whether there is negative information in the webpage, and cannot dynamically adjust whether some webpages can be accessed, or whether a certain resource in the webpage can be loaded. Moreover, if the server is to block, the browser needs to send a data acquisition request to the server, and then the server determines that the website needs to be blocked, and the server returns the relevant pages that cannot be returned to the browser, which takes a long time and has a certain amount of traffic consume.
发明人发现,若出现非法或者黄色站点,通过浏览器进行控制访问,对负面的网络信息具有很好的控制和约束力,且控制迅速,减少流量消耗,因此迫切需要浏览器实现对网页的单独监控和屏蔽,对一些非法或者不健康站点进行强制屏蔽,降低对社会的影响力。The inventor found that if illegal or pornographic sites appear, the browser can be used to control and access negative network information, which can control and bind negative network information quickly and reduce traffic consumption. Therefore, there is an urgent need for browsers to separate web pages. Monitoring and shielding, mandatory shielding of some illegal or unhealthy sites, reducing influence on society.
因此,本申请实施例提供了一种网页数据屏蔽方法,在浏览器端对不安全的网址进行屏蔽,不论是网页的网址还是网页内资源的网址都可以进行屏蔽,从而实现对不安全的网页或者不安全的资源等网页数据进行屏蔽。其中,不安全的网址即为对应的信息为非法信息、不健康信息等负面信息的网址。该网页数据屏蔽方法屏蔽迅速,并且,对于仅有部分网页资源为不安全的网页,可以仅仅针对不安全资源进行屏蔽,而不影响网页的正常浏览。Therefore, the embodiment of the present application provides a method for shielding webpage data, which can shield unsafe web addresses on the browser side, whether it is the web address of the webpage or the web address of resources in the webpage, so as to realize the protection of unsafe webpages. Or web page data such as insecure resources are blocked. Wherein, an unsafe website is a website whose corresponding information is negative information such as illegal information and unhealthy information. The webpage data shielding method shields quickly, and, for webpages where only part of the webpage resources are unsafe, shielding can only be performed on the unsafe resources without affecting the normal browsing of the webpage.
本申请实施例中的浏览器可以是运行于移动终端中,并且,可以和服务器中的服务端进行交互。其中,移动终端可为手机、平板电脑、计算机等智能设备。下面将结合附图并通过具体的实施例对本申请实施例提供的网页数据屏蔽方法进行说明。The browser in this embodiment of the present application may run on a mobile terminal, and may interact with a server in a server. Wherein, the mobile terminal may be a smart device such as a mobile phone, a tablet computer, or a computer. The webpage data masking method provided by the embodiment of the present application will be described below with reference to the accompanying drawings and through specific embodiments.
第一实施例first embodiment
请参阅图1,本申请第一实施例提供了一种网页数据屏蔽方法,该网页数据屏蔽方法中,浏览器在接收到发送数据获取请求的任务时,先对该数据获取请求中的目标网址进行安全性判断,若该目标网址不安全,则不发送数据获取请求,实现网页数据的有效屏蔽。在具体的实施例中,所述网页数据屏蔽方法应用于如图4所示的网页数据屏蔽装置以及对应有网页数据屏蔽装置400的移动终端500(图5、图6)。上述的网页数据屏蔽方法具体可以包括以下步骤:Please refer to Fig. 1, the first embodiment of the present application provides a webpage data shielding method, in the webpage data shielding method, when the browser receives the task of sending the data acquisition request, firstly, the target URL in the data acquisition request Security judgment is performed, and if the target URL is not safe, no data acquisition request is sent to realize effective shielding of web page data. In a specific embodiment, the webpage data shielding method is applied to the webpage data shielding device shown in FIG. 4 and the mobile terminal 500 corresponding to the webpage data shielding device 400 ( FIGS. 5 and 6 ). The above webpage data shielding method may specifically include the following steps:
步骤S110:浏览器接收发送数据获取请求的任务,所述数据获取请求中包括目标网址。Step S110: the browser receives a task of sending a data acquisition request, and the data acquisition request includes a target URL.
该数据获取请求为从服务器获取数据的请求,例如http请求。该数据获取请求中包括目标网址,也就是说,该数据获取请求所要从服务器请求的数据,根据该目标网址获得。其中,目标网址可以是网页网址,如某搜索引擎网址、某公司主页网址、某网站网址等;该网址也可以是网页中子资源的网址,如网页中图片的网址、音频的网址等。The data acquisition request is a request to acquire data from a server, such as an http request. The data acquisition request includes a target URL, that is, the data to be requested from the server in the data acquisition request is obtained according to the target URL. Wherein, the target URL can be a web page URL, such as a search engine URL, a company home page URL, a website URL, etc.;
步骤S120:根据安全协议文件判断所述目标网址是否为安全网址,所述安全协议文件中包括有风险的网址元素。Step S120: Determine whether the target URL is a secure URL according to the security protocol file, which includes risky URL elements.
安全协议文件中包括具有风险的网址元素,也就是说,若目标网址中具有安全协议文件中的网址元素,则认为该目标网址不安全,可能涉黄、涉暴或者涉及其他非法的信息。其中,网址元素可以是网址的部分或者全部,如整个网址、协议、域名等任意一种或多种,当然也可能是网址中的其他元素,在此不做限定。The security protocol file includes risky URL elements, that is, if the target URL contains the URL elements in the security protocol file, the target URL is considered to be unsafe, and may involve pornography, violence, or other illegal information. Wherein, the URL element may be part or all of the URL, such as any one or more of the entire URL, protocol, domain name, etc., of course, may also be other elements in the URL, which is not limited here.
具体根据预设安全协议判断目标网址是否安全时,可以将目标网址与安全协议文件的各网址元素进行比对,判断目标网址中是否存在安全协议文件中的网址元素,若存在,则认为该目标网址是不安全的网址,若不存在,则认为该目标网址是安全网址。Specifically, when judging whether the target URL is safe according to the preset security protocol, you can compare the target URL with each URL element in the security protocol file to determine whether there is a URL element in the security protocol file in the target URL, and if it exists, consider the target URL is an unsafe URL, if it does not exist, the destination URL is considered to be a secure URL.
步骤S130:若所述目标网址是安全网址,根据所述目标网址发送所述数据获取请求;若所述目标网址不是安全网址,不发送所述数据获取请求。Step S130: If the target URL is a secure URL, send the data acquisition request according to the target URL; if the target URL is not a secure URL, do not send the data acquisition request.
若目标网址是安全的网址,则执行接收到的任务,即根据目标网址向服务器发起数据获取请求,向服务器请求获取数据。若目标网址不是安全网址,则不发送该数据获取请求,以避免获取到非法的或者不健康的不安全数据。If the target URL is a secure URL, execute the received task, that is, initiate a data acquisition request to the server according to the target URL, and request data from the server. If the target URL is not a secure URL, the data acquisition request is not sent to avoid obtaining illegal or unhealthy and unsafe data.
本申请实施例提供的网页屏蔽方法,从浏览器端对目标网址进行安全性判定,对于不是安全网址的目标网址,不发送数据获取请求,有效且快速地屏蔽具有负面影响的信息。The webpage shielding method provided by the embodiment of the present application judges the security of the target website from the browser side, and does not send a data acquisition request for the target website that is not a safe website, effectively and quickly shielding information with negative impact.
第二实施例second embodiment
本申请实施例提供了一种网页数据屏蔽方法,在该方法中,在打开网页时,从点击链接即进行判断。在链接判断过后,对于安全的网址,在向服务器发起请求前再进行安全性判断。具体的,请参见图2,该方法包括:The embodiment of the present application provides a webpage data masking method, in which method, when opening the webpage, the judgment is made from clicking on the link. After the link is judged, for a secure URL, a security judgment is made before a request is made to the server. Specifically, please refer to Figure 2, the method includes:
步骤S210:当接收到打开网页的触发操作,判断所述网页的网址是否为预设黑名单中的网址,若是,执行步骤S250;若否,以所述网页的网址为数据获取请求中的目标网址,执行步骤S220。Step S210: When a trigger operation to open a webpage is received, determine whether the URL of the webpage is a URL in the preset blacklist, if yes, perform step S250; if not, use the URL of the webpage as the target in the data acquisition request URL, go to step S220.
用户在点击链接时,浏览器收到页面请求的链接,即接收到对应该链接点击的打开网页的触发操作,首先判断该链接是否具有访问网络的权限,即判断该网页的网址是否具有访问网络的权限。When the user clicks the link, the browser receives the link requested by the page, that is, receives the trigger operation to open the webpage clicked on the link, and first judges whether the link has the right to access the network, that is, judges whether the URL of the webpage has access to the network permission.
判断网络权限时,浏览器客户端通过配置的黑名单判断该网址是否安全,若安全,则具有访问网络的权限,若不安全,则不具有访问网络的权限。具体判断过程可以是,将该网址与黑名单中的网址进行比对,看是否属于黑名单中的网址,若是黑名单中的网址,该网址可能不安全,不赋予其访问网络的权限;若不是黑名单中的网址,说明该网址可能是安全的,可以赋予其访问网络的权限。When judging the network permission, the browser client judges whether the website is safe through the configured blacklist. If it is safe, it has the right to access the network. If it is not safe, it does not have the right to access the network. The specific judgment process can be: comparing the URL with the URLs in the blacklist to see if it belongs to the URL in the blacklist, if it is a URL in the blacklist, the URL may not be safe, and it is not authorized to access the network; if If it is not a URL in the blacklist, it means that the URL may be safe and can be given permission to access the network.
可选的,浏览器客户端也可以配置网址的白名单。当接收到打开网页的触发操作,判断该网址是否为白名单中的网址,若是,在执行步骤S220,若否,则执行步骤S250。Optionally, the browser client can also configure a whitelist of URLs. When a trigger operation to open a web page is received, it is judged whether the website is a website in the whitelist, if yes, step S220 is performed, and if not, step S250 is performed.
其中,客户端配置的黑名单或者白名单可以是预先从服务器获得,该预先获得可以是在前一次或者历史的某次启动浏览器时从服务器拉取,或者是本次浏览器打开后从服务器拉取。Among them, the blacklist or whitelist configured by the client can be obtained from the server in advance, and the pre-obtained can be pulled from the server when the browser is started the previous time or at a certain time in history, or it can be obtained from the server after the browser is opened this time. Pull.
例如,当浏览器启动后,首先向服务器拉取网页链接配置的黑名单文件,等待浏览器初始化完成后更新到本地数据库中文件。浏览器在下一次启动时可以优先采用本地配置的文件进行配置,快速完成浏览器初始化。同样的,浏览器本次启动所使用的黑名单文件,可以是前一次从服务器拉取并存储于本地数据库中的黑名单文件。当然,也可以是,浏览器在本次使用过程中,也可以通过本次配置的黑名单文件进行安全性判断。For example, when the browser is started, it first pulls the blacklist file of the webpage link configuration from the server, waits for the browser to be initialized and then updates the file in the local database. When the browser is started next time, the local configuration file can be preferentially used for configuration, and the browser initialization can be completed quickly. Similarly, the blacklist file used by the browser to start this time may be the blacklist file previously pulled from the server and stored in the local database. Of course, it may also be that the browser may also perform security judgment through the blacklist file configured this time during the current use process.
步骤S220:判定接收到发送数据获取请求的任务。Step S220: Determine that the task that sends the data acquisition request is received.
如果网址是安全的,可以通过该网址访问网络,因此,可以以该网址为目标网址,准备向服务器发起数据获取请求。If the URL is safe, the network can be accessed through the URL, so the URL can be used as the target URL to prepare to initiate a data acquisition request to the server.
步骤S230:根据安全协议文件判断所述目标网址是否为安全网址,所述安全协议文件中包括有风险的网址元素。若所述目标网址是安全网址,执行步骤S240;若所述目标网址不是安全网址,执行步骤S250。Step S230: Determine whether the target URL is a secure URL according to the security protocol file, which includes risky URL elements. If the target URL is a secure URL, execute step S240; if the target URL is not a secure URL, execute step S250.
具体的,可以是,客户端通过黑名单或者白名单判定网址安全,具有网络访问权限时,可以将网址发送到浏览器内核,浏览器内核用于向服务器通过网址请求数据的网络模块在获得网址时,向服务器发送包括该网址的数据获取请求之前,通过回调通知客户端。Specifically, it may be that the client determines that the URL is safe through the blacklist or whitelist, and when it has network access authority, it can send the URL to the browser kernel, and the network module used by the browser kernel to request data from the server through the URL will obtain the URL , notify the client through a callback before sending a data acquisition request including the URL to the server.
该客户端配置有安全协议文件,因此,可以根据客户端配置的安全协议文件,判断网页网址是否安全。The client is configured with a security protocol file, so it can be determined whether the web address is safe according to the security protocol file configured on the client.
其中,客户端配置的安全协议文件,可以是预先配置,浏览器获取预先配置并存储的安全协议文件,根据预存储的安全协议文件判断目标网址是否为安全网址。Wherein, the security protocol file configured by the client may be pre-configured, and the browser obtains the pre-configured and stored security protocol file, and judges whether the target website is a secure website according to the pre-stored security protocol file.
可选的,浏览器中预先配置的安全协议文件可以是从服务器获取的。具体的,可以是,浏览器启动后,浏览器客户端进行初始化,同时需求预先加载一份浏览器安全协议文件,该文件是浏览器数据库中优先保存的一份,由客户端预先读取。等待浏览器初始化完成后,可以再从服务器上拉取一份最新的安全协议文件,更新本地数据库中预存储的安全协议文件,这样在下一次启动时可以采用最新的安全协议文件进行配置,并且浏览器的初始化更迅速。同样的,服务器在本次启动后,用于进行安全性判断的安全协议文件可以是上一次浏览器从服务器获取的安全协议文件,从而使浏览器既能以较新的安全协议文件进行安全性判断,又能快速获得安全协议文件。Optionally, the security protocol file pre-configured in the browser may be obtained from the server. Specifically, after the browser is started, the browser client is initialized, and at the same time, a browser security protocol file is required to be loaded in advance. This file is the one saved first in the browser database and read by the client in advance. After the browser is initialized, you can pull the latest security protocol file from the server and update the pre-stored security protocol file in the local database, so that the latest security protocol file can be used for configuration at the next startup, and browse The initialization of the device is faster. Similarly, after the server is started this time, the security protocol file used for security judgment can be the security protocol file obtained by the browser from the server last time, so that the browser can perform security with a newer security protocol file. Judgment, and can quickly obtain safety protocol documents.
可选的,浏览器也可以每隔预设时间周期从服务器拉取一次安全协议文件,或者是本次进行安全性判断时利用本次启动从服务器拉取的安全协议文件等,在本申请实施例中并不限定。Optionally, the browser can also pull the security protocol file from the server every preset time period, or use the security protocol file pulled from the server this time when making a security judgment this time, and implement it in this application. Examples are not limited.
步骤S240:根据所述目标网址发送所述数据获取请求。Step S240: Send the data acquisition request according to the target URL.
若目标网址通过安全协议文件判断为安全的,则可以根据该目标网址发送数据获取请求,获取对应的网页。具体的,浏览器内核用于向服务器请求数据的网络模块可以根据该网址向服务器发起数据请求,以获取网页。If the target website is determined to be safe through the security protocol file, a data acquisition request may be sent according to the target website to obtain a corresponding web page. Specifically, the network module used by the browser kernel to request data from the server can initiate a data request to the server according to the URL, so as to obtain the webpage.
步骤S250:在所述浏览器的显示界面显示错误页面。Step S250: displaying an error page on the display interface of the browser.
若目标网址为网页网址,且目标网址是黑名单中的网址,或者是根据安全协议文件判定为不安全的网址,则此时不发送该目标网址对应的数据获取请求,并在浏览器显示错误页面。If the target URL is a web page URL, and the target URL is a URL in the blacklist, or is determined to be an unsafe URL according to the security protocol document, the data acquisition request corresponding to the target URL will not be sent at this time, and an error will be displayed in the browser page.
具体的,若目标网址是黑名单中的网址,表示该目标网址没有网络权限,则直接返回,不会再进行正常的网页加载流程;同时通知浏览器内核该网站无效,由浏览器内核生成一个错误页面进行加载显示,提示用户该网站无效。Specifically, if the target URL is a URL in the blacklist, it means that the target URL has no network authority, it will return directly, and the normal web page loading process will not be carried out; at the same time, the browser kernel will be notified that the website is invalid, and the browser kernel will generate a The error page is loaded and displayed, prompting the user that the website is invalid.
若目标网址根据安全协议文件判定是不安全的网址,则阻止发送,同时返回一个错误码给浏览器内核,让浏览器内核加载一个错误页面显示,以提示用户该网址对应网页存在问题或者直接告诉用户其不存在或无效。If the target URL is judged to be an unsafe URL according to the security protocol file, the sending will be blocked, and an error code will be returned to the browser kernel, so that the browser kernel will load an error page and display it to remind the user that there is a problem with the corresponding webpage of the URL or directly tell The user does not exist or is invalid.
本申请实施例中,在接收到点击链接对应的网址时,先对网址进行黑名单验证,在黑名单验证通过的情况下,发起数据获取请求前,再通过安全协议文件进行一次安全性验证,若安全性验证通过了才向服务器发起数据获取请求,有效对具有负面信息的网页数据进行屏蔽。In the embodiment of this application, when receiving the URL corresponding to the clicked link, first perform blacklist verification on the URL, and if the blacklist verification is passed, before initiating a data acquisition request, a security verification is performed through the security protocol file. If the security verification is passed, a data acquisition request is initiated to the server, effectively shielding webpage data with negative information.
第三实施例third embodiment
本实施例提供了一种网页数据屏蔽方法,应用于移动终端的浏览器。在该方法中,当网页成功经过安全性验证,向服务器发送该网页包括该网页的网址的数据获取请求,从服务器获取网页数据后,浏览器在对网页进行数据解析过程中,需要从服务器获取其中各子资源对应的数据。则在向服务器发起请求获取子资源之前,先对子资源的安全性进行判断,具体的,请参见图3,该方法包括:This embodiment provides a web page data shielding method, which is applied to a browser of a mobile terminal. In this method, when the webpage successfully passes the security verification, a data acquisition request including the web address of the webpage is sent to the server, and after the webpage data is obtained from the server, the browser needs to obtain the data from the server in the process of parsing the webpage data. The data corresponding to each sub-resource. Then, before initiating a request to the server to obtain the sub-resource, the security of the sub-resource is first judged. Specifically, please refer to FIG. 3, the method includes:
步骤S310:当在网页中解析到子资源的网址时,以所述子资源的网址为数据获取请求中的目标网址,判定接收到发送数据获取请求的任务。Step S310: When the URL of the sub-resource is resolved in the webpage, use the URL of the sub-resource as the target URL in the data acquisition request, and determine that the task of sending the data acquisition request has been received.
在网页解析过程中,若解析到需要从服务器获取数据的子资源,在根据该子资源的网址从服务器获取数据之前,先判断该子资源是否安全。因此,在接收到以该子资源的网址作为数据获取请求中的目标网址,发送该数据获取请求的任务时,先对该数据获取请求中的目标网址进行安全性验证。During the web page parsing process, if a sub-resource that needs to obtain data from the server is parsed, before obtaining data from the server according to the URL of the sub-resource, first determine whether the sub-resource is safe. Therefore, when the task of sending the data acquisition request with the URL of the sub-resource as the target URL in the data acquisition request is received, security verification is first performed on the target URL in the data acquisition request.
步骤S320:根据安全协议文件判断所述目标网址是否为安全网址,所述安全协议文件中包括有风险的网址元素,若是安全网址,则执行步骤S330,若不是安全网址,则执行步骤S360。Step S320: Determine whether the target URL is a secure URL according to the security protocol file. The security protocol file includes risky URL elements. If it is a secure URL, execute step S330; if not, execute step S360.
通过安全协议文件对子资源的网址进行安全性验证,以尽量确保从服务器获取的子资源为安全的、合法的、健康的。Verify the security of the URL of the sub-resource through the security protocol file, so as to ensure that the sub-resource obtained from the server is safe, legal and healthy.
步骤S330:若所述目标网址是安全网址,判断所述目标网址的协议是否为标准协议,若是,执行步骤S340,若否,执行步骤S350。Step S330: If the target website is a secure website, determine whether the protocol of the target website is a standard protocol, if yes, execute step S340, if not, execute step S350.
对于安全的目标网址,根据其协议是否标准确定对其处理的方式。其中,目标网址的协议是否安全可言由对浏览器的设置确定,如设置http等协议为标准协议,设置外的其他,如“mttbrowser://”,“taobao://”等为非标准协议。For secure destination URLs, the protocol is standard to determine how they are handled. Among them, whether the protocol of the target URL is safe can be determined by the settings of the browser, such as setting http and other protocols as standard protocols, and other settings, such as "mttbrowser://", "taobao://", etc. are non-standard protocol.
步骤S340:根据所述目标网址发送所述数据获取请求。Step S340: Send the data acquisition request according to the target URL.
步骤S350:根据所述目标网址通知所述目标网址对应的进程进行处理。Step S350: Notifying the process corresponding to the target URL for processing according to the target URL.
如果数据获取请求中的目标网址是安全的,且协议是标准的,由浏览器将该数据获取请求发送到服务器获取子资源数据。If the target URL in the data acquisition request is safe and the protocol is standard, the browser sends the data acquisition request to the server to acquire sub-resource data.
若数据获取请求中的目标网址是安全的,但其协议不是标准协议,则可以将该目标网址发送到对应的进程进行处理。例如,该目标网址为跳转到淘宝的相关协议,如taobao://,则跳转到淘宝应用程序进行处理。If the target URL in the data acquisition request is safe but its protocol is not a standard protocol, the target URL may be sent to a corresponding process for processing. For example, if the target URL is a related protocol for jumping to Taobao, such as taobao://, then jump to the Taobao application for processing.
可选的,在通知目标网址对应的进程进行处理之前,可以先发出是否由其他进程进行处理的提示信息,由用户选择,若用户选择是,则根据目标网址通知所述目标网址对应的进程进行处理,若用户选择否,则可以不对该目标网址相关的数据获取请求进行处理。Optionally, before notifying the process corresponding to the target URL to process, a prompt message may be issued to let the user choose whether to process it by other processes. If the user selects yes, the process corresponding to the target URL will be notified to process Processing, if the user selects No, the data acquisition request related to the target URL may not be processed.
即,可以是,在目标网址为安全网址,但是其文件协议是非标准协议,例如mttbrowser://,taobao://,则需要在浏览器客户端判断该非标准协议是否是浏览器允许协议,如果是不允许协议则忽略该请求。如果是允许协议则由浏览器弹出提示框,用于用户自己选择;选择是,则浏览器将该网络请求的数据组装,发生系统广播信号,由注册到该协议的应用进程处理。That is, it can be that the target URL is a secure URL, but its file protocol is a non-standard protocol, such as mttbrowser://, taobao://, it is necessary to judge whether the non-standard protocol is a browser-allowed protocol on the browser client, Ignore the request if the protocol is not allowed. If the protocol is allowed, the browser will pop up a prompt box for the user to choose; if it is selected, the browser will assemble the data requested by the network, generate a system broadcast signal, and be processed by the application process registered to the protocol.
步骤S360:不发送所述数据获取请求。Step S360: Do not send the data acquisition request.
若目标网址不是安全网址,则其对应的子资源可能涉及非法信息、不健康信息等负面信息,则不发送该目标网址对应的数据获取请求,以从浏览器端阻断负面信息的获取。If the target URL is not a secure URL, its corresponding sub-resources may involve negative information such as illegal information, unhealthy information, etc., so the data acquisition request corresponding to the target URL is not sent to block the acquisition of negative information from the browser.
在本申请实施例中,对于网页内的资源文件,浏览器内核在解析完成后,对于需要网页请求的资源文件链接发送给浏览器的网络模块,网络模块通知客户端,根据客户端的安全协议判断,该链接是否安全,如果安全则允许内核发送网络请求,如果不安全则阻止发送,忽略该请求,有效屏蔽网页中负面信息对应的资源数据。In this embodiment of the application, after parsing the resource files in the webpage, the browser kernel sends the link to the resource file requested by the webpage to the network module of the browser, and the network module notifies the client, and judges according to the security protocol of the client , whether the link is safe, if it is safe, the kernel is allowed to send the network request, if it is not safe, the sending is blocked, the request is ignored, and the resource data corresponding to the negative information in the web page is effectively blocked.
第四实施例Fourth embodiment
本申请实施例提供了一种网页数据屏蔽装置400,应用于移动终端的浏览器。请参见图4,该装置包括:The embodiment of the present application provides a webpage data shielding device 400, which is applied to a browser of a mobile terminal. Please refer to Figure 4, the device includes:
任务接收模块410,用于接收发送数据获取请求的任务,所述数据获取请求中包括目标网址。安全判断模块420,用于根据安全协议文件判断所述目标网址是否为安全网址,所述安全协议文件中包括有风险的网址元素。请求发送模块430,用于若所述目标网址是安全网址,根据所述目标网址发送所述数据获取请求,若所述目标网址不是安全网址,不发送所述数据获取请求。The task receiving module 410 is configured to receive a task of sending a data acquisition request, and the data acquisition request includes a target URL. The security judging module 420 is configured to judge whether the target website is a safe website according to a security protocol file, and the security protocol file includes risky website elements. The request sending module 430 is configured to send the data acquisition request according to the target URL if the target URL is a secure URL, and not send the data acquisition request if the target URL is not a secure URL.
可选的,在本申请实施例中,当在网页中解析到子资源的网址时,以所述子资源的网址为数据获取请求中的目标网址,任务接收模块410接收到发送数据获取请求的任务。Optionally, in this embodiment of the application, when the URL of the sub-resource is resolved in the web page, the URL of the sub-resource is used as the target URL in the data acquisition request, and the task receiving module 410 receives the request to send the data acquisition request. Task.
可选的,在本申请实施例中,还包括黑名单判断模块,用于当接收到打开网页的触发操作,判断所述网页的网址是否为预设黑名单中的网址。当判断结果为网页网址不是黑名单中的网址,则以所述网页的网址为数据获取请求中的目标网址,任务接收模块410接收到发送数据获取请求的任务。Optionally, in the embodiment of the present application, a blacklist judging module is also included, configured to judge whether the URL of the webpage is a URL in the preset blacklist when a trigger operation of opening a webpage is received. When the judging result is that the URL of the webpage is not in the blacklist, the URL of the webpage is used as the target URL in the data acquisition request, and the task receiving module 410 receives the task of sending the data acquisition request.
可选的,还可以包括显示模块,当判断结果为网页网址是黑名单中的网址,显示模块在所述浏览器的显示界面显示错误页面。Optionally, a display module may also be included, and when the judgment result is that the URL of the webpage is a URL in the blacklist, the display module displays an error page on the display interface of the browser.
可选的,还可以包括显示模块,若安全判断模块420判定目标网址不是安全网址,显示模块用于在所述浏览器的显示界面显示错误页面。Optionally, a display module may also be included. If the security judgment module 420 determines that the target website is not a safe website, the display module is used to display an error page on the display interface of the browser.
可选的,本申请实施例中还可以包括协议判断模块,用于判断所述目标网址的协议是否为标准协议。若是,请求发送模块430用于根据所述目标网址发送所述数据获取请求。Optionally, the embodiment of the present application may further include a protocol judging module for judging whether the protocol of the target website is a standard protocol. If yes, the request sending module 430 is configured to send the data acquisition request according to the target URL.
综上所述,本申请实施例提供的网页数据屏蔽方法及装置,可以通过浏览器端对网站进行实时控制,通过服务端的黑名单或者白名单来控制大部分的网页访问权限,对没有权限的网站进行屏蔽操作,给出错误提示页面。同时通过浏览器内核网络模块中对所有的网络请求进行拦截,只要通过浏览器发送请求的链接都可以先根据浏览器安全协议文件的安全规则进行判断,对不符合规则的进行拒绝发送请求,这样就可以屏蔽很多不必要的请求,并且能为阻止在浏览器内通过网页进行其他非法应用的下载或者打开提供更多的途径。本申请实施例的方案中涉及一个配置的黑名单,可以动态的控制大多数网站的访问权限;另一个是通过浏览器内部来实现对网络请求的拦截;这两种方式一个发生在点击链接时控制,控制网页,一个发生在网络发生http请求前进行判断,能控制所有的请求,包含网页请求或者资源请求。In summary, the webpage data shielding method and device provided by the embodiment of the present application can control the website in real time through the browser, and control most of the webpage access rights through the blacklist or whitelist on the server side. The website performs a blocking operation and gives an error prompt page. At the same time, all network requests are intercepted in the browser kernel network module. As long as the link of the request is sent through the browser, it can be judged according to the security rules of the browser security protocol file, and the request that does not comply with the rules is rejected. In this way Many unnecessary requests can be blocked, and more ways can be provided to prevent downloading or opening of other illegal applications through web pages in the browser. The solution of the embodiment of this application involves a configured blacklist, which can dynamically control the access rights of most websites; the other is to intercept network requests through the browser; one of these two methods occurs when a link is clicked Control, control the web page, a judgment occurs before the http request occurs on the network, and can control all requests, including web page requests or resource requests.
使用该方案后,可以对所有的网站和资源进行访问控制,实时的根据配置名单可以增加和删除不同的网站,可以做到对全网的监控,同时可以响应国家对于网络暴力,赌博,涉黄网站的有利控制。After using this solution, access control can be performed on all websites and resources, and different websites can be added and deleted according to the configuration list in real time, and the whole network can be monitored, and at the same time, it can respond to the country's response to cyber violence, gambling, and pornography. Favorable Control of the Site.
第五实施例fifth embodiment
请再次参阅图5,基于上述的网页数据屏蔽方法及装置,本申请实施例还提供一种移动终端500。如图5所示,该移动终端500包括显示屏120、存储器104及处理器102,所述显示屏120及所述存储器104耦接到所述处理器102,所述显示屏120用于显示网页内容,所述存储器104存储指令,当所述指令由所述处理器102执行时所述处理器102执行上述实施例所述的方法。Please refer to FIG. 5 again. Based on the above method and device for shielding webpage data, the embodiment of the present application further provides a mobile terminal 500 . As shown in Figure 5, the mobile terminal 500 includes a display screen 120, a memory 104 and a processor 102, the display screen 120 and the memory 104 are coupled to the processor 102, and the display screen 120 is used to display web pages Content, the memory 104 stores instructions, and when the instructions are executed by the processor 102, the processor 102 executes the methods described in the above-mentioned embodiments.
具体的,如图6所示,该移动终端500可以包括电子本体部10,所述电子本体部10包括壳体12及设置在所述壳体12上的显示屏120。所述壳体12可采用金属、如钢材、铝合金制成。本实施例中,所述显示屏120通常包括显示面板111,也可包括用于响应对所述显示面板111进行触控操作的电路等。所述显示面板111可以为一个液晶显示面板(Liquid CrystalDisplay,LCD),在一些实施例中,所述显示面板111同时为一个触摸屏109。本实施例中网页内容可以是在该显示屏120显示。Specifically, as shown in FIG. 6 , the mobile terminal 500 may include an electronic body part 10 , and the electronic body part 10 includes a housing 12 and a display screen 120 disposed on the housing 12 . The housing 12 can be made of metal, such as steel or aluminum alloy. In this embodiment, the display screen 120 generally includes a display panel 111 , and may also include a circuit for responding to a touch operation on the display panel 111 . The display panel 111 may be a liquid crystal display panel (Liquid Crystal Display, LCD), and in some embodiments, the display panel 111 is also a touch screen 109 . In this embodiment, the webpage content may be displayed on the display screen 120 .
请同时参阅图7,在实际的应用场景中,所述移动终端500可作为智能手机终端进行使用,在这种情况下所述电子本体部10通常还包括一个或多个(图中仅示出一个)处理器102、存储器104、RF(Radio Frequency,射频)模块106、音频电路110、传感器114、输入模块118、电源模块122。本领域普通技术人员可以理解,图7所示的结构仅为示意,其并不对所述电子本体部10的结构造成限定。例如,所述电子本体部10还可包括比图7中所示更多或者更少的组件,或者具有与图7所示不同的对应。Please also refer to FIG. 7. In an actual application scenario, the mobile terminal 500 can be used as a smart phone terminal. In this case, the electronic main body 10 usually includes one or more (only shown in the figure) a) A processor 102 , a memory 104 , an RF (Radio Frequency, radio frequency) module 106 , an audio circuit 110 , a sensor 114 , an input module 118 , and a power module 122 . Those skilled in the art can understand that the structure shown in FIG. 7 is only a schematic diagram, which does not limit the structure of the electronic body part 10 . For example, the electronic body part 10 may also include more or fewer components than those shown in FIG. 7 , or have a different correspondence from that shown in FIG. 7 .
本领域普通技术人员可以理解,相对于所述处理器102来说,所有其他的组件均属于外设,所述处理器102与这些外设之间通过多个外设接口124相耦合。所述外设接口124可基于以下标准实现:通用异步接收/发送装置(Universal Asynchronous Receiver/Transmitter,UART)、通用输入/输出(General Purpose Input Output,GPIO)、串行外设接口(Serial Peripheral Interface,SPI)、内部集成电路(Inter-Integrated Circuit,I2C),但不并限于上述标准。在一些实例中,所述外设接口124可仅包括总线;在另一些实例中,所述外设接口124还可包括其他元件,如一个或者多个控制器,例如用于连接所述显示面板111的显示控制器或者用于连接存储器的存储控制器。此外,这些控制器还可以从所述外设接口124中脱离出来,而集成于所述处理器102内或者相应的外设内。Those skilled in the art can understand that, relative to the processor 102 , all other components belong to peripherals, and the processor 102 is coupled to these peripherals through a plurality of peripheral interfaces 124 . The peripheral interface 124 can be implemented based on the following standards: Universal Asynchronous Receiver/Transmitter (UART), General Purpose Input Output (GPIO), Serial Peripheral Interface (Serial Peripheral Interface) , SPI), inter-integrated circuit (Inter-Integrated Circuit, I2C), but not limited to the above standards. In some examples, the peripheral interface 124 may only include a bus; in other examples, the peripheral interface 124 may also include other components, such as one or more controllers, for example for connecting the display panel 111 display controller or memory controller for connecting memory. In addition, these controllers can also be separated from the peripheral interface 124 and integrated in the processor 102 or corresponding peripherals.
所述存储器104可用于存储软件程序以及模块,所述处理器102通过运行存储在所述存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理。所述存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,所述存储器104可进一步包括相对于所述处理器102远程设置的存储器,这些远程存储器可以通过网络连接至所述电子本体部10或所述显示屏120。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104 . The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory that is remotely located relative to the processor 102 , and these remote memories may be connected to the electronic main body 10 or the display screen 120 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
所述RF模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。所述RF模块106可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述RF模块106可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication,GSM)、增强型移动通信技术(Enhanced Data GSM Environment,EDGE),宽带码分多址技术(wideband codedivision multiple access,W-CDMA),码分多址技术(Code division access,CDMA)、时分多址技术(time division multiple access,TDMA),无线保真技术(Wireless,Fidelity,WiFi)(如美国电气和电子工程师协会标准IEEE 802.10A,IEEE802.11b,IEEE802.11g和/或IEEE 802.11n)、网络电话(Voice over internet protocal,VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access,Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The RF module 106 is used to receive and send electromagnetic waves, realize mutual conversion between electromagnetic waves and electrical signals, and communicate with communication networks or other devices. The RF module 106 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, etc. . The RF module 106 can communicate with various networks such as the Internet, intranet, wireless network or communicate with other devices through the wireless network. The wireless network mentioned above may include a cellular telephone network, a wireless local area network or a metropolitan area network. The above-mentioned wireless network can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), wideband code Division multiple access technology (wideband code division multiple access, W-CDMA), code division multiple access technology (Code division access, CDMA), time division multiple access technology (time division multiple access, TDMA), wireless fidelity technology (Wireless, Fidelity, WiFi) (such as IEEE 802.10A, IEEE802.11b, IEEE802.11g and/or IEEE 802.11n), VoIP (Voice over internet protocol, Worldwide Interoperability for Microwave Access, Wi-Max), other protocols for mail, instant messaging, and short messages, and any other suitable communication protocol, even those that have not yet been developed.
音频电路110、扬声器101、传声器103、麦克风105共同提供用户与所述电子本体部10或所述显示屏120之间的音频接口。The audio circuit 110 , the speaker 101 , the microphone 103 , and the microphone 105 jointly provide an audio interface between the user and the electronic main body 10 or the display screen 120 .
所述传感器114设置在所述电子本体部10内或所述显示屏120内,所述传感器114的实例包括但并不限于:加速度传感器114F、陀螺仪114G、磁力计114H以及其他传感器。The sensor 114 is disposed in the electronic main body 10 or the display screen 120 , examples of the sensor 114 include but not limited to: an acceleration sensor 114F, a gyroscope 114G, a magnetometer 114H and other sensors.
本实施例中,所述输入模块118可包括设置在所述显示屏120上的所述触摸屏109,所述触摸屏109可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在所述触摸屏109上或在所述触摸屏109附近的操作),从而可以获得用户的触摸手势,并根据预先设定的程序驱动相应的连接装置,因此,用户可以通过在显示屏的触控操作选定目标区域。可选的,所述触摸屏109可包括触摸检测装置和触摸控制器。其中,所述触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给所述触摸控制器;所述触摸控制器从所述触摸检测装置上接收触摸信息,并将该触摸信息转换成触点坐标,再送给所述处理器102,并能接收所述处理器102发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现所述触摸屏109的触摸检测功能。除了所述触摸屏109,在其它变更实施方式中,所述输入模块118还可以包括其他输入设备,如按键107。所述按键107例如可包括用于输入字符的字符按键,以及用于触发控制功能的控制按键。所述控制按键的实例包括“返回主屏”按键、开机/关机按键等等。In this embodiment, the input module 118 may include the touch screen 109 arranged on the display screen 120, and the touch screen 109 may collect touch operations of the user on or near it (for example, the user uses a finger, a stylus, etc. Any suitable object or accessory on the touch screen 109 or near the touch screen 109), so that the user's touch gesture can be obtained, and the corresponding connection device can be driven according to the preset program. Therefore, the user can The touch operation of the display screen selects the target area. Optionally, the touch screen 109 may include a touch detection device and a touch controller. Wherein, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and The touch information is converted into touch point coordinates, and then sent to the processor 102, and can receive and execute commands sent by the processor 102. In addition, the touch detection function of the touch screen 109 can be realized by various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch screen 109 , in other modified implementation manners, the input module 118 may also include other input devices, such as keys 107 . The keys 107 may include, for example, character keys for inputting characters, and control keys for triggering control functions. Examples of the control buttons include a "return to main screen" button, a power on/off button, and the like.
所述显示屏120用于显示由用户输入的信息、提供给用户的信息以及所述电子本体部10的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、数字、视频和其任意组合来构成,如显示浏览器的网页信息。在一个实例中,所述触摸屏109可设置于所述显示面板111上从而与所述显示面板111构成一个整体。The display screen 120 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic main body 10. These graphical user interfaces can be composed of graphics, text, icons, numbers, videos and other Arbitrarily combined to form, such as displaying browser webpage information. In one example, the touch screen 109 can be disposed on the display panel 111 so as to form an integral body with the display panel 111 .
所述电源模块122用于向所述处理器102以及其他各组件提供电力供应。具体地,所述电源模块122可包括电源管理系统、一个或多个电源(如电池或者交流电)、充电电路、电源失效检测电路、逆变器、电源状态指示灯以及其他任意与所述电子本体部10或所述显示屏120内电力的生成、管理及分布相关的组件。The power module 122 is used to provide power supply to the processor 102 and other components. Specifically, the power module 122 may include a power management system, one or more power sources (such as batteries or alternating current), a charging circuit, a power failure detection circuit, an inverter, a power status indicator light, and any other components related to the electronic body. Components related to the generation, management and distribution of power in the unit 10 or the display screen 120 .
所述移动终端500还包括定位器119,所述定位器119用于确定所述移动终端500所处的实际位置。本实施例中,所述定位器119采用定位服务来实现所述移动终端500的定位,所述定位服务,应当理解为通过特定的定位技术来获取所述移动终端500的位置信息(如经纬度坐标),在电子地图上标出被定位对象的位置的技术或服务。The mobile terminal 500 further includes a locator 119, and the locator 119 is used to determine the actual location of the mobile terminal 500. In this embodiment, the locator 119 uses a positioning service to realize the positioning of the mobile terminal 500. The positioning service should be understood as obtaining the position information (such as longitude and latitude coordinates) of the mobile terminal 500 through a specific positioning technology. ), a technology or service that marks the position of a positioned object on an electronic map.
应当理解的是,上述的移动终端500并不局限于智能手机终端,其应当指可以在移动中使用的计算机设备。具体而言,移动终端500,是指搭载了智能操作系统的移动计算机设备,移动终端500包括但不限于智能手机、智能手表、平板电脑,等等。It should be understood that the above-mentioned mobile terminal 500 is not limited to a smart phone terminal, but refers to a computer device that can be used on the move. Specifically, the mobile terminal 500 refers to a mobile computer device equipped with an intelligent operating system, and the mobile terminal 500 includes but is not limited to a smart phone, a smart watch, a tablet computer, and the like.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。对于方法实施例中的所描述的任意的处理方式,在装置实施例中均可以通过相应的处理模块实现,装置实施例中不再一一赘述。It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same and similar parts in each embodiment, refer to each other, that is, Can. As for the device-type embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to part of the description of the method embodiments. Any of the processing methods described in the method embodiments can be implemented by corresponding processing modules in the device embodiments, and details will not be repeated in the device embodiments.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present application, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the present application includes additional implementations in which functions may be performed out of the order shown or discussed, including in substantially simultaneous fashion or in reverse order depending on the functions involved, which shall It should be understood by those skilled in the art to which the embodiments of the present application belong.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(移动终端),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium, For use with instruction execution systems, devices, or devices (such as computer-based systems, systems including processors, or other systems that can fetch instructions from instruction execution systems, devices, or devices and execute instructions), or in conjunction with these instruction execution systems, devices or equipment used. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use in or in conjunction with an instruction execution system, device or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connection with one or more wires (mobile terminal), portable computer disk case (magnetic device), random access memory (RAM), Read Only Memory (ROM), Erasable and Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, since the program can be read, for example, by optically scanning the paper or other medium, followed by editing, interpretation or other suitable processing if necessary. The program is processed electronically and stored in computer memory.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that each part of the present application may be realized by hardware, software, firmware or a combination thereof. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. During execution, one or a combination of the steps of the method embodiments is included. In addition, each functional unit in each embodiment of the present application may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limitations on the present application, and those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not drive the essence of the corresponding technical solutions away from the spirit and scope of the technical solutions of the various embodiments of the present application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810386799.0ACN108881608A (en) | 2018-04-26 | 2018-04-26 | Webpage data shielding method and device and mobile terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810386799.0ACN108881608A (en) | 2018-04-26 | 2018-04-26 | Webpage data shielding method and device and mobile terminal |
| Publication Number | Publication Date |
|---|---|
| CN108881608Atrue CN108881608A (en) | 2018-11-23 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810386799.0APendingCN108881608A (en) | 2018-04-26 | 2018-04-26 | Webpage data shielding method and device and mobile terminal |
| Country | Link |
|---|---|
| CN (1) | CN108881608A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110750761A (en)* | 2019-09-20 | 2020-02-04 | 阿里巴巴集团控股有限公司 | Applet access control method and device |
| CN111507706A (en)* | 2019-01-31 | 2020-08-07 | 华为技术有限公司 | Data browsing and storage method, apparatus, computer equipment and storage medium |
| CN112632159A (en)* | 2020-12-01 | 2021-04-09 | 腾讯科技(深圳)有限公司 | Database access control method and device, electronic equipment and storage medium |
| CN113918415A (en)* | 2021-09-29 | 2022-01-11 | 浪潮云信息技术股份公司 | Web browser yellow-related picture monitoring system |
| CN113987472A (en)* | 2021-09-14 | 2022-01-28 | 北京纽盾网安信息技术有限公司 | Webpage browsing security detection method, device and system |
| CN116361748A (en)* | 2023-04-03 | 2023-06-30 | 武汉金力软件有限公司 | Software supply chain safety detection method and device |
| CN117336098A (en)* | 2023-11-17 | 2024-01-02 | 重庆千港安全技术有限公司 | Network space data security monitoring and analyzing method |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106027540A (en)* | 2016-06-01 | 2016-10-12 | 中青奇未(北京)网络科技有限公司 | Page interception method and system and secure desktop |
| CN106326455A (en)* | 2016-08-26 | 2017-01-11 | 乐视控股(北京)有限公司 | Web page browsing filtering processing method and system, terminal and cloud acceleration server |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106027540A (en)* | 2016-06-01 | 2016-10-12 | 中青奇未(北京)网络科技有限公司 | Page interception method and system and secure desktop |
| CN106326455A (en)* | 2016-08-26 | 2017-01-11 | 乐视控股(北京)有限公司 | Web page browsing filtering processing method and system, terminal and cloud acceleration server |
| Title |
|---|
| BAIDU_35002670: "关于在移动端浏览器中唤醒客户端的方法,让页面在客户端中打开", 《HTTPS://BBS.CSDN.NET/TOPICS/391951561》* |
| KENZONE: "如何通过浏览器启动应用程序?", 《HTTPS://SEGMENTFAULT.COM/Q/1010000000252148》* |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111507706B (en)* | 2019-01-31 | 2024-04-26 | 华为技术有限公司 | Data browsing and storage method, device, computer equipment and storage medium |
| CN111507706A (en)* | 2019-01-31 | 2020-08-07 | 华为技术有限公司 | Data browsing and storage method, apparatus, computer equipment and storage medium |
| CN110750761A (en)* | 2019-09-20 | 2020-02-04 | 阿里巴巴集团控股有限公司 | Applet access control method and device |
| CN110750761B (en)* | 2019-09-20 | 2025-07-29 | 创新先进技术有限公司 | Applet access control method and device |
| CN112632159A (en)* | 2020-12-01 | 2021-04-09 | 腾讯科技(深圳)有限公司 | Database access control method and device, electronic equipment and storage medium |
| CN112632159B (en)* | 2020-12-01 | 2021-09-28 | 腾讯科技(深圳)有限公司 | Database access control method and device, electronic equipment and storage medium |
| CN113987472A (en)* | 2021-09-14 | 2022-01-28 | 北京纽盾网安信息技术有限公司 | Webpage browsing security detection method, device and system |
| CN113987472B (en)* | 2021-09-14 | 2023-07-18 | 北京纽盾网安信息技术有限公司 | Webpage browsing security detection method, device and system |
| CN113918415A (en)* | 2021-09-29 | 2022-01-11 | 浪潮云信息技术股份公司 | Web browser yellow-related picture monitoring system |
| CN116361748A (en)* | 2023-04-03 | 2023-06-30 | 武汉金力软件有限公司 | Software supply chain safety detection method and device |
| CN116361748B (en)* | 2023-04-03 | 2023-09-15 | 武汉金力软件有限公司 | Software supply chain safety detection method and device |
| CN117336098B (en)* | 2023-11-17 | 2024-04-19 | 重庆千港安全技术有限公司 | Network space data security monitoring and analyzing method |
| CN117336098A (en)* | 2023-11-17 | 2024-01-02 | 重庆千港安全技术有限公司 | Network space data security monitoring and analyzing method |
| Publication | Publication Date | Title |
|---|---|---|
| CN108881608A (en) | Webpage data shielding method and device and mobile terminal | |
| CN110869907B (en) | A method and terminal for browsing application pages | |
| TWI606360B (en) | Method, apparatus and system for detecting webpages | |
| CN108989266B (en) | Processing method for preventing webpage hijacking, client and server | |
| US9800609B2 (en) | Method, device and system for detecting malware in a mobile terminal | |
| US10187419B2 (en) | Method and system for processing notification messages of a website | |
| EP3165019B1 (en) | Method and apparatus of notifying of smishing | |
| CN103577749B (en) | The treating method and apparatus of informing message | |
| CN103345696B (en) | Push information display method and device and mobile terminal | |
| CN106713266B (en) | Method, device, terminal and system for preventing information leakage | |
| US10796087B2 (en) | Method and apparatus for obtaining web content | |
| CN107979573B (en) | Risk information detection method, system and server | |
| CN104980404A (en) | Method and system for protecting account information security | |
| CN109145182B (en) | Data acquisition method and device, computer equipment and system | |
| CN110557499B (en) | Information processing method, device and mobile terminal | |
| CN106658568A (en) | Method and device for providing information of available wireless access point | |
| CN108270757B (en) | User account switching method, device, client and system | |
| EP2869229B1 (en) | Method, device and equipment for installing an application | |
| CN108256312B (en) | Method, device and mobile terminal for opening local application on webpage | |
| CN105791253B (en) | Method and device for acquiring authentication information of website | |
| CN103532988A (en) | Web page access control method, related devices and system | |
| CN109768921B (en) | Data transparent transmission method and corresponding instant communication terminal | |
| CN106446675A (en) | Short message processing method and mobile terminal | |
| CN105631333A (en) | Safety protection method and device | |
| CN106304087B (en) | Anti-wifi hijacking method and device |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20181123 |