Movatterモバイル変換


[0]ホーム

URL:


CN111372205A - Information prompting method and electronic equipment - Google Patents

Information prompting method and electronic equipment
Download PDF

Info

Publication number
CN111372205A
CN111372205ACN202010127866.4ACN202010127866ACN111372205ACN 111372205 ACN111372205 ACN 111372205ACN 202010127866 ACN202010127866 ACN 202010127866ACN 111372205 ACN111372205 ACN 111372205A
Authority
CN
China
Prior art keywords
address
risk
internet protocol
information
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010127866.4A
Other languages
Chinese (zh)
Inventor
刘超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN202010127866.4ApriorityCriticalpatent/CN111372205A/en
Publication of CN111372205ApublicationCriticalpatent/CN111372205A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The embodiment of the invention discloses an information prompting method and electronic equipment, wherein the method comprises the following steps: receiving a first input of a user requesting to access a target webpage; responding to the first input, and acquiring an Internet Protocol (IP) address of a target webpage; and when the IP address is the preset risk address, outputting prompt information, and prompting the target webpage to be an unsafe webpage by the prompt information. To avoid the problem of network hijacking.

Description

Translated fromChinese
信息提示方法及电子设备Information prompting method and electronic device

技术领域technical field

本发明实施例涉及通信技术领域,尤其涉及一种信息提示方法及电子设备。Embodiments of the present invention relate to the field of communication technologies, and in particular, to an information prompting method and an electronic device.

背景技术Background technique

随着电子设备硬件配置的逐步提高以及功能的拓展,电子设备已经成为人们进行互联网访问中的必需品。With the gradual improvement of the hardware configuration of electronic equipment and the expansion of functions, electronic equipment has become a necessity for people to access the Internet.

在用户通过电子设备进行安全级别较高(如银行账号登录、即时通讯登陆等场景)的互联网访问时,需要防止网络劫持的现象出现,例如用户在链接某商店中的无线网(Wireless-Fidelity,Wi-Fi)时,被恶意导向某应用程序的下载,被劫持到某商店的推广界面,被恶意导向某个恶意网站等网络劫持的现象,导致用户的隐私信息泄露。由此,如何避免网络劫持成为目前网络安全中亟需解决的问题。When a user accesses the Internet with a high level of security (such as bank account login, instant messaging login, etc.) through an electronic device, it is necessary to prevent network hijacking. Wi-Fi), it is maliciously directed to the download of a certain application, hijacked to the promotion interface of a store, or maliciously directed to a malicious website and other network hijacking phenomena, resulting in the leakage of users' private information. Therefore, how to avoid network hijacking has become an urgent problem to be solved in current network security.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种信息提示方法、电子设备以及存储介质,以避免出现网络劫持的问题。Embodiments of the present invention provide an information prompting method, an electronic device, and a storage medium, so as to avoid the problem of network hijacking.

为了解决上述技术问题,本发明实施例提供的方法是这样实现的:In order to solve the above technical problems, the method provided by the embodiment of the present invention is implemented as follows:

第一方面,本发明实施例提供了一种信息提示方法,应用于电子设备,该方法可以包括:In a first aspect, an embodiment of the present invention provides an information prompting method, which is applied to an electronic device. The method may include:

接收用户请求访问目标网页的第一输入;Receive the first input of the user requesting to access the target web page;

响应于第一输入,获取目标网页的互联网协议IP地址;In response to the first input, obtaining the Internet Protocol IP address of the target web page;

在IP地址为预设风险地址时,输出提示信息,提示信息用于向用户提示目标网页为不安全网页。When the IP address is the preset risk address, prompt information is output, and the prompt information is used to prompt the user that the target web page is an unsafe web page.

第二方面,本发明实施例提供了一种电子设备,该电子设备可以包括:In a second aspect, an embodiment of the present invention provides an electronic device, and the electronic device may include:

接收模块,用于接收用户请求访问目标网页的第一输入;a receiving module, configured to receive the first input of the user requesting to access the target web page;

获取模块,用于响应于第一输入,获取目标网页的互联网协议IP地址;an acquisition module for acquiring the Internet Protocol IP address of the target webpage in response to the first input;

提示模块,用于在IP地址为预设风险地址时,输出提示信息,提示信息用于向用户提示目标网页为不安全网页。The prompt module is used for outputting prompt information when the IP address is the preset risk address, and the prompt information is used to prompt the user that the target web page is an unsafe web page.

第三方面,本发明实施例提供了一种电子设备,包括处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,计算机程序被处理器执行时实现如第一方面所示的信息提示方法。In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored in the memory and running on the processor, the computer program being executed by the processor is implemented as shown in the first aspect information prompt method.

第四方面,提供了一种计算机可读存储介质,其上存储有计算机程序,若计算机程序在计算机中执行,则令计算机执行如第一方面所示的信息提示方法。In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. If the computer program is executed in a computer, the computer is made to execute the information prompting method shown in the first aspect.

本发明实施例中,通过接收用户请求访问目标网页的第一输入,获取目标网页的互联网协议IP地址,判断该IP地址是否为预设风险地址,在IP地址为预设风险地址时,向用户提示目标网页为不安全网页。由此,本发明实施例提供的方法是通过电子设备进行IP地址检测,能够实现防止用户在局域网中被非法网络劫持,继而保证了用户的网络安全,使用户的隐私信息得到了保护。In the embodiment of the present invention, by receiving the first input of the user requesting to access the target web page, the Internet Protocol IP address of the target web page is obtained, and it is judged whether the IP address is a preset risk address, and when the IP address is the preset risk address, the user is notified to the user. Indicates that the landing page is an insecure page. Therefore, the method provided by the embodiment of the present invention performs IP address detection through an electronic device, which can prevent users from being hijacked by illegal networks in a local area network, thereby ensuring user network security and protecting user privacy information.

附图说明Description of drawings

从下面结合附图对本发明的具体实施方式的描述中可以更好地理解本发明其中,相同或相似的附图标记表示相同或相似的特征。The present invention can be better understood from the following description of specific embodiments of the present invention in conjunction with the accompanying drawings, wherein the same or similar reference numerals denote the same or similar features.

图1为本发明实施例提供的一种信息提示方法的应用场景示意图;1 is a schematic diagram of an application scenario of an information prompting method provided by an embodiment of the present invention;

图2为本发明实施例提供的一种信息提示方法的流程图;2 is a flowchart of a method for prompting information provided by an embodiment of the present invention;

图3为本发明实施例提供的一种信息提示的第一界面示意图;3 is a schematic diagram of a first interface of an information prompt provided by an embodiment of the present invention;

图4为本发明实施例提供的一种信息提示的第二界面示意图;4 is a schematic diagram of a second interface of an information prompt provided by an embodiment of the present invention;

图5为本发明实施例提供的一种信息提示的第三界面示意图;5 is a schematic diagram of a third interface of an information prompt provided by an embodiment of the present invention;

图6为本发明实施例提供的一种电子设备结构示意图;6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;

图7为本发明实施例提供的一种电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

目前,在用户通过电子设备进行安全级别较高(如银行账号登录、即时通讯登陆等场景)的互联网访问时,例如银行账号登录、重要账户登录等场景下,需要防止网络劫持的现象出现。其中,网络劫持为网络攻击者通过域名解析服务器(Domain Name Server,DNS)替换、数据替换等方式,使用户无法达到期望的正确访问结果。At present, when a user accesses the Internet through an electronic device with a high level of security (such as bank account login, instant messaging login, etc.), such as bank account login, important account login, etc., it is necessary to prevent the phenomenon of network hijacking. Among them, network hijacking means that network attackers make users unable to achieve expected correct access results by means of domain name server (Domain Name Server, DNS) replacement, data replacement, and the like.

在现有的网络环境下,例如用户在链接某商店中私有的Wi-Fi时,被恶意导向某应用程序的下载,被劫持到某商店的推广界面,被恶意导向某个恶意网站等网络劫持的现象。对于这种网络劫持的现象,目前有下述两种方式来避免,第一种方式是用户主观上依据网络环境识别,例如附近陌生人提供wifi或者某商店私有wifi可以认为不是很安全,这样,用户可以不连接wifi或者不访问认为不安全的网页。第二种方式是设置防火墙确认网络的安全。In the existing network environment, for example, when a user links to a private Wi-Fi in a store, he is maliciously directed to download an application, hijacked to the promotion interface of a certain store, or maliciously directed to a malicious website, etc. The phenomenon. For this phenomenon of network hijacking, there are currently two ways to avoid it. The first way is to identify the user subjectively based on the network environment. For example, the wifi provided by nearby strangers or the private wifi of a store may not be considered very safe. In this way, Users may not connect to wifi or visit web pages deemed unsafe. The second way is to set up a firewall to confirm the security of the network.

但是,上述涉及的第一种方式,当用户网络意识或者网络相关知识欠缺时,无法对网络场景进行很好的识别,由此,若访问了一些不安全的网站,很容易出现网络劫持的现象。另外,上述设计的第二种方式,设置防火墙的方式对于访问外部网络或者主干网是一种很好的方式,但是对于局域网场景下,防火墙无法覆盖,如果用户在局域网已经被劫持,那么用户也难以访问到真正的数据。However, in the first method mentioned above, when the user's network awareness or network-related knowledge is lacking, the network scene cannot be well identified. Therefore, if you visit some unsafe websites, the phenomenon of network hijacking is likely to occur. . In addition, in the second method of the above design, setting the firewall is a good way to access the external network or the backbone network, but in the LAN scenario, the firewall cannot cover it. If the user has been hijacked in the LAN, the user can also Difficult to access real data.

因此,现有的防止网络劫持方式,难以实现防止用户在不了解网络常识的情况在局域网场景下被恶意网络劫持的情况,存在场景覆盖不全以及在一些场景下无法避免网络劫持的缺陷。Therefore, the existing methods for preventing network hijacking are difficult to prevent users from being hijacked by malicious networks in a local area network scenario without knowing network common sense, and have the defects of incomplete scene coverage and unavoidable network hijacking in some scenarios.

针对相关技术出现的问题,本发明实施例提供一种信息提示方法电子设备及存储介质,以解决相关技术中,在公共场合下使用电子设备显示隐私信息,所存在的易泄露以及安全性低问题。In view of the problems in the related art, the embodiments of the present invention provide an electronic device and a storage medium for an information prompting method, so as to solve the problems of easy leakage and low security in the related art when an electronic device is used to display private information in a public place. .

本发明实施例提供的信息提示方法可以应用于下述应用场景中,下面分别进行说明:The information prompting method provided by the embodiment of the present invention can be applied to the following application scenarios, which are respectively described below:

如图1所示,在局域网场景下,电子设备可以接收用户请求访问目标网页的第一输入,响应于第一输入,向域名解析服务器发送该目标网页对应的域名A,该域名解析服务器根据该域名A获取该目标网页对应的互联网协议(Internet Protocol,IP)地址,并将该IP地址发送至电子设备;接着,在IP地址为预设风险地址时,电子设备向用户输出提示信息,该提示信息用于向用户提示该目标网页为不安全网页,反之,在IP地址不为预设风险地址时,根据该IP地址访问对应的网页,且向用户显示该IP地址对应的网页页面。As shown in FIG. 1 , in a local area network scenario, the electronic device can receive a first input from a user requesting to access a target webpage, and in response to the first input, send the domain name A corresponding to the target webpage to a domain name resolution server, and the domain name resolution server responds to the first input. The domain name A obtains the Internet Protocol (Internet Protocol, IP) address corresponding to the target webpage, and sends the IP address to the electronic device; then, when the IP address is the preset risk address, the electronic device outputs a prompt message to the user, the prompt The information is used to prompt the user that the target web page is an unsafe web page. On the contrary, when the IP address is not the preset risk address, the corresponding web page is accessed according to the IP address, and the web page corresponding to the IP address is displayed to the user.

需要提示的是,本发明实施例中的输出提示信息的方式,可以是通过电子设备的显示屏输出的方式显示提示信息;也可以是通过电子设备震动的输出方式,输出提示信息;还可以是通过电子设备的播放铃声的输出方式,输出提示信息,在此不具体限定输出方式。It should be reminded that the method of outputting the prompt information in the embodiment of the present invention may be to display the prompt information through the output mode of the display screen of the electronic device; it may also be to output the prompt information through the output method of the vibration of the electronic device; it may also be The prompt information is output through the output mode of playing the ringtone of the electronic device, and the output mode is not specifically limited here.

这里,在本发明实施例中确定IP地址是否为预设风险地址的方式可以包括如下方式:第一种方式,在预设风险地址包括私有互联网协议IP地址的情况下,确定IP地址是否为私有IP地址;在IP地址为私有IP地址的情况下,确定IP地址为预设风险地址。第二种方式,在预设风险地址包括风险互联网协议IP地址的情况下,向与电子设备对应的配置服务器发送第二请求信息,第二请求信息用于请求风险互联网协议IP地址;接收配置服务器发送的第二反馈信息,第二反馈信息中包括多个风险互联网协议IP地址;确定IP地址是否为多个风险互联网协议IP地址中的地址;在IP地址为多个风险互联网协议IP地址中的地址的情况下,确定IP地址为预设风险地址。Here, in this embodiment of the present invention, the method of determining whether the IP address is a preset risk address may include the following methods: In the first method, when the preset risk address includes a private Internet Protocol IP address, determine whether the IP address is a private address. IP address; if the IP address is a private IP address, determine the IP address as a preset risk address. The second method, in the case where the preset risk address includes the risk Internet Protocol IP address, sends second request information to the configuration server corresponding to the electronic device, and the second request information is used to request the risk Internet Protocol IP address; receiving the configuration server The second feedback information sent, the second feedback information includes multiple risk internet protocol IP addresses; determine whether the IP address is an address in multiple risk internet protocol IP addresses; if the IP address is an address in multiple risk internet protocol IP addresses In the case of an address, the IP address is determined as a preset risk address.

由此,本发明实施例提供的方法是通过电子设备进行IP地址检测,能够实现防止用户在局域网中被非法网络劫持,继而保证了用户的网络安全,使用户的隐私信息得到了保护。另外,本发明实施例提供的方法是通过电子设备进行IP地址检测,无需搭建复杂且昂贵的防火墙设备,就可以解决外部防火墙涉及不到的区域,并且不需要用户了解很多的网络常识,用户可以根据提示信息选择是否要继续访问,这样,在保证用户访问安全网页的同时,提高了用户的体验感。Therefore, the method provided by the embodiment of the present invention performs IP address detection through an electronic device, which can prevent users from being hijacked by illegal networks in a local area network, thereby ensuring user network security and protecting user privacy information. In addition, the method provided by the embodiment of the present invention is to perform IP address detection through an electronic device, without the need to build a complex and expensive firewall device, it can solve the area that the external firewall does not involve, and the user does not need to know a lot of network common sense, the user can Whether to continue the visit is selected according to the prompt information, so that the user's sense of experience is improved while ensuring that the user accesses the secure web page.

基于上述应用场景,下面对本发明实施例提供的信息提示方法进行详细说明。Based on the above application scenario, the information prompting method provided by the embodiment of the present invention is described in detail below.

图2为本发明实施例提供的一种信息提示方法的流程图。FIG. 2 is a flowchart of an information prompting method provided by an embodiment of the present invention.

如图2所示,该信息提示方法具体可以包括步骤210-步骤230,具体如下所示:As shown in FIG. 2 , the information prompting method may specifically includesteps 210 to 230, which are as follows:

首先,步骤210,接收用户请求访问目标网页的第一输入;接着,步骤220,响应于第一输入,获取目标网页的互联网协议IP地址;然后,步骤230,在IP地址为预设风险地址时,向用户提示目标网页为不安全网页。First, instep 210, receiving the first input of the user requesting to access the target web page; then, instep 220, in response to the first input, obtaining the Internet Protocol IP address of the target web page; then, instep 230, when the IP address is a preset risk address , prompting the user that the target page is an insecure page.

由此,本发明实施例提供的方法是通过电子设备进行IP地址检测,能够实现防止用户在局域网中被非法网络劫持,继而保证了用户的网络安全,使用户的隐私信息得到了保护。Therefore, the method provided by the embodiment of the present invention performs IP address detection through an electronic device, which can prevent users from being hijacked by illegal networks in a local area network, thereby ensuring user network security and protecting user privacy information.

下面分别对上述步骤进行详细说明:The above steps are described in detail below:

首先,涉及步骤210,这里,用户可以使用电子设备上多种方式访问目标网页,如浏览器访问、小程序访问、多个应用程序访问或者网页链接访问等多种方式。First,step 210 is involved. Here, the user can access the target web page in various ways on the electronic device, such as browser access, applet access, multiple application program access, or web page link access.

接着,涉及步骤220,其中,响应于第一输入,向域名解析服务器发送第一请求信息,第一请求信息用于请求目标网页的IP地址;接收域名解析服务器发送的第一反馈信息;根据第一反馈信息,获取目标网页的IP地址。Next, it involvesstep 220, wherein in response to the first input, send first request information to the domain name resolution server, where the first request information is used to request the IP address of the target web page; receive the first feedback information sent by the domain name resolution server; Once the feedback information is received, the IP address of the target web page is obtained.

这里,第一请求信息中可以包括目标网页的域名,这样,以便域名解析服务器根据该域名查询目标网页的IP地址。Here, the first request information may include the domain name of the target web page, so that the domain name resolution server can query the IP address of the target web page according to the domain name.

然后,涉及步骤230,在一种可能的实施例中,在执行步骤230之前,还可以包括确定所述IP地址是否为预设风险地址。Then, step 230 is involved. In a possible embodiment, beforestep 230 is executed, it may further include determining whether the IP address is a preset risk address.

其中,在接收到IP地址时,判断该IP地址是否为预设风险地址,在IP地址不为预设风险地址时,根据IP地址访问与其对应的目标网页,且向用户显示目标网页对应的页面;在IP地址为预设风险地址时,执行步骤230。这里,在一种可能的实施例中,在提示用户目标网页为不安全网页时,接收到用户确认继续访问的第二输入时,向用户显示目标网页对应的页面,反之,提示用户目标网页为不安全网页时,接收到用户确认不继续访问的第三输入时,结束流程。Wherein, when an IP address is received, it is determined whether the IP address is a preset risk address, and when the IP address is not a preset risk address, a target web page corresponding to the IP address is accessed according to the IP address, and the page corresponding to the target web page is displayed to the user ; When the IP address is the preset risk address,step 230 is executed. Here, in a possible embodiment, when prompting the user that the target web page is an unsafe web page, and receiving a second input from the user confirming to continue the visit, the page corresponding to the target web page is displayed to the user, otherwise, the user is prompted that the target web page is In the case of an insecure web page, the process ends when a third input from the user confirming that the access is not continued is received.

基于此,本发明实施例提供了两种确定IP地址是否为预设风险地址的方式,具体如下所示:Based on this, the embodiment of the present invention provides two methods for determining whether an IP address is a preset risk address, as follows:

方式一:预设风险地址包括私有互联网协议IP地址。Method 1: The default risk address includes a private Internet Protocol IP address.

其中,确定IP地址是否为私有IP地址;Among them, determine whether the IP address is a private IP address;

在IP地址为私有IP地址的情况下,确定IP地址为预设风险地址。In the case that the IP address is a private IP address, the IP address is determined to be a preset risk address.

这里,目前的IP地址通常被分为五类地址,如:Here, current IP addresses are usually divided into five types of addresses, such as:

A:0.0.0.0-127.255.255,其中段0和127不可用A: 0.0.0.0-127.255.255, where segments 0 and 127 are unavailable

B:128.0.0.0-191.255.255.255B:128.0.0.0-191.255.255.255

C:192.0.0.0-223.255.255.255C:192.0.0.0-223.255.255.255

D:224.0.0.0-239.255.255.255D: 224.0.0.0-239.255.255.255

E:240.0.0.0-255.255.255.255,其中段255不可用E: 240.0.0.0-255.255.255.255, where segment 255 is unavailable

上述涉及的五类地址,除了段0和段127之外,还有一些IP地址因为有其他的用途,是不可以用作公共IP的。还有一部分被用作私有IP地址,而私有IP地址范围如表1所示:The five types of addresses mentioned above, in addition to segment 0 and segment 127, there are some IP addresses that cannot be used as public IP because they have other purposes. Another part is used as private IP address, and the private IP address range is shown in Table 1:

表1Table 1

AA10.0.0.0~10.255.255.25510.0.0.0~10.255.255.25510.0.0.0/810.0.0.0/8BB172.16.0.0~172.31.255.255172.16.0.0~172.31.255.255172.16.0.0/12172.16.0.0/12CC192.168.0.0~192.168.255.255192.168.0.0~192.168.255.255192.168.0.0/16192.168.0.0/16

而私有IP地址不能被路由到互联网络(Internet)骨干网上,路由器也将丢弃该私有地址。While private IP addresses cannot be routed to the Internet backbone, routers will also discard the private addresses.

综上所示,如果一个外网地址经过DNS解析成了一个内网地址,那么该地址极大可能是不安全的网页(同网站在同一内网的用户除外),这样,该用户的访问被劫持到了局域网内的某个服务地址,很大可能是局域网内的攻击者地址。因此,如果私有IP地址检测在表1的范围内,则认为是预设风险地址。To sum up, if an external network address is resolved into an internal network address through DNS, then the address is very likely to be an insecure web page (except users who are on the same intranet as the website). In this way, the user's access is blocked. Hijacked to a service address in the LAN, most likely the address of the attacker in the LAN. Therefore, if the private IP address is detected within the range of Table 1, it is considered to be a preset risk address.

方式二:预设风险地址包括风险互联网协议IP地址Method 2: The default risk address includes the risk Internet Protocol IP address

其中,电子设备向与电子设备对应的配置服务器发送第二请求信息,第二请求信息用于请求风险互联网协议IP地址;接收配置服务器发送的第二反馈信息,第二反馈信息中包括多个风险互联网协议IP地址;确定IP地址是否为多个风险互联网协议IP地址中的地址;在IP地址为多个风险互联网协议IP地址中的地址的情况下,确定IP地址为预设风险地址。The electronic device sends second request information to a configuration server corresponding to the electronic device, where the second request information is used to request a risk Internet Protocol IP address; receives second feedback information sent by the configuration server, where the second feedback information includes multiple risks Internet Protocol IP address; determine whether the IP address is an address among multiple risk Internet Protocol IP addresses; if the IP address is an address among multiple risk Internet Protocol IP addresses, determine the IP address as a preset risk address.

另外,第二反馈信息中还包括与多个风险互联网协议IP地址的每个风险互联网协议IP地址对应的风险等级,该风险等级用于表征该风险IP不安全的程度。In addition, the second feedback information further includes a risk level corresponding to each risky IP address of the multiple risky IP addresses, where the risk level is used to represent the degree of insecurity of the risky IP.

举例说明:风险IP列表如表2所示,该风险IP列表包括多个风险互联网协议IP地址,以及与风险互联网协议IP地址对应的风险等级。For example, the risk IP list is shown in Table 2. The risk IP list includes multiple risk IP addresses and risk levels corresponding to the risk IP addresses.

表2Table 2

风险等级Risk level风险互联网协议IP地址Risky Internet Protocol IP Addresses222.2.2.22.2.2.2333.3.3.33.3.3.3444.4.4.44.4.4.4555.5.5.55.5.5.5666.6.6.66.6.6.6

需要提示的是,实现时可不局限于表2所示的风险互联网协议IP地址,也可以是被海量用户标记的风险互联网协议IP地址,以及没有被官方认定的风险互联网协议IP地址。这样,通过大数据得到的风险互联网协议IP地址,准确度更高,试用范围更广,实现更加灵活。It should be reminded that the implementation may not be limited to the risky Internet Protocol IP addresses shown in Table 2, but may also be the risky Internet Protocol IP addresses marked by a large number of users, and the risky Internet Protocol IP addresses that have not been officially recognized. In this way, the risk Internet Protocol IP address obtained through big data has higher accuracy, wider trial scope, and more flexible implementation.

另外,表2中风险等级,可以依据用户访问的行为数据来进行判断,例如只是一般的某商店中的wifi连接页面,可以认为风险很小,将这种情况定义为等级1;而恶意导向某应用程序的下载,将这种情况定义为风险等级2;有行为数据表示访问网页可以导致访问的电子设备死机或者系统故障时,将这种情况定义为风险等级4;在有行为数据表示网页可以使用户的财产损失或者隐私信息泄露时,将这种情况定义风险等级6。In addition, the risk level in Table 2 can be judged according to the behavior data accessed by the user. For example, it is only a general wifi connection page in a store, and the risk can be considered to be very small, and this situation is defined as level 1; Downloading an application program, this situation is defined as risk level 2; when there is behavior data indicating that accessing the webpage can lead to the crash of the accessed electronic device or system failure, this situation is defined as risk level 4; when there is behavior data indicating that the webpage can be When the user's property is damaged or private information is leaked, this situation is defined as risk level 6.

基于步骤230中涉及的方法二中的内容,在一种可能的实施例中,在步骤230之前,该方法还可以包括:根据IP地址对应的风险互联网协议IP地址,确定IP地址的风险等级。这里,由于风险互联网协议IP地址都有一个与之对应的风险等级,这样,若IP地址为多个风险互联网协议IP地址中的一个时,该IP地址也有与该IP地址对应的风险等级。Based on the content of the second method involved instep 230, in a possible embodiment, beforestep 230, the method may further include: determining the risk level of the IP address according to the risky Internet Protocol IP address corresponding to the IP address. Here, since the risky IP address has a corresponding risk level, if the IP address is one of multiple risky IP addresses, the IP address also has a risk level corresponding to the IP address.

基于此,该步骤230具体可以包括:Based on this, thestep 230 may specifically include:

显示提示包括IP地址的风险等级,以向用户提示目标网页为不安全网页。The display prompt includes the risk level of the IP address to inform the user that the target web page is an unsafe web page.

举例说明,检测到IP地址为预设风险地址之后,可以依据风险等级做一定的处理,具体如下所示,但是包括并不局限于下面的组合:For example, after detecting that the IP address is a preset risk address, certain processing can be performed according to the risk level, as shown below, but including but not limited to the following combinations:

(1)以消息提示框的形式提示用户,如图3所示,例如Toast提示或者轻微提示,向用户提示目标网页为不安全网页。这里,提示消息提示框的时间可以在导向某商店中的wifi登录页面之前,也可以在某商店中的wifi登录页面上提示。(1) Prompt the user in the form of a message prompt box, as shown in FIG. 3 , such as a Toast prompt or a slight prompt, prompting the user that the target web page is an unsafe web page. Here, the time of the prompting message prompt box may be prompted before leading to the wifi login page in a certain store, or may be prompted on the wifi login page in a certain store.

(2)以弹框提示的形式提示用户该目标网页为导向某应用程序的下载的页面,如图4所示,在用户提示目标网页为不安全网页的文本信息的同时,向用户显示操作A继续访问的窗口,以及操作B返回前一个页面的窗口,以便用户根据实际需要进行访问操作。(2) Prompt the user in the form of a pop-up box prompt that the target web page is a page for downloading a certain application, as shown in FIG. Continue to visit the window, and operation B returns to the window of the previous page, so that the user can access according to actual needs.

(3)以强制禁止的形式提示用户该目标网页为恶意账号攻击,由此,不建议用户继续访问,或者不显示目标网页。如图5所示,在用户提示目标网页为不安全网页的文本信息,由于该目标网页的风险等级较高,既可强制禁止用户访问目标网页。(3) Prompting the user that the target web page is a malicious account attack in the form of mandatory prohibition, therefore, it is not recommended that the user continue to visit, or the target web page is not displayed. As shown in FIG. 5 , when the user prompts the text information of the target web page to be an unsafe web page, since the risk level of the target web page is relatively high, the user can be forcibly prohibited from accessing the target web page.

例如表2之中,配置服务器返回的是风险等级6的网页6.6.6.6时,可以直接按照(3)处理;配置服务器返回的是风险等级2的网页2.2.2.2时,可以直接按照(1)处理。For example, in Table 2, when the configuration server returns web page 6.6.6.6 of risk level 6, it can be processed directly according to (3); when the configuration server returns web page 2.2.2.2 of risk level 2, it can be directly processed according to (1) deal with.

这样,能够实现防止用户在局域网之中被非法网络劫持,继而保证了用户的网络安全,并且不需要用户了解很多的网络常识,通过电子设备既可以进行判断,减轻用户对于网络环境的担心,同时设置的风险等级可以避免一些错误识别行为,让用户自我选择是否继续访问,以提高用户的体验感。In this way, the user can be prevented from being hijacked by illegal networks in the local area network, thereby ensuring the user's network security, and the user does not need to know a lot of network common sense. The set risk level can avoid some misidentification behaviors, and let users choose whether to continue to visit, so as to improve the user's experience.

除此之外,在IP地址不为预设风险地址时,直接通过网络访问目标网页,且向用户显示该目标网页对应的内容。In addition, when the IP address is not the preset risk address, the target webpage is directly accessed through the network, and the content corresponding to the target webpage is displayed to the user.

另外,需要提示的是,本发明实施例中涉及的是目标网页的场景,当然在目标网站的场景中也可以通过上述信息提示方法,向用户提示目标网站为不安全网站。In addition, it should be reminded that the embodiment of the present invention involves the scenario of the target web page. Of course, in the scenario of the target website, the above information prompting method can also be used to prompt the user that the target website is an unsafe website.

综上,本发明实施例提供的方法是通过电子设备进行IP地址检测,能够实现防止用户在局域网中被非法网络劫持,继而保证了用户的网络安全,使用户的隐私信息得到了保护。另外,本发明实施例提供的方法是通过电子设备进行IP地址检测,无需搭建复杂且昂贵的防火墙设备,就可以解决外部防火墙涉及不到的区域,并且不需要用户了解很多的网络常识,用户可以根据提示信息选择是否要继续访问,这样,在保证用户访问安全网页的同时,提高了用户的体验感。To sum up, the method provided by the embodiment of the present invention is to perform IP address detection through an electronic device, which can prevent users from being hijacked by illegal networks in a local area network, thereby ensuring user network security and protecting user privacy information. In addition, the method provided by the embodiment of the present invention is to perform IP address detection through an electronic device, without the need to build a complex and expensive firewall device, it can solve the area that the external firewall does not involve, and the user does not need to know a lot of network common sense, the user can Whether to continue the visit is selected according to the prompt information, so that the user's sense of experience is improved while ensuring that the user accesses the secure web page.

