CN106028297B - Short message processing method and device carrying URL - Google Patents
Short message processing method and device carrying URL Download PDFInfo
- Publication number
- CN106028297B CN106028297B CN201610273071.8A CN201610273071A CN106028297B CN 106028297 B CN106028297 B CN 106028297B CN 201610273071 A CN201610273071 A CN 201610273071A CN 106028297 B CN106028297 B CN 106028297B
- Authority
- CN
- China
- Prior art keywords
- short message
- domain name
- network address
- database
- main domain
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/12—Detection or prevention of fraud
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Telephonic Communication Services (AREA)
Abstract
本公开是关于一种携带网址的短信处理方法及装置,属于网络安全技术领域。方法包括:当接收到携带有网址的短信时,获取服务器提供的、所述短信的联系人号码对应的安全域名数据库;检测所述安全域名数据库中是否存在所述网址中的主域名;当检测结果为所述安全数据库中不存在所述主域名时,对所述短信进行预定处理。通过预先设置一安全域名数据库,将短信中的网址的主域名与安全域名数据库中的主域名进行比对,只要安全域名数据库中不存在该网址的主域名时,就将该短信进行预设处理,提高了打开短信中网址的行为的安全性,降低用户因点击短信中的恶意网址而造成财产损失或者信息泄漏的风险。
The disclosure relates to a short message processing method and device carrying a website address, and belongs to the technical field of network security. The method includes: when receiving a short message carrying a website address, obtaining a secure domain name database provided by the server and corresponding to the contact number of the short message; detecting whether the primary domain name in the website exists in the secure domain name database; As a result, when the primary domain name does not exist in the security database, predetermined processing is performed on the short message. By setting up a secure domain name database in advance, compare the primary domain name of the URL in the SMS with the primary domain name in the secure domain name database, as long as the primary domain name of the URL does not exist in the secure domain name database, the SMS will be preset , improving the security of opening the URL in the text message, and reducing the risk of property loss or information leakage caused by the user clicking a malicious URL in the text message.
Description
技术领域technical field
本公开涉及网络安全技术领域,特别涉及一种携带网址的短信处理方法及装置。The present disclosure relates to the technical field of network security, in particular to a method and device for processing short messages carrying URLs.
背景技术Background technique
随着用户使用手机等终端打开短信中网址的行为的增多,越来越多的伪基站冒充诸如银行、运营商的服务号码给用户发送含有钓鱼网站网址的短信,诱导用户点击,骗取用户的账号和密码等信息。As users use mobile phones and other terminals to open URLs in text messages, more and more fake base stations pretend to be service numbers of banks and operators to send text messages containing phishing website URLs to users, inducing users to click and defraud users of their accounts. and password information.
相关技术中,手机或服务器中可以预先存储一个含有恶意网址的数据库,当手机接收到含有网址的短信时,手机会将该网址与该数据库中的网址进行比对,当该网址与该数据库中某一网址相同时,确定该短信是伪基站发送的短信。In related technologies, a database containing malicious URLs can be pre-stored in the mobile phone or server. When the mobile phone receives a short message containing a URL, the mobile phone will compare the URL with the URLs in the database. When a certain URL is the same, it is determined that the short message is a short message sent by a pseudo base station.
发明内容Contents of the invention
本公开实施例提供了一种携带网址的短信处理方法及装置,技术方案如下:The embodiment of the present disclosure provides a short message processing method and device carrying a website address, and the technical solution is as follows:
根据本公开实施例的第一方面,提供了一种携带网址的短信处理方法,该方法包括:According to the first aspect of the embodiments of the present disclosure, there is provided a method for processing short messages carrying URLs, the method comprising:
当接收到携带有网址的短信时,获取服务器提供的、所述短信的联系人号码对应的安全域名数据库;When receiving a short message carrying a website address, obtain the security domain name database provided by the server and corresponding to the contact number of the short message;
检测所述安全域名数据库中是否存在所述网址中的主域名;Detecting whether the primary domain name in the website exists in the secure domain name database;
当检测结果为所述安全数据库中不存在所述主域名时,对所述短信进行预定处理。When the detection result is that the primary domain name does not exist in the security database, predetermined processing is performed on the short message.
可选的,所述当检测结果为所述安全数据库中不存在所述主域名时,对所述短信进行预定处理,包括:Optionally, when the detection result is that the primary domain name does not exist in the security database, performing predetermined processing on the short message includes:
获取服务器提供的、所述短信的联系人号码对应的恶意域名数据库;Obtaining the malicious domain name database provided by the server and corresponding to the contact number of the short message;
检测所述恶意域名数据库中是否存在所述主域名;Detecting whether the primary domain name exists in the malicious domain name database;
当所述恶意域名数据库中存在所述主域名时,按照第一处理方式对所述短信进行处理;When the primary domain name exists in the malicious domain name database, process the short message according to the first processing method;
当所述恶意域名数据库中不存在所述主域名时,按照第二处理方式对所述短信进行处理。When the primary domain name does not exist in the malicious domain name database, the short message is processed in a second processing manner.
可选的,所述按照第一处理方式对所述短信进行处理,包括:Optionally, the processing of the short message according to the first processing method includes:
按照以下处理方式中的至少一种对所述短信进行处理:Process the short message according to at least one of the following processing methods:
在来信提醒界面中展示第一提示消息,所述第一提示消息用于提示接收到包含恶意网址的短信;Displaying a first prompt message in the incoming letter reminder interface, the first prompt message is used to prompt that a short message containing a malicious URL is received;
将所述短信移动至指定分组;Move the short message to a designated group;
当检测到查看所述短信的内容的操作时,展示第二提示信息,所述第二提示信息用于提示所述短信中包含恶意网址;When an operation of viewing the content of the short message is detected, displaying second prompt information, the second prompt information is used to prompt that the short message contains a malicious URL;
或者,当检测到对所述网址的访问操作时,禁止调用浏览器。Alternatively, when an access operation to the URL is detected, calling the browser is prohibited.
可选的,所述按照第二处理方式对所述短信进行处理,包括:Optionally, the processing of the short message according to the second processing method includes:
当检测到对所述网址的访问操作时,展示第三提示信息,所述第三提示信息用于提示是否确定访问所述网址。When an access operation to the website is detected, third prompt information is displayed, and the third prompt information is used to prompt whether to determine to visit the website.
根据本公开实施例的第二方面,提供了一种携带网址的短信处理方法,所述方法包括:According to the second aspect of the embodiments of the present disclosure, there is provided a method for processing short messages carrying URLs, the method comprising:
生成一个联系人号码对应的安全域名数据库;Generate a secure domain name database corresponding to the contact number;
将所述安全域名数据库提供给终端,使得所述终端在接收到所述联系人号码对应的、携带有网址的短信,并检测出所述安全数据库中不存在所述网址的主域名时,对所述短信进行预定处理。The secure domain name database is provided to the terminal, so that when the terminal receives the short message corresponding to the contact number and carries the website address, and detects that the primary domain name of the website does not exist in the security database, The short message is scheduled to be processed.
可选的,所述方法还包括:Optionally, the method also includes:
生成所述联系人号码对应的恶意域名数据库;generating a malicious domain name database corresponding to the contact number;
将所述恶意域名数据库提供给所述终端。The malicious domain name database is provided to the terminal.
可选的,所述生成一个联系人号码对应的安全域名数据库,包括:Optionally, the generating a security domain name database corresponding to a contact number includes:
获取所述联系人号码对应的各条携带网址的短信中、各个网址的主域名的出现频次;Acquiring the frequency of occurrence of the main domain name of each website in each text message carrying a website corresponding to the contact number;
将所述各个网址的主域名中,出现频次大于第一频次阈值的主域名添加入所述联系人号码对应的安全域名数据库。Among the primary domain names of the respective websites, the primary domain names whose occurrence frequency is greater than the first frequency threshold are added to the security domain name database corresponding to the contact number.
可选的,所述生成所述联系人号码对应的恶意域名数据库,包括:Optionally, the generating the malicious domain name database corresponding to the contact number includes:
将所述各个网址的主域名中,出现频次不大于第二频次阈值的主域名添加入所述联系人号码对应的恶意域名数据库;Adding the main domain names whose frequency of occurrence is not greater than the second frequency threshold among the main domain names of the respective URLs to the malicious domain name database corresponding to the contact number;
其中,所述第二频次阈值小于或者等于所述第一频次阈值。Wherein, the second frequency threshold is less than or equal to the first frequency threshold.
根据本公开实施例的第三方面,提供了一种携带网址的短信处理装置,所述装置包括:According to a third aspect of the embodiments of the present disclosure, there is provided a short message processing device carrying a website, the device comprising:
获取模块,用于当接收到携带有网址的短信时,获取服务器提供的、所述短信的联系人号码对应的安全域名数据库;An acquisition module, configured to acquire a secure domain name database provided by the server and corresponding to the contact number of the short message when receiving the short message carrying the URL;
检测模块,用于检测所述安全域名数据库中是否存在所述网址中的主域名;A detection module, configured to detect whether the primary domain name in the website exists in the secure domain name database;
处理模块,用于当检测结果为所述安全数据库中不存在所述主域名时,对所述短信进行预定处理。A processing module, configured to perform predetermined processing on the short message when the detection result is that the primary domain name does not exist in the security database.
可选的,所述处理模块,包括:Optionally, the processing module includes:
获取子模块,用于获取服务器提供的、所述短信的联系人号码对应的恶意域名数据库;The obtaining submodule is used to obtain the malicious domain name database provided by the server and corresponding to the contact number of the short message;
检测子模块,用于检测所述恶意域名数据库中是否存在所述主域名;A detection submodule, configured to detect whether the primary domain name exists in the malicious domain name database;
第一处理子模块,用于当所述恶意域名数据库中存在所述主域名时,按照第一处理方式对所述短信进行处理;The first processing submodule is configured to process the short message according to a first processing method when the primary domain name exists in the malicious domain name database;
第二处理子模块,用于当所述恶意域名数据库中不存在所述主域名时,按照第二处理方式对所述短信进行处理。The second processing sub-module is configured to process the short message in a second processing manner when the primary domain name does not exist in the malicious domain name database.
可选的,所述第一处理子模块,用于按照以下处理方式中的至少一种对所述短信进行处理:Optionally, the first processing submodule is configured to process the short message according to at least one of the following processing methods:
在来信提醒界面中展示第一提示消息,所述第一提示消息用于提示接收到包含恶意网址的短信;Displaying a first prompt message in the incoming letter reminder interface, the first prompt message is used to prompt that a short message containing a malicious URL is received;
将所述短信移动至指定分组;Move the short message to a designated group;
当检测到查看所述短信的内容的操作时,展示第二提示信息,所述第二提示信息用于提示所述短信中包含恶意网址;When an operation of viewing the content of the short message is detected, displaying second prompt information, the second prompt information is used to prompt that the short message contains a malicious URL;
当检测到对所述网址的访问操作时,禁止调用浏览器。When an access operation to said URL is detected, the browser is prohibited from being invoked.
可选的,所述第二处理子模块,用于当检测到对所述网址的访问操作时,展示第三提示信息,所述第三提示信息用于提示是否确定访问所述网址。Optionally, the second processing submodule is configured to display third prompt information when an access operation to the website is detected, and the third prompt information is used to prompt whether to determine to visit the website.
根据本公开实施例的第四方面,提供了一种携带网址的短信处理装置,所述装置包括:According to the fourth aspect of the embodiments of the present disclosure, there is provided a short message processing device carrying a website, the device comprising:
第一生成模块,用于生成一个联系人号码对应的安全域名数据库;The first generating module is used to generate a secure domain name database corresponding to the contact number;
第一提供模块,用于将所述安全域名数据库提供给终端,使得所述终端在接收到所述联系人号码对应的、携带有网址的短信,并检测出所述安全数据库中不存在所述网址的主域名时,对所述短信进行预定处理。The first providing module is configured to provide the secure domain name database to the terminal, so that the terminal detects that the secure domain name database does not exist in the secure database after receiving the short message corresponding to the contact number and carrying the URL. When the primary domain name of the website is selected, the short message is scheduled to be processed.
可选的,所述装置还包括:Optionally, the device also includes:
第二生成模块,用于生成所述联系人号码对应的恶意域名数据库;The second generating module is used to generate a malicious domain name database corresponding to the contact number;
第二提供模块,用于将所述恶意域名数据库提供给所述终端。The second providing module is configured to provide the malicious domain name database to the terminal.
可选的,所述第一生成模块,包括:Optionally, the first generation module includes:
频次获取子模块,用于获取所述联系人号码对应的各条携带网址的短信中、各个网址的主域名的出现频次;The frequency obtaining sub-module is used to obtain the frequency of occurrence of the main domain name of each website in each text message carrying a website corresponding to the contact number;
添加子模块,用于将所述各个网址的主域名中,出现频次大于第一频次阈值的主域名添加入所述联系人号码对应的安全域名数据库。The adding sub-module is used to add the main domain names whose frequency of occurrence is greater than the first frequency threshold among the main domain names of each website to the security domain name database corresponding to the contact number.
可选的,所述第二生成模块,用于将所述各个网址的主域名中,出现频次不大于第二频次阈值的主域名添加入所述联系人号码对应的恶意域名数据库;Optionally, the second generating module is configured to add, among the main domain names of each website, the main domain names whose occurrence frequency is not greater than the second frequency threshold to the malicious domain name database corresponding to the contact number;
其中,所述第二频次阈值小于或者等于所述第一频次阈值。Wherein, the second frequency threshold is less than or equal to the first frequency threshold.
根据本公开实施例的第五方面,提供了一种携带网址的短信处理装置,其特征在于,所述装置包括:According to the fifth aspect of the embodiments of the present disclosure, there is provided a short message processing device carrying a website, characterized in that the device includes:
处理器;processor;
用于存储所述处理器的可执行指令的存储器;memory for storing executable instructions of the processor;
其中,处理器配设置为:Among them, the processor configuration is set to:
当接收到携带有网址的短信时,获取服务器提供的、所述短信的联系人号码对应的安全域名数据库;When receiving a short message carrying a website address, obtain the security domain name database provided by the server and corresponding to the contact number of the short message;
检测所述安全域名数据库中是否存在所述网址中的主域名;Detecting whether the primary domain name in the website exists in the secure domain name database;
当检测结果为所述安全数据库中不存在所述主域名时,对所述短信进行预定处理。When the detection result is that the primary domain name does not exist in the security database, predetermined processing is performed on the short message.
根据本公开实施例的第六方面,提供了一种携带网址的短信处理装置,其特征在于,所述装置包括:According to the sixth aspect of the embodiments of the present disclosure, there is provided a short message processing device carrying a website, characterized in that the device includes:
处理器;processor;
用于存储所述处理器的可执行指令的存储器;memory for storing executable instructions of the processor;
其中,处理器配设置为:Among them, the processor configuration is set to:
生成一个联系人号码对应的安全域名数据库;Generate a secure domain name database corresponding to the contact number;
将所述安全域名数据库提供给终端,使得所述终端在接收到所述联系人号码对应的、携带有网址的短信,并检测出所述安全数据库中不存在所述网址的主域名时,对所述短信进行预定处理。The secure domain name database is provided to the terminal, so that when the terminal receives the short message corresponding to the contact number and carries the website address, and detects that the primary domain name of the website does not exist in the security database, The short message is scheduled to be processed.
本公开实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
当终端接收到携带有网址的短信时,检测该短信的联系人号码对应的安全域名数据库中是否存在该网址中的主域名,当检测结果为该安全数据库中不存在该主域名时,对该短信进行预定处理,通过预先设置一安全域名数据库,将短信中的网址的主域名与安全域名数据库中的主域名进行比对,只要安全域名数据库中不存在该网址的主域名时,就将该短信进行预设处理,提高了打开短信中网址的行为的安全性,降低用户因点击短信中的恶意网址而造成财产损失或者信息泄漏的风险。When the terminal receives a short message carrying a website, it detects whether the main domain name in the website exists in the security domain name database corresponding to the contact number of the short message, and when the detection result is that the main domain name does not exist in the security database, the The short message is scheduled to be processed. By setting a secure domain name database in advance, the main domain name of the website in the short message is compared with the main domain name in the safe domain name database. As long as the main domain name of the website does not exist in the safe domain name database, the The preset processing of SMS improves the safety of opening the URL in the SMS and reduces the risk of property loss or information leakage caused by users clicking malicious URLs in the SMS.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据本公开所示出的携带网址的短信处理方法所涉及的实施环境的示意图;FIG. 1 is a schematic diagram of an implementation environment involved in a short message processing method with a website address according to the present disclosure;
图2是根据一示例性实施例示出的一种携带网址的短信处理方法的流程图;Fig. 2 is a flow chart showing a method for processing short messages carrying URLs according to an exemplary embodiment;
图3是根据一示例性实施例示出的一种携带网址的短信处理方法的流程图;Fig. 3 is a flow chart showing a method for processing short messages carrying URLs according to an exemplary embodiment;
图4是根据一示例性实施例示出的一种携带网址的短信处理方法的流程图;Fig. 4 is a flow chart showing a method for processing short messages carrying URLs according to an exemplary embodiment;
图5是基于图4所示实施例提供的一种提醒界面示意图;Fig. 5 is a schematic diagram of a reminder interface provided based on the embodiment shown in Fig. 4;
图6是基于图4所示实施例提供的一种操作界面示意图;Fig. 6 is a schematic diagram of an operation interface provided based on the embodiment shown in Fig. 4;
图7是基于图4所示实施例提供的另一种操作界面示意图;Fig. 7 is a schematic diagram of another operation interface provided based on the embodiment shown in Fig. 4;
图8是基于图4所示实施例提供的又一种操作界面示意图;Fig. 8 is a schematic diagram of another operation interface provided based on the embodiment shown in Fig. 4;
图9是根据又一示例性实施例示出的一种携带网址的短信处理方法的流程图;Fig. 9 is a flow chart showing a method for processing short messages carrying URLs according to yet another exemplary embodiment;
图10是根据一示例性实施例示出的一种携带网址的短信处理装置的框图;Fig. 10 is a block diagram of a short message processing device carrying a website according to an exemplary embodiment;
图11是根据另一示例性实施例示出的一种携带网址的短信处理装置的框图;Fig. 11 is a block diagram of a short message processing device carrying a website according to another exemplary embodiment;
图12是根据一示例性实施例示出的一种携带网址的短信处理装置的框图;Fig. 12 is a block diagram of a short message processing device carrying a website address according to an exemplary embodiment;
图13是根据另一示例性实施例示出的一种携带网址的短信处理装置的框图;Fig. 13 is a block diagram of a short message processing device carrying a website according to another exemplary embodiment;
图14是根据一示例性实施例示出的一种装置的框图;Fig. 14 is a block diagram of a device according to an exemplary embodiment;
图15是根据一示例性实施例示出的另一种装置的框图。Fig. 15 is a block diagram of another device according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
图1是根据本公开所示出的携带网址的短信处理方法所涉及的实施环境的示意图。该实施环境可以包括:服务器110和终端120。Fig. 1 is a schematic diagram of an implementation environment involved in the method for processing a short message carrying a website address according to the present disclosure. The implementation environment may include: a server 110 and a terminal 120 .
服务器110可以是一台服务器,也可以是由若干台服务器组成的服务器集群,或者是一个云计算服务中心。The server 110 may be one server, or a server cluster composed of several servers, or a cloud computing service center.
终端120可以是诸如手机等能够接收运营商或者通信服务商发送的短信的移动通信设备。The terminal 120 may be a mobile communication device capable of receiving short messages sent by an operator or a communication service provider, such as a mobile phone.
服务器110和终端120可以通过无线网络相连。The server 110 and the terminal 120 may be connected through a wireless network.
下面,以图1所示的实施环境为例,对本公开各个实施例提供的技术方案进行介绍和说明。In the following, taking the implementation environment shown in FIG. 1 as an example, the technical solutions provided by various embodiments of the present disclosure are introduced and described.
图2是根据一示例性实施例示出的一种携带网址的短信处理方法的流程图。该方法可应用于图1所示实施环境中的终端120中。该方法可以包括以下几个步骤。Fig. 2 is a flow chart showing a method for processing a short message carrying a website address according to an exemplary embodiment. The method can be applied to the terminal 120 in the implementation environment shown in FIG. 1 . The method may include the following steps.
在步骤201中,当接收到携带有网址的短信时,获取服务器提供的、该短信的联系人号码对应的安全域名数据库。In step 201, when a short message carrying a website address is received, a secure domain name database provided by the server and corresponding to the contact number of the short message is obtained.
在步骤202中,检测该安全域名数据库中是否存在该网址中的主域名。In step 202, it is detected whether the main domain name in the website exists in the secure domain name database.
在步骤203中,当检测结果为该安全数据库中不存在该主域名时,对该短信进行预定处理。In step 203, when the detection result is that the primary domain name does not exist in the security database, predetermined processing is performed on the short message.
综上所述,本公开实施例提供的方法,当终端接收到携带有网址的短信时,检测该短信的联系人号码对应的安全域名数据库中是否存在该网址中的主域名,当检测结果为该安全数据库中不存在该主域名时,对该短信进行预定处理,通过预先设置一安全域名数据库,将短信中的网址的主域名与安全域名数据库中的主域名进行比对,只要安全域名数据库中不存在该网址的主域名时,就将该短信进行预设处理,提高了打开短信中网址的行为的安全性,降低用户因点击短信中的恶意网址而造成财产损失或者信息泄漏的风险。To sum up, in the method provided by the embodiment of the present disclosure, when the terminal receives a short message carrying a website address, it detects whether the primary domain name in the website exists in the security domain name database corresponding to the contact number of the short message, and when the detection result is When the primary domain name does not exist in the security database, the text message is scheduled to be processed. By setting a security domain name database in advance, the primary domain name of the URL in the message is compared with the primary domain name in the security domain name database. As long as the security domain name database When the main domain name of the URL does not exist in the SMS, the SMS will be preset, which improves the security of opening the URL in the SMS, and reduces the risk of property loss or information leakage caused by the user clicking the malicious URL in the SMS.
图3是根据一示例性实施例示出的一种携带网址的短信处理方法的流程图。该方法可应用于图1所示实施环境中的服务器110中。该方法可以包括以下几个步骤。Fig. 3 is a flow chart showing a method for processing a short message carrying a website address according to an exemplary embodiment. The method can be applied to the server 110 in the implementation environment shown in FIG. 1 . The method may include the following steps.
在步骤301中,生成一个联系人号码对应的安全域名数据库。In step 301, a secure domain name database corresponding to a contact number is generated.
在步骤302中,将该安全域名数据库提供给终端,使得该终端在接收到该联系人号码对应的、携带有网址的短信,并检测出该安全数据库中不存在该网址的主域名时,对该短信进行预定处理。In step 302, the secure domain name database is provided to the terminal, so that when the terminal receives the short message corresponding to the contact number and carries the website address, and detects that the primary domain name of the website does not exist in the security database, it responds to the The SMS is scheduled for processing.
综上所述,本公开实施例提供的方法,生成联系人号码对应的安全域名数据库并提供给终端,当终端接收到该短信的联系人号码对应的、携带有网址的短信时,检测该安全域名数据库中是否存在该网址中的主域名,当检测结果为该安全数据库中不存在该主域名时,对该短信进行预定处理,通过预先设置一安全域名数据库,将短信中的网址的主域名与安全域名数据库中的主域名进行比对,只要安全域名数据库中不存在该网址的主域名时,就将该短信进行预设处理,提高了打开短信中网址的行为的安全性,降低用户因点击短信中的恶意网址而造成财产损失或者信息泄漏的风险。To sum up, the method provided by the embodiment of the present disclosure generates the security domain name database corresponding to the contact number and provides it to the terminal. Whether the main domain name in the website exists in the domain name database, when the detection result is that the main domain name does not exist in the security database, the short message is scheduled to be processed, and the main domain name of the website in the short message is set by presetting a safe domain name database. Compared with the primary domain name in the secure domain name database, as long as the primary domain name of the URL does not exist in the secure domain name database, the SMS will be preset, which improves the security of opening the URL in the SMS and reduces user concerns Risk of property damage or information leakage caused by clicking on malicious URLs in text messages.
图4是根据一示例性实施例示出的一种携带网址的短信处理方法的流程图。该方法可应用于图1所示实施环境中的服务器110和终端120中。该方法可以包括以下几个步骤。Fig. 4 is a flow chart showing a method for processing a short message carrying a website address according to an exemplary embodiment. The method can be applied to the server 110 and the terminal 120 in the implementation environment shown in FIG. 1 . The method may include the following steps.
在步骤401中,服务器收集一个联系人号码对应的各条携带网址的短信,统计并获得该联系人号码对应的各条携带网址的短信中、各个网址的主域名的出现频次。In step 401, the server collects each short message carrying a website address corresponding to a contact number, counts and obtains the occurrence frequency of the primary domain name of each website in each short message carrying a website address corresponding to the contact number.
此处,联系人号码可以是运营商、银行、快递、航空公司或国家机关等机构的服务号码,也可以是其它能够发送短信的终端使用的号码。服务器根据一个确定的联系人号码收集该号码对应的各条携带网址的短信。Here, the contact number may be a service number of an institution such as an operator, a bank, a courier, an airline, or a state agency, or a number used by other terminals capable of sending short messages. According to a determined contact number, the server collects each short message carrying a website address corresponding to the number.
比如,服务器可以收集连接服务器的各个终端接收到联系人号码为95566的各条短信,收集的期限可以是三个月内或一周内,此处不做限定。之后,服务器获取各条短信中携带的网址的主域名,统计各个主域名的出现次数,并计算各个主域名的出现频次(出现次数/短信条数)。比如,为95566的联系人号码一共发送了10000条携带网址的短信,其中主域名为boc.cn的短信条数为8900条,则该主域名boc.cn的出现频次为89%,若主域名为boco.cn的短信条数为100条,则该主域名boc.cn的出现频次为1%。For example, the server may collect various short messages received by each terminal connected to the server with the contact number 95566, and the collection period may be within three months or within one week, which is not limited here. Afterwards, the server obtains the main domain name of the website carried in each short message, counts the number of appearances of each main domain name, and calculates the frequency of occurrence of each main domain name (number of appearances/number of short messages). For example, a contact number of 95566 sent a total of 10,000 short messages carrying URLs, among which the number of short messages with the main domain name boc.cn is 8900, and the occurrence frequency of the main domain name boc.cn is 89%. If the main domain name If the number of short messages for boco.cn is 100, the occurrence frequency of the primary domain name boc.cn is 1%.
可选的,在该步骤中,与服务器相连接的终端在接收到一个联系人号码对应的、携带有网址的短信时,可以提取该短信中的网址的主域名,并将该联系人号码以及提取到的该主域名发送给服务器,由服务器统计该联系人号码对应的各条携带网址的短信中、各个网址的主域名的出现频次。Optionally, in this step, when the terminal connected to the server receives a short message corresponding to a contact number and carrying a website address, it can extract the main domain name of the website address in the short message, and store the contact number and The extracted main domain name is sent to the server, and the server counts the occurrence frequency of the main domain name of each website in each short message carrying the website address corresponding to the contact number.
在步骤402中,服务器将该各个网址的主域名中,出现频次大于第一频次阈值的主域名添加入该联系人号码对应的安全域名数据库。In step 402, the server adds, among the primary domain names of each website, the primary domain names whose occurrence frequency is greater than the first frequency threshold to the security domain name database corresponding to the contact number.
第一频次阈值是一个预设的固定数值,该数值可以由服务器维护人员在步骤302执行前提前设置确定,也可以由服务器根据当前互联网络中的安全环境动态确定。例如,实现将互联网的安全环境分为全网安全绿色等级、部分污染黄色等级和攻击爆发红色等级三个安全等级,则可以在绿色等级时将该第一频次阈值设置为一个较小的数值A、黄色等级时将该第一频次阈值设置为一个一般大的数值B、红色等级时将该第一频次阈值设置为一个较大的数值C,A<B<C。The first frequency threshold is a preset fixed value, which can be set and determined by server maintenance personnel before step 302 is executed, or dynamically determined by the server according to the current security environment in the Internet. For example, to divide the security environment of the Internet into three security levels: the green level of the whole network security, the yellow level of partial pollution, and the red level of attack outbreaks, the first frequency threshold can be set to a smaller value A at the green level 1. Set the first frequency threshold to a generally large value B for the yellow level, and set the first frequency threshold to a relatively large value C for the red level, where A<B<C.
基于步骤401所举例子,服务器将各个网址中出现的主域名中,大于第一频次阈值的主域名添加入该联系人号码对应的安全域名数据库中。例如,该第一频次阈值为80%,在一个该联系人号码对应的各条携带网址的短信中出现的主域名的频次为89%时(大于第一频次阈值80%),将该主域名添加入该联系人号码对应的安全域名数据库中。Based on the example in step 401, the server adds the primary domain names greater than the first frequency threshold among the primary domain names appearing in each website into the security domain name database corresponding to the contact number. For example, the first frequency threshold is 80%, and when the frequency of the main domain name appearing in each text message carrying the website address corresponding to the contact number is 89% (greater than the first frequency threshold 80%), the main domain name Add it to the security domain name database corresponding to the contact number.
在步骤403中,服务器将该各个网址的主域名中,出现频次不大于第二频次阈值的主域名添加入该联系人号码对应的恶意域名数据库。In step 403, the server adds, among the main domain names of each website, those whose frequency of occurrence is not greater than the second frequency threshold to the malicious domain name database corresponding to the contact number.
处理过程类似步骤402,第二频次阈值是一个预设的固定数值,该数值可以由服务器维护人员在步骤403执行前提前设置确定,也可以由服务器根据当前互联网络中的安全环境动态确定。The process is similar to step 402. The second frequency threshold is a preset fixed value, which can be set and determined by the server maintenance personnel before step 403 is executed, or dynamically determined by the server according to the current security environment in the Internet.
基于步骤401所举例子,服务器将各个网址中出现的主域名中,不大于第二频次阈值的主域名添加入该联系人号码对应的安全域名数据库中。例如,该第二频次阈值为5%,在一个该联系人号码对应的各条携带网址的短信中出现的主域名的频次为1%时(不大于第二频次阈值5%),将该主域名添加入该联系人号码对应的恶意域名数据库中。Based on the example in step 401, the server adds the primary domain names not greater than the second frequency threshold among the primary domain names appearing in each website into the security domain name database corresponding to the contact number. For example, the second frequency threshold is 5%, and when the frequency of the main domain name appearing in each short message carrying the website address corresponding to the contact number is 1% (not greater than the second frequency threshold 5%), the main domain name The domain name is added to the malicious domain name database corresponding to the contact number.
通常情况下,不法分子通过伪基站等方式伪装成服务号码发送的、携带有恶意网址的短信,只占据该服务号码对应的所有携带有网址的短信中的一小部分,其它大部分携带有网址的短信中的网址都是安全网址。本公开实施例所示的方法,对于某一个联系人号码,将该联系人号码对应的各条短信中的网址的主域名的出现频次进行统计,当某一主域名出现频次非常多,则确认该主域名为安全域名,若该主域名出现频次非常少,则确认该主域名为恶意域名,从而达到自动快速生成该联系人号码对应的安全余名数据库和恶意域名数据库的效果。Under normal circumstances, the short messages with malicious URLs sent by lawbreakers pretending to be service numbers through fake base stations and other methods only occupy a small part of all the short messages with URLs corresponding to the service number, and most of the others carry URLs. URLs in text messages from are all secure URLs. In the method shown in the embodiment of the present disclosure, for a certain contact number, the frequency of occurrence of the main domain name of the website in each short message corresponding to the contact number is counted, and when a certain main domain name appears frequently, then confirm The main domain name is a safe domain name. If the frequency of occurrence of the main domain name is very small, it is confirmed that the main domain name is a malicious domain name, so as to achieve the effect of automatically and quickly generating a safe name database and a malicious domain name database corresponding to the contact number.
在步骤402与步骤403中,该第二频次阈值小于或者等于该第一频次阈值。In step 402 and step 403, the second frequency threshold is less than or equal to the first frequency threshold.
在步骤404中,服务器将安全域名数据库和恶意域名数据库提供给终端,终端接收该安全域名数据库和恶意域名数据库。In step 404, the server provides the safe domain name database and the malicious domain name database to the terminal, and the terminal receives the safe domain name database and the malicious domain name database.
可选的,服务器将安全域名数据库和恶意域名数据库提供给终端后,还可以定期向终端提供该安全域名数据库和恶意域名数据库的更新服务,以便及时对终端中的安全域名数据库和恶意域名数据库进行更新。Optionally, after the server provides the secure domain name database and the malicious domain name database to the terminal, it may also periodically provide the terminal with an update service for the secure domain name database and the malicious domain name database, so as to update the secure domain name database and the malicious domain name database in the terminal in a timely manner. renew.
可选的,上述步骤402和步骤403也可以由终端执行。比如服务器可以将该联系人号码对应的各条携带网址的短信中、各个网址的主域名的出现频次发送给终端,由终端将该各个网址的主域名中,出现频次大于第一频次阈值的主域名添加入该联系人号码对应的安全域名数据库;将该各个网址的主域名中,出现频次不大于第二频次阈值的主域名添加入该联系人号码对应的恶意域名数据库。可选的,在此情况下,第一频次阈值或者第二频次阈值可以由用户在终端中自行设置。Optionally, the above step 402 and step 403 may also be executed by the terminal. For example, the server may send the frequency of occurrence of the main domain name of each website in each short message carrying the website address corresponding to the contact number to the terminal, and the terminal shall, among the main domain names of each website, the frequency of occurrence of the main domain name greater than the first frequency threshold The domain name is added to the secure domain name database corresponding to the contact number; among the main domain names of each website, the main domain name whose occurrence frequency is not greater than the second frequency threshold is added to the malicious domain name database corresponding to the contact number. Optionally, in this case, the first frequency threshold or the second frequency threshold may be set by the user in the terminal.
在步骤405中,终端接收该联系人号码对应的、携带有网址的短信,提取短信中的网址的主域名。In step 405, the terminal receives the short message corresponding to the contact number and carrying the website, and extracts the primary domain name of the website in the short message.
终端可以根据标准正则表达式将该联系人号码对应的、携带有网址的短信中的网址的主域名提取出来。The terminal can extract the main domain name of the URL in the short message carrying the URL corresponding to the contact number according to a standard regular expression.
在步骤406中,终端检测该短信的联系人号码对应的安全域名数据库中是否存在该网址中的主域名。In step 406, the terminal detects whether the primary domain name in the website exists in the secure domain name database corresponding to the contact number of the short message.
终端在执行该步骤时,可以查询获取服务器提供并存储在本地的、该短信的联系人号码对应的安全域名数据库,并在上述安全域名数据库中检索步骤405中提取到的主域名,若在安全域名数据库中检索到该主域名,则确认检测出该短信的联系人号码对应的安全域名数据库中存在该网址中的主域名,否则,确认检测出该短信的联系人号码对应的安全域名数据库中不存在该网址中的主域名。When the terminal executes this step, it can query and acquire the security domain name database corresponding to the contact number of the SMS provided by the server and stored locally, and retrieve the primary domain name extracted in step 405 from the security domain name database. If the primary domain name is retrieved in the domain name database, then confirm that the primary domain name in the URL exists in the security domain name database corresponding to the contact number of the SMS message detected; otherwise, confirm that the security domain name database corresponding to the contact number of the SMS message is detected The primary domain name in this URL does not exist.
在步骤407中,当检测结果为该安全数据库中不存在该主域名时,终端检测该短信的联系人号码对应的恶意域名数据库中是否存在该主域名。In step 407, when the detection result is that the primary domain name does not exist in the security database, the terminal detects whether the primary domain name exists in the malicious domain name database corresponding to the contact number of the short message.
检测过程类似步骤406中的过程。终端在执行该步骤407时,可以查询获取服务器提供并存储在本地的、该短信的联系人号码对应的恶意域名数据库,并在上述恶意域名数据库中检索步骤405中提取到的该短信中的网址的主域名。The detection process is similar to the process in step 406 . When the terminal executes step 407, it can query and acquire the malicious domain name database corresponding to the contact number of the short message provided by the server and stored locally, and retrieve the URL in the short message extracted in step 405 from the above malicious domain name database. primary domain name for .
在步骤408中,当该恶意域名数据库中存在该主域名时,终端按照第一处理方式对该短信进行处理。In step 408, when the primary domain name exists in the malicious domain name database, the terminal processes the short message according to the first processing manner.
第一处理方式可以包括以下四种处理方式中的至少一种:The first processing method may include at least one of the following four processing methods:
1)在来信提醒界面中展示第一提示消息,该第一提示消息用于提示接收到包含恶意网址的短信。1) A first prompt message is displayed on the incoming mail reminder interface, and the first prompt message is used to prompt that a short message containing a malicious URL is received.
请参考图5,图5是基于图4所示实施例提供的一种提醒界面示意图。在图5中,对话框51用于展示第一提示消息,该第一提示消息可以是类似“新信息中含有疑似欺诈网址”的提醒文字;可选的,该提醒界面中还可以包括删除按钮52和查看按钮53,删除按钮52用于删除该含有存在于恶意域名地址库中的主域名的短信,查看按钮53用于打开包含该存在于恶意域名地址库中的主域名的网址的短信。Please refer to FIG. 5 , which is a schematic diagram of a reminder interface provided based on the embodiment shown in FIG. 4 . In FIG. 5 , the dialog box 51 is used to display the first prompt message, which may be a reminder text similar to "the new information contains a suspected fraudulent URL"; optionally, the reminder interface may also include a delete button 52 and a view button 53, the delete button 52 is used to delete the short message containing the main domain name in the malicious domain name address library, and the view button 53 is used to open the short message containing the website address of the main domain name present in the malicious domain name address library.
2)将该短信移动至指定分组。2) Move the short message to a designated group.
终端在该恶意域名数据库中存在该主域名时,将该短信进行移动至指定分组,该指定分组可以是“疑似欺诈短信”之类的短信分组,用户不能像打开正常短信那样直接打开它。When the terminal has the primary domain name in the malicious domain name database, it will move the text message to a designated group. The designated group can be a text message group such as "suspected fraudulent text message", and the user cannot open it directly like opening a normal text message.
3)当检测到查看该短信的内容的操作时,展示第二提示信息,该第二提示信息用于提示该短信中包含恶意网址。3) When an operation of viewing the content of the short message is detected, displaying second prompt information, the second prompt information is used to prompt that the short message contains a malicious URL.
请参考图6,图6是基于图4所示实施例提供的一种操作界面示意图。在图6中,对话框61用于展示第二提示消息,当用户手指62点击该短信所在位置63时,相当于查看该短信的内容的操作。该对话框61展示第二提示消息,第二提示消息可以是类似“该信息中含有疑似欺诈网址,仍要打开吗?”的提醒文字。Please refer to FIG. 6 , which is a schematic diagram of an operation interface provided based on the embodiment shown in FIG. 4 . In FIG. 6 , the dialog box 61 is used to display the second prompt message. When the user's finger 62 clicks on the location 63 of the short message, it is equivalent to the operation of viewing the content of the short message. The dialog box 61 displays a second prompt message, and the second prompt message may be a prompt text similar to "This information contains a suspected fraudulent URL, do you still want to open it?".
4)当检测到对该网址的访问操作时,禁止调用浏览器。4) When an access operation to the URL is detected, the browser is prohibited from being invoked.
请参考图7,图7是基于图4所示实施例提供的另一种操作界面示意图。在图7中,当用户手指71点击该短信中的恶意网址时,终端检测到该网址被访问,即禁止终端调用浏览器访问该网址。可选的,对话框72可以展示类似“该网址为欺诈网址,已停止访问”的提醒文字。Please refer to FIG. 7 , which is a schematic diagram of another operation interface provided based on the embodiment shown in FIG. 4 . In FIG. 7 , when the user's finger 71 clicks on the malicious website in the text message, the terminal detects that the website is accessed, that is, the terminal is prohibited from invoking the browser to access the website. Optionally, the dialog box 72 may display a warning text similar to "This URL is a fraudulent URL, and access has been stopped".
在步骤409中,当该恶意域名数据库中不存在该主域名时,终端按照第二处理方式对该短信进行处理。In step 409, when the primary domain name does not exist in the malicious domain name database, the terminal processes the short message according to the second processing manner.
当检测到对该网址的访问操作时,展示第三提示信息,该第三提示信息用于提示是否确定访问该网址。When an access operation to the website is detected, a third prompt message is displayed, and the third prompt message is used to prompt whether to determine to visit the website.
请参考图8,图8是基于图4所示实施例提供的又一种操作界面示意图。在图8中,当用户手指81点击该短信中的网址时,终端检测到该网址被访问,在对话框82可以展示类似“您尝试访问的网站boco.cn/index可能有风险,确定要继续?”的提醒文字。访问按钮83用于接收用户的确认操作并调用浏览器打开该网址,取消按钮84用于取消调用浏览器的操作。Please refer to FIG. 8 , which is a schematic diagram of another operation interface provided based on the embodiment shown in FIG. 4 . In Fig. 8, when the user clicks the URL in the short message with finger 81, the terminal detects that the URL is accessed, and a dialog box 82 may display something like "The website boco.cn/index you are trying to visit may be risky, confirm to continue ?” reminder text. The access button 83 is used to receive the user's confirmation operation and call the browser to open the website, and the cancel button 84 is used to cancel the operation of calling the browser.
综上所述,本公开实施例提供的一种携带网址的短信处理方法,当终端接收到携带有网址的短信时,终端在本地检测该短信的联系人号码对应的安全域名数据库中是否存在该网址中的主域名,当检测结果为该安全数据库中不存在该主域名时,对该短信进行预定处理,通过预先设置一安全域名数据库,将短信中的网址的主域名与安全域名数据库中的主域名进行比对,只要安全域名数据库中不存在该网址的主域名时,就将该短信进行预设处理,提高了打开短信中网址的行为的安全性,降低用户因点击短信中的恶意网址而造成财产损失或者信息泄漏的风险。To sum up, the embodiment of the present disclosure provides a method for processing a short message carrying a website address. When a terminal receives a short message carrying a website address, the terminal locally detects whether there is such a message in the secure domain name database corresponding to the contact number of the short message. The main domain name in the website, when the detection result is that the main domain name does not exist in the security database, the short message is scheduled to be processed. Compared with the main domain name, as long as the main domain name of the URL does not exist in the security domain name database, the SMS will be preset, which improves the security of opening the URL in the SMS and reduces the risk of users clicking on malicious URLs in the SMS. risk of property damage or information leakage.
此外,本公开实施例提供的方法,在对该短信进行预定处理时,检测该短信中的网址的主域名是否存在于恶意域名网址中,并根据检测结果进行不同的处理,根据风险大小的不同提供多样化的处理方式,提高对包含有风险网址的短信的处理效果。In addition, the method provided by the embodiment of the present disclosure detects whether the main domain name of the website in the short message exists in the malicious domain name website when performing predetermined processing on the short message, and performs different processing according to the detection results, and performs different processing according to different risks. Provide a variety of processing methods to improve the processing effect on SMS containing risky URLs.
图9是根据又一示例性实施例示出的一种携带网址的短信处理方法的流程图。该方法可应用于图1所示实施环境中的服务器110和终端120中。该方法可以包括以下几个步骤。Fig. 9 is a flow chart showing a method for processing a short message carrying a website address according to yet another exemplary embodiment. The method can be applied to the server 110 and the terminal 120 in the implementation environment shown in FIG. 1 . The method may include the following steps.
在步骤901中,服务器收集一个联系人号码对应的各条携带网址的短信,统计并获得该联系人号码对应的各条携带网址的短信中、各个网址的主域名的出现频次。In step 901, the server collects each short message carrying a website address corresponding to a contact number, counts and obtains the occurrence frequency of the primary domain name of each website in each short message carrying a website address corresponding to the contact number.
在步骤902中,服务器将该各个网址的主域名中,出现频次大于第一频次阈值的主域名添加入该联系人号码对应的安全域名数据库。In step 902, the server adds, among the main domain names of each website, the main domain names whose occurrence frequency is greater than the first frequency threshold into the security domain name database corresponding to the contact number.
在步骤903中,服务器将该各个网址的主域名中,出现频次不大于第二频次阈值的主域名添加入该联系人号码对应的恶意域名数据库。In step 903, the server adds the main domain names whose occurrence frequency is not greater than the second frequency threshold among the main domain names of each website into the malicious domain name database corresponding to the contact number.
步骤901~步骤903的相关执行过程可参见步骤401~步骤403中的内容,此处不再赘述。For the relevant execution process of steps 901 to 903, please refer to the content in steps 401 to 403, and will not be repeated here.
在步骤904中,终端接收该联系人号码对应的、携带有网址的短信,向服务器发送第一检测请求,该第一检测请求用于请求服务器检测该短信的联系人号码对应的安全域名数据库中是否存在该网址中的主域名。In step 904, the terminal receives the short message corresponding to the contact number and carrying the URL, and sends a first detection request to the server. The first detection request is used to request the server to detect the security domain name database corresponding to the contact number of the short message. Whether there is a primary domain name in the URL.
其中,该第一检测请求中可以携带该联系人号码以及该短信内容;或者,该第一检测请求中也可以携带该联系人号码以及该短信中的网址;或者,该第一检测请求中也可以携带该联系人号码以及该短信中的网址的主域名。Wherein, the first detection request may carry the contact number and the short message content; or, the first detection request may also carry the contact number and the URL in the short message; or, the first detection request may also carry The contact number and the main domain name of the URL in the short message can be carried.
在步骤905中,服务器根据检测请求检测检测该短信的联系人号码对应的安全域名数据库中是否存在该网址中的主域名。In step 905, the server detects whether the primary domain name in the website exists in the secure domain name database corresponding to the contact number of the short message according to the detection request.
服务器从第一检测请求携带的信息中提取出该联系人号码和主域名后,查询该短信的联系人号码对应的安全域名数据库,并在查询到的该安全域名数据库中检索该主域名,若在安全域名数据库中检索到该主域名,则确认检测出该短信的联系人号码对应的安全域名数据库中存在该网址中的主域名,否则,确认检测出该短信的联系人号码对应的安全域名数据库中不存在该网址中的主域名。After the server extracts the contact number and the primary domain name from the information carried in the first detection request, it queries the security domain name database corresponding to the contact number of the short message, and retrieves the primary domain name from the query security domain name database, if If the primary domain name is retrieved in the secure domain name database, then confirm that the primary domain name in the website exists in the secure domain name database corresponding to the contact number of the SMS, otherwise, confirm that the security domain name corresponding to the contact number of the SMS is detected The primary domain at this URL does not exist in the database.
在步骤906中,服务器将第一检测请求的检测结果返回给终端,终端接收第一检测请求的检测结果。In step 906, the server returns the detection result of the first detection request to the terminal, and the terminal receives the detection result of the first detection request.
服务器将上述步骤905检测获得的、针对该第一检测请求的检测结果返回给终端。The server returns the detection result of the first detection request obtained through the detection in step 905 to the terminal.
在步骤907中,当检测结果为该安全数据库中不存在该主域名时,终端向服务器发送第二检测请求,该第二检测请求用于请求服务器检测该短信的联系人号码对应的恶意域名数据库中是否存在该主域名。In step 907, when the detection result is that the primary domain name does not exist in the security database, the terminal sends a second detection request to the server, and the second detection request is used to request the server to detect the malicious domain name database corresponding to the contact number of the SMS Whether the primary domain name exists in .
可选的,终端也可以不执行该步骤907,当服务器检测到该安全数据库中不存在该主域名时,直接执行下述步骤908。Optionally, the terminal may not perform step 907, and directly perform step 908 below when the server detects that the primary domain name does not exist in the security database.
在步骤908中,服务器根据第二检测请求检测该短信的联系人号码对应的恶意域名数据库中是否存在该主域名。In step 908, the server detects whether the primary domain name exists in the malicious domain name database corresponding to the contact number of the short message according to the second detection request.
服务器检测该短信的联系人号码对应的恶意域名数据库中是否存在该主域名的方式与上述步骤905中检测安全域名数据库中是否存在该主域名的方式类似,此处不再赘述。The method for the server to detect whether the primary domain name exists in the malicious domain name database corresponding to the contact number of the short message is similar to the method for detecting whether the primary domain name exists in the secure domain name database in step 905 above, and will not be repeated here.
在步骤909中,服务器将第二检测请求的检测结果返回给终端,终端接收第二检测请求的检测结果。In step 909, the server returns the detection result of the second detection request to the terminal, and the terminal receives the detection result of the second detection request.
可选的,若终端不执行该步骤907,而服务器检测到该安全数据库中不存在该主域名时直接执行步骤908,则服务器可以将步骤908的检测结果连同步骤905中的检测结果一并发送给终端。Optionally, if the terminal does not perform step 907, but the server directly performs step 908 when it detects that the primary domain name does not exist in the security database, the server may send the detection result of step 908 together with the detection result in step 905 to the terminal.
在步骤910中,当该恶意域名数据库中存在该主域名时,终端按照第一处理方式对该短信进行处理。In step 910, when the primary domain name exists in the malicious domain name database, the terminal processes the short message in a first processing manner.
第一处理方式可以包括:1)在来信提醒界面中展示第一提示消息,该第一提示消息用于提示接收到包含恶意网址的短信;2)将该短信移动至指定分组;3)当检测到查看该短信的内容的操作时,展示第二提示信息,该第二提示信息用于提示该短信中包含恶意网址;4)当检测到对该网址的访问操作时,禁止调用浏览器。The first processing method may include: 1) displaying a first prompt message in the incoming mail reminder interface, the first prompt message is used to prompt that a short message containing a malicious URL is received; 2) moving the short message to a designated group; 3) when the detected When the operation of viewing the content of the short message is reached, a second prompt message is displayed, and the second prompt message is used to prompt that the short message contains a malicious website; 4) when an access operation to the website is detected, calling the browser is prohibited.
有关上述1)、2)、3)和4)四种第一处理方式的执行方法可参见步骤308及图5~图7中的相关内容,此处不再赘述。For the implementation methods of the above four first processing modes 1), 2), 3) and 4), please refer to step 308 and related content in FIGS. 5-7 , which will not be repeated here.
在步骤911中,当该恶意域名数据库中不存在该主域名时,终端按照第二处理方式对该短信进行处理。In step 911, when the primary domain name does not exist in the malicious domain name database, the terminal processes the short message in a second processing manner.
步骤911的执行方法可参见步骤409中的执行方法,执行中相关的界面图可参见图8,此处不再展开论述。For the execution method of step 911, refer to the execution method in step 409, and for the related interface diagram during execution, refer to FIG. 8 , which will not be further discussed here.
综上所述,本公开实施例提供的一种携带网址的短信处理方法,当终端接收到携带有网址的短信时,终端请求服务器检测该短信的联系人号码对应的安全域名数据库中是否存在该网址中的主域名,当检测结果为该安全数据库中不存在该主域名时,对该短信进行预定处理,通过预先设置一安全域名数据库,将短信中的网址的主域名与安全域名数据库中的主域名进行比对,只要安全域名数据库中不存在该网址的主域名时,就将该短信进行预设处理,提高了打开短信中网址的行为的安全性,降低用户因点击短信中的恶意网址而造成财产损失或者信息泄漏的风险。To sum up, the embodiment of the present disclosure provides a method for processing a short message carrying a website address. When a terminal receives a short message carrying a website address, the terminal requests the server to detect whether the security domain name database corresponding to the contact number of the short message exists. The main domain name in the website, when the detection result is that the main domain name does not exist in the security database, the short message is scheduled to be processed. Compared with the main domain name, as long as the main domain name of the URL does not exist in the security domain name database, the SMS will be preset, which improves the security of opening the URL in the SMS and reduces the risk of users clicking on malicious URLs in the SMS. risk of property damage or information leakage.
此外,本公开实施例提供的方法,在对该短信进行预定处理时,检测该短信中的网址的主域名是否存在于恶意域名网址中,并根据检测结果进行不同的处理,根据风险大小的不同提供多样化的处理方式,提高对包含有风险网址的短信的处理效果。In addition, the method provided by the embodiment of the present disclosure detects whether the main domain name of the website in the short message exists in the malicious domain name website when performing predetermined processing on the short message, and performs different processing according to the detection results, and performs different processing according to different risks. Provide a variety of processing methods to improve the processing effect on SMS containing risky URLs.
图10是根据一示例性实施例示出的一种携带网址的短信处理装置的框图。该装置可以通过硬件电路或者软硬件结合的方式实现终端120的全部或者部分。该装置可以包括:获取模块1001、检测模块1002以及处理模块1003;Fig. 10 is a block diagram of an apparatus for processing short messages carrying URLs according to an exemplary embodiment. The apparatus may realize all or part of the terminal 120 by means of a hardware circuit or a combination of software and hardware. The device may include: an acquisition module 1001, a detection module 1002, and a processing module 1003;
获取模块1001,被配置为用于当接收到携带有网址的短信时,获取服务器提供的、所述短信的联系人号码对应的安全域名数据库;The obtaining module 1001 is configured to obtain, when receiving a short message carrying a website address, a secure domain name database provided by the server and corresponding to the contact number of the short message;
检测模块1002,被配置为用于检测所述安全域名数据库中是否存在所述网址中的主域名;The detection module 1002 is configured to detect whether the primary domain name in the website exists in the secure domain name database;
处理模块1003,被配置为用于当检测结果为所述安全数据库中不存在所述主域名时,对所述短信进行预定处理。The processing module 1003 is configured to perform predetermined processing on the short message when the detection result is that the primary domain name does not exist in the security database.
综上所述,本公开实施例提供的一种携带网址的短信处理装置,当终端接收到携带有网址的短信时,终端在本地检测该短信的联系人号码对应的安全域名数据库中是否存在该网址中的主域名,当检测结果为该安全数据库中不存在该主域名时,对该短信进行预定处理,通过预先设置一安全域名数据库,将短信中的网址的主域名与安全域名数据库中的主域名进行比对,只要安全域名数据库中不存在该网址的主域名时,就将该短信进行预设处理,提高了打开短信中网址的行为的安全性,降低用户因点击短信中的恶意网址而造成财产损失或者信息泄漏的风险。To sum up, the embodiment of the present disclosure provides a short message processing device carrying a website address. When a terminal receives a short message carrying a website address, the terminal locally detects whether there is such a message in the secure domain name database corresponding to the contact number of the short message. The main domain name in the website, when the detection result is that the main domain name does not exist in the security database, the short message is scheduled to be processed. Compared with the main domain name, as long as the main domain name of the URL does not exist in the security domain name database, the SMS will be preset, which improves the security of opening the URL in the SMS and reduces the risk of users clicking on malicious URLs in the SMS. risk of property damage or information leakage.
图11是根据另一示例性实施例示出的一种携带网址的短信处理装置的框图。该装置可以通过硬件电路或者软硬件结合的方式实现终端120的全部或者部分。该装置可以包括:获取模块1001、检测模块1002以及处理模块1003;Fig. 11 is a block diagram of an apparatus for processing short messages carrying URLs according to another exemplary embodiment. The apparatus may realize all or part of the terminal 120 by means of a hardware circuit or a combination of software and hardware. The device may include: an acquisition module 1001, a detection module 1002, and a processing module 1003;
获取模块1001,被配置为用于当接收到携带有网址的短信时,获取服务器提供的、所述短信的联系人号码对应的安全域名数据库;The obtaining module 1001 is configured to obtain, when receiving a short message carrying a website address, a secure domain name database provided by the server and corresponding to the contact number of the short message;
检测模块1002,被配置为用于检测所述安全域名数据库中是否存在所述网址中的主域名;The detection module 1002 is configured to detect whether the primary domain name in the website exists in the secure domain name database;
处理模块1003,被配置为用于当检测结果为所述安全数据库中不存在所述主域名时,对所述短信进行预定处理。The processing module 1003 is configured to perform predetermined processing on the short message when the detection result is that the primary domain name does not exist in the security database.
可选的,所述处理模块1003,包括:Optionally, the processing module 1003 includes:
获取子模块1003a,被配置为用于获取服务器提供的、所述短信的联系人号码对应的恶意域名数据库;The obtaining submodule 1003a is configured to obtain the malicious domain name database provided by the server and corresponding to the contact number of the short message;
检测子模块1003b,被配置为用于检测所述恶意域名数据库中是否存在所述主域名;The detection submodule 1003b is configured to detect whether the primary domain name exists in the malicious domain name database;
第一处理子模块1003c,被配置为用于当所述恶意域名数据库中存在所述主域名时,按照第一处理方式对所述短信进行处理;The first processing sub-module 1003c is configured to process the short message in a first processing manner when the primary domain name exists in the malicious domain name database;
第二处理子模块1003d,被配置为用于当所述恶意域名数据库中不存在所述主域名时,按照第二处理方式对所述短信进行处理。The second processing sub-module 1003d is configured to process the short message in a second processing manner when the primary domain name does not exist in the malicious domain name database.
可选的,所述第一处理子模块1003c,被配置为用于按照以下处理方式中的至少一种对所述短信进行处理:Optionally, the first processing submodule 1003c is configured to process the short message according to at least one of the following processing methods:
在来信提醒界面中展示第一提示消息,所述第一提示消息用于提示接收到包含恶意网址的短信;Displaying a first prompt message in the incoming letter reminder interface, the first prompt message is used to prompt that a short message containing a malicious URL is received;
将所述短信移动至指定分组;Move the short message to a designated group;
当检测到查看所述短信的内容的操作时,展示第二提示信息,所述第二提示信息用于提示所述短信中包含恶意网址;When an operation of viewing the content of the short message is detected, displaying second prompt information, the second prompt information is used to prompt that the short message contains a malicious URL;
当检测到对所述网址的访问操作时,禁止调用浏览器。When an access operation to said URL is detected, the browser is prohibited from being invoked.
可选的,所述第二处理子模块1003d,被配置为用于当检测到对所述网址的访问操作时,展示第三提示信息,所述第三提示信息用于提示是否确定访问所述网址。Optionally, the second processing submodule 1003d is configured to display third prompt information when an access operation to the website is detected, and the third prompt information is used to prompt whether to determine to visit the website. URL.
综上所述,本公开实施例提供的一种携带网址的短信处理装置,当终端接收到携带有网址的短信时,终端在本地检测该短信的联系人号码对应的安全域名数据库中是否存在该网址中的主域名,当检测结果为该安全数据库中不存在该主域名时,对该短信进行预定处理,通过预先设置一安全域名数据库,将短信中的网址的主域名与安全域名数据库中的主域名进行比对,只要安全域名数据库中不存在该网址的主域名时,就将该短信进行预设处理,提高了打开短信中网址的行为的安全性,降低用户因点击短信中的恶意网址而造成财产损失或者信息泄漏的风险。To sum up, the embodiment of the present disclosure provides a short message processing device carrying a website address. When a terminal receives a short message carrying a website address, the terminal locally detects whether there is such a message in the secure domain name database corresponding to the contact number of the short message. The main domain name in the website, when the detection result is that the main domain name does not exist in the security database, the short message is scheduled to be processed. Compared with the main domain name, as long as the main domain name of the URL does not exist in the security domain name database, the SMS will be preset, which improves the security of opening the URL in the SMS and reduces the risk of users clicking on malicious URLs in the SMS. risk of property damage or information leakage.
此外,本公开实施例提供的装置,在对该短信进行预定处理时,检测该短信中的网址的主域名是否存在于恶意域名网址中,并根据检测结果进行不同的处理,根据风险大小的不同提供多样化的处理方式,提高对包含有风险网址的短信的处理效果。In addition, the device provided by the embodiment of the present disclosure detects whether the main domain name of the website in the short message exists in the malicious domain name website when performing predetermined processing on the short message, and performs different processing according to the detection results, and performs different processing according to different risks. Provide a variety of processing methods to improve the processing effect on SMS containing risky URLs.
图12是根据一示例性实施例示出的一种携带网址的短信处理装置的框图。该装置可以通过硬件电路或者软硬件结合的方式实现服务器110的全部或者部分。该装置可以包括:第一生成模块1201以及第一提供模块1202;Fig. 12 is a block diagram of an apparatus for processing short messages carrying URLs according to an exemplary embodiment. The apparatus may implement all or part of the server 110 by means of a hardware circuit or a combination of software and hardware. The apparatus may include: a first generating module 1201 and a first providing module 1202;
第一生成模块1201,被配置为用于生成一个联系人号码对应的安全域名数据库;The first generating module 1201 is configured to generate a secure domain name database corresponding to a contact number;
第一提供模块1202,被配置为用于将所述安全域名数据库提供给终端,使得所述终端在接收到所述联系人号码对应的、携带有网址的短信,并检测出所述安全数据库中不存在所述网址的主域名时,对所述短信进行预定处理。The first providing module 1202 is configured to provide the secure domain name database to the terminal, so that the terminal receives the short message corresponding to the contact number and carries the URL, and detects that the domain name in the secure database is When the primary domain name of the website does not exist, predetermined processing is performed on the short message.
综上所述,本公开实施例提供的一种携带网址的短信处理装置,服务器生成一个联系人号码对应的安全域名数据库并提供给终端,当终端接收到该联系人号码对应的、携带有网址的短信时,终端检测该短信的联系人号码对应的安全域名数据库中是否存在该网址中的主域名,当检测结果为该安全数据库中不存在该主域名时,对该短信进行预定处理,通过预先设置一安全域名数据库,将短信中的网址的主域名与安全域名数据库中的主域名进行比对,只要安全域名数据库中不存在该网址的主域名时,就将该短信进行预设处理,提高了打开短信中网址的行为的安全性,降低用户因点击短信中的恶意网址而造成财产损失或者信息泄漏的风险。To sum up, the embodiment of the present disclosure provides a short message processing device carrying a website address. The server generates a secure domain name database corresponding to the contact number and provides it to the terminal. When sending a short message, the terminal detects whether the main domain name in the website exists in the security domain name database corresponding to the contact number of the short message. A secure domain name database is set in advance, and the primary domain name of the URL in the SMS is compared with the primary domain name in the secure domain name database. As long as the primary domain name of the URL does not exist in the secure domain name database, the SMS will be preset. The security of opening the URL in the text message is improved, and the risk of property loss or information leakage caused by the user clicking a malicious URL in the text message is reduced.
图13是根据另一示例性实施例示出的一种携带网址的短信处理装置的框图。该装置可以通过硬件电路或者软硬件结合的方式实现服务器110的全部或者部分。该装置可以包括:第一生成模块1201以及第一提供模块1202;Fig. 13 is a block diagram of an apparatus for processing short messages carrying URLs according to another exemplary embodiment. The apparatus may implement all or part of the server 110 by means of a hardware circuit or a combination of software and hardware. The apparatus may include: a first generating module 1201 and a first providing module 1202;
第一生成模块1201,被配置为用于生成一个联系人号码对应的安全域名数据库;The first generating module 1201 is configured to generate a secure domain name database corresponding to a contact number;
第一提供模块1202,被配置为用于将所述安全域名数据库提供给终端,使得所述终端在接收到所述联系人号码对应的、携带有网址的短信,并检测出所述安全数据库中不存在所述网址的主域名时,对所述短信进行预定处理。The first providing module 1202 is configured to provide the secure domain name database to the terminal, so that the terminal receives the short message corresponding to the contact number and carries the URL, and detects that the domain name in the secure database is When the primary domain name of the website does not exist, predetermined processing is performed on the short message.
可选的,所述装置还包括:第二生成模块1203以及第二提供模块1204;Optionally, the device further includes: a second generating module 1203 and a second providing module 1204;
第二生成模块1203,被配置为用于生成所述联系人号码对应的恶意域名数据库;The second generating module 1203 is configured to generate a malicious domain name database corresponding to the contact number;
第二提供模块1204,被配置为用于将所述恶意域名数据库提供给所述终端。The second providing module 1204 is configured to provide the malicious domain name database to the terminal.
可选的,所述第一生成模块1201,包括:Optionally, the first generating module 1201 includes:
频次获取子模块1201a,被配置为用于获取所述联系人号码对应的各条携带网址的短信中、各个网址的主域名的出现频次;The frequency obtaining sub-module 1201a is configured to obtain the frequency of occurrence of the main domain name of each website in each short message carrying a website corresponding to the contact number;
添加子模块1201b,被配置为用于将所述各个网址的主域名中,出现频次大于第一频次阈值的主域名添加入所述联系人号码对应的安全域名数据库。The adding sub-module 1201b is configured to add, among the main domain names of each website, the main domain names whose occurrence frequency is greater than the first frequency threshold to the security domain name database corresponding to the contact number.
可选的,所述第二生成模块1203,被配置为用于将所述各个网址的主域名中,出现频次不大于第二频次阈值的主域名添加入所述联系人号码对应的恶意域名数据库;Optionally, the second generating module 1203 is configured to add the main domain names whose frequency of occurrence is not greater than the second frequency threshold among the main domain names of each website to the malicious domain name database corresponding to the contact number ;
其中,所述第二频次阈值小于或者等于所述第一频次阈值。Wherein, the second frequency threshold is less than or equal to the first frequency threshold.
综上所述,本公开实施例提供的一种携带网址的短信处理装置,服务器生成一个联系人号码对应的安全域名数据库并提供给终端,当终端接收到该联系人号码对应的、携带有网址的短信时,终端检测该短信的联系人号码对应的安全域名数据库中是否存在该网址中的主域名,当检测结果为该安全数据库中不存在该主域名时,对该短信进行预定处理,通过预先设置一安全域名数据库,将短信中的网址的主域名与安全域名数据库中的主域名进行比对,只要安全域名数据库中不存在该网址的主域名时,就将该短信进行预设处理,提高了打开短信中网址的行为的安全性,降低用户因点击短信中的恶意网址而造成财产损失或者信息泄漏的风险。To sum up, the embodiment of the present disclosure provides a short message processing device carrying a website address. The server generates a secure domain name database corresponding to the contact number and provides it to the terminal. When sending a short message, the terminal detects whether the main domain name in the website exists in the security domain name database corresponding to the contact number of the short message. A secure domain name database is set in advance, and the primary domain name of the URL in the SMS is compared with the primary domain name in the secure domain name database. As long as the primary domain name of the URL does not exist in the secure domain name database, the SMS will be preset. The security of opening the URL in the text message is improved, and the risk of property loss or information leakage caused by the user clicking a malicious URL in the text message is reduced.
此外,本公开实施例提供的方法,对于某一个联系人号码,将该联系人号码对应的各条短信中的网址的主域名的出现频次进行统计,当某一主域名出现频次非常多,则确认该主域名为安全域名,若该主域名出现频次非常少,则确认该主域名为恶意域名,从而达到自动快速生成该联系人号码对应的安全余名数据库和恶意域名数据库的效果。In addition, in the method provided by the embodiment of the present disclosure, for a certain contact number, the frequency of occurrence of the main domain name of the website in each text message corresponding to the contact number is counted. When a certain main domain name appears frequently, then Confirm that the main domain name is a safe domain name. If the frequency of occurrence of the main domain name is very small, then confirm that the main domain name is a malicious domain name, so as to achieve the effect of automatically and quickly generating a safe name database and a malicious domain name database corresponding to the contact number.
本公开实施实例还提供了一种携带网址的短信处理装置,能够实现本公开实施例提供的一种携带网址的短信处理方法。该装置可以用于上述图1所示实施环境中的服务器110或者终端120中。该装置包括:处理器,以及用于存储处理器的可执行指令的存储器。The implementation example of the present disclosure also provides a short message processing device carrying a website address, capable of implementing the method for processing a short message carrying a website address provided in the embodiment of the present disclosure. The apparatus may be used in the server 110 or the terminal 120 in the implementation environment shown in FIG. 1 above. The device includes: a processor, and a memory for storing executable instructions of the processor.
其中,当该装置用于上述图1所示实施环境中的终端120中时,处理器被配置为:Wherein, when the device is used in the terminal 120 in the implementation environment shown in FIG. 1 above, the processor is configured to:
当接收到携带有网址的短信时,获取服务器提供的、所述短信的联系人号码对应的安全域名数据库;When receiving a short message carrying a website address, obtain the security domain name database provided by the server and corresponding to the contact number of the short message;
检测所述安全域名数据库中是否存在所述网址中的主域名;Detecting whether the primary domain name in the website exists in the secure domain name database;
当检测结果为所述安全数据库中不存在所述主域名时,对所述短信进行预定处理。When the detection result is that the primary domain name does not exist in the security database, predetermined processing is performed on the short message.
可选的,所述当检测结果为所述安全数据库中不存在所述主域名时,对所述短信进行预定处理,包括:Optionally, when the detection result is that the primary domain name does not exist in the security database, performing predetermined processing on the short message includes:
获取服务器提供的、所述短信的联系人号码对应的恶意域名数据库;Obtaining the malicious domain name database provided by the server and corresponding to the contact number of the short message;
检测所述恶意域名数据库中是否存在所述主域名;Detecting whether the primary domain name exists in the malicious domain name database;
当所述恶意域名数据库中存在所述主域名时,按照第一处理方式对所述短信进行处理;When the primary domain name exists in the malicious domain name database, process the short message according to the first processing method;
当所述恶意域名数据库中不存在所述主域名时,按照第二处理方式对所述短信进行处理。When the primary domain name does not exist in the malicious domain name database, the short message is processed in a second processing manner.
可选的,所述按照第一处理方式对所述短信进行处理,包括:Optionally, the processing of the short message according to the first processing method includes:
按照以下处理方式中的至少一种对所述短信进行处理:Process the short message according to at least one of the following processing methods:
在来信提醒界面中展示第一提示消息,所述第一提示消息用于提示接收到包含恶意网址的短信;Displaying a first prompt message in the incoming letter reminder interface, the first prompt message is used to prompt that a short message containing a malicious URL is received;
将所述短信移动至指定分组;Move the short message to a designated group;
当检测到查看所述短信的内容的操作时,展示第二提示信息,所述第二提示信息用于提示所述短信中包含恶意网址;When an operation of viewing the content of the short message is detected, displaying second prompt information, the second prompt information is used to prompt that the short message contains a malicious URL;
或者,当检测到对所述网址的访问操作时,禁止调用浏览器。Alternatively, when an access operation to the URL is detected, calling the browser is prohibited.
可选的,所述按照第二处理方式对所述短信进行处理,包括:Optionally, the processing of the short message according to the second processing method includes:
当检测到对所述网址的访问操作时,展示第三提示信息,所述第三提示信息用于提示是否确定访问所述网址。When an access operation to the website is detected, third prompt information is displayed, and the third prompt information is used to prompt whether to determine to visit the website.
当该装置用于上述图1所示实施环境中的服务器110中时,该处理器被配置为:When the device is used in the server 110 in the implementation environment shown in FIG. 1 above, the processor is configured to:
生成一个联系人号码对应的安全域名数据库;Generate a secure domain name database corresponding to the contact number;
将所述安全域名数据库提供给终端,使得所述终端在接收到所述联系人号码对应的、携带有网址的短信,并检测出所述安全数据库中不存在所述网址的主域名时,对所述短信进行预定处理。The secure domain name database is provided to the terminal, so that when the terminal receives the short message corresponding to the contact number and carries the website address, and detects that the primary domain name of the website does not exist in the security database, The short message is scheduled to be processed.
可选的,该处理器还被配置为:Optionally, the processor is also configured to:
生成所述联系人号码对应的恶意域名数据库;generating a malicious domain name database corresponding to the contact number;
将所述恶意域名数据库提供给所述终端。The malicious domain name database is provided to the terminal.
可选的,所述生成一个联系人号码对应的安全域名数据库,包括:Optionally, the generating a security domain name database corresponding to a contact number includes:
获取所述联系人号码对应的各条携带网址的短信中、各个网址的主域名的出现频次;Acquiring the frequency of occurrence of the main domain name of each website in each text message carrying a website corresponding to the contact number;
将所述各个网址的主域名中,出现频次大于第一频次阈值的主域名添加入所述联系人号码对应的安全域名数据库。Among the primary domain names of the respective websites, the primary domain names whose occurrence frequency is greater than the first frequency threshold are added to the security domain name database corresponding to the contact number.
可选的,所述生成所述联系人号码对应的恶意域名数据库,包括:Optionally, the generating the malicious domain name database corresponding to the contact number includes:
将所述各个网址的主域名中,出现频次不大于第二频次阈值的主域名添加入所述联系人号码对应的恶意域名数据库;Adding the main domain names whose frequency of occurrence is not greater than the second frequency threshold among the main domain names of the respective URLs to the malicious domain name database corresponding to the contact number;
其中,所述第二频次阈值小于或者等于所述第一频次阈值。Wherein, the second frequency threshold is less than or equal to the first frequency threshold.
需要说明的一点是,上述实施例提供的装置在实现其功能时,仅以上述各个功能模块的划分进行举例说明,实际应用中,可以根据实际需要而将上述功能分配由不同的功能模块完成,即将设备的内容结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。It should be noted that when the device provided by the above embodiment realizes its functions, it only uses the division of the above-mentioned functional modules as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to actual needs. That is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
图14是根据一示例性实施例示出的一种装置1400的框图。例如,装置1400可以是智能手机、可穿戴设备、智能电视和车载终端等电子设备。Fig. 14 is a block diagram of an apparatus 1400 according to an exemplary embodiment. For example, the apparatus 1400 may be electronic equipment such as a smart phone, a wearable device, a smart TV, and a vehicle terminal.
参照图14,装置1400可以包括以下一个或多个组件:处理组件1402,存储器1404,电源组件1406,多媒体组件1408,音频组件1410,输入/输出(I/O)的接口1412,传感器组件1414,以及通信组件1416。14, device 1400 may include one or more of the following components: processing component 1402, memory 1404, power supply component 1406, multimedia component 1408, audio component 1410, input/output (I/O) interface 1412, sensor component 1414, and communication component 1416 .
处理组件1402通常控制装置1400的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1402可以包括一个或多个处理器1420来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1402可以包括一个或多个模块,便于处理组件1402和其他组件之间的交互。例如,处理组件1402可以包括多媒体模块,以方便多媒体组件1408和处理组件1402之间的交互。The processing component 1402 generally controls the overall operations of the device 1400, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1402 may include one or more processors 1420 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 1402 may include one or more modules that facilitate interaction between processing component 1402 and other components. For example, processing component 1402 may include a multimedia module to facilitate interaction between multimedia component 1408 and processing component 1402 .
存储器1404被配置为存储各种类型的数据以支持在装置1400的操作。这些数据的示例包括用于在装置1400上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1404可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 1404 is configured to store various types of data to support operations at the device 1400 . Examples of such data include instructions for any application or method operating on device 1400, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1404 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件1406为装置1400的各种组件提供电力。电源组件1406可以包括电源管理系统,一个或多个电源,及其他与为装置1400生成、管理和分配电力相关联的组件。The power supply component 1406 provides power to various components of the device 1400 . Power components 1406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 1400 .
多媒体组件1408包括在装置1400和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1408包括一个前置摄像头和/或后置摄像头。当装置1400处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 1408 includes a screen that provides an output interface between the device 1400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or a swipe action, but also detect duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 1408 includes a front camera and/or a rear camera. When the device 1400 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件1410被配置为输出和/或输入音频信号。例如,音频组件1410包括一个麦克风(MIC),当装置1400处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1404或经由通信组件1416发送。在一些实施例中,音频组件1410还包括一个扬声器,用于输出音频信号。The audio component 1410 is configured to output and/or input audio signals. For example, the audio component 1410 includes a microphone (MIC), which is configured to receive external audio signals when the device 1400 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 1404 or sent via communication component 1416 . In some embodiments, the audio component 1410 also includes a speaker for outputting audio signals.
I/O接口1412为处理组件1402和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1412 provides an interface between the processing component 1402 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件1414包括一个或多个传感器,用于为装置1400提供各个方面的状态评估。例如,传感器组件1414可以检测到装置1400的打开/关闭状态,组件的相对定位,例如组件为装置1400的显示器和小键盘,传感器组件1414还可以检测装置1400或装置1400一个组件的位置改变,用户与装置1400接触的存在或不存在,装置1400方位或加速/减速和装置1400的温度变化。传感器组件1414可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1414还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1414还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 1414 includes one or more sensors for providing various aspects of status assessment for device 1400 . For example, the sensor component 1414 can detect the open/closed state of the device 1400, the relative positioning of components, such as the display and keypad of the device 1400, the sensor component 1414 can also detect a change in the position of the device 1400 or a component of the device 1400, the user Presence or absence of contact with device 1400 , device 1400 orientation or acceleration/deceleration and temperature change of device 1400 . Sensor assembly 1414 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 1414 may also include optical sensors, such as CMOS or CCD image sensors, for use in imaging applications. In some embodiments, the sensor component 1414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件1416被配置为便于装置1400和其他设备之间有线或无线方式的通信。装置1400可以接入基于通信标准的无线网络,如WiFi,2G、3G或4G,或它们的组合。在一个示例性实施例中,通信组件1416经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件1416还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 1416 is configured to facilitate wired or wireless communication between the apparatus 1400 and other devices. The device 1400 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G or 4G, or a combination thereof. In one exemplary embodiment, the communication component 1416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置1400可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 1400 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1404,上述指令可由装置1400的处理器1420执行以完成上述方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 1404 including instructions, which can be executed by the processor 1420 of the device 1400 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
一种非临时性计算机可读存储介质,当存储介质中的指令由装置1400的处理器执行时,使得装置1400能够执行上述由终端执行的携带网址的短信处理方法。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the device 1400, the device 1400 can execute the above method for processing short messages carrying URLs executed by the terminal.
图15是根据一示例性实施例示出的一种装置1500的框图。例如,装置1500可以被提供为一服务器。参照图15,装置1500包括处理组件1522,其进一步包括一个或多个处理器,以及由存储器1532所代表的存储器资源,用于存储可由处理部件1522执行的指令,例如应用程序。存储器1532中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1522被配置为执行指令,以执行上述由服务器执行的携带网址的短信处理方法。Fig. 15 is a block diagram of an apparatus 1500 according to an exemplary embodiment. For example, the apparatus 1500 may be provided as a server. 15, apparatus 1500 includes processing component 1522, which further includes one or more processors, and a memory resource represented by memory 1532 for storing instructions executable by processing component 1522, such as application programs. The application programs stored in memory 1532 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1522 is configured to execute instructions, so as to execute the above-mentioned method for processing short messages carrying URLs executed by the server.
装置1500还可以包括一个电源组件1526被配置为执行装置1500的电源管理,一个有线或无线网络接口1550被配置为将装置1500连接到网络,和一个输入输出(I/O)接口1558。装置1500可以操作基于存储在存储器1532的操作系统,例如Windows ServerTM,MacOS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。Device 1500 may also include a power component 1526 configured to perform power management of device 1500 , a wired or wireless network interface 1550 configured to connect device 1500 to a network, and an input-output (I/O) interface 1558 . The apparatus 1500 can operate based on an operating system stored in the memory 1532, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™ or the like.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (18)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610273071.8A CN106028297B (en) | 2016-04-28 | 2016-04-28 | Short message processing method and device carrying URL |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610273071.8A CN106028297B (en) | 2016-04-28 | 2016-04-28 | Short message processing method and device carrying URL |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106028297A CN106028297A (en) | 2016-10-12 |
CN106028297B true CN106028297B (en) | 2019-11-08 |
Family
ID=57081057
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610273071.8A Active CN106028297B (en) | 2016-04-28 | 2016-04-28 | Short message processing method and device carrying URL |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106028297B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106791050A (en) * | 2016-12-06 | 2017-05-31 | 深圳市金立通信设备有限公司 | A kind of Website logging method and terminal |
CN111093199A (en) * | 2019-11-25 | 2020-05-01 | 维沃移动通信有限公司 | Information prompting method, electronic device |
CN115037510B (en) * | 2022-04-27 | 2025-03-07 | 新华三信息安全技术有限公司 | Page access method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1573784A (en) * | 2003-06-04 | 2005-02-02 | 微软公司 | Origination/destination features and lists for spam prevention |
CN102622553A (en) * | 2012-04-24 | 2012-08-01 | 腾讯科技(深圳)有限公司 | Method and device for detecting webpage safety |
CN102752267A (en) * | 2011-04-20 | 2012-10-24 | 阿里巴巴集团控股有限公司 | Method and device for providing website information |
CN102790752A (en) * | 2011-05-20 | 2012-11-21 | 盛乐信息技术(上海)有限公司 | A fraud information filtering system and method based on feature recognition |
CN103220302A (en) * | 2013-05-07 | 2013-07-24 | 腾讯科技(深圳)有限公司 | Malicious website access defending method and related device |
CN104185158A (en) * | 2014-09-01 | 2014-12-03 | 北京奇虎科技有限公司 | Malicious short message processing method and client based on false base station |
-
2016
- 2016-04-28 CN CN201610273071.8A patent/CN106028297B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1573784A (en) * | 2003-06-04 | 2005-02-02 | 微软公司 | Origination/destination features and lists for spam prevention |
CN102752267A (en) * | 2011-04-20 | 2012-10-24 | 阿里巴巴集团控股有限公司 | Method and device for providing website information |
CN102790752A (en) * | 2011-05-20 | 2012-11-21 | 盛乐信息技术(上海)有限公司 | A fraud information filtering system and method based on feature recognition |
CN102622553A (en) * | 2012-04-24 | 2012-08-01 | 腾讯科技(深圳)有限公司 | Method and device for detecting webpage safety |
CN103220302A (en) * | 2013-05-07 | 2013-07-24 | 腾讯科技(深圳)有限公司 | Malicious website access defending method and related device |
CN104185158A (en) * | 2014-09-01 | 2014-12-03 | 北京奇虎科技有限公司 | Malicious short message processing method and client based on false base station |
Also Published As
Publication number | Publication date |
---|---|
CN106028297A (en) | 2016-10-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105656948A (en) | Account login method and device | |
CN106060789B (en) | short message identification method and device | |
CN106020587A (en) | Method and device for message display | |
US9716789B2 (en) | Method, device, terminal and server for replying call | |
JP2019512113A (en) | Notification message processing method and apparatus | |
CN106598395A (en) | Method and device for executing task | |
CN104639533B (en) | Method of controlling security based on terminal and device | |
CN106920170B (en) | Transaction reminder method and device | |
CN107230060A (en) | The method and apparatus that a kind of account is reported the loss | |
CN107241521A (en) | web access method and device | |
CN108319832A (en) | Unlocking method and device | |
CN106600367A (en) | Order information processing method and order information processing device | |
CN106775248A (en) | Push the methods of exhibiting and device of content | |
CN106302528A (en) | Method for processing short messages and device | |
CN106028297B (en) | Short message processing method and device carrying URL | |
CN106529277A (en) | Message preview method and device | |
CN106603528B (en) | The method and device of webpage calling terminal local function | |
CN106101363A (en) | Income prompting method and device | |
CN107748991A (en) | Account safety management method and device | |
CN106331328A (en) | Method and device for information prompt | |
CN106792604B (en) | Method and device for service prompt in communication process | |
CN106022114A (en) | A display method and device for an application lock unlocking interface | |
CN108959960B (en) | Method, device and computer readable storage medium for preventing privacy disclosure | |
CN105245705A (en) | Telephone prompting method and device | |
CN106028334A (en) | Information identification method, device and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |