Man-machine verification method and device, server and computer readable storage medium
By selecting dynamically changing target human-machine verification questions and answers from the preset question and answer library, the login request of gamers is verified, and the existing human-machine verification methods are solved, and the problem of low security in the face of artificial intelligence attacks is achieved, achieving higher verification security and intelligence.
Patent Information
- Application Number
- CN202411877410.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-05-06
AI Technical Summary
Existing human-machine verification methods are easily bypassed when facing attacks on artificial intelligence algorithms, resulting in low security.
The target human-computer verification question selected from the preset question and answer library and the reference answers related to it are used to perform human-computer verification of gamers' login requests. The target human-computer verification questions selected for each login request may be different, and the reference answers are also different for different gamers.
By dynamically selecting human-machine verification questions and answers, the robot avoids easily bypassing fixed verification methods and improves the security of human-machine verification. At the same time, the preset answers related to gamers are automatically updated to verify the problem, making human-computer verification more intelligent and accurate.
Smart Images

Figure CN119925945A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of online game technology, and in particular to a human-machine verification method, device, server and computer-readable storage medium. Background Art
[0002] In online games, especially MMORPG (Massively Multiplayer Online Role-Playing Game), the problem of account abuse is quite prominent. In order to prevent robots (such as automated scripts) from abusing accounts, human-machine verification is usually required.
[0003] The commonly used human-machine verification method uses image recognition or formula calculation, and uses the difference between humans and robots in image recognition or formula calculation to identify whether it is a human or a robot that is operating.
[0004] However, in recent years, with the continuous advancement of image recognition, various artificial intelligence algorithms have been used to try to crack human-machine verification, resulting in this method of human-machine verification being easily bypassed and the security of human-machine verification being unable to be guaranteed. Summary of the invention
[0005] The present invention aims to provide a human-machine authentication method, device, server and computer-readable storage medium, which can improve the security of human-machine authentication.
[0006] The embodiments of the present invention can be implemented as follows:
[0007] In a first aspect, the present invention provides a human-machine verification method, which is applied to a server, wherein the server is connected to a client for communication, and the method comprises:
[0008] Receiving a login request sent by a target game player through the client;
[0009] Selecting a target human-machine verification question for human-machine verification of the login request and a reference answer corresponding to the target human-machine verification question and related to the target game player from a plurality of human-machine verification questions in a preset question-answer library;
[0010] Sending the target human-machine verification question to the client for display;
[0011] When receiving the verification answer sent by the client, human-machine verification is performed according to the reference answer and the verification answer, and the verification answer is input into the client by the target game player based on the human-machine verification question displayed by the client.
[0012] In an optional implementation, the preset question-and-answer library includes a question library and an answer library, the question library includes each of the human-machine verification questions and their question identifiers, the answer library includes each of the question identifiers in the question library and a plurality of preset answers to the human-machine verification questions corresponding to each of the question identifiers, and one of the preset answers is associated with one game player;
[0013] The step of selecting a target human-machine verification question for human-machine verification of the login request and a reference answer corresponding to the target human-machine verification question and related to the target game player from a plurality of human-machine verification questions in a preset question-answer library comprises:
[0014] Select any human-machine verification question from the question library as the target human-machine verification question;
[0015] Determine a plurality of target preset answers corresponding to the question identifier of the target human-machine verification question from the answer library;
[0016] The target preset answer corresponding to the target game player among the multiple target preset answers is used as the reference answer.
[0017] In an optional embodiment, the method further comprises:
[0018] Obtain the target game player's most recent historical behavior information in the game;
[0019] Extracting the latest answer to each of the human-machine authentication questions from the historical behavior information according to the answer extraction strategy preset for each of the human-machine authentication questions;
[0020] The latest answer to each of the human-machine verification questions is updated to the preset question and answer library.
[0021] In an optional implementation manner, the step of updating the latest answer to each of the human-machine verification questions to the preset question-and-answer library includes:
[0022] For each of the human-machine verification questions, determine all target answers to the human-machine verification question from the preset question-answer library;
[0023] The target answer related to the target game player among all the target answers to each of the human-machine verification questions is replaced with the latest answer to each of the human-machine verification questions.
[0024] In an optional implementation, the step of obtaining the target game player's most recent historical behavior information in the game includes:
[0025] Collect the target game player's most recent operation log in the game;
[0026] The operation log is formatted to obtain historical behavior information of the target game player.
[0027] In an optional implementation, the operation log includes operation time, operation behavior, operation result and operation data, the historical behavior information includes behavior time, behavior action, behavior result and behavior details, and the step of formatting the operation log to obtain the historical behavior information of the target game player includes:
[0028] The operation time of the target game player is used as the behavior time, the operation behavior is used as the behavior action, the operation result is used as the behavior result, and the operation data is used as the behavior details to obtain the historical behavior information of the target game player.
[0029] In an optional implementation, the operation behavior includes at least one of a login behavior, a transaction behavior, a copy operation behavior, a social behavior, and an equipment operation behavior.
[0030] In a second aspect, the present invention provides a human-machine verification device, which is applied to a server, wherein the server is communicatively connected to a client, and the device comprises:
[0031] A receiving module, used for receiving a login request sent by a target game player through the client;
[0032] A selection module, for selecting a target human-machine verification question for human-machine verification of the login request and a reference answer corresponding to the target human-machine verification question and related to the target game player from a plurality of human-machine verification questions in a preset question-answer library;
[0033] A sending module, used for sending the target human-machine verification question to the client for display;
[0034] The verification module is used to perform human-machine verification according to the reference answer and the verification answer when receiving the verification answer sent by the client. The verification answer is input into the client by the target game player based on the human-machine verification question displayed by the client.
[0035] In a third aspect, the present invention provides a server, comprising a processor and a memory, wherein the memory is used to store a program, and the processor is used to implement the human-machine verification method as described in the first aspect of the aforementioned implementation mode when executing the program.
[0036] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the human-machine authentication method as described in the first aspect of the aforementioned implementation.
[0037] Compared with the prior art, the present invention selects a target human-machine verification question from multiple human-machine verification questions in a preset question-and-answer library based on a login request sent by a target game player to perform human-machine verification on the login request, and the reference answer corresponding to the target human-machine verification question is related to the target game player. Since the target human-machine verification question selected for each login request may be different, and the reference answer to the target human-machine verification question may be different for different target game players, this avoids the use of fixed image recognition or formula calculation for different game players. This human-machine verification method can be easily bypassed by robots, thereby solving the technical problem of low security of human-machine verification caused by this. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0039] Figure 1 This is an example diagram of an application scenario provided for this embodiment.
[0040] Figure 2 An example block diagram of a server provided for this embodiment.
[0041] Figure 3 This is an example flowchart of the human-machine verification method provided in this embodiment.
[0042] Figure 4 This is a specific framework example diagram provided for this embodiment.
[0043] Figure 5 This is an example diagram of log collection provided in this embodiment.
[0044] Figure 6 This is a block diagram of an example of a human-machine authentication device provided in this embodiment.
[0045] Icons: 10 - server; 11 - processor; 12 - memory; 13 - bus; 20 - client; 100 - human-machine authentication device; 110 - receiving module; 120 - selection module; 130 - sending module; 140 - authentication module; 150 - update module. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0047] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0049] In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. appear to indicate an orientation or position relationship, they are based on the orientation or position relationship shown in the accompanying drawings, or are the orientation or position relationship in which the product of the invention is usually placed when used. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0050] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.
[0051] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.
[0052] In view of the problem that human-machine verification is easily bypassed in the prior art, the inventors conducted a careful and in-depth analysis and found that the fundamental reason why human-machine verification is easily bypassed is that for different game players, whether it is image verification, arithmetic verification or clicking the correct thing with the mouse, the answer to the same question is fixed. This kind of question and answer are prioritized and correspond one to one, which gives robots an opportunity to take advantage. Once the identification verification method is cracked, a new verification method needs to be redeveloped, so the development cost is also very high.
[0053] In view of this, the present embodiment provides a human-machine authentication method, device, server and computer-readable storage medium, which can improve the security of human-machine authentication, and will be described in detail below.
[0054] Please refer to Figure 1 , Figure 1 This is an example diagram of an application scenario provided in this embodiment. Figure 1 In the process, the server 10 and the client 20 are connected in communication, the game player sends a login request to the server 10 through the client 20, the server 10 selects a target human-machine verification question from the human-machine verification questions in the preset question-and-answer library, and sends the target human-machine verification question to the client 20 for display, the game player feeds back a verification answer based on the target human-machine verification question displayed by the client 20, the client 20 sends the verification answer to the server 10, and the server 10 performs human-machine verification on the login request according to the verification answer and the reference answer to the target human-machine verification question in the preset question-and-answer library.
[0055] The server 10 includes, but is not limited to, a single computer device, a virtual or physical computer, or a server cluster or cloud server composed of multiple computer devices.
[0056] The client 20 includes, but is not limited to, computer equipment, tablet computers, laptop computers, smart phones, game terminals, etc.
[0057] based on Figure 1 This embodiment also provides a block example of the server 10, please refer to Figure 2 , Figure 2 This is a block diagram of an example of a server provided in this embodiment. The server 10 includes a processor 11, a memory 12 and a bus 13. The processor 11 and the memory 12 are connected via the bus 13.
[0058] The processor 11 may be an integrated circuit chip having the ability to process signals. In the implementation process, each step of the human-machine verification method of the above embodiment may be completed by an integrated logic circuit of hardware in the processor 11 or instructions in the form of software. The above processor 11 may be a general-purpose processor, including a CPU (Central Processing Unit), a NP (Network Processor), etc.; it may also be a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Logic Gate Array) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0059] The memory 12 is used to store a program for implementing the human-machine authentication method. The program may be a software function module stored in the memory 12 in the form of software or firmware or solidified in the OS (Operating System) of the server 10.
[0060] After receiving the execution instruction, the processor 11 executes the program to implement the human-machine authentication method of this embodiment.
[0061] based on Figure 1 and Figure 2 This embodiment also provides a human-machine verification method, which is applied to Figure 1 and Figure 2 For Server 10, please refer to Figure 3 , Figure 3 This is a flowchart of a human-machine verification method provided in this embodiment, and the method includes the following steps:
[0062] Step S101, receiving a login request sent by a target game player through a client.
[0063] In this embodiment, the target game player can enter the game player name and password on the login interface displayed by the client, and the client generates a login request according to the game player name and password and sends it to the server.
[0064] Step S102, selecting a target human-machine verification question for human-machine verification of a login request and a reference answer corresponding to the target human-machine verification question and related to a target game player from a plurality of human-machine verification questions in a preset question-answer library.
[0065] In this embodiment, the preset question and answer library can be implemented with one library, which may include multiple human-machine verification questions, each human-machine verification question corresponds to multiple reference answers, and each reference answer corresponds to a game player. The preset question and answer library can also be implemented with two libraries, a question library and an answer library. The question library includes human-machine verification questions and identifications, and the answer library includes identifications of human-machine verification questions, identifications of game players, and reference answers corresponding to game players.
[0066] In this embodiment, the selection method can be random selection, selection according to a pre-set order, or a combination of the two. For example, the pre-set order is: based on the last digit of the current date, select the preliminary human-machine verification questions whose serial numbers end with this number from the preset question and answer library, and then randomly select one from the preliminary human-machine verification questions as the target human-machine verification question.
[0067] In this embodiment, the target human-machine verification question can be text or a picture.
[0068] Step S103, sending the target human-machine verification question to the client for display.
[0069] Step S104, when receiving the verification answer sent by the client, perform human-machine verification according to the reference answer and the verification answer, the verification answer is input into the client by the target game player based on the human-machine verification question displayed on the client.
[0070] In this embodiment, the verification answer is the answer to the target human-machine verification question provided by the target game player. If the verification answer is consistent with the reference answer, the human-machine verification is passed; otherwise, the human-machine verification is not passed.
[0071] It is understandable that in order to avoid game players' misoperation that causes the verification answers they enter to be inconsistent with the reference answers, certain fault-tolerant mechanisms can also be adopted. For example, game players are allowed to enter answers that are inconsistent with the reference answers at most three times in a row, or are prohibited from logging in for a preset period of time after entering verification answers that are inconsistent with the reference answers several times.
[0072] The above method provided in this embodiment avoids the use of fixed image recognition or formula calculation for different game players. This human-machine verification method can be easily bypassed by robots, and solves the technical problem of low security of human-machine verification caused by this.
[0073] In an optional implementation, in order to facilitate efficient management of questions and answers and improve the efficiency of selecting target human-machine verification questions, this embodiment manages questions and answers separately, with questions managed by a question library and answers managed by an answer library. The question library includes human-machine verification questions and question identifiers, and the answer library includes multiple preset answers to human-machine verification questions corresponding to each question identifier in the question library. Each preset answer to each human-machine verification question is related to a game player. An implementation method for selecting a target human-machine verification question is:
[0074] First, select any human-machine verification problem from the question bank as the target human-machine verification problem;
[0075] Secondly, multiple target preset answers corresponding to the question identifier of the target human-machine verification question are determined from the answer library;
[0076] In this embodiment, the question library and the answer library can be associated through a question identifier.
[0077] Finally, the target preset answer corresponding to the target game player among the multiple target preset answers is used as a reference answer.
[0078] In this embodiment, a target preset answer is related to a game player. As an implementation method, the correspondence between the target preset answer and the player identifier of the game player can be recorded. The player identifier can be the player name, or a character string automatically generated by the system that can uniquely represent the corresponding game player and is associated with the player name.
[0079] In this embodiment, the reference answer and the target game player can be associated with the target game player's operation in the game. For example, the reference answer is generated according to the target game player's operation in the game, or includes relevant information about the target game player's operation in the game. In order to increase the difficulty of cracking, any preset answer in the answer library can also be updated as the game player's operation in the game changes. The update can be a triggered update or a periodic update. Since the update method of the preset answer for any game player is the same, this embodiment provides a method for updating the answer of the target game player:
[0080] First, obtain the target game player's most recent historical behavior information in the game;
[0081] In this embodiment, historical behavior information is the behavior information generated most recently in the game, including but not limited to the time when the behavior occurred, the result of the behavior, the object of the behavior, etc. For example, the time of the last login to the game, the result of the last transaction in the game, the equipment operated in the game last, etc.
[0082] In order to facilitate the subsequent extraction of the answer to each human-machine verification question from the historical behavior information, realize the automatic dynamic update of the answer to the human-machine verification question, and further improve the security of human-machine verification, this embodiment formats the operation log so as to obtain the historical behavior information in a unified format according to the formatted operation log. One implementation method is:
[0083] (1) Collect the target game player’s most recent operation log in the game;
[0084] In this embodiment, the operation log includes operation time, operation behavior, operation results and operation data. The operation behavior includes at least one of login behavior, transaction behavior, copy operation behavior, social behavior, and equipment operation behavior. For example, the login behavior of the target game player logging into the game, the transaction behavior of conducting transactions in the game, the behavior of operating a copy in the game, the behavior of socializing in the game, and the behavior of operating equipment in the game.
[0085] (2) Format the operation log to obtain the historical behavior information of the target game players.
[0086] In this embodiment, an example of the log format is as follows. The log format includes the following 6 fields: userid, time stamp, module, action, result, data, whose Chinese meanings are: game player identification, operation time, operation module, operation behavior, operation result, operation data. The operation module can characterize the category of the operation behavior. For example, if the operation module is a login module, it means that the category of the operation behavior is login behavior. An example is as follows: The target game player 123 logged into the game at 2023-9-26 19:47:27, and the login was successful. The IP address was queried to find out that the city where the game player logged in was Beijing. The log recorded in the above format is: 123, 2023-9-26 19:47:27, login, login_in, success, {'city':'Beijing'}.
[0087] (3) The target game player's operation time is used as the behavior time, the operation behavior is used as the behavior action, the operation result is used as the behavior result, and the operation data is used as the behavior details to obtain the historical behavior information of the target game player.
[0088] In this embodiment, according to the correspondence between the formatted operation log and the fields in the historical behavior information, a corresponding piece of historical behavior information is obtained according to one operation log.
[0089] Secondly, according to the answer extraction strategy pre-set for each human-machine verification question, the latest answer to each human-machine verification question is extracted from the historical behavior information;
[0090] In this embodiment, the answer extraction strategy can be a SQL query logic pre-set according to the human-machine verification question, so as to automatically extract the latest answer to the human-machine verification question from the historical behavior information and update it to the preset question and answer library in time.
[0091] As an implementation method, there are usually a large number of game players, and the historical behavior information of all game players can be put in a database for unified management. In this way, you only need to set up an SQL query logic for a human-computer verification question, and query the database including the historical behavior information of all game players to get the latest answers to the human-computer verification questions of all game players at one time.
[0092] For example, for the human-machine authentication question: "What city did you log in from last?", the SQL query logic can be:
[0093] SELECT
[0094] user_id as user_id,
[0095] max(timstamp),
[0096] data.city AS answer
[0097] FROM user_event
[0098] GROUP BY user_id,city
[0099] The meaning of the SQL query logic representation is: filter out the latest answers to the cities that the game players represented by each game player ID have recently logged in from the user_event table according to the game player ID user_id.
[0100] Finally, the latest answer to each human-machine verification question is updated to the preset question and answer library.
[0101] In this embodiment, different human-machine verification questions correspond to different answers, and the answer corresponding to each human-machine verification question needs to be extracted from the historical behavior information. For example, the human-machine verification question is: "What city did you log in to most recently?" For this question, it is necessary to extract the name of the city where the target game player most recently logged in from the historical behavior information as the answer to the question. For another example, the human-machine verification question is: "What is the name of the dungeon you frequently visited in the past month?" For this question, it is necessary to extract the name of the dungeon that the target game player frequently visited in the past month from the historical behavior information as the answer to the question.
[0102] One implementation method for updating the latest answer to each of the human-machine verification questions to a preset question and answer library is: for each human-machine verification question, all target answers to the human-machine verification question are determined from the preset question and answer library; and the target answer related to the target game player among all the target answers to each human-machine verification question is replaced with the latest answer to each human-machine verification question.
[0103] In this embodiment, a human-machine verification question can have multiple target answers, each target answer is related to a game player, and for each human-machine verification question, it is necessary to extract all the target answers corresponding to the human-machine verification question, and then determine the target answer related to the target game player and replace it with the latest answer.
[0104] In this embodiment, for example, the historical behavior information of all game players is shown in Table 1.
[0105] Table 1
[0106]
[0107]
[0108] An example of a question table is shown in Table 2.
[0109] Table 2
[0110]
[0111] The answer table formed by querying each game player's answer to the human-machine verification question from Table 1 using the SQL query logic in Table 2 is shown in Table 3.
[0112] Table 3
[0113]
[0114]
[0115] It can be seen from Table 3 that for each game player 111, 112, 113, and 114, the corresponding answers to the same human-computer verification question: "Which city did you last log in to the game from?" are different. For example, the question for game player 111 is: The city you last logged in from is: The answer is Beijing; the question for game player 112 is: The city you last logged in from is: The answer is Hebei.
[0116] Similarly, a similar method is used for other human-computer verification questions to obtain corresponding answers for each game player. For example, the human-computer verification question is: "What is the name of the copy you often visit in the past month?" The answer of game player 111 is Shadow Moon, and the answer of game player 112 is Immortal Road.
[0117] It is understandable that the more information related to the game player involved in the human-machine verification problem, the higher the security of the human-machine verification. In order to extract effective information for human-machine verification from all aspects of the game player's operation in the game, this embodiment provides a specific implementation method from the entire process. Please refer to Figure 4 , Figure 4 A specific framework example diagram provided for this embodiment, Figure 4 In the game, the game client sends an operation request to the game server gateway. According to different operation request types, the operation request is diverted to the login module, transaction module, copy module, social module and equipment module.
[0118] Each module records the operation logs related to this module. The operation logs of each module will be sent to the log collection module for unified summary for subsequent unified cleaning and analysis.
[0119] The log collection module sends the formatted log data to the log cleaning module, which cleans the incomplete logs and removes erroneous data and data that does not meet the specifications in the logs.
[0120] The data processing module will query the corresponding answer based on the SQL query logic of each human-computer verification question in the question library to obtain the answer relevant to each game player.
[0121] The question and answer data module updates the preset question and answer library in the question and answer system module based on the association of each human-machine verification question and the answer related to each game player obtained from the data processing module.
[0122] After the game server gateway receives the game player's login request, the question and answer system module can provide the game player with a human-machine verification question, and then compare the answer provided by the game player with the reference answer corresponding to the human-machine verification question stored in the preset question and answer library, and return it to the client to check whether the answer is correct.
[0123] The question-and-answer system module also provides the game administrator with a configuration interface or configuration interface for the human-machine verification questions and their query logic in the preset question-and-answer library, so that the game administrator can update the human-machine verification questions and their query logic as needed.
[0124] based on Figure 4 In order to collect logs more efficiently and timely, this embodiment also provides a method for implementing log collection. Figure 5 , Figure 5 This is an example diagram of log collection provided in this embodiment. Figure 5 In the system, the login module, transaction module, copy module, social module and equipment module correspond to one server respectively, namely: login module server, transaction module server, copy module server, social module server and equipment module server. Each server provides corresponding services and records the operation logs of game players in log files. Log collection reads the operation logs from the log files and sends them to the big data system through the message queue mechanism. The big data system uniformly stores and processes the operation logs, and finally obtains the answers related to each game player for each human-computer verification question, and then updates them to the question and answer system module by the question and answer data module.
[0125] It should be noted that although Figure 5 Only the log collection process of the equipment module in the equipment module server is shown, but it does not mean that only the equipment module server has such a log collection process. The other modules are similar to it and will not be repeated here.
[0126] In order to execute the corresponding steps in the above embodiment and each possible implementation method, a method for implementing the human-machine verification device 100 is given below. Figure 6 , Figure 6This is a block diagram of the human-machine verification device provided in this embodiment. It should be noted that the basic principle and technical effects of the human-machine verification device 100 provided by the present invention are the same as those of the corresponding above-mentioned embodiments. For the sake of brief description, they are not mentioned in this embodiment.
[0127] The human-machine authentication device 100 includes a receiving module 110 , a selecting module 120 , a sending module 130 and a verifying module 140 .
[0128] The receiving module 110 is used to receive a login request sent by a target game player through a client;
[0129] A selection module 120, for selecting a target human-machine verification question for human-machine verification of a login request and a reference answer corresponding to the target human-machine verification question and related to a target game player from a plurality of human-machine verification questions in a preset question-answer library;
[0130] The sending module 130 is used to send the target human-machine verification question to the client for display;
[0131] The verification module 140 is used to perform human-machine verification according to the reference answer and the verification answer when receiving the verification answer sent by the client. The verification answer is input into the client by the target game player based on the human-machine verification question displayed on the client.
[0132] In an optional implementation, the preset question-and-answer database includes a question database and an answer database, the question database includes each of the human-machine verification questions and their question identifiers, the answer database includes each question identifier in the question database and a plurality of preset answers to the human-machine verification questions corresponding to each question identifier, and one preset answer is associated with one game player;
[0133] The selection module 120 is specifically used for: selecting any human-machine verification question from the question library as the target human-machine verification question; determining multiple target preset answers corresponding to the question identifier of the target human-machine verification question from the answer library; and using the target preset answer corresponding to the target game player among the multiple target preset answers as a reference answer.
[0134] In an optional embodiment, the human-machine verification device 100 also includes an update module 150, which is further used to: obtain the target game player's most recent historical behavior information in the game; extract the latest answer to each human-machine verification question from the historical behavior information according to the answer extraction strategy pre-set for each human-machine verification question; and update the latest answer to each human-machine verification question to a preset question and answer library.
[0135] In an optional implementation, the update module 150 is specifically used to: for each human-machine verification question, determine all target answers to the human-machine verification question from the set question and answer library; replace the target answer related to the target game player among all target answers to each human-machine verification question with the latest answer to each human-machine verification question.
[0136] In an optional implementation, when the update module 150 is specifically used to obtain the target game player's most recent historical behavior information in the game, it is specifically used to: collect the target game player's most recent operation log in the game; format the operation log to obtain the target game player's historical behavior information.
[0137] In an optional implementation, the operation log includes operation time, operation behavior, operation results and operation data, and the historical behavior information includes behavior time, behavior action, behavior result and behavior details. The update module 150 is specifically used to format the operation log. When obtaining the historical behavior information of the target game player, it is specifically used to: use the operation time of the target game player as the behavior time, the operation behavior as the behavior action, the operation result as the behavior result and the operation data as the behavior details to obtain the historical behavior information of the target game player.
[0138] In an optional implementation, the operation behavior in the human-machine verification device 100 includes at least one of a login behavior, a transaction behavior, a copy operation behavior, a social behavior, and an equipment operation behavior.
[0139] It should be noted that although Figure 6 Although the update module 150 is drawn after the verification module 140, it does not mean that the update module 150 can only be located after the verification module 140, nor does it mean that the update module is only associated with the verification module 140. Figure 6 In fact, the updating module 150 can be a relatively independent module, and its position can be set according to the actual implementation needs, as long as it can realize the dynamic update of the preset answers related to the game players in the preset question and answer library.
[0140] This embodiment further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the human-machine authentication method as described in any one of the aforementioned implementations is implemented.
[0141] In summary, the embodiments of the present invention provide a human-machine verification method, device, server and computer-readable storage medium, the method comprising: receiving a login request sent by a target game player through a client; selecting a target human-machine verification question for performing human-machine verification on the login request and a reference answer corresponding to the target human-machine verification question and related to the target game player from multiple human-machine verification questions in a preset question-and-answer library; sending the target human-machine verification question to the client for display; upon receiving a verification answer sent by the client, performing human-machine verification according to the reference answer and the verification answer, the verification answer being input into the client by the target game player based on the human-machine verification question displayed on the client. Compared with the prior art, this embodiment has at least the following advantages: (1) Since the target human-machine verification question selected for each login request may be different, and the reference answer to the target human-machine verification question may be different for different target game players, it avoids the human-machine verification method of using fixed image recognition or formula calculation for different game players, which can be easily bypassed by robots, and solves the technical problem of low security of human-machine verification caused by this; (2) The preset answers related to the human-machine verification questions and game players are automatically updated, making the human-machine verification more intelligent and more accurate, greatly improving the fairness of the game, screening out a large number of cheating players, and avoiding the resulting loss of resources; (3) It avoids the time-consuming and labor-intensive problem of redeveloping new verification strategies when the human-machine verification is cracked; (4) It makes it easier to expand the human-machine verification questions and answers, avoiding the problem of high difficulty and workload caused by expanding fixed human-machine verification questions and answers.
[0142] The above are only various embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A human-machine verification method, characterized in that: Applied to a server, the server is in communication connection with a client, and the method comprises: Receiving a login request sent by a target game player through the client; Selecting a target human-machine verification question for human-machine verification of the login request and a reference answer corresponding to the target human-machine verification question and related to the target game player from a plurality of human-machine verification questions in a preset question-answer library; Sending the target human-machine verification question to the client for display; When receiving the verification answer sent by the client, human-machine verification is performed according to the reference answer and the verification answer, and the verification answer is input into the client by the target game player based on the human-machine verification question displayed by the client.
2. The human-machine authentication method according to claim 1, characterized in that: The preset question and answer library includes a question library and an answer library, wherein the question library includes each of the human-machine verification questions and their question identifiers, and the answer library includes each of the question identifiers in the question library and a plurality of preset answers to the human-machine verification questions corresponding to each of the question identifiers, wherein one of the preset answers is associated with one game player; The step of selecting a target human-machine verification question for human-machine verification of the login request and a reference answer corresponding to the target human-machine verification question and related to the target game player from a plurality of human-machine verification questions in a preset question-answer library comprises: Select any human-machine verification question from the question library as the target human-machine verification question; Determine a plurality of target preset answers corresponding to the question identifier of the target human-machine verification question from the answer library; The target preset answer corresponding to the target game player among the multiple target preset answers is used as the reference answer.
3. The human-machine authentication method according to claim 1, characterized in that: The method further comprises: Obtain the target game player's most recent historical behavior information in the game; Extracting the latest answer to each of the human-machine authentication questions from the historical behavior information according to the answer extraction strategy preset for each of the human-machine authentication questions; The latest answer to each of the human-machine verification questions is updated to the preset question and answer library.
4. The human-machine authentication method according to claim 3, characterized in that: The step of updating the latest answer to each of the human-machine verification questions to the preset question-answer library comprises: For each of the human-machine verification questions, determine all target answers to the human-machine verification question from the preset question-answer library; The target answer related to the target game player among all the target answers to each of the human-machine verification questions is replaced with the latest answer to each of the human-machine verification questions.
5. The human-machine authentication method according to claim 3, characterized in that: The step of obtaining the target game player's most recent historical behavior information in the game includes: Collect the target game player's most recent operation log in the game; The operation log is formatted to obtain historical behavior information of the target game player.
6. The human-machine authentication method according to claim 5, characterized in that: The operation log includes operation time, operation behavior, operation result and operation data, and the historical behavior information includes behavior time, behavior action, behavior result and behavior details. The step of formatting the operation log to obtain the historical behavior information of the target game player includes: The operation time of the target game player is used as the behavior time, the operation behavior is used as the behavior action, the operation result is used as the behavior result, and the operation data is used as the behavior details to obtain the historical behavior information of the target game player.
7. The human-machine authentication method according to claim 6, characterized in that: The operation behavior includes at least one of a login behavior, a transaction behavior, a copy operation behavior, a social behavior, and an equipment operation behavior.
8. A human-machine verification device, characterized in that: Applied to a server, the server is connected to a client for communication, and the device comprises: A receiving module, used for receiving a login request sent by a target game player through the client; A selection module, for selecting a target human-machine verification question for human-machine verification of the login request and a reference answer corresponding to the target human-machine verification question and related to the target game player from a plurality of human-machine verification questions in a preset question-answer library; A sending module, used for sending the target human-machine verification question to the client for display; The verification module is used to perform human-machine verification according to the reference answer and the verification answer when receiving the verification answer sent by the client. The verification answer is input into the client by the target game player based on the human-machine verification question displayed by the client.
9. A server, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store a program, and the processor is used to implement the human-machine authentication method according to any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the human-machine authentication method according to any one of claims 1 to 7 is implemented.