另外,基于上述涉及到的信息提示方法,本发明实施例还提供了一种电子设备,具体结合图6进行详细说明。In addition, based on the above-mentioned information prompting method, an embodiment of the present invention further provides an electronic device, which will be described in detail with reference to FIG. 6 .

图6为本发明实施例提供的一种电子设备结构示意图。FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

如图6所示,该电子设备60可以包括:As shown in FIG. 6, theelectronic device 60 may include:

接收模块601,用于接收用户请求访问目标网页的第一输入。The receivingmodule 601 is configured to receive a first input of a user requesting to access a target webpage.

获取模块602,用于响应于第一输入,获取目标网页的互联网协议IP地址。The obtainingmodule 602 is configured to obtain the Internet Protocol IP address of the target webpage in response to the first input.

提示模块603,用于在IP地址为预设风险地址时,输出提示信息,所述提示信息用于向用户提示目标网页为不安全网页。Theprompt module 603 is configured to output prompt information when the IP address is a preset risk address, where the prompt information is used to prompt the user that the target web page is an unsafe web page.

其中,本发明实施例忠的获取模块602具体用于,响应于第一输入,向域名解析服务器发送第一请求信息,第一请求信息用于请求目标网页的IP地址;基于此,接收模块601具体用于,接收域名解析服务器发送的第一反馈信息;获取模块602具体用于,根据第一反馈信息,获取目标网页的IP地址。The obtainingmodule 602 in the embodiment of the present invention is specifically configured to, in response to the first input, send first request information to the domain name resolution server, where the first request information is used to request the IP address of the target webpage; based on this, the receivingmodule 601 It is specifically used for receiving the first feedback information sent by the domain name resolution server; the acquiringmodule 602 is specifically used for acquiring the IP address of the target webpage according to the first feedback information.

在一种可能的实施中,该电子设备60还包括处理模块604,其中,处理模块604,用于,确定所述IP地址为所述预设风险地址。In a possible implementation, theelectronic device 60 further includes aprocessing module 604, wherein theprocessing module 604 is configured to determine that the IP address is the preset risk address.

在预设风险地址包括私有互联网协议IP地址的情况下,处理模块604具体可以用于,确定IP地址是否为私有IP地址;在IP地址为私有IP地址的情况下,确定IP地址为预设风险地址。In the case that the preset risk address includes a private Internet Protocol IP address, theprocessing module 604 can be specifically configured to determine whether the IP address is a private IP address; in the case that the IP address is a private IP address, determine that the IP address is a preset risk address.

在另一种可能的实施例中,电子设备60还包括发送模块605;其中,发送模块605,用于在预设风险地址包括风险互联网协议IP地址的情况下,向与电子设备对应的配置服务器发送第二请求信息,第二请求信息用于请求风险互联网协议IP地址。基于此,接收模块601还用于,接收配置服务器发送的第二反馈信息,第二反馈信息中包括多个风险互联网协议IP地址;处理模块604具体用于,确定IP地址是否为多个风险互联网协议IP地址中的地址;在IP地址为多个风险互联网协议IP地址中的地址的情况下,确定IP地址为预设风险地址。In another possible embodiment, theelectronic device 60 further includes a sendingmodule 605; wherein the sendingmodule 605 is configured to send the configuration server corresponding to the electronic device to a configuration server corresponding to the electronic device under the condition that the preset risk address includes a risk internet protocol IP address Sending second request information, where the second request information is used to request a risk Internet Protocol IP address. Based on this, the receivingmodule 601 is further configured to receive the second feedback information sent by the configuration server, where the second feedback information includes multiple risky Internet Protocol IP addresses; theprocessing module 604 is specifically configured to determine whether the IP addresses are multiple risky Internet Protocol addresses The address in the protocol IP address; in the case that the IP address is an address in multiple risk internet protocol IP addresses, the IP address is determined to be the preset risk address.

进一步地,处理模块604还用于,在第二反馈信息中包括与多个风险互联网协议IP地址的每个风险互联网协议IP地址对应的风险等级的情况下,根据IP地址对应的风险互联网协议IP地址,确定IP地址的风险等级。基于此,提示模块604具体用于,输出提示信息,所述提示信息包括所述IP地址的风险等级。Further, theprocessing module 604 is further configured to, in the case that the second feedback information includes a risk level corresponding to each risk IP address of the multiple risk IP addresses, according to the risk IP address corresponding to the IP address. address, which determines the risk level of the IP address. Based on this, theprompt module 604 is specifically configured to output prompt information, where the prompt information includes the risk level of the IP address.

由此,本发明实施例提供的电子设备通过电子设备进行IP地址检测,能够实现防止用户在局域网中被非法网络劫持,继而保证了用户的网络安全,使用户的隐私信息得到了保护。另外,本发明实施例提供的方法是通过电子设备进行IP地址检测,无需搭建复杂且昂贵的防火墙设备,就可以解决外部防火墙涉及不到的区域,并且不需要用户了解很多的网络常识,用户可以根据提示信息选择是否要继续访问,这样,在保证用户访问安全网页的同时,提高了用户的体验感。Therefore, the electronic device provided by the embodiment of the present invention performs IP address detection through the electronic device, which can prevent the user from being hijacked by an illegal network in the local area network, thereby ensuring the user's network security and protecting the user's private information. In addition, the method provided by the embodiment of the present invention is to perform IP address detection through an electronic device, without the need to build a complex and expensive firewall device, it can solve the area that the external firewall does not involve, and the user does not need to know a lot of network common sense, the user can Whether to continue the visit is selected according to the prompt information, so that the user's sense of experience is improved while ensuring that the user accesses the secure web page.

图7为本发明实施例提供的一种电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.

该电子设备700包括但不限于:射频单元701、网络模块702、音频输出单元703、输入单元704、传感器705、显示单元706、用户输入单元707、接口单元708、存储器709、处理器710、以及电源711等部件。本领域技术人员可以理解,图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。Theelectronic device 700 includes but is not limited to: aradio frequency unit 701, anetwork module 702, anaudio output unit 703, aninput unit 704, asensor 705, adisplay unit 706, auser input unit 707, aninterface unit 708, amemory 709, aprocessor 710, andPower supply 711 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 7 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than the one shown, or combine some components, or different components layout. In this embodiment of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.

其中,用户输入单元707,用于接收用户请求访问目标网页的第一输入。Theuser input unit 707 is configured to receive a first input from a user requesting to access the target webpage.

处理器710,用于响应于第一输入,获取目标网页的互联网协议IP地址。Theprocessor 710 is configured to obtain the Internet Protocol IP address of the target webpage in response to the first input.

显示单元706,用于在IP地址为预设风险地址时,输出提示信息,提示信息用于向用户提示目标网页为不安全网页。Thedisplay unit 706 is configured to output prompt information when the IP address is a preset risk address, and the prompt information is used to prompt the user that the target web page is an unsafe web page.

由此,通过接收用户请求访问目标网页的第一输入,获取目标网页的互联网协议IP地址,判断该IP地址是否为预设风险地址,在IP地址为预设风险地址时,向用户提示目标网页为不安全网页。由此,本发明实施例提供的方法是通过电子设备进行IP地址检测,能够实现防止用户在局域网中被非法网络劫持,继而保证了用户的网络安全,使用户的隐私信息得到了保护。Thus, by receiving the first input of the user requesting to access the target web page, the Internet Protocol IP address of the target web page is obtained, it is determined whether the IP address is a preset risk address, and when the IP address is the preset risk address, the target web page is prompted to the user for insecure web pages. Therefore, the method provided by the embodiment of the present invention performs IP address detection through an electronic device, which can prevent users from being hijacked by illegal networks in a local area network, thereby ensuring user network security and protecting user privacy information.

应理解的是,本发明实施例中,射频单元701可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行资源接收后,给处理器710处理;另外,将上行的资源发送给基站。通常,射频单元701包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元701还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, theradio frequency unit 701 may be used for receiving and sending signals during sending and receiving of information or during a call. Specifically, the downlink resources from the base station are received and processed by theprocessor 710; The uplink resources are sent to the base station. Generally, theradio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, theradio frequency unit 701 can also communicate with the network and other devices through a wireless communication system.

电子设备通过网络模块702为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides the user with wireless broadband Internet access through thenetwork module 702, such as helping the user to send and receive emails, browse web pages, access streaming media, and the like.

音频输出单元703可以将射频单元701或网络模块702接收的或者在存储器707中存储的音频资源转换成音频信号并且输出为声音。而且,音频输出单元703还可以提供与电子设备700执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元703包括扬声器、蜂鸣器以及受话器等。Theaudio output unit 703 may convert the audio resources received by theradio frequency unit 701 or thenetwork module 702 or stored in thememory 707 into audio signals and output as sound. Also, theaudio output unit 703 may also provide audio output related to a specific function performed by the electronic device 700 (eg, call signal reception sound, message reception sound, etc.). Theaudio output unit 703 includes a speaker, a buzzer, a receiver, and the like.

输入单元704用于接收音频或视频信号。输入单元704可以包括图形处理器(Graphics Processing Unit,GPU)7041和麦克风7042,图形处理器7041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像资源进行处理。处理后的图像帧可以显示在显示单元707上。经图形处理器7041处理后的图像帧可以存储在存储器707(或其它存储介质)中或者经由射频单元701或网络模块702进行发送。麦克风7042可以接收声音,并且能够将这样的声音处理为音频资源。处理后的音频资源可以在电话通话模式的情况下转换为可经由射频单元701发送到移动通信基站的格式输出。Theinput unit 704 is used to receive audio or video signals. Theinput unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and amicrophone 7042. Thegraphics processor 7041 captures still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode resources are processed. The processed image frame may be displayed on thedisplay unit 707 . The image frames processed by thegraphics processor 7041 may be stored in the memory 707 (or other storage medium) or transmitted via theradio frequency unit 701 or thenetwork module 702 . Themicrophone 7042 can receive sound and can process such sound as an audio resource. The processed audio resources can be converted into a format that can be sent to a mobile communication base station via theradio frequency unit 701 for output in the case of a telephone call mode.

电子设备700还包括至少一种传感器705,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板7061的亮度,接近传感器可在电子设备700移动到耳边时,关闭显示面板7061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器705还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。Theelectronic device 700 also includes at least onesensor 705, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of thedisplay panel 7061 according to the brightness of the ambient light, and the proximity sensor can turn off thedisplay panel 7061 and thedisplay panel 7061 when theelectronic device 700 is moved to the ear. / or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; thesensor 705 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors, etc., are not repeated here.

显示单元706用于显示由用户输入的信息或提供给用户的信息。显示单元706可包括显示面板7061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板7061。Thedisplay unit 706 is used to display information input by the user or information provided to the user. Thedisplay unit 706 may include adisplay panel 7061, and thedisplay panel 7061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

用户输入单元707可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元707包括触控面板7071以及其他输入设备7072。触控面板7071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板7071上或在触控面板7071附近的操作)。触控面板7071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器710,接收处理器710发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板7071。除了触控面板7071,用户输入单元707还可以包括其他输入设备7072。具体地,其他输入设备7072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。Theuser input unit 707 may be used to receive input numerical or character information, and generate key signal input related to user setting and function control of the electronic device. Specifically, theuser input unit 707 includes atouch panel 7071 andother input devices 7072 . Thetouch panel 7071, also referred to as a touch screen, collects the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or accessory on or near the touch panel 7071). operate). Thetouch panel 7071 may include two parts, a touch detection device and a touch controller. Among them, 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, converts it into contact coordinates, and then sends it to the touch controller. To theprocessor 710, the command sent by theprocessor 710 is received and executed. In addition, thetouch panel 7071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to thetouch panel 7071 , theuser input unit 707 may also includeother input devices 7072 . Specifically,other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板7071可覆盖在显示面板7061上,当触控面板7071检测到在其上或附近的触摸操作后,传送给处理器710以确定触摸事件的类型,随后处理器710根据触摸事件的类型在显示面板7061上提供相应的视觉输出。虽然在图7中,触控面板7071与显示面板7061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板7071与显示面板7061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, thetouch panel 7071 can be covered on thedisplay panel 7061. When thetouch panel 7071 detects a touch operation on or near it, it transmits it to theprocessor 710 to determine the type of the touch event, and then theprocessor 710 determines the type of the touch event according to the touch The type of event provides a corresponding visual output ondisplay panel 7061. Although in FIG. 7 , thetouch panel 7071 and thedisplay panel 7061 are used as two independent components to realize the input and output functions of the electronic device, but in some embodiments, thetouch panel 7071 and thedisplay panel 7061 may be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.

接口单元708为外部装置与电子设备700连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线资源端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元708可以用于接收来自外部装置的输入(例如,资源信息、电力等等)并且将接收到的输入传输到电子设备700内的一个或多个元件或者可以用于在电子设备700和外部装置之间传输资源。Theinterface unit 708 is an interface for connecting an external device to theelectronic device 700 . For example, external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless resource ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. Theinterface unit 708 may be used to receive input from external devices (eg, resource information, power, etc.) and transmit the received input to one or more elements within theelectronic device 700 or may be used between theelectronic device 700 and external Transfer resources between devices.

存储器709可用于存储软件程序以及各种资源。存储器709可主要包括存储程序区和存储资源区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储资源区可存储根据手机的使用所创建的资源(比如音频资源、电话本等)等。此外,存储器709可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 709 may be used to store software programs as well as various resources. Thememory 709 may mainly include a storage program area and a storage resource area, wherein the storage program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; Resources (such as audio resources, phonebooks, etc.) created by the use of the mobile phone, etc. Additionally,memory 709 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

处理器710是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器709内的软件程序和/或模块,以及调用存储在存储器709内的资源,执行电子设备的各种功能和处理资源,从而对电子设备进行整体监控。处理器710可包括一个或多个处理单元;优选的,处理器710可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器710中。Theprocessor 710 is the control center of the electronic device, using various interfaces and lines to connect various parts of the entire electronic device, by running or executing the software programs and/or modules stored in thememory 709, and calling the resources stored in thememory 709. , perform various functions and processing resources of electronic equipment, so as to monitor electronic equipment as a whole. Theprocessor 710 may include one or more processing units; preferably, theprocessor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into theprocessor 710.

电子设备700还可以包括给各个部件供电的电源711(比如电池),优选的,电源711可以通过电源管理系统与处理器710逻辑连接,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。Theelectronic device 700 may also include a power supply 711 (such as a battery) for supplying power to various components. Preferably, thepower supply 711 may be logically connected to theprocessor 710 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system and other functions.

另外,电子设备700包括一些未示出的功能模块,在此不再赘述。In addition, theelectronic device 700 includes some functional modules not shown, which will not be repeated here.

本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,当计算机程序在计算机中执行时,令计算机执行本发明实施例的信息提示方法的步骤。Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed in a computer, the computer is made to execute the steps of the information prompting method of the embodiment of the present invention.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods of the various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.

