CN116436656A - Processing method, device and electronic device for accessing external link request - Google Patents
Processing method, device and electronic device for accessing external link request Download PDFInfo
- Publication number
- CN116436656A CN116436656A CN202310327558.XA CN202310327558A CN116436656A CN 116436656 A CN116436656 A CN 116436656A CN 202310327558 A CN202310327558 A CN 202310327558A CN 116436656 A CN116436656 A CN 116436656A
- Authority
- CN
- China
- Prior art keywords
- external
- request
- domain name
- external link
- website
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/14—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
- H04L63/1441—Countermeasures against malicious traffic
- H04L63/1483—Countermeasures against malicious traffic service impersonation, e.g. phishing, pharming or web spoofing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/40—Network security protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
技术领域technical field
本发明涉及网络通信技术领域,尤其是涉及一种访问外链请求的处理方法、装置和电子设备。The present invention relates to the technical field of network communication, in particular to a processing method, device and electronic equipment for accessing external link requests.
背景技术Background technique
IPv6(Internet Protocol Version 6,互联网协议第6版)升级网站平台可以将IPv4(Internet Protocol Version 4,互联网协议第4版)网络的网站升级到IPv6网络的网站。升级后的网站页面会有其他非升级网站的链接,即外链。如果外链网站没有IPv6网络,那么IPv6客户端在升级网站中点击该外链,就会访问失败。The IPv6 (Internet Protocol Version 6, Internet Protocol Version 6) upgrade website platform can upgrade the website of the IPv4 (Internet Protocol Version 4, Internet Protocol Version 4) network to the website of the IPv6 network. The upgraded website pages will have links to other non-upgraded websites, that is, external links. If the external link website does not have an IPv6 network, and the IPv6 client clicks on the external link in the upgraded website, the access will fail.
因此,IPv6网站在将网页返回给客户端之前,需要将页面内的外链进行一定格式的转换,比如,将升级网站www.xxxx.com中的外链域名www.aaaa.com转换为www.aaaa.ipv6.xxxx.com,这样IPv6客户端用户点击转换后的外链域名www.aaaa.ipv6.xxxx.com,就会访问到IPv6升级网站平台,IPv6升级网站平台会代理访问外链IPv4源站www.aaaa.com,IPv6客户端就能成功访问外链。Therefore, before the IPv6 website returns the webpage to the client, it needs to convert the external link in the page to a certain format, for example, convert the external link domain name www.aaaa.com in the upgraded website www.xxxx.com to www. aaaa.ipv6.xxxx.com, so that IPv6 client users click on the converted external link domain name www.aaaa.ipv6.xxxx.com, they will visit the IPv6 upgrade website platform, and the IPv6 upgrade website platform will proxy access to the external link IPv4 source Website www.aaaa.com, the IPv6 client can successfully access the external link.
然而,对于不存在于升级网站页面中的非升级网站,可以模仿转换格式,伪造成为升级网站中转换后的外链,这样的外链称为非法外链。比如,不存在升级网站www.xxxx.com页面中的网站www.bbbb.com,模仿转换格式转换为www.bbbb.ipv6.xxxx.com,这样的外链就是非法外链,用户访问非法外链,就会将请求引到IPv6升级网站平台,让IPv6升级网站平台去代理访问非法外链的IPv4源站,从而浪费升级网站平台的资源,也可能访问了一些恶意网站造成IPv6升级网站的安全事故。现有技术中不存在拦截上述非法外链的方法。However, for non-upgraded websites that do not exist in the pages of the upgraded website, the conversion format can be imitated and faked as converted external links in the upgraded website. Such external links are called illegal external links. For example, there is no website www.bbbb.com in the upgraded website www.xxxx.com page, and the imitation conversion format is converted to www.bbbb.ipv6.xxxx.com. Such external links are illegal external links, and users access illegal external links , the request will be directed to the IPv6 upgrade website platform, and the IPv6 upgrade website platform will proxy access to the IPv4 source site of the illegal external link, thus wasting the resources of the upgrade website platform, and may also visit some malicious websites and cause a security incident on the IPv6 upgrade website . There is no method for intercepting the above-mentioned illegal external links in the prior art.
发明内容Contents of the invention
有鉴于此,本发明的目的在于提供一种访问外链请求的处理方法、装置和电子设备,既可以拦截非法网站伪造成为外链进行访问,又可以同时保证升级网站与合法外链的正常访问。In view of this, the purpose of the present invention is to provide a processing method, device and electronic equipment for accessing external links, which can not only intercept illegal websites forged as external links for access, but also ensure the normal access of upgraded websites and legal external links at the same time .
第一方面,本发明实施例提供了一种访问外链请求的处理方法,应用于升级网站平台,客户端、升级网站平台和指定源站依次连接,升级网站平台还与升级网站连接;升级网站平台设置有外链记录表,外链记录表设置的外链域名包括:升级网站的外链域名和/或指定源站的外链域名;方法包括:接收客户端发送的访问外链请求,确定请求对应的外链域名是否存在于外链记录表;如果存在,确定请求通过,以使客户端访问请求对应的外链域名;如果不存在,确定请求不通过,以使客户端不访问请求对应的外链域名。In the first aspect, the embodiment of the present invention provides a processing method for accessing an external link request, which is applied to an upgraded website platform, and the client, the upgraded website platform, and the designated source station are sequentially connected, and the upgraded website platform is also connected to the upgraded website; the upgraded website The platform has an external chain record table, and the external chain domain names set in the external chain record table include: the external chain domain name of the upgraded website and/or the external chain domain name of the designated source site; the method includes: receiving the external link request sent by the client, determining Whether the external link domain name corresponding to the request exists in the external link record table; if it exists, confirm that the request is passed, so that the client can access the external link domain name corresponding to the request; if it does not exist, determine that the request does not pass, so that the client does not access the corresponding external link domain name external domain name.
在本申请可选的实施例中,客户端、升级网站平台和升级网站均采用IPv6协议,指定源站采用IPv4协议;或者,客户端、升级网站平台和升级网站均采用IPv4协议,指定源站采用IPv6协议。In an optional embodiment of the present application, the client, the upgraded website platform and the upgraded website all adopt the IPv6 protocol, and the designated source station adopts the IPv4 protocol; or, the client, the upgraded website platform and the upgraded website all adopt the IPv4 protocol, and the designated source station Adopt IPv6 protocol.
在本申请可选的实施例中,上述方法还包括:向升级网站或指定源站发送目标请求;接收升级网站或指定源站基于目标请求发送的响应报文;将响应报文对应的外链域名记录至外链记录表。In an optional embodiment of the present application, the above method further includes: sending a target request to the upgrade website or the designated source station; receiving a response message sent by the upgrade website or the designated source station based on the target request; The domain name is recorded in the external link record table.
在本申请可选的实施例中,上述将响应报文对应的外链域名记录至外链记录表的步骤,包括:通过字符串匹配的方式确定响应报文对应的外链域名;将确定的响应报文对应的外链域名记录至外链记录表。In an optional embodiment of the present application, the above-mentioned step of recording the external chain domain name corresponding to the response message to the external chain record table includes: determining the external chain domain name corresponding to the response message through character string matching; The external link domain name corresponding to the response message is recorded in the external link record table.
在本申请可选的实施例中,上述外链记录表为红黑树结构,红黑树结构的每个结点记录有一个外链域名。In an optional embodiment of the present application, the above-mentioned external link record table is a red-black tree structure, and each node of the red-black tree structure records an external link domain name.
在本申请可选的实施例中,上述方法至少还包括以下之一:通过查找函数查找红黑树结构的结点是否存在外链域名;通过插入函数将外链域名插入红黑树结构的结点;通过删除函数将外链域名从红黑树结构的结点中删除;通过调整函数维持红黑树结构的平衡。In an optional embodiment of the present application, the above method at least includes one of the following: use a lookup function to find out whether there is an external domain name in the node of the red-black tree structure; insert the external domain name into the node of the red-black tree structure through the insertion function point; delete the external domain name from the nodes of the red-black tree structure through the delete function; maintain the balance of the red-black tree structure through the adjustment function.
第二方面,本发明实施例还提供一种访问外链请求的处理装置,应用于升级网站平台,客户端、升级网站平台和指定源站依次连接,升级网站平台还与升级网站连接;升级网站平台设置有外链记录表,外链记录表设置的外链域名包括:升级网站的外链域名和/或指定源站的外链域名;装置包括:请求接收模块,用于接收客户端发送的访问外链请求,确定请求对应的外链域名是否存在于外链记录表;请求通过模块,用于如果存在,确定请求通过,以使客户端访问请求对应的外链域名;请求不通过模块,用于如果不存在,确定请求不通过,以使客户端不访问请求对应的外链域名。In the second aspect, the embodiment of the present invention also provides a processing device for accessing external link requests, which is applied to the upgrade website platform, and the client, the upgrade website platform and the designated source station are sequentially connected, and the upgrade website platform is also connected to the upgrade website; the upgrade website The platform is equipped with an external chain record table, and the external chain domain names set in the external chain record table include: the external chain domain name of the upgraded website and/or the external chain domain name of the designated source site; the device includes: a request receiving module for receiving the Access the external link request to determine whether the external link domain name corresponding to the request exists in the external link record table; the request pass module is used to confirm that the request passes if it exists, so that the client can access the external link domain name corresponding to the request; the request does not pass the module, If it does not exist, it is used to determine that the request is not passed, so that the client does not access the external domain name corresponding to the request.
在本申请可选的实施例中,上述装置还包括:外链域名记录模块,用于向升级网站或指定源站发送目标请求;接收升级网站或指定源站基于目标请求发送的响应报文;将响应报文对应的外链域名记录至外链记录表。In an optional embodiment of the present application, the above device further includes: an external link domain name recording module, configured to send a target request to the upgraded website or the designated source site; receive a response message sent by the upgraded website or the designated source site based on the target request; Record the external link domain name corresponding to the response message to the external link record table.
第三方面,本发明实施例还提供了一种电子设备,包括处理器和存储器,该存储器存储有能够被该处理器执行的计算机可执行指令,该处理器执行该计算机可执行指令以实现上述访问外链请求的处理方法。In a third aspect, an embodiment of the present invention also provides an electronic device, including a processor and a memory, the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to achieve the above-mentioned The processing method for accessing external link requests.
第四方面,本发明实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令在被处理器调用和执行时,计算机可执行指令促使处理器实现上述访问外链请求的处理方法。In the fourth aspect, the embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions Prompting the processor to implement the above-mentioned processing method for accessing the external link request.
本发明实施例带来了以下有益效果:Embodiments of the present invention bring the following beneficial effects:
本发明实施例提供了一种访问外链请求的处理方法、装置和电子设备,升级网站平台接收客户端发送的访问外链请求,确定请求对应的外链域名是否存在于外链记录表;如果存在,确定请求通过,客户端访问请求对应的外链域名;如果不存在,确定请求不通过,客户端不访问请求对应的外链域名。该方式中,既可以拦截非法网站伪造成为外链进行访问,又可以同时保证升级网站与合法外链的正常访问。Embodiments of the present invention provide a processing method, device, and electronic device for accessing an external link request. The upgraded website platform receives the external link request sent by the client, and determines whether the external link domain name corresponding to the request exists in the external link record table; if If it exists, it is determined that the request is passed, and the client accesses the external domain name corresponding to the request; if it does not exist, it is determined that the request fails, and the client does not access the external domain name corresponding to the request. In this method, it is possible to intercept illegal websites forged as external links for access, and at the same time ensure the normal access of upgraded websites and legal external links.
本公开的其他特征和优点将在随后的说明书中阐述,或者,部分特征和优点可以从说明书推知或毫无疑义地确定,或者通过实施本公开的上述技术即可得知。Other features and advantages of the present disclosure will be set forth in the following description, or some of the features and advantages can be inferred or unambiguously determined from the description, or can be known by implementing the above-mentioned techniques of the present disclosure.
为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the specific implementation of the present invention or the technical solutions in the prior art, the following will briefly introduce the accompanying drawings that need to be used in the specific implementation or description of the prior art. Obviously, the accompanying drawings in the following description The drawings show some implementations of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any creative effort.
图1为本发明实施例提供的一种访问外链请求的处理方法的流程图;FIG. 1 is a flow chart of a processing method for accessing an external link request provided by an embodiment of the present invention;
图2为本发明实施例提供的另一种访问外链请求的处理方法的流程图;FIG. 2 is a flow chart of another processing method for accessing an external link request provided by an embodiment of the present invention;
图3为本发明实施例提供的一种访问外链请求的处理方法的总流程的示意图;FIG. 3 is a schematic diagram of the overall flow of a processing method for accessing an external link request provided by an embodiment of the present invention;
图4为本发明实施例提供的一种外链记录模块存储并标识页面为合法外链的方法的示意图;Fig. 4 is a schematic diagram of a method for storing and identifying a page as a legitimate external link by an external link recording module provided by an embodiment of the present invention;
图5为本发明实施例提供的一种外链记录模块判断请求的外链是否合法的方法的示意图;5 is a schematic diagram of a method for judging whether a requested external link is legal by an external link recording module provided by an embodiment of the present invention;
图6为本发明实施例提供的一种访问外链请求的处理装置的结构示意图;FIG. 6 is a schematic structural diagram of a processing device for accessing an external link request provided by an embodiment of the present invention;
图7为本发明实施例提供的一种电子设备的结构示意图。FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. the embodiment. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
IPv6(Internet Protocol Version 6,互联网协议第6版)升级网站平台可以将IPv4(Internet Protocol Version 4,互联网协议第4版)网络的网站升级到IPv6网络的网站。升级后的网站页面会有其他非升级网站的链接,即外链。如果外链网站没有IPv6网络,那么IPv6客户端在升级网站中点击该外链,就会访问失败。The IPv6 (Internet Protocol Version 6, Internet Protocol Version 6) upgrade website platform can upgrade the website of the IPv4 (Internet Protocol Version 4, Internet Protocol Version 4) network to the website of the IPv6 network. The upgraded website pages will have links to other non-upgraded websites, that is, external links. If the external link website does not have an IPv6 network, and the IPv6 client clicks on the external link in the upgraded website, the access will fail.
因此,IPv6网站在将网页返回给客户端之前,需要将页面内的外链进行一定格式的转换,比如,将升级网站www.xxxx.com中的外链域名www.aaaa.com转换为www.aaaa.ipv6.xxxx.com,这样IPv6客户端用户点击转换后的外链域名www.aaaa.ipv6.xxxx.com,就会访问到IPv6升级网站平台,IPv6升级网站平台会代理访问外链IPv4源站www.aaaa.com,IPv6客户端就能成功访问外链。Therefore, before the IPv6 website returns the webpage to the client, it needs to convert the external link in the page to a certain format, for example, convert the external link domain name www.aaaa.com in the upgraded website www.xxxx.com to www. aaaa.ipv6.xxxx.com, so that IPv6 client users click on the converted external link domain name www.aaaa.ipv6.xxxx.com, they will visit the IPv6 upgrade website platform, and the IPv6 upgrade website platform will proxy access to the external link IPv4 source Website www.aaaa.com, the IPv6 client can successfully access the external link.
然而,对于不存在于升级网站页面中的非升级网站,可以模仿转换格式,伪造成为升级网站中转换后的外链,这样的外链称为非法外链。比如,不存在升级网站www.xxxx.com页面中的网站www.bbbb.com,模仿转换格式转换为www.bbbb.ipv6.xxxx.com,这样的外链就是非法外链,用户访问非法外链,就会将请求引到IPv6升级网站平台,让IPv6升级网站平台去代理访问非法外链的IPv4源站,从而浪费升级网站平台的资源,也可能访问了一些恶意网站造成IPv6升级网站的安全事故。现有技术中不存在拦截上述非法外链的方法。However, for non-upgraded websites that do not exist in the pages of the upgraded website, the conversion format can be imitated and faked as converted external links in the upgraded website. Such external links are called illegal external links. For example, there is no website www.bbbb.com in the upgraded website www.xxxx.com page, and the imitation conversion format is converted to www.bbbb.ipv6.xxxx.com. Such external links are illegal external links, and users access illegal external links , the request will be directed to the IPv6 upgrade website platform, and the IPv6 upgrade website platform will proxy access to the IPv4 source site of the illegal external link, thus wasting the resources of the upgrade website platform, and may also visit some malicious websites and cause a security incident on the IPv6 upgrade website . There is no method for intercepting the above-mentioned illegal external links in the prior art.
基于此,本发明实施例提供的一种访问外链请求的处理方法、装置和电子设备,具体提供了一种IPv4网站升级为IPv6网站或IPv6网站转换为IPv4网站平台中,拦截非法网站伪造成外链进行访问的方法,解决了升级网站中如何准确拦截非法外链的问题,既可以拦截非法网站伪造成为外链进行访问,又可以同时保证升级网站与合法外链的正常访问。Based on this, the embodiment of the present invention provides a processing method, device, and electronic device for accessing external link requests, specifically providing a platform for upgrading an IPv4 website to an IPv6 website or converting an IPv6 website to an IPv4 website, intercepting illegal websites forged into The method of accessing external links solves the problem of how to accurately intercept illegal external links in upgrading websites. It can not only intercept illegal websites forged as external links for access, but also ensure the normal access of upgraded websites and legal external links at the same time.
为便于对本实施例进行理解,首先对本发明实施例所公开的一种访问外链请求的处理方法进行详细介绍。In order to facilitate the understanding of this embodiment, a method for processing a request for accessing an external link disclosed in the embodiment of the present invention is firstly introduced in detail.
实施例一:Embodiment one:
本发明实施例提供一种访问外链请求的处理方法,应用于升级网站平台,客户端、升级网站平台和指定源站依次连接,升级网站平台还与升级网站连接;升级网站平台设置有外链记录表,外链记录表设置的外链域名包括:升级网站的外链域名和/或指定源站的外链域名。The embodiment of the present invention provides a processing method for accessing an external link request, which is applied to an upgraded website platform. The client, the upgraded website platform and the designated source station are connected in sequence, and the upgraded website platform is also connected to the upgraded website; the upgraded website platform is provided with an external link Record table, the external chain domain name set in the external chain record table includes: the external chain domain name of the upgraded website and/or the external chain domain name of the designated source site.
其中,本实施例中的升级网站平台可以将IPv4网站升级为IPv6网站,或IPv6网站转换为IPv4网站。因此,本实施例中的客户端、升级网站平台和升级网站均采用IPv6协议,指定源站采用IPv4协议;或者,客户端、升级网站平台和升级网站均采用IPv4协议,指定源站采用IPv6协议。Wherein, the upgrading website platform in this embodiment can upgrade an IPv4 website to an IPv6 website, or convert an IPv6 website to an IPv4 website. Therefore, the client, the upgraded website platform and the upgraded website in this embodiment all adopt the IPv6 protocol, and the designated source station adopts the IPv4 protocol; or, the client, the upgraded website platform and the upgraded website all adopt the IPv4 protocol, and the designated source station adopts the IPv6 protocol .
本实施例中均以升级网站平台将IPv4网站升级为IPv6网站为例,此后不再赘述。本实施例中的IPv6升级网站平台部署于IPv6客户端和IPv4的http(Hyper Text TransferProtocol,超文本传输协议)指定源站之间,IPv6升级网站是IPv6升级网站平台授权的网站,IPv6客户端可以通过IPv6升级网站平台访问IPv6升级网站,IPv6升级网站页面中的所有非IPv6升级网站域名。In this embodiment, the upgrading of the website platform to upgrade the IPv4 website to the IPv6 website is taken as an example, which will not be repeated hereafter. The IPv6 upgrade website platform in the present embodiment is deployed between the http (Hyper Text Transfer Protocol, hypertext transfer protocol) designated source station of IPv6 client and IPv4, and the IPv6 upgrade website is a website authorized by the IPv6 upgrade website platform, and the IPv6 client can Access the IPv6 upgrade website through the IPv6 upgrade website platform, and all non-IPv6 upgrade website domain names in the IPv6 upgrade website page.
基于上述描述,参见图1所示的一种访问外链请求的处理方法的流程图,该访问外链请求的处理方法包括如下步骤:Based on the above description, referring to the flow chart of a method for processing a request to access an external link shown in FIG. 1 , the method for processing a request to access an external link includes the following steps:
步骤S102,接收客户端发送的访问外链请求,确定请求对应的外链域名是否存在于外链记录表。Step S102, receiving the external link access request sent by the client, and determining whether the external link domain name corresponding to the request exists in the external link record table.
升级网站平台设置有外链记录表,可以将升级网站中的合法外链保存到外链记录表。当客户端发送的访问外链请求到达升级网站平台时,升级网站平台可以判断该请求对应的外链域名是否存在于外链记录表。The upgraded website platform has an external link record table, which can save the legal external links in the upgraded website to the external link record table. When the request for accessing the external link sent by the client reaches the upgraded website platform, the upgraded website platform can determine whether the external link domain name corresponding to the request exists in the external link record table.
步骤S104,如果存在,确定请求通过,以使客户端访问请求对应的外链域名。Step S104, if it exists, determine that the request is passed, so that the client accesses the external link domain name corresponding to the request.
如果该请求对应的外链域名存在于外链记录表,则说明该请求对应的外链是合法的,可以允许访问,确定请求通过,客户端可以访问请求对应的外链域名。If the external link domain name corresponding to the request exists in the external link record table, it means that the external link corresponding to the request is legal and access can be allowed. If the request is confirmed, the client can access the external link domain name corresponding to the request.
例如:当IPv6客户端用户访问外链网站时,升级网站平台可以判断该请求对应的外链域名是否存在于外链记录表,如果存在于外链记录表则访问通过。For example: when an IPv6 client user accesses an external link website, the upgraded website platform can determine whether the external link domain name corresponding to the request exists in the external link record list, and if it exists in the external link record list, the access is passed.
步骤S106,如果不存在,确定请求不通过,以使客户端不访问请求对应的外链域名。Step S106, if it does not exist, it is determined that the request is not passed, so that the client does not access the external link domain name corresponding to the request.
如果该请求对应的外链域名不存在于外链记录表,则说明该请求对应的外链是非法网站伪造的,可以拒绝该请求,确定不请求通过,客户端不可以访问请求对应的外链域名。从而拦截非法网站伪造成为外链进行访问,并且能保证升级网站与合法外链的正常访问。If the domain name of the external link corresponding to the request does not exist in the external link record table, it means that the external link corresponding to the request is forged by an illegal website, the request can be rejected, and the request is determined not to pass, and the client cannot access the external link corresponding to the request domain name. In this way, illegal websites are forged to be accessed as external links, and normal access to upgraded websites and legal external links can be guaranteed.
例如:当IPv6客户端用户访问外链网站时,升级网站平台可以判断该请求对应的外链域名是否存在于外链记录表,如果不存在于外链记录表,则访问被拒绝。For example: when an IPv6 client user accesses an external link website, the upgraded website platform can determine whether the external link domain name corresponding to the request exists in the external link record list, and if it does not exist in the external link record list, the access is rejected.
本发明实施例提供了一种访问外链请求的处理方法,升级网站平台接收客户端发送的访问外链请求,确定请求对应的外链域名是否存在于外链记录表;如果存在,确定请求通过,客户端访问请求对应的外链域名;如果不存在,确定请求不通过,客户端不访问请求对应的外链域名。该方式中,既可以拦截非法网站伪造成为外链进行访问,又可以同时保证升级网站与合法外链的正常访问。The embodiment of the present invention provides a processing method for accessing an external link request. The upgraded website platform receives the external link request sent by the client, and determines whether the external link domain name corresponding to the request exists in the external link record table; if it exists, it is determined that the request passes , the external link domain name corresponding to the client access request; if it does not exist, it is determined that the request fails, and the client does not access the external link domain name corresponding to the request. In this method, it is possible to intercept illegal websites forged as external links for access, and at the same time ensure the normal access of upgraded websites and legal external links.
实施例二:Embodiment two:
本实施例提供了另一种访问外链请求的处理方法,该方法在上述实施例的基础上实现,参见图2所示的另一种访问外链请求的处理方法的流程图,本实施例中的访问外链请求的处理方法包括如下步骤:This embodiment provides another method for processing a request to access an external link, which is implemented on the basis of the above-mentioned embodiment. Refer to the flow chart of another method for processing a request to access an external link shown in FIG. 2 , this embodiment The processing method for accessing the external link request in includes the following steps:
步骤S202,向升级网站或指定源站发送目标请求;接收升级网站或指定源站基于目标请求发送的响应报文;将响应报文对应的外链域名记录至外链记录表。Step S202, sending a target request to the upgrade website or the designated source site; receiving a response message sent by the upgrade website or the designated source site based on the target request; and recording the external link domain name corresponding to the response message in the external link record table.
本实施例中的升级网站平台可以向升级网站或指定源站发送目标请求,在接收到收升级网站或指定源站基于目标请求发送的响应报文之后,将响应报文对应的外链域名记录至外链记录表。The upgrade website platform in this embodiment can send a target request to the upgrade website or the designated source station, and after receiving the response message sent by the upgrade website or the designated source station based on the target request, record the external link domain name corresponding to the response message To the external chain record table.
例如:IPv6升级网站平台收到IPv6升级网站或合法外链网站的IPv4源站发送的http响应报文后,将http响应报文中所有外链域名记录到外链记录表中,并视这些外链域名为合法外链。For example: after the IPv6 upgrade website platform receives the http response message sent by the IPv6 upgrade website or the IPv4 source site of the legal external link website, it will record all the external link domain names in the http response message into the external link record table, and regard these external link The chain domain name is a legal external chain.
具体地,本实施例中可以通过字符串匹配的方式确定响应报文对应的外链域名;将确定的响应报文对应的外链域名记录至外链记录表。Specifically, in this embodiment, the external link domain name corresponding to the response message may be determined through character string matching; the determined external link domain name corresponding to the response message may be recorded in the external link record table.
本实施例可以通过字符串匹配的方式确定响应报文对应的外链域名,从而快速、准确地将确定的响应报文对应的外链域名记录至外链记录表。In this embodiment, the external link domain name corresponding to the response message can be determined by character string matching, so as to quickly and accurately record the determined external link domain name corresponding to the response message in the external link record table.
本实施例中将存储并标识合法外链的方法可以为:将IPv4升级为IPv6的网站中的外链,视为是合法外链,将合法外链网站中外链,也视为是合法外链,将所有合法外链存储到外链记录表中。In this embodiment, the method for storing and identifying legal external links can be as follows: the external links in websites upgraded from IPv4 to IPv6 are regarded as legal external links, and the external links in websites with legal external links are also regarded as legal external links , and store all legal backlinks in the backlink record table.
例如:IPv6升级网站平台将发送给升级网站或合法外链网站的请求转发到IPv4源站。IPv4源站响应http响应报文,IPv6升级网站平台收到http响应报文后,利用字符串匹配算法,将http响应报文中的所有外链域名,查找出来。IPv6升级网站平台将这些外链域名添加到外链域名记录表,这样就完成了对合法外链的存储与标识。For example: the IPv6 upgrade website platform forwards the request sent to the upgrade website or the legitimate external link website to the IPv4 source site. The IPv4 origin site responds to the http response message. After the IPv6 upgrade website platform receives the http response message, it uses the string matching algorithm to find out all the external domain names in the http response message. The IPv6 upgrade website platform adds these external link domain names to the external link domain name record table, thus completing the storage and identification of legal external links.
举例来说,Pv6升级网站是www.aaaaa.com,它的IPv4源站的http响应页面中有一条外链域名www.bbbbb.com。可以将外链域名“www.bbbbb.com”添加到外链记录表,完成这条外链域名的存储,并将这条外链域名标识为合法外链。因此,可以将升级网站www.aaaaa.com中的所有外链存储到外链记录表,便完成了对所有外链域名的存储,并将表示所有外链域名标识为合法外链。For example, the IPv6 upgrade website is www.aaaaa.com, and there is an external link domain name www.bbbbb.com in the http response page of its IPv4 origin site. You can add the external link domain name "www.bbbbb.com" to the external link record table, complete the storage of this external link domain name, and mark this external link domain name as a legal external link. Therefore, all external links in the upgraded website www.aaaaa.com can be stored in the external link record table, and the storage of all external link domain names is completed, and all external link domain names are identified as legitimate external links.
本实施例中,当用户访问IPv4升级为IPv6的网站,IPv6网站升级平台向IPv4源站发送http请求,当IPv4源站的http响应报文到达IPv6升级网站平台时,可以使用字符串匹配算法,查找到http响应报文的所有外链域名,将外链域名存储,并标识外链域名为合法外链。In this embodiment, when a user visits a website where IPv4 is upgraded to IPv6, the IPv6 website upgrade platform sends an http request to the IPv4 source station, and when the http response message of the IPv4 source station arrives at the IPv6 upgrade website platform, a character string matching algorithm can be used, Find all external domain names in the http response message, store the external domain names, and identify the external domain names as legitimate external links.
步骤S204,接收客户端发送的访问外链请求,确定请求对应的外链域名是否存在于外链记录表。Step S204, receiving the external link access request sent by the client, and determining whether the external link domain name corresponding to the request exists in the external link record table.
具体地,本实施例中的外链记录表为红黑树结构,红黑树结构的每个结点记录有一个外链域名。外链记录表可以基于红黑树实现,外链域名作为红黑树每个结点的值,可以实现对外链域名的快速读写、查找。一条合法外链域名是外链记录表中的一条数据,也是红黑树一个结点的值。Specifically, the external link record table in this embodiment has a red-black tree structure, and each node of the red-black tree structure records an external link domain name. The external chain record table can be realized based on the red-black tree, and the external chain domain name is used as the value of each node of the red-black tree, which can realize fast reading, writing and searching of the external chain domain name. A legal external link domain name is a piece of data in the external link record table, and it is also the value of a node in the red-black tree.
具体地,本实施例中可以创建一个基于红黑树的外链记录表,合法外链域名作为红黑树每个结点的值,并实现对外链域名的读写、查找函数。本实施例中提供的方法至少还包括以下之一:通过查找函数查找红黑树结构的结点是否存在外链域名;通过插入函数将外链域名插入红黑树结构的结点;通过删除函数将外链域名从红黑树结构的结点中删除;通过调整函数维持红黑树结构的平衡。Specifically, in this embodiment, an external link record table based on a red-black tree can be created, and the legal external link domain name is used as the value of each node of the red-black tree, and the read, write and search functions of the external link domain name can be realized. The method provided in this embodiment also includes at least one of the following: find out whether there is an external domain name in the node of the red-black tree structure through the search function; insert the external domain name into the node of the red-black tree structure through the insertion function; Delete the external domain name from the nodes of the red-black tree structure; maintain the balance of the red-black tree structure by adjusting the function.
首先,可以实现基于红黑树的外链记录表类,红黑树的每一个结点的值是一条合法外链域名字符串。查找函数,用于查找外链记录表是否存在指定外链域名,实际是查找红黑树中是否存在值为指定外链域名的结点。插入函数,用于外链记录表保存合法外链域名,实际是将外链域名字符串作为新结点的值插入红黑树中。删除函数,用于外链记录表删除指定外链域名,实际是将红黑树中值为指定外链域名的结点从红黑树删除。调整函数,用于当插入或删除导致保存外链域名的红黑树不平衡时,调整红黑树至平衡。First, the external link record table class based on the red-black tree can be realized. The value of each node of the red-black tree is a legal external link domain name string. The lookup function is used to find out whether the specified external link domain name exists in the external link record table, actually it is to find whether there is a node whose value is the specified external link domain name in the red-black tree. The insert function is used to save the legal domain name of the external chain in the external chain record table. In fact, the string of the external chain domain name is inserted into the red-black tree as the value of the new node. The delete function is used to delete the specified external link domain name from the external link record table, and actually deletes the node whose value is the specified external link domain name in the red-black tree from the red-black tree. The adjustment function is used to adjust the red-black tree to balance when the insertion or deletion causes the red-black tree saving the external domain name to be unbalanced.
例如:对于外链记录表的一条数据,升级网站www.aaaa.com中有一条合法外链域名“www.xxxx.com”,那么外链域名字符串“www.xxxx.com”作为外链记录表中的一条数据,也是红黑树一个结点的值。For example: for a piece of data in the external link record table, there is a legal external link domain name "www.xxxx.com" in the upgraded website www.aaaa.com, then the external link domain name string "www.xxxx.com" is used as the external link record A piece of data in the table is also the value of a node in the red-black tree.
又例如:对于外链记录表添加一条外链域名,外链记录表添加合法外链域名“www.xxxx.com”,实际是调用插入函数将外链域名字符串“www.xxxx.com”插入到红黑树中。Another example: Add an external domain name to the external link record table, add a legal external link domain name "www.xxxx.com" to the external link record table, and actually call the insert function to insert the external chain domain name string "www.xxxx.com" into the red-black tree.
又例如:对于外链记录表查找一条外链域名,外链记录表查找是否存在外链域名“www.xxxx.com”,实际是调用查找函数查找红黑树中是否存在值为外链域名字符串“www.xxxx.com”的结点。Another example: for the external link record table to search for an external link domain name, the external link record table checks whether there is an external link domain name "www.xxxx.com", and actually calls the search function to find out whether there is a character in the red-black tree whose value is the external link domain name The node of the string "www.xxxx.com".
又例如:对于外链记录表删除一条外链域名记录,外链记录表将外链域名记录“www.xxxx.com”删除,实际是调用删除函数删除红黑树中值为外链域名字符串“www.xxxx.com”的结点。Another example: delete an external domain name record from the external chain record table, delete the external chain domain name record "www.xxxx.com" in the external chain record table, and actually call the delete function to delete the string of the external domain name in the red-black tree "www.xxxx.com" node.
步骤S206,如果存在,确定请求通过,以使客户端访问请求对应的外链域名。Step S206, if it exists, determine that the request is passed, so that the client accesses the external link domain name corresponding to the request.
本实施例中,当用户访问的是疑似合法外链域名,外链记录模块可以查找该外链是否存在于外链记录表,如果请求的外链域名存在于外链记录表时,允许该访问,确定请求通过,IPv6升级网站平台向IPv4源站发送http请求,当IPv4源站的http响应报文到达IPv6升级网站平台时,使用字符串匹配算法,查找到http响应报文的所有外链域名,将所有外链域名记录到外链记录表中,并视这些外链为合法外链。In this embodiment, when the user accesses a suspected legitimate external link domain name, the external link record module can check whether the external link exists in the external link record table, and if the requested external link domain name exists in the external link record table, the access is allowed , confirm that the request is passed, the IPv6 upgrade website platform sends an http request to the IPv4 source site, when the http response message from the IPv4 source site arrives at the IPv6 upgrade website platform, use the string matching algorithm to find all the external domain names in the http response message , record all external chain domain names in the external chain record table, and regard these external chains as legal external chains.
步骤S208,如果不存在,确定请求不通过,以使客户端不访问请求对应的外链域名。Step S208, if it does not exist, it is determined that the request is not passed, so that the client does not access the external link domain name corresponding to the request.
本实施例中,当用户访问的是疑似合法外链域名,外链记录模块可以查找该外链是否存在于外链记录表,该外链不存在于外链记录表时,将请求的外链视为非法外链,确定请求不通过,拒绝该访问。这样非法网站伪造的外链将不能成功访问,并且能保证合法外链的正常访问。In this embodiment, when the user accesses a suspected legitimate external link domain name, the external link record module can check whether the external link exists in the external link record table, and if the external link does not exist in the external link record table, the requested external link It is regarded as an illegal external link, and the request is determined to be rejected, and the access is denied. In this way, the forged external links of illegal websites will not be successfully accessed, and the normal access of legal external links can be guaranteed.
对于判断用户访问的外链是否合法,判断用户访问是否通过的总流程,可以参见图3所示的一种访问外链请求的处理方法的总流程的示意图,在用户http请求到来之后,首先判断请求的是否为IPv6升级网站,如果为IPv6升级网站,外链记录模块可以存储并标识页面为合法外链,允许访问。如果不为IPv6升级网站,可以判断请求的是否为外链网站。如果请求的不为外链网站,则拒绝访问。如果请求的为外链网站,则通过外链记录模块判断请求的外链是否合法。如果请求的外链不合法,则拒绝访问。如果请求的外链合法,则外链记录模块可以存储并标识页面为合法外链,允许访问。For the overall process of judging whether the external link accessed by the user is legal and whether the user's access is passed, you can refer to the schematic diagram of the overall process of a processing method for accessing external link requests shown in Figure 3. After the user's http request arrives, first judge Whether the request is for an IPv6 upgraded website, if it is an IPv6 upgraded website, the external link recording module can store and identify the page as a legal external link, allowing access. If the website is not upgraded for IPv6, it can be judged whether the requested website is an external link website. If the requested website is not an external website, access is denied. If the request is an external link website, it is judged whether the requested external link is legal through the external link recording module. If the requested external link is illegal, access is denied. If the requested external link is legal, the external link recording module can store and identify the page as a legal external link, allowing access.
对于外链记录模块存储并标识页面为合法外链的方法,可以参见图4所示的一种外链记录模块存储并标识页面为合法外链的方法的示意图,IPv6网站升级平台可以将http请求发送至IPv4源站,IPv4源站的http响应报文到达IPv6网站升级平台,IPv6网站升级平台可以使用字符串匹配算法查找http响应报文中所有外来域名,将这些外链域名存储到外链域名记录表,并标记为合法外链。For the method of storing and identifying a page as a legal external link by the external link recording module, you can refer to the schematic diagram of a method for storing and identifying a page as a legal external link by the external link recording module shown in Figure 4. The IPv6 website upgrade platform can convert the http request Sent to the IPv4 source site, the http response message from the IPv4 source site reaches the IPv6 website upgrade platform, the IPv6 website upgrade platform can use the string matching algorithm to find all external domain names in the http response message, and store these external domain names in the external domain name Record the table and mark it as a legitimate external link.
对于外链记录模块判断请求的外链是否合法的方法,可以参见图5所示的一种外链记录模块判断请求的外链是否合法的方法的示意图,在获取http请求的外链域名之后,可以在外链域名记录表中查找请求的外链域名。确定请求的外链域名是否存在于外链域名记录表;如果存在于外链域名记录表,则请求的外链合法;如果不存在于外链域名记录表,则请求的外链不合法。For the method for the external link recording module to determine whether the requested external link is legal, please refer to the schematic diagram of a method for the external link recording module to determine whether the requested external link is legal as shown in Figure 5. After obtaining the external link domain name requested by http, The requested external domain name can be found in the external chain domain name record table. Determine whether the requested external link domain name exists in the external link domain name record table; if it exists in the external link domain name record table, the requested external link is legal; if it does not exist in the external link domain name record table, the requested external link is invalid.
本实施例提供的上述方法,可以创建一个基于红黑树的外链记录表,用于记录合法升级网站、合法外链网站页面中的所有外链域名并标记为合法外链,当疑似合法外链的请求到达升级平台时,判断请求的外链域名是否存在于外链记录表,如果请求的外链域名存在于外链记录表,则请求的是合法外链,允许请求,如果请求的外链域名不存在于外链记录表,则请求的是非法外链,拦截请求。The above method provided by this embodiment can create a red-black tree-based external link record table, which is used to record all external link domain names in legally upgraded websites and legal external link website pages and mark them as legal external links. When the link request arrives at the upgrade platform, it is judged whether the requested external link domain name exists in the external link record list. If the requested external link domain name exists in the external link record list, the request is a legal external link and the request is allowed. If the link domain name does not exist in the external link record table, the request is an illegal external link, and the request is intercepted.
实施例三:Embodiment three:
对应于上述方法实施例,本发明实施例提供了一种访问外链请求的处理装置,应用于升级网站平台,客户端、升级网站平台和指定源站依次连接,升级网站平台还与升级网站连接;升级网站平台设置有外链记录表,外链记录表设置的外链域名包括:升级网站的外链域名和/或指定源站的外链域名。Corresponding to the above-mentioned method embodiment, the embodiment of the present invention provides a processing device for accessing an external link request, which is applied to the upgrade website platform, and the client, the upgrade website platform and the designated source station are sequentially connected, and the upgrade website platform is also connected to the upgrade website ; The upgraded website platform has an external chain record table, and the external chain domain names set in the external chain record table include: the external chain domain name of the upgraded website and/or the external chain domain name of the designated source site.
基于上述描述,参见图6所示的一种访问外链请求的处理装置的结构示意图,该访问外链请求的处理装置包括:Based on the above description, refer to the schematic structural diagram of a processing device for accessing an external link request shown in FIG. 6 , the processing device for accessing an external link request includes:
请求接收模块61,用于接收客户端发送的访问外链请求,确定请求对应的外链域名是否存在于外链记录表;The
请求通过模块62,用于如果存在,确定请求通过,以使客户端访问请求对应的外链域名;The request passes through module 62, which is used to determine that the request passes if it exists, so that the client accesses the corresponding external chain domain name of the request;
请求不通过模块63,用于如果不存在,确定请求不通过,以使客户端不访问请求对应的外链域名。The request does not pass module 63, configured to determine that the request does not pass if it does not exist, so that the client does not access the external link domain name corresponding to the request.
本发明实施例提供了一种访问外链请求的处理装置,升级网站平台接收客户端发送的访问外链请求,确定请求对应的外链域名是否存在于外链记录表;如果存在,确定请求通过,客户端访问请求对应的外链域名;如果不存在,确定请求不通过,客户端不访问请求对应的外链域名。该方式中,既可以拦截非法网站伪造成为外链进行访问,又可以同时保证升级网站与合法外链的正常访问。An embodiment of the present invention provides a processing device for accessing an external link request. The upgraded website platform receives the external link request sent by the client, and determines whether the external link domain name corresponding to the request exists in the external link record table; if it exists, it is determined that the request passes , the external link domain name corresponding to the client access request; if it does not exist, it is determined that the request fails, and the client does not access the external link domain name corresponding to the request. In this method, it is possible to intercept illegal websites forged as external links for access, and at the same time ensure the normal access of upgraded websites and legal external links.
客户端、升级网站平台和升级网站均采用IPv6协议,指定源站采用IPv4协议;或者,客户端、升级网站平台和升级网站均采用IPv4协议,指定源站采用IPv6协议。The client, the upgraded website platform and the upgraded website all adopt the IPv6 protocol, and the designated source station adopts the IPv4 protocol; or, the client, the upgraded website platform and the upgraded website all adopt the IPv4 protocol, and the designated source station adopts the IPv6 protocol.
上述装置还包括:外链域名记录模块,用于向升级网站或指定源站发送目标请求;接收升级网站或指定源站基于目标请求发送的响应报文;将响应报文对应的外链域名记录至外链记录表。The above device also includes: an external chain domain name recording module, which is used to send a target request to the upgraded website or the designated source station; receive a response message sent by the upgraded website or the designated source station based on the target request; record the external chain domain name corresponding to the response message To the external chain record table.
上述外链域名记录模块,用于通过字符串匹配的方式确定响应报文对应的外链域名;将确定的响应报文对应的外链域名记录至外链记录表。The external link domain name recording module is used to determine the external link domain name corresponding to the response message through character string matching; and record the determined external link domain name corresponding to the response message in the external link record table.
外链记录表为红黑树结构,红黑树结构的每个结点记录有一个外链域名。The external link record table is a red-black tree structure, and each node of the red-black tree structure has an external link domain name recorded.
上述装置至少还包括以下之一:查找函数处理模块,用于通过查找函数查找红黑树结构的结点是否存在外链域名;插入函数处理模块,用于通过插入函数将外链域名插入红黑树结构的结点;删除函数处理模块,用于通过删除函数将外链域名从红黑树结构的结点中删除;调整函数处理模块,用于通过调整函数维持红黑树结构的平衡。The above-mentioned device also includes at least one of the following: a search function processing module, which is used to find out whether there is an external domain name in the node of the red-black tree structure through the search function; an insertion function processing module, which is used to insert the external chain domain name into the red-black domain name through the insertion function The node of the tree structure; the deletion function processing module is used to delete the external domain name from the node of the red-black tree structure through the deletion function; the adjustment function processing module is used to maintain the balance of the red-black tree structure through the adjustment function.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的访问外链请求的处理装置的具体工作过程,可以参考前述的访问外链请求的处理方法的实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the device for processing the request for accessing external links described above can refer to the corresponding The process will not be repeated here.
实施例四:Embodiment four:
本发明实施例还提供了一种电子设备,用于运行上述访问外链请求的处理方法;参见图7所示的一种电子设备的结构示意图,该电子设备包括存储器100和处理器101,其中,存储器100用于存储一条或多条计算机指令,一条或多条计算机指令被处理器101执行,以实现上述访问外链请求的处理方法。The embodiment of the present invention also provides an electronic device, which is used to execute the above-mentioned processing method for accessing an external link request; referring to the schematic structural diagram of an electronic device shown in FIG. 7 , the electronic device includes a
进一步地,图7所示的电子设备还包括总线102和通信接口103,处理器101、通信接口103和存储器100通过总线102连接。Further, the electronic device shown in FIG. 7 further includes a
其中,存储器100可能包含高速随机存取存储器(RAM,Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个通信接口103(可以是有线或者无线)实现该系统网元与至少一个其他网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等。总线102可以是ISA总线、PCI总线或EISA总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。Wherein, the
处理器101可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器101中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器101可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(DigitalSignal Processor,简称DSP)、专用集成电路(Application Specific IntegratedCircuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器100,处理器101读取存储器100中的信息,结合其硬件完成前述实施例的方法的步骤。The
本发明实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令在被处理器调用和执行时,计算机可执行指令促使处理器实现上述访问外链请求的处理方法,具体实现可参见方法实施例,在此不再赘述。An embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement The specific implementation of the above processing method for accessing the external link request can refer to the method embodiment, and details are not repeated here.
本发明实施例所提供的访问外链请求的处理方法、装置和电子设备的计算机程序产品,包括存储了程序代码的计算机可读存储介质,程序代码包括的指令可用于执行前面方法实施例中的方法,具体实现可参见方法实施例,在此不再赘述。The computer program product of the processing method, apparatus and electronic device for accessing external link requests provided by the embodiments of the present invention includes a computer-readable storage medium storing program codes, and the instructions included in the program codes can be used to execute the method in the preceding method embodiments For the specific implementation of the method, reference may be made to the method embodiments, which will not be repeated here.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和/或装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the system and/or device described above can refer to the corresponding process in the foregoing method embodiment, and details are not repeated here.
另外,在本发明实施例的描述中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。In addition, in the description of the embodiments of the present invention, unless otherwise specified and limited, the terms "installation", "connection" and "connection" should be interpreted in a broad sense, for example, it can be a fixed connection or a detachable connection , or integrally connected; it may be mechanically connected or electrically connected; it may be directly connected or indirectly connected through an intermediary, and it may be the internal communication of two components. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present invention in specific situations.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .
在本发明的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer" etc. The indicated orientation or positional relationship is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred device or element must have a specific orientation, or in a specific orientation. construction and operation, therefore, should not be construed as limiting the invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and should not be construed as indicating or implying relative importance.
最后应说明的是:以上所述实施例,仅为本发明的具体实施方式,用以说明本发明的技术方案,而非对其限制,本发明的保护范围并不局限于此,尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。Finally, it should be noted that: the above-described embodiments are only specific implementations of the present invention, used to illustrate the technical solutions of the present invention, rather than limiting them, and the scope of protection of the present invention is not limited thereto, although referring to the foregoing The embodiment has described the present invention in detail, and those of ordinary skill in the art should understand that any person familiar with the technical field can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention Changes can be easily thought of, or equivalent replacements are made to some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the scope of the present invention within the scope of protection. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310327558.XA CN116436656A (en) | 2023-03-29 | 2023-03-29 | Processing method, device and electronic device for accessing external link request |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310327558.XA CN116436656A (en) | 2023-03-29 | 2023-03-29 | Processing method, device and electronic device for accessing external link request |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116436656A true CN116436656A (en) | 2023-07-14 |
Family
ID=87091937
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310327558.XA Pending CN116436656A (en) | 2023-03-29 | 2023-03-29 | Processing method, device and electronic device for accessing external link request |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116436656A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119520063A (en) * | 2024-11-14 | 2025-02-25 | 睿哲科技股份有限公司 | Network situation security prevention and control system based on IPv4-IPv6 interconnection |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030018636A1 (en) * | 2001-03-30 | 2003-01-23 | Xerox Corporation | Systems and methods for identifying user types using multi-modal clustering and information scent |
| CN105991634A (en) * | 2015-04-29 | 2016-10-05 | 杭州迪普科技有限公司 | Access control method and apparatus |
| CN109561078A (en) * | 2018-11-09 | 2019-04-02 | 深圳万物云联科技有限公司 | A kind of exterior chain url resource transfer method and device |
| CN110516173A (en) * | 2019-08-28 | 2019-11-29 | 腾讯科技(深圳)有限公司 | A kind of illegal website recognition methods, device, equipment and medium |
| CN113055503A (en) * | 2021-02-28 | 2021-06-29 | 新华三信息安全技术有限公司 | IPv6 webpage link processing method, device, equipment and readable storage medium |
-
2023
- 2023-03-29 CN CN202310327558.XA patent/CN116436656A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030018636A1 (en) * | 2001-03-30 | 2003-01-23 | Xerox Corporation | Systems and methods for identifying user types using multi-modal clustering and information scent |
| CN105991634A (en) * | 2015-04-29 | 2016-10-05 | 杭州迪普科技有限公司 | Access control method and apparatus |
| CN109561078A (en) * | 2018-11-09 | 2019-04-02 | 深圳万物云联科技有限公司 | A kind of exterior chain url resource transfer method and device |
| CN110516173A (en) * | 2019-08-28 | 2019-11-29 | 腾讯科技(深圳)有限公司 | A kind of illegal website recognition methods, device, equipment and medium |
| CN113055503A (en) * | 2021-02-28 | 2021-06-29 | 新华三信息安全技术有限公司 | IPv6 webpage link processing method, device, equipment and readable storage medium |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119520063A (en) * | 2024-11-14 | 2025-02-25 | 睿哲科技股份有限公司 | Network situation security prevention and control system based on IPv4-IPv6 interconnection |
| CN119520063B (en) * | 2024-11-14 | 2025-11-28 | 睿哲科技股份有限公司 | Network situation safety prevention and control system based on IPv4-IPv6 interconnection and intercommunication |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105635126B (en) | Malice network address accesses means of defence, client, security server and system | |
| CN109768992B (en) | Webpage malicious scanning processing method and device, terminal device and readable storage medium | |
| CN104468592B (en) | Login method and login system | |
| CN103095530B (en) | The monitoring of a kind of sensitive information based on preposition gateway and leakage prevention method and system | |
| WO2018107784A1 (en) | Method and device for detecting webshell | |
| CN103607385A (en) | Method and apparatus for security detection based on browser | |
| CN110879891B (en) | Vulnerability detection method and device based on web fingerprint information | |
| CN103220371A (en) | Method and system for conducting content adaptation | |
| CN113810381B (en) | Crawler detection method, web application cloud firewall device and storage medium | |
| JP2009501392A (en) | Immunization from known vulnerabilities in HTML browsers and extensions | |
| KR102090982B1 (en) | How to identify malicious websites, devices and computer storage media | |
| CN109902247B (en) | Page rendering method and device and electronic equipment | |
| CN111090449A (en) | API service access method, device and electronic device | |
| CN113518077A (en) | Malicious web crawler detection method, device, equipment and storage medium | |
| CN108900554B (en) | HTTP asset detection method, system, device and computer medium | |
| CN110659019A (en) | Parameter verification method, device and server | |
| CN114024728A (en) | Honeypot building method and application method | |
| WO2025190232A1 (en) | Traffic extraction method and apparatus for vulnerability scanner, and electronic device and storage medium | |
| CN116436656A (en) | Processing method, device and electronic device for accessing external link request | |
| CN103227815B (en) | Control the method and device of browser rs cache | |
| CN110750290B (en) | Software version upgrading method and device based on DNS query | |
| JP2009230662A (en) | Web-site determination device and web-site determination program | |
| CN115801295A (en) | A scanning flow detection method, device, electronic equipment and storage medium | |
| CN108259416A (en) | Detect the method and relevant device of malicious web pages | |
| JP2022007278A (en) | Signature generation device, detection device, signature generation program, and detection program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20230714 |