Method, device and system for identifying second-dial IP

By transferring the browser's access request to the verification server for instant IP recognition, the problems of difficulty in identification and lagging defense in the existing technology are solved, real-time identification and filtering of instant IP behavior is realized, and the risk of network attacks is reduced. Improves user experience and defense efficiency.

CN114172677BActive Publication Date: 2024-11-15BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010958009.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-11
Publication Date
2024-11-15
Estimated Expiration
2040-09-11

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively identify and defend against IP dialing in seconds, resulting in property losses and user experience problems caused by cyber attacks, and the protective measures are often post-response and the manslaughter rate is high.

Method used

By receiving the browser's access request, it is transferred to the verification server for instant IP identification. If it is not instant IP, a data transmission channel between the browser and the website server will be established, and a second IP identification will be identified using redirect information and interactive verification. Blacklist it or limit access frequency.

Benefits of technology

Real-time identification and filtering of the instant IP behavior is realized, which reduces the risk of network attacks, avoids server crashes and property losses, and reduces manslaughter and intercepts, improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114172677B_ABST
    Figure CN114172677B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device and system for identifying a second dial IP, wherein the method comprises: receiving a first access request from a browser, wherein the first access request carries an access IP, and the first access request is used to request access to a website server; transferring the first access request to a verification server, wherein the verification server is used to identify whether the access IP is a second dial IP; if the access IP is not a second dial IP, establishing a data transmission channel between the browser and the website server. Through the present invention, the technical problem that the second dial IP can only be identified after the second dial behavior occurs in the related art is solved, the recognition rate of the second dial IP is improved, the access request of the second dial IP can be effectively filtered, the network attack of the second dial IP is prevented, and the server crash and property loss caused by the network attack are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network security, and in particular to a method, device and system for identifying a second-dial IP. Background Art

[0002] In related technologies, with the rapid development of the Internet, the number of users of major traffic platforms has increased dramatically. The larger the scale, the more difficult it is to effectively identify and manage, which provides more opportunities for black industry arbitrage. Black industry technology is rapidly iterating, but effective defense strategies are stagnant, which will inevitably lead to information asymmetry in the attack and defense process, increased defense difficulty, delayed defense response, and greatly reduced efficiency and effectiveness. Among them, the behavior of dialing IP in seconds has long become the mainstream black industry attack arbitrage method. Dial in seconds uses the dial-up Internet access principle, and a new IP will be obtained every time the line is disconnected and reconnected. The black industry team has a large number of broadband line resources, which are packaged into SaaS cloud services using virtualization and cloud computing technologies, and use ROS (soft router) to uniformly allocate and manage virtual hosts and broadband resources; after deploying automatic disconnection and reconnection switching IP and attack tools, "hijacking" normal user IPs can initiate large-scale dial-up connection requests. A second-dial machine is a device that uses ROS soft routing to uniformly allocate and manage virtual hosts and bandwidth resources and then initiates a large number of dial-up requests. A BOT user is a robot user, that is, an abnormal user who uses a machine to control the system, including a second-dial IP user; a BOT behavior is a robot behavior, that is, an abnormal behavior maliciously controlled by a machine system, including a second-dial behavior.

[0003] In the related technologies, second-dial IP is widely used to brush orders and volume. Early second-dial IP accessed a large number of bandwidth links in the region through a second-dial machine, called a large number of IPs in the local operator's IP pool through the soft router ROS, and concentrated on initiating requests to the target website, ranging from hundreds of thousands to millions. This will cause a large number of false clicks on the target website, seriously disrupting the normal operation order and causing huge property losses; for example, a domestic video platform once broadcast a web drama, and its income mainly relied on advertising revenue for exposure through click traffic. The video platform and the producer agreed to share: 0.15 yuan per episode per click for more than 6 minutes; after the web drama was broadcast, it had hundreds of millions of clicks in a single day, and the subsequent advertising exposure data was all red; later, after the back-end data analysis of the video platform, the web drama had a large number of continuous click operations in a short period of time: that is, some accounts clicked on the web drama for more than 6 minutes and then disconnected immediately, and then reconnected and clicked; and the source IPs of these accounts were the same or all from the same province or city; that is, traffic click fraud. Second-dial IP is widely used in crawlers to capture information. In the era of big data, information is an important value asset in today's society. Many black industry teams use crawlers to randomly capture all kinds of valid information on the Internet, and even steal confidential data of competitors through loopholes and other means. Crawlers need a large number of proxy IPs to capture information. At the beginning, the black industry team built HTTP proxy servers, hoarded a large number of black industry IP resource pools, and continuously used the proxy IPs in the IP pool to initiate access requests. However, over time, the administrators of the captured websites will directly ban malicious IPs after discovering these malicious requests, or limit the frequency and number of visits. For example, a website limits an IP to 1,000 visits a day, and a maximum of 10 visits within 1 minute, that is, only 1,000 pages can be crawled per day, and they can only crawl slowly. Later, the black industry team began to use the second dial machine to call a large number of normal user IPs through broadband links to initiate access requests. Website operators could not effectively identify whether the IP was a normal user IP or a "second dial IP" that was hijacked for a short period of time. If a unified ban or access frequency is implemented, it will cause a certain amount of "mistaken killing" and affect the access experience of normal users. Moreover, the second dial IP and the normal user IP are taken from the same IP pool. After the use cycle of the second dial IP (usually in seconds or minutes) ends, it is likely to flow to normal users, so it is very difficult to distinguish between the second dial IP and the normal user IP. In addition, the black industry has also upgraded the second dial IP, which is called "mixed dialing". That is, the black industry team has connected the second dial IP resources of multiple provinces and cities, and deployed the second dial IP system on the cloud virtual host to form a SAAS service. Taking advantage of the vast and well-connected cloud broadband resources, a single second dial machine can dial IP resources in hundreds of regions across the country, even foreign IP resources, and the cost is low. According to statistics from mainstream data platforms: the second dial IP service on the market can cover all of the country's approximately 300 cities.

[0004] Second-dial IP in related technologies is a tool used by black and gray industry teams to make improper profits. It will cause effective information leakage, theft of business secrets, disruption of normal operation order, and ultimately cause significant property losses to normal website operations. It also has the following two characteristics: (1) Huge number of IP pools: Second-dial IP forms a cloud-based SAAS service, with broadband link resources extending in all directions, a huge number of available IPs, and a wide coverage area; (2) Second-dial IP is difficult to identify: Because the second-dial IP and the normal user IP are taken from the same IP pool, after the second-dial machine "hijacks" the normal IP, the usage cycle is short (a few seconds or minutes), and after being released, it returns to the IP pool and flows to the hands of normal users, immediately whitewashing it, with high liquidity, and can switch between static IP and dynamic IP types at will, so it is very difficult to distinguish between second-dial IP and normal user IP. The related technologies have implemented the following protective measures for the second-dial IP: Method 1: After the second-dial IP is discovered, the IP is directly banned and blacklisted; Method 2: After the second-dial IP is discovered, the access frequency of the IP is limited (for example, a single IP is limited to 100 visits per day and no more than 10 visits per minute), reducing the efficiency of brushing orders and crawling data, and increasing the attack cost for the black industry; Method 3: After the source area of ​​the second-dial IP is discovered, all IPs from the area are directly banned or the access frequency is restricted; this method becomes ineffective after the emergence of "mixed dialing". However, the protective measures in the related technologies still have the following shortcomings: Disadvantage 1: The above methods are all based on the discovery of BOT behavior after the fact, and then the corresponding actions are taken, that is, the target website has been brushed, brushed, and crawled, which has caused certain property losses; Disadvantage 2: After the ban and frequency restriction, the failure to unblock in time will affect the access experience of normal users, and it is time-consuming and labor-intensive. Large-scale centralized bans will cause large-scale miskilling and misinterception, that is, the above methods cannot effectively identify the second-dial IP.

[0005] With respect to the above-mentioned problems existing in the related technologies, no effective solutions have been found so far. Summary of the invention

[0006] The embodiment of the present invention provides a method, device and system for identifying a second-dial IP.

[0007] According to one embodiment of the present invention, a method for identifying a second-dial IP is provided, comprising: receiving a first access request from a browser, wherein the first access request carries an access IP, and the first access request is used to request access to a website server; transferring the first access request to a verification server, wherein the verification server is used to identify whether the access IP is a second-dial IP; if the access IP is not a second-dial IP, establishing a data transmission channel between the browser and the website server.

[0008] Optionally, transferring the first access request to the verification server includes: sending a first redirection message to the browser so that the browser sends a second access request to the verification server, wherein the first redirection message includes: specifying cache parameters and a redirection path, and the specified cache parameters are used by the verification server to verify whether the access IP is a second dial-up IP.

[0009] Optionally, before establishing the data transmission channel between the browser and the website server, the method further includes: sending an interaction request to the browser; if a response operation of the browser to the interaction request feedback is received, determining to establish the data transmission channel between the browser and the website server.

[0010] According to one embodiment of the present invention, another method for identifying a second dial-up IP is provided, comprising: receiving a second access request from a browser, wherein the second access request carries an access IP and specified cache parameters; identifying whether the access IP is a second dial-up IP based on the specified cache parameters; if the access IP is not a second dial-up IP, sending a second redirection request to the browser, wherein the second redirection request points to the website server requested by the access IP.

[0011] Optionally, identifying whether the access IP is a second-dial IP according to the specified cache parameters includes: extracting the specified cache parameters from the cookie of the second access request; judging whether the specified cache parameters match verification parameters; if the specified cache parameters do not match the verification parameters, determining that the access IP is a second-dial IP; if the specified cache parameters match the verification parameters, determining that the access IP is not a second-dial IP.

[0012] Optionally, if the access IP is a second-dial IP, the method further includes: adding the access IP to a blacklist of the website server; and synchronizing the blacklist to the website server.

[0013] Optionally, after adding the access IP to the blacklist of the website server, the method further includes: setting a blocking time for the access IP in the blacklist, and / or limiting the access frequency of the access IP in the blacklist.

[0014] According to another embodiment of the present invention, there is provided a device for identifying a second-dial IP, which is applied to a website server and includes: a receiving module for receiving a first access request from a browser, wherein the first access request carries an access IP and is used to request access to the website server; a transfer module for transferring the first access request to a verification server, wherein the verification server is used to identify whether the access IP is a second-dial IP; and an establishment module for establishing a data transmission channel between the browser and the website server if the access IP is not a second-dial IP.

[0015] Optionally, the transfer module includes: a sending unit, used to send first redirection information to the browser, so that the browser sends a second access request to the verification server, wherein the first redirection information includes: specified cache parameters, redirection path, and the specified cache parameters are used by the verification server to verify whether the access IP is a second dial-up IP.

[0016] Optionally, the device also includes: a sending module, used to send an interactive request to the browser before the establishing module establishes the data transmission channel between the browser and the website server; and a determining module, used to determine to establish the data transmission channel between the browser and the website server if a response operation of the browser to the interactive request feedback is received.

[0017] According to another embodiment of the present invention, another identification device for a second dial-up IP is provided, which is applied to a verification server and includes: a receiving module, used to receive a second access request from a browser, wherein the second access request carries an access IP and specified cache parameters; an identification module, used to identify whether the access IP is a second dial-up IP based on the specified cache parameters; and a sending module, used to send a second redirection request to the browser if the access IP is not a second dial-up IP, wherein the second redirection request points to the website server requested by the access IP.

[0018] Optionally, the identification module includes: an extraction unit, used to extract the specified cache parameters from the cookie of the second access request; a judgment unit, used to judge whether the specified cache parameters match the verification parameters; a determination unit, used to determine that the access IP is a second dial-up IP if the specified cache parameters do not match the verification parameters; if the specified cache parameters match the verification parameters, determine that the access IP is not a second dial-up IP.

[0019] Optionally, the device further includes: an adding module, used to add the access IP to the blacklist of the website server if the access IP is a second-dial IP; and a synchronization module, used to synchronize the blacklist to the website server.

[0020] Optionally, the device also includes: a setting module, which is used to set the blocking time of the access IP in the blacklist after the adding module adds the access IP to the blacklist of the website server, and / or to limit the access frequency of the access IP in the blacklist.

[0021] According to another embodiment of the present invention, there is provided a system for identifying a second-dial IP, including a client running a browser, a website server, and a verification server, wherein the website server includes the device described in the above embodiment; the verification server includes the device described in the above embodiment; the client includes: a first sending module, used to send a first access request to the website server, wherein the first access request carries an access IP; a first receiving module, used to receive a first redirection request fed back by the website server, wherein the first redirection request points to the verification server; a second sending module, used to send a second access request to the verification server; a second receiving module, used to receive a second redirection request fed back by the verification server, wherein the redirection request points to the website server; and a third sending module, used to send a third access request to the website server.

[0022] According to yet another embodiment of the present invention, a storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when running.

[0023] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0024] According to another embodiment of the present invention, a computer program product is also provided, including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, characterized in that when the program instructions are executed by a computer, the computer executes the steps of the method described in any of the aforementioned embodiments.

[0025] By means of the present invention, a first access request carrying an access IP is received from a browser, and then the first access request is transferred to a verification server, the verification server identifies whether the access IP is a second-dial IP, if the access IP is not a second-dial IP, a data transmission channel is established between the browser and the website server, before the data transmission channel between the browser and the website server is established, the access request of the website server is transferred to the verification server for real-time verification of the second-dial IP, the second-dial behavior initiated by hijacking the second-dial IP can be identified in advance, the technical problem in the related art that the second-dial IP can be identified only after the second-dial behavior occurs, the recognition rate of the second-dial IP is improved, the access request of the second-dial IP can be effectively filtered, the network attack of the second-dial IP is prevented, and the server crash and property loss caused by the network attack are avoided. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0027] Figure 1 It is a hardware structure block diagram of a web server according to an embodiment of the present invention;

[0028] Figure 2 is a flow chart of a method for identifying a second-dial IP according to an embodiment of the present invention;

[0029] Figure 3 is a flow chart of another method for identifying a second-dial IP according to an embodiment of the present invention;

[0030] Figure 4 is an interactive flow chart of an embodiment of the present invention;

[0031] Figure 5 is a structural block diagram of a device for identifying a second-dial IP according to an embodiment of the present invention;

[0032] Figure 6 is a structural block diagram of another device for identifying a second-dial IP according to an embodiment of the present invention;

[0033] Figure 7 is a structural block diagram of a system for identifying a second-dial IP according to an embodiment of the present invention;

[0034] Figure 8 It is a structural block diagram of an electronic device implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0035] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0037] Example 1

[0038] The method embodiment provided in the first embodiment of the present application can be executed in a web server, a WAF server, a security server or a similar computing device. Taking running on a web server as an example, Figure 1 FIG. 1 is a hardware structure diagram of a web server according to an embodiment of the present invention. Figure 1 As shown, the web server 10 may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the web server may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the web server. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0039] The memory 104 can be used to store web server programs, for example, software programs and modules of application software, such as a web server program corresponding to a method for identifying a second dial IP in an embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the web server program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the web server 10 via a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0040] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the web server 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0041] In this embodiment, a method for identifying a second-dial IP is provided. Figure 2 FIG. 1 is a flow chart of a method for identifying a second-dial IP according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0042] Step S202, receiving a first access request from a browser, wherein the first access request carries an access IP address and is used to request access to a website server;

[0043] The first access request of this embodiment can be an interaction request between the client and the server such as a HyperText Transfer Protocol (HTTP) request and a Secure Hypertext Transfer Protocol (HTTPS) request. The access IP of this embodiment is the IP of the browser host (such as the client IP, the IP of the virtual host, etc.). In addition to carrying the access IP, the first access request can also include the website IP address (the first access request accesses the corresponding website server through the website IP address), URL address, Cookie and other information.

[0044] Step S204, transferring the first access request to a verification server, wherein the verification server is used to identify whether the access IP is a second dial-up IP;

[0045] The website server sends a redirection instruction to the client's browser, and the client resends the first access request to the verification server to initiate the access operation.

[0046] Step S206: If the access IP is not a second-dial IP, a data transmission channel is established between the browser and the website server.

[0047] In another aspect of this embodiment, if the access IP is a second-dial IP, the access frequency of the browser is controlled, or the browser is blocked from accessing the website server, and the establishment of a data transmission channel between the browser and the website server is prohibited.

[0048] The verification server of this embodiment is connected to the website server. After the verification server identifies the access IP, the identification result is synchronized to the website server. If the access IP is not a second-dial IP, a data transmission channel is established between the browser and the website server, and the browser accesses the website server normally to browse the web page.

[0049] Through the above steps, a first access request carrying an access IP is received from a browser, and then the first access request is transferred to a verification server. The verification server identifies whether the access IP is a second-dial IP. If the access IP is not a second-dial IP, a data transmission channel is established between the browser and the website server. Before establishing the data transmission channel between the browser and the website server, the access request of the website server is transferred to the verification server for real-time verification of the second-dial IP. This can identify the second-dial behavior initiated by hijacking the second-dial IP in advance, solves the technical problem in the related technology that the second-dial IP can be identified only after the second-dial behavior occurs, improves the recognition rate of the second-dial IP, can effectively filter the access requests of the second-dial IP, prevent network attacks of the second-dial IP, and avoid server crashes and property losses caused by network attacks.

[0050] In one implementation of this embodiment, the first access request is transferred through redirection information. Transferring the first access request to the verification server includes: sending first redirection information to the browser so that the browser sends a second access request to the verification server, wherein the first redirection information includes: specifying cache parameters and redirection path, and the specified cache parameters are used by the verification server to verify whether the access IP is a second dial-up IP.

[0051] The redirection information of this embodiment can be the 302 redirection information in the HTTP protocol, also known as temporary transfer or temporary redirection. The HTTP status code is 302. By sending the 302 redirection information to the browser, the URL requested by the browser can be redirected to another custom-set URL, and the first access request can be transferred from the website server to the verification server, so that the request access can be temporarily transferred and redirected.

[0052] Optionally, the cache parameter is specified as a value predefined by Set-Cookie. After receiving the first redirection information, the browser resets the original Cookie in the first access request to a new Cookie according to the Set-Cookie instruction, and then initiates a second access request to the verification server. The verification server verifies and identifies the access IP in the second access request according to the value of Set-Cookie to determine whether it is a second-dial IP.

[0053] By transferring the access request of the website server through redirection information, the browser can automatically load the redirection information and extract the specified cache parameters and other information in the redirection information. According to the redirection path, the browser initiates an access request to the verification server pointed to by the redirection information. The user does not need to operate the browser on the client and the user is unaware of it. At the same time, the access speed and loading speed of the website are improved.

[0054] In some instances of this embodiment, in addition to using the verification server to verify the access IP, the browser can also be interactively verified to further determine whether the browser is operated by a normal user or a BOT user. Before establishing a data transmission channel between the browser and the website server, it also includes: the website server or the verification server sends an interactive request to the browser; if a response operation of the browser to the interactive request feedback is received, it is determined to establish a data transmission channel between the browser and the website server.

[0055] Optionally, the response operation of the interactive behavior may be but is not limited to: inputting an image verification code, moving a slider, mobile phone number verification, email verification and other interactive behaviors to determine whether it is a normal user or a BOT user. If it is a BOT user, determine that the access IP is a second dial IP, or determine that the browser's access request is illegal.

[0056] In addition to using the verification server for redirect verification, this embodiment also performs interactive verification on the browser, which can further determine whether the access IP or the browser's access behavior is a legitimate operation of a normal user, further identify and filter the second dial IP, and improve access security.

[0057] In this embodiment, a method for identifying a second-dial IP is provided. Figure 3 FIG. 1 is a flow chart of another method for identifying a second-dial IP according to an embodiment of the present invention. Figure 3 As shown, it is used to illustrate the solution of this embodiment on the verification server side corresponding to the website server. The process includes the following steps:

[0058] Step S302, receiving a second access request from the browser, wherein the second access request carries an access IP address and specified cache parameters;

[0059] Step S304, identifying whether the access IP is a second dial IP according to the specified cache parameters;

[0060] Step S306: If the access IP is not a second-dial IP, a second redirection request is sent to the browser, wherein the second redirection request points to a website server corresponding to the access IP.

[0061] In another aspect of this embodiment, if the access IP is a second-dial IP, the method further includes: adding the access IP to a blacklist of the website server; and synchronizing the blacklist to the website server.

[0062] After the blacklist is synchronized to the website server, once the access IP initiates access to the website server again, the website server can block it or restrict access. In this embodiment, a verification server independent of the website server is set up. If it is detected that the data synchronization between the website server and the verification server fails, the website server or the verification server stops the service and reports an early warning message, which can prevent hackers from directly hijacking the website server or the verification server, thereby improving access security in the network architecture.

[0063] In some implementations of this embodiment, after adding the access IP to the blacklist of the website server, it also includes: setting the ban time of the access IP in the blacklist, and / or limiting the access frequency of the access IP in the blacklist. For example, if the ban time is 60 seconds, the access IP is not allowed to make access requests to the website server within 60 seconds, and the request verification can be performed again after 60 seconds. By setting the ban time or access frequency (the access frequency of the second dial attack is higher than the access frequency of normal users, and by limiting the frequency, it does not affect normal users' access to the website), the access IP that is hijacked for a short time can be limited to prevent accidental killing. Once the access IP is verified, it will be removed from the blacklist, and while blocking the second dial IP, it will not affect the use of normal users.

[0064] Optionally, identifying whether the access IP is a second-dial IP according to the specified cache parameters includes:

[0065] S11, extracting a specified cache parameter from the cookie of the second access request;

[0066] In this embodiment, the cookie in the second access request sent by the browser to the website server is Set-Cookie. Set-cookie is a function. The verification server sends an HTTP-set-cookie instruction to the client browser to set the cookie return value. If the setting is successful, it is true; if the setting fails, it is false. The specified cache parameter, that is, the value of Set-Cookie, can be verification information such as a user name. The specified cache parameter in the cookie of the second access request is the value agreed upon by the website server and the verification server.

[0067] S12, determining whether the specified cache parameter matches the verification parameter;

[0068] S13, if the specified cache parameter does not match the verification parameter, determine that the access IP is a second dial-up IP; if the specified cache parameter matches the verification parameter, determine that the access IP is not a second dial-up IP.

[0069] This embodiment identifies whether the IP is a second-dial IP at the current time through behavioral interaction between the website server and the client browser. After the user accesses a website address of the website server through the browser, the website server returns 302 redirection information, transfers the access request to the target website address of another verification server and sets the instruction Set-Cookie for modifying the cache parameters. The verification server determines whether the client browser will execute the 302 redirection operation and whether it will carry the specified cache parameter cookie in the returned information when executing the 302 redirection operation. If the user is a BOT user called by the second-dial machine, the redirection website will not be accessed or the specified cache parameters will not be carried after accessing the redirection website. At this time, the target website server can determine whether it is a normal user or a second-dial user based on the received information, and then sends a 302 redirection request again for normal users to transfer the access to normal websites. For second-dial IP users, a short-term ban or access frequency restriction can be performed.

[0070] In an implementation scenario of this embodiment, the solution of this embodiment is described by taking the website server as target website A: www.example-A.com, the verification server as target website B: www.example-B.com, and the browser access IP: 112.10.1.1 as an example. Figure 4 is an interactive flow chart of an embodiment of the present invention, and the process includes:

[0071] S41, the client initiates a request;

[0072] The user uses the access IP (112.10.1.1) to access a website A: www.exanple-A.com through the client browser. The client request includes:

[0073] GET / blog HTTP / 1.1

[0074] Host:www.example-A.com

[0075] Cookie("user",$value).

[0076] S42, the website server receives the request and returns a 302 redirect message (including the specified cache parameters) pointing to website B; the server response includes:

[0077] HTTP / 1.1 302Temporary Redirect

[0078] Set-Cookie("user-1",$value); Domain("www.example-B.com",$value)

[0079] Content-Type: text / html; charset=UTF-8

[0080] Location:https: / / www.example-B.com / new

[0081] In step S42, after receiving the request from the client browser, the website server returns 320 redirection information, which includes:

[0082] (1) The redirection path is the target website B: www.example-B.com, which requires the browser to revisit website B;

[0083] (2) Specify cache parameter Set-Cookie = "user-1"; that is, require the client browser to send an access request to website B, and the request contains a cache parameter cookie, and the specified cookie value is "user-1". (The original cookie = user value needs to be modified to user-1, and this value can be customized).

[0084] S43, the client initiates a request again;

[0085] The user uses the access IP (112.10.1.1) to initiate a request to website B through the client browser, and carries the specified cache parameter cookie="user-1". The client request includes:

[0086] GET / blog HTTP / 1.1

[0087] Host:www.example-B.com

[0088] Cookie("user-1",$value) / true

[0089] Through step S43, it can be determined whether the user browser will execute the 302 redirection operation. Some BOT behaviors will not execute the 302 redirection operation. This step can be used to perform a preliminary screening of BOT users.

[0090] S44, the verification server receives the request information and verifies the cookie value;

[0091] Verify S43's request: The user (112.10.1.1) sends a request to website B, and the website B server (verification server) verifies the value of the cache parameter cookie carried in the request:

[0092] (1) If the verification cache parameter cookie value is not "user-1", it means that the IP (112.10.1.1) is currently operating as an abnormal user, and can be determined as a second-dial IP. It can be added to the blacklist to block or limit the access frequency (the blacklist ban time can be set, such as 60 seconds. The IP is not allowed to make access requests within 60 seconds, and can request verification again after 60 seconds);

[0093] (2) If the verification cache parameter cookie value is "user-1", a 302 redirect is performed again and the user is added to the whitelist; as follows:

[0094] The website server verifies that the cookie value is the specified value "user-1" and will send back a 302 redirect message pointing to the original website A:

[0095] Server response includes:

[0096] HTTP / 1.1 302Temporary Redirect

[0097] Content-Type: text / html; charset=UTF-8

[0098] Location: https: / / www.example-A.com / new.

[0099] In an example, the user IP (112.10.1.1) is added to the whitelist of website A, and the whitelist time is set to 60 seconds: "Time≤60s" (the time here can be customized); that is, within 60 seconds after the verification is passed, the IP (112.10.1.1) requests to access website A without verification and can access directly; after 60 seconds, the verification operation needs to be performed again, that is, the above steps (S41~S44) are repeated.

[0100] S45, after the browser uses the access IP (112.10.1.1) to receive the redirection information, it accesses website A again according to the redirection address contained in the information. At this time, website A no longer needs to be redirected and can be directly accessed. The user (112.10.1.1) accesses a website A: www.exanple-A.com through the client browser. The client request includes:

[0101] GET / blog HTTP / 1.1

[0102] Host:www.example-A.com

[0103] Cookie("user",$value).

[0104] After receiving the access request, the server of website A returns the following information:

[0105] Server response includes:

[0106] HTTP / 1.1 200OK

[0107] Remote Address:112.10.1.1:443

[0108] Content-Type: text / html; charset=UTF-8.

[0109] The solution of this embodiment is applicable to the second dial IP scenario. The unknown IP traffic is pulled to the verification website for verification through 302 redirection. The cookie value of the client browser is modified by sending a Set-Cookie instruction. If the modification is successful and the request is successfully sent to the specified website, it is considered that the interaction between the client browser and the website server is completed. However, BOT users such as second dial will not be able to perform interactive operations flexibly.

[0110] This embodiment can reduce the losses caused by BOT behavior through prior perception rather than post-remedial actions. If it is confirmed that the BOT behavior is a second-dial IP user and then banned, it means that the BOT behavior has already carried out a series of behaviors such as brushing or crawling information on the target website, and has caused certain property losses. It can also effectively avoid banning users on a large scale, avoid behaviors such as accidental killing and interception, and improve the normal user experience. If it is blocked by banning, or limiting the frequency and number of visits, it is time-consuming and labor-intensive, and the accuracy rate is low, the rate of accidental killing and interception is high, and it cannot effectively determine the user IP whitewashing time, causing a bad experience for normal users. In addition, the process of this embodiment is fully automated in the server code, which saves time and effort, is convenient and fast. Compared with blacklisting and banning users one by one after identification, the solution of this embodiment can effectively improve work efficiency and is convenient and fast.

[0111] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0112] Example 2

[0113] In this embodiment, a device and system for identifying a second dial IP are provided to implement the above embodiments and preferred implementations, which have been described and will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0114] Figure 5 is a structural block diagram of a device for identifying a second dial IP according to an embodiment of the present invention, which is applied to a website server, such as Figure 5 As shown, the device includes: a receiving module 50, a transfer module 52, and an establishment module 54, wherein:

[0115] A receiving module 50 is used to receive a first access request from a browser, wherein the first access request carries an access IP address and is used to request access to a website server;

[0116] A transfer module 52, configured to transfer the first access request to a verification server, wherein the verification server is configured to identify whether the access IP is a second dial-up IP;

[0117] Establishing module 54, used for establishing a data transmission channel between the browser and the website server if the access IP is not a second-dial IP.

[0118] Optionally, the transfer module includes: a sending unit, used to send first redirection information to the browser, so that the browser sends a second access request to the verification server, wherein the first redirection information includes: specified cache parameters, redirection path, and the specified cache parameters are used by the verification server to verify whether the access IP is a second dial-up IP.

[0119] Optionally, the device also includes: a sending module, used to send an interactive request to the browser before the establishing module establishes the data transmission channel between the browser and the website server; and a determining module, used to determine to establish the data transmission channel between the browser and the website server if a response operation of the browser to the interactive request feedback is received.

[0120] Figure 6 is a structural block diagram of another device for identifying a second dial IP according to an embodiment of the present invention, which is applied to a verification server, such as Figure 6 As shown, the device includes: a receiving module 60, an identification module 62, and a sending module 64, wherein:

[0121] A receiving module 60 is used to receive a second access request from a browser, wherein the second access request carries an access IP address and a specified cache parameter;

[0122] An identification module 62, used to identify whether the access IP is a second dial IP according to the specified cache parameter;

[0123] The sending module 64 is used to send a second redirection request to the browser if the access IP is not a second-dial IP, wherein the second redirection request points to the website server of the access IP request.

[0124] Optionally, the identification module includes: an extraction unit, used to extract the specified cache parameters from the cookie of the second access request; a judgment unit, used to judge whether the specified cache parameters match the verification parameters; a determination unit, used to determine that the access IP is a second dial-up IP if the specified cache parameters do not match the verification parameters; if the specified cache parameters match the verification parameters, determine that the access IP is not a second dial-up IP.

[0125] Optionally, the device further includes: an adding module, used to add the access IP to the blacklist of the website server if the access IP is a second-dial IP; and a synchronization module, used to synchronize the blacklist to the website server.

[0126] Optionally, the device also includes: a setting module, which is used to set the blocking time of the access IP in the blacklist after the adding module adds the access IP to the blacklist of the website server, and / or to limit the access frequency of the access IP in the blacklist.

[0127] Figure 7 is a structural block diagram of a system for identifying a second dial IP according to an embodiment of the present invention. Figure 7 As shown, the system includes: a client 70 running a browser, a website server 72, and a verification server 74, wherein the website server includes the device described in the above embodiment; the verification server includes the device described in the above embodiment; the client includes: a first sending module, used to send a first access request to the website server, wherein the first access request carries an access IP; a first receiving module, used to receive a first redirection request fed back by the website server, wherein the first redirection request points to the verification server; a second sending module, used to send a second access request to the verification server; a second receiving module, used to receive a second redirection request fed back by the verification server, wherein the redirection request points to the website server; and a third sending module, used to send a third access request to the website server.

[0128] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0129] Example 3

[0130] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0131] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0132] S1, receiving a first access request from a browser, wherein the first access request carries an access IP address and is used to request access to a website server;

[0133] S2, transferring the first access request to a verification server, wherein the verification server is used to identify whether the access IP is a second dial IP;

[0134] S3: If the access IP is not a second-dial IP, a data transmission channel is established between the browser and the website server.

[0135] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0136] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0137] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0138] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0139] S1, receiving a first access request from a browser, wherein the first access request carries an access IP address and is used to request access to a website server;

[0140] S2, transferring the first access request to a verification server, wherein the verification server is used to identify whether the access IP is a second dial IP;

[0141] S3: If the access IP is not a second-dial IP, a data transmission channel is established between the browser and the website server.

[0142] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0143] Figure 8 1 is a block diagram of an electronic device implementing an embodiment of the present invention. Figure 8 As shown, it includes a processor 41 and a memory 42 for storing data, which are connected via a communication bus 44, and also includes a communication interface 43 connected to the communication bus 44 for adaptive connection with other components or external devices.

[0144] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0145] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0146] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0147] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0148] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0149] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or 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 a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0150] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for identifying a second-dial IP, characterized in that: Applied on website servers, including: Receive a first access request from a browser, wherein the first access request carries an access IP address and is used to request access to a website server; Transferring the first access request to a verification server, wherein the verification server is used to identify whether the access IP is a second dial IP; Wherein, transferring the first access request to the verification server comprises: sending first redirection information to the browser so that the browser sends a second access request to the verification server, wherein the first redirection information comprises: specifying cache parameters and redirection path; wherein the specified cache parameters are the value of the function Set-Cookie, and the website server sends a Set-Cookie instruction to the browser to set the cookie return value, and the specified cache parameters are the values ​​agreed upon by the website server and the verification server; The verification server receives a second access request from the browser, wherein the second access request carries an access IP and a specified cache parameter; identifies whether the access IP is a second-dial IP according to the specified cache parameter; if the access IP is not a second-dial IP, sends a second redirection request to the browser to establish a data transmission channel between the browser and the website server, wherein the second redirection request points to the website server requested by the access IP; identifying whether the access IP is a second-dial IP according to the specified cache parameter includes: extracting the specified cache parameter from the cookie of the second access request; judging whether the specified cache parameter matches the verification parameter; if the specified cache parameter does not match the verification parameter, determining that the access IP is a second-dial IP; if the specified cache parameter matches the verification parameter, determining that the access IP is not a second-dial IP.

2. The method according to claim 1, characterized in that Before establishing a data transmission channel between the browser and the website server, the method further includes: Sending an interaction request to the browser; If a response operation of the browser to the interactive request feedback is received, it is determined to establish a data transmission channel between the browser and the website server.

3. A method for identifying a second-dial IP, characterized in that: Applied in the authentication server, including: Receive a second access request from the browser, wherein the second access request carries an access IP address and a specified cache parameter; Identify whether the access IP is a second-dial IP according to the specified cache parameter; If the access IP is not a second-dial IP, a second redirection request is sent to the browser to establish a data transmission channel between the browser and the website server, wherein the second redirection request points to the website server requested by the access IP; Wherein, identifying whether the access IP is a second-dial IP according to the specified cache parameter comprises: extracting the specified cache parameter from the cookie of the second access request; judging whether the specified cache parameter matches the verification parameter; if the specified cache parameter does not match the verification parameter, determining that the access IP is a second-dial IP; if the specified cache parameter matches the verification parameter, determining that the access IP is not a second-dial IP; wherein, the specified cache parameter is the value of the function Set-Cookie, and the website server sends a set-cookie instruction to the browser to set the cookie return value, and the specified cache parameter is the value agreed upon by the website server and the verification server; The website server receives a first access request from a browser, wherein the first access request carries an access IP and is used to request access to the website server; the first access request is transferred to a verification server; wherein the first access request is transferred to the verification server, including: sending first redirection information to the browser so that the browser sends a second access request to the verification server, wherein the first redirection information includes: specifying cache parameters and a redirection path.

4. The method according to claim 3, characterized in that If the access IP is a second-dial IP, the method further includes: Add the access IP to the blacklist of the website server; The blacklist is synchronized to the website server.

5. The method according to claim 4, characterized in that After adding the access IP to the blacklist of the website server, the method further includes: The blocking time of the access IP is set in the blacklist, and / or the access frequency of the access IP is limited in the blacklist.

6. A device for identifying second-dial IP, characterized in that: Applied on website servers, including: A receiving module, configured to receive a first access request from a browser, wherein the first access request carries an access IP address and is used to request access to a website server; A transfer module, used for transferring the first access request to a verification server, wherein the verification server is used for identifying whether the access IP is a second-dial IP, wherein the verification server is used for identifying whether the access IP is a second-dial IP; The transfer module includes: a sending unit, used to send first redirection information to the browser, so that the browser sends a second access request to the verification server, wherein the first redirection information includes: a specified cache parameter and a redirection path, the specified cache parameter is used by the verification server to verify whether the access IP is a second dial-up IP, wherein the specified cache parameter is the value of the function Set-Cookie, the website server sends a Set-Cookie instruction to the browser to set the Cookie return value, and the specified cache parameter is the value agreed upon by the website server and the verification server; Among them, the verification server is used to receive a second access request from a browser, wherein the second access request carries an access IP and a specified cache parameter; identify whether the access IP is a second dial IP according to the specified cache parameter; if the access IP is not a second dial IP, send a second redirection request to the browser to establish a data transmission channel between the browser and the website server, wherein the second redirection request points to the website server requested by the access IP; wherein, identifying whether the access IP is a second dial IP according to the specified cache parameter includes: extracting the specified cache parameter from the cookie of the second access request; judging whether the specified cache parameter matches the verification parameter; if the specified cache parameter does not match the verification parameter, determining that the access IP is a second dial IP; if the specified cache parameter matches the verification parameter, determining that the access IP is not a second dial IP.

7. A device for identifying second-dial IP, characterized in that: Applied in the authentication server, including: A receiving module, configured to receive a second access request from a browser, wherein the second access request carries an access IP address and specified cache parameters; An identification module, used for identifying whether the access IP is a second dial IP according to the specified cache parameters; A sending module, configured to send a second redirection request to the browser to establish a data transmission channel between the browser and the website server if the access IP is not a second-dial IP, wherein the second redirection request points to the website server requested by the access IP; The identification module includes: an extraction unit, used to extract the specified cache parameter from the cookie of the second access request; a judgment unit, used to judge whether the specified cache parameter matches the verification parameter; a determination unit, used to determine that the access IP is a second-dial IP if the specified cache parameter does not match the verification parameter; if the specified cache parameter matches the verification parameter, determine that the access IP is not a second-dial IP, wherein the specified cache parameter is the value of the function Set-Cookie, and the website server sends a set-cookie instruction to the browser to set the cookie return value, and the specified cache parameter is the value agreed upon by the website server and the verification server; Among them, the website server: is used to receive a first access request from a browser, wherein the first access request carries an access IP, and the first access request is used to request access to the website server; transfers the first access request to a verification server; wherein transferring the first access request to the verification server includes: sending a first redirection message to the browser so that the browser sends a second access request to the verification server, wherein the first redirection message includes: specifying cache parameters and a redirection path.

8. A system for identifying second-dial IPs, characterized in that: include: The client running the browser, the website server, and the authentication server, among which, The website server comprises the device as claimed in claim 6; The verification server comprises the apparatus as claimed in claim 7; The client includes: a first sending module, used to send a first access request to the website server, wherein the first access request carries an access IP; a first receiving module, used to receive a first redirection request fed back by the website server, wherein the first redirection request points to the verification server; a second sending module, used to send a second access request to the verification server; a second receiving module, used to receive a second redirection request fed back by the verification server, wherein the redirection request points to the website server; and a third sending module, used to send a third access request to the website server.

9. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 5 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 5.