Claims (10)

Translated fromChinese
1.一种信息提示方法,应用于电子设备,其特征在于,包括:1. an information prompting method, applied to electronic equipment, is characterized in that, comprising:接收用户请求访问目标网页的第一输入;Receive the first input of the user requesting to access the target web page;响应于所述第一输入,获取所述目标网页的互联网协议IP地址;In response to the first input, obtaining the Internet Protocol IP address of the target web page;在所述IP地址为预设风险地址时,输出提示信息,所述提示信息用于向用户提示所述目标网页为不安全网页。When the IP address is a preset risk address, prompt information is output, where the prompt information is used to prompt the user that the target web page is an unsafe web page.2.根据权利要求1所述的方法,其特征在于,所述响应于所述第一输入,获取所述目标网页的互联网协议IP地址,包括:2. The method according to claim 1, wherein the obtaining the Internet Protocol IP address of the target webpage in response to the first input comprises:响应于所述第一输入,向域名解析服务器发送第一请求信息;In response to the first input, sending first request information to the domain name resolution server;接收所述域名解析服务器发送的第一反馈信息;receiving the first feedback information sent by the domain name resolution server;根据所述第一反馈信息,获取所述目标网页的IP地址。Obtain the IP address of the target webpage according to the first feedback information.3.根据权利要求1或2所述的方法,其特征在于,在所述输出提示信息之前,所述方法还包括:3. The method according to claim 1 or 2, wherein before the outputting prompt information, the method further comprises:确定所述IP地址是否为预设风险地址;determining whether the IP address is a preset risk address;其中,所述预设风险地址包括私有互联网协议IP地址;所述确定所述IP地址是否为预设风险地址,包括:Wherein, the preset risk address includes a private Internet Protocol IP address; the determining whether the IP address is a preset risk address includes:确定所述IP地址是否为所述私有IP地址;determining whether the IP address is the private IP address;在所述IP地址为所述私有IP地址的情况下,确定所述IP地址为所述预设风险地址。In the case that the IP address is the private IP address, it is determined that the IP address is the preset risk address.4.根据权利要求1或2所述的方法,其特征在于,所述预设风险地址包括风险互联网协议IP地址;所述确定所述IP地址是否为预设风险地址,包括:4. The method according to claim 1 or 2, wherein the preset risk address comprises a risk Internet Protocol IP address; the determining whether the IP address is a preset risk address comprises:向配置服务器发送第二请求信息,所述第二请求信息用于请求所述风险互联网协议IP地址;sending second request information to the configuration server, where the second request information is used to request the risky Internet Protocol IP address;接收所述配置服务器发送的第二反馈信息,所述第二反馈信息中包括多个风险互联网协议IP地址;receiving second feedback information sent by the configuration server, where the second feedback information includes multiple risk Internet Protocol IP addresses;确定所述IP地址是否为所述多个风险互联网协议IP地址中的地址;determining whether the IP address is an address in the plurality of risky Internet Protocol IP addresses;在所述IP地址为所述多个风险互联网协议IP地址中的地址的情况下,确定所述IP地址为所述预设风险地址。In the case that the IP address is an address among the plurality of risky Internet Protocol IP addresses, it is determined that the IP address is the preset risky address.5.根据权利要求4所述的方法,其特征在于,所述第二反馈信息中包括与多个风险互联网协议IP地址中的每个风险互联网协议IP地址对应的风险等级;5. The method according to claim 4, wherein the second feedback information includes a risk level corresponding to each of the multiple risk Internet Protocol IP addresses in the plurality of risk Internet Protocol IP addresses;在所述输出提示信息之前,所述方法还包括:Before the outputting prompt information, the method further includes:根据所述风险互联网协议IP地址,确定所述IP地址的风险等级;Determine the risk level of the IP address according to the risk Internet Protocol IP address;所述输出提示信息,包括:The output prompt information includes:输出提示信息,所述提示信息包括所述IP地址的风险等级。Output prompt information, where the prompt information includes the risk level of the IP address.6.一种电子设备,其特征在于,包括:6. An electronic device, characterized in that, comprising:接收模块,用于接收用户请求访问目标网页的第一输入;a receiving module, configured to receive the first input of the user requesting to access the target web page;获取模块,用于响应于所述第一输入,获取所述目标网页的互联网协议IP地址;an obtaining module, configured to obtain the Internet Protocol IP address of the target webpage in response to the first input;提示模块,用于在所述IP地址为预设风险地址时,输出提示信息,所述提示信息用于向用户提示所述目标网页为不安全网页。The prompt module is configured to output prompt information when the IP address is a preset risk address, where the prompt information is used to prompt the user that the target web page is an unsafe web page.7.根据权利要求6所述的电子设备,其特征在于,所述获取模块具体用于,响应于所述第一输入,向域名解析服务器发送第一请求信息;7. The electronic device according to claim 6, wherein the obtaining module is specifically configured to, in response to the first input, send first request information to a domain name resolution server;所述接收模块具体用于,接收所述域名解析服务器发送的第一反馈信息;The receiving module is specifically configured to receive the first feedback information sent by the domain name resolution server;所述获取模块具体用于,根据所述第一反馈信息,获取所述目标网页的IP地址。The obtaining module is specifically configured to obtain the IP address of the target webpage according to the first feedback information.8.根据权利要求6或7所述的电子设备,其特征在于,所述电子设备还包括处理模块;8. The electronic device according to claim 6 or 7, wherein the electronic device further comprises a processing module;其中,所述处理模块,用于确定所述IP地址为所述预设风险地址;Wherein, the processing module is configured to determine that the IP address is the preset risk address;在所述预设风险地址包括私有互联网协议IP地址的情况下,所述处理模块具体用于,确定所述IP地址是否为所述私有IP地址;When the preset risk address includes a private Internet Protocol IP address, the processing module is specifically configured to determine whether the IP address is the private IP address;在所述IP地址为所述私有IP地址的情况下,确定所述IP地址为所述预设风险地址。In the case that the IP address is the private IP address, it is determined that the IP address is the preset risk address.9.根据权利要求6或7所述的电子设备,其特征在于,所述电子设备还包括发送模块;其中,9. The electronic device according to claim 6 or 7, wherein the electronic device further comprises a sending module; wherein,所述发送模块,用于在所述预设风险地址包括风险互联网协议IP地址的情况下,向配置服务器发送第二请求信息,所述第二请求信息用于请求所述风险互联网协议IP地址;The sending module is configured to send second request information to the configuration server when the preset risk address includes a risk Internet Protocol IP address, where the second request information is used to request the risk Internet Protocol IP address;所述接收模块还用于,接收所述配置服务器发送的第二反馈信息,所述第二反馈信息中包括多个风险互联网协议IP地址;The receiving module is further configured to receive second feedback information sent by the configuration server, where the second feedback information includes multiple risk Internet Protocol IP addresses;所述处理模块具体用于,确定所述IP地址是否为所述多个风险互联网协议IP地址中的地址;在所述IP地址为所述多个风险互联网协议IP地址中的地址的情况下,确定所述IP地址为所述预设风险地址。The processing module is specifically configured to determine whether the IP address is an address in the plurality of risky Internet Protocol IP addresses; in the case that the IP address is an address in the plurality of risky Internet Protocol IP addresses, It is determined that the IP address is the preset risk address.10.根据权利要求9所述的电子设备,其特征在于,所述处理模块还用于,在所述第二反馈信息中包括与多个风险互联网协议IP地址的每个风险互联网协议IP地址对应的风险等级的情况下,根据所述风险互联网协议IP地址,确定所述IP地址的风险等级;10 . The electronic device according to claim 9 , wherein the processing module is further configured to include, in the second feedback information, an IP address corresponding to each risky IP address of a plurality of risky IP addresses. 11 . In the case of the risk level, determine the risk level of the IP address according to the risk Internet Protocol IP address;所述提示模块具体用于,输出提示信息,所述提示信息包括所述IP地址的风险等级。The prompt module is specifically configured to output prompt information, where the prompt information includes the risk level of the IP address.
CN202010127866.4A2020-02-282020-02-28Information prompting method and electronic equipmentPendingCN111372205A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202010127866.4ACN111372205A (en)2020-02-282020-02-28Information prompting method and electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010127866.4ACN111372205A (en)2020-02-282020-02-28Information prompting method and electronic equipment

Publications (1)

Publication NumberPublication Date
CN111372205Atrue CN111372205A (en)2020-07-03

Family

ID=71210190

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010127866.4APendingCN111372205A (en)2020-02-282020-02-28Information prompting method and electronic equipment

Country Status (1)

CountryLink
CN (1)CN111372205A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111898159A (en)*2020-07-312020-11-06维沃移动通信有限公司 Risk warning method, device, electronic device and readable storage medium
CN111914243A (en)*2020-07-302020-11-10长沙尚链通信息科技有限公司Block chain wallet operation reminding method based on block chain intelligent contract
CN113342303A (en)*2021-05-312021-09-03维沃移动通信有限公司Information input method and device
WO2023040983A1 (en)*2021-09-182023-03-23贵州白山云科技股份有限公司Access request processing method, electronic apparatus, electronic device, and medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101605154A (en)*2009-07-092009-12-16中兴通讯股份有限公司 System and method for confirming IP address of network device using network address translation
CN102651856A (en)*2011-02-232012-08-29腾讯科技(深圳)有限公司Method, system and device for improving Internet surfing security of terminal
CN103780659A (en)*2012-10-252014-05-07中国电信股份有限公司Method for processing webpage address inputted by mobile subscriber and wireless application protocol gateway
CN103780450A (en)*2012-10-242014-05-07腾讯科技(深圳)有限公司Browser access web address detection method and system
CN103825895A (en)*2014-02-242014-05-28联想(北京)有限公司Information processing method and electronic device
CN104683330A (en)*2015-02-062015-06-03广州酷狗计算机科技有限公司Domain name hijacking resisting method and device
US20150281242A1 (en)*2012-05-102015-10-01Centurylink Intellectual Property LlcSystem and Method for Secure Machine-To-Machine Communications
CN105323210A (en)*2014-06-102016-02-10腾讯科技(深圳)有限公司Method, apparatus and cloud server for detecting website security
CN106357603A (en)*2016-08-182017-01-25乐视控股(北京)有限公司Web page security detection processing method and device
CN106453436A (en)*2016-12-212017-02-22北京奇虎科技有限公司Method and device for detecting network security
CN108512935A (en)*2018-04-162018-09-07腾讯科技(深圳)有限公司data service system, method, server and computer readable storage medium
CN108566656A (en)*2018-04-132018-09-21上海连尚网络科技有限公司A kind of method and apparatus for detecting wireless network secure
CN108647281A (en)*2018-05-032018-10-12腾讯科技(深圳)有限公司Web page access risk supervision, reminding method, device and computer equipment
CN110113364A (en)*2019-05-292019-08-09深圳市网心科技有限公司Domain Hijacking defence method and device, computer installation and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101605154A (en)*2009-07-092009-12-16中兴通讯股份有限公司 System and method for confirming IP address of network device using network address translation
CN102651856A (en)*2011-02-232012-08-29腾讯科技(深圳)有限公司Method, system and device for improving Internet surfing security of terminal
US20150281242A1 (en)*2012-05-102015-10-01Centurylink Intellectual Property LlcSystem and Method for Secure Machine-To-Machine Communications
CN103780450A (en)*2012-10-242014-05-07腾讯科技(深圳)有限公司Browser access web address detection method and system
CN103780659A (en)*2012-10-252014-05-07中国电信股份有限公司Method for processing webpage address inputted by mobile subscriber and wireless application protocol gateway
CN103825895A (en)*2014-02-242014-05-28联想(北京)有限公司Information processing method and electronic device
CN105323210A (en)*2014-06-102016-02-10腾讯科技(深圳)有限公司Method, apparatus and cloud server for detecting website security
CN104683330A (en)*2015-02-062015-06-03广州酷狗计算机科技有限公司Domain name hijacking resisting method and device
CN106357603A (en)*2016-08-182017-01-25乐视控股(北京)有限公司Web page security detection processing method and device
CN106453436A (en)*2016-12-212017-02-22北京奇虎科技有限公司Method and device for detecting network security
CN108566656A (en)*2018-04-132018-09-21上海连尚网络科技有限公司A kind of method and apparatus for detecting wireless network secure
CN108512935A (en)*2018-04-162018-09-07腾讯科技(深圳)有限公司data service system, method, server and computer readable storage medium
CN108647281A (en)*2018-05-032018-10-12腾讯科技(深圳)有限公司Web page access risk supervision, reminding method, device and computer equipment
CN110113364A (en)*2019-05-292019-08-09深圳市网心科技有限公司Domain Hijacking defence method and device, computer installation and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111914243A (en)*2020-07-302020-11-10长沙尚链通信息科技有限公司Block chain wallet operation reminding method based on block chain intelligent contract
CN111914243B (en)*2020-07-302023-12-01长沙尚链通信息科技有限公司Blockchain wallet operation reminding method based on blockchain intelligent contract
CN111898159A (en)*2020-07-312020-11-06维沃移动通信有限公司 Risk warning method, device, electronic device and readable storage medium
CN113342303A (en)*2021-05-312021-09-03维沃移动通信有限公司Information input method and device
CN113342303B (en)*2021-05-312024-05-24维沃移动通信有限公司 Information input method and device
WO2023040983A1 (en)*2021-09-182023-03-23贵州白山云科技股份有限公司Access request processing method, electronic apparatus, electronic device, and medium

Similar Documents

PublicationPublication DateTitle
CN111372205A (en)Information prompting method and electronic equipment
CN108510022B (en)Two-dimensional code generation and verification method and server
CN108280349A (en)Protect method, mobile terminal and the computer readable storage medium of system kernel layer
CN109918930A (en) An information protection method and terminal device
CN108132812A (en)A kind of method of data synchronization, mobile terminal and server
CN107770768A (en)A kind of data network restoration methods, mobile terminal
CN104683301B (en)Password storage method and device
CN110336805B (en)Network access management method and mobile terminal
CN108076501A (en)A kind of Wi-Fi network connection management method and mobile terminal
CN110430119B (en) Information transmission method, server, terminal device and medium
CN110457888B (en) A verification code input method, device, electronic device and storage medium
CN110990850A (en) Rights management method and electronic device
CN111209031B (en)Data acquisition method, device, terminal equipment and storage medium
CN109981891A (en)A kind of terminal control method, device and terminal device
CN107889112B (en)A kind of recognition methods of pseudo-base station and mobile terminal
CN111556552B (en)Data transmission method and electronic equipment
CN108984231A (en)A kind of login method and mobile terminal of application program account
CN111597540A (en)Login method of application program, electronic device and readable storage medium
CN109547330B (en)Information sharing method and device
CN108616873B (en)Data transmission method, information transmission method, device, mobile equipment and storage medium
CN107133073A (en)A kind of webpage loading method based on dynamic configuration, mobile terminal and storage medium
CN111159738B (en)Authority configuration method, application login method and device
CN109992430B (en) A data transmission method, first terminal and second terminal
CN109451143B (en) A calling method and mobile terminal
CN111315039B (en)Integrity protection failure processing method and terminal

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20200703

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp