Abnormal text recognition method and related device
The method uses dynamic tokens and content change information to secure user content verification, addressing the vulnerability of existing measures and preventing malicious review flooding, thereby enhancing user experience and platform reputation.
Patent Information
- Application Number
- CN202411052499.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-12-03
AI Technical Summary
Existing protection measures, such as static token verification or simple verification codes, are easily broken by the black industry, leading to malicious review flooding and damaging the user experience and platform reputation.
A method involving dynamic tokens and content change information is used to identify abnormal text, where a text identifier is generated and sent to a risk control server, with dynamic tokens being generated and verified to ensure the legitimacy of user content, and stored in a legal content list before publication.
Effectively prevents malicious review flooding by identifying and blocking abnormal text, enhancing user experience and protecting platform reputation through secure and dynamic verification processes.
Smart Images

Figure CN119066197A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method for identifying abnormal text and related devices. Background Art
[0002] With the popularization of Internet applications, the black industry has become increasingly rampant in malicious review and flooding through automated tools, seriously interfering with the experience of normal users and damaging the reputation of the platform.
[0003] Existing protection measures, such as static token verification or simple verification codes, have been gradually broken by the black industry. Therefore, there is an urgent need for a protection mechanism to effectively curb such illegal activities and protect the experience of normal users and the reputation of the platform. Summary of the invention
[0004] In view of this, the present application provides a method and related devices for identifying abnormal text, which can effectively identify abnormal text, prevent the black industry from maliciously brushing reviews and flooding with comments through automated tools, and protect the experience of normal users and the reputation of the platform.
[0005] The first aspect of the present application provides a method for identifying abnormal text, which is applied to a client and includes:
[0006] After receiving the text input request from the user, a text identifier is generated, and the text identifier is sent to the risk control server; wherein, after receiving the text identifier, the risk control server generates a first dynamic token and sends the first dynamic token to the client;
[0007] When the user performs a text operation each time, content change information is generated; wherein the text operation includes inputting text and deleting text;
[0008] Sending the text identifier and the content change information to the risk control server; wherein the risk control server stores the content change information according to the text identifier, generates a second dynamic token, and sends the second dynamic token to the client;
[0009] When receiving a text submission request from a user, generating a first dynamic token string according to the first dynamic token and all the second dynamic tokens;
[0010] The text identifier, the text content to be submitted and the first dynamic token string are sent to the risk control server; wherein the risk control server generates a first verification result according to the text identifier, the text content to be submitted and the first dynamic token string, and the risk control server returns the first verification result to the client, and if the first verification result indicates that the verification is passed, the risk control server stores the text content to be submitted in the legal content list of the user;
[0011] If the first verification result returned by the risk control server is verification passed, the text content is sent to the business server; wherein the text content is the text content to be submitted that has passed the verification of the risk control server; the business server sends the text content to the risk control server; the risk control server generates a second verification result based on the user's legal content list and the text content; the business server determines whether to publish the text content based on the second verification result.
[0012] Optionally, after receiving the text input request from the user, generating a text identifier, and before sending the text identifier to the risk control server, the method further includes:
[0013] After receiving the client's activation request, establish a link with the risk control server.
[0014] Optionally, when receiving a text submission request from a user, generating a first dynamic token string according to the first dynamic token and all the second dynamic tokens includes:
[0015] When a text submission request from a user is received, the first dynamic token and all the second dynamic tokens are combined according to an agreed combination method to generate a first dynamic token string.
[0016] The second aspect of the present application provides a method for identifying abnormal text, which is applied to a risk control server, comprising:
[0017] receiving a text identifier sent by a client, generating a first dynamic token, and sending the first dynamic token to the client;
[0018] receiving a text identifier and content change information sent by a client, storing the content change information according to the text identifier, generating a second dynamic token, and sending the second dynamic token to the client;
[0019] Receiving the text identifier, the text content to be submitted and the first dynamic token string sent by the client;
[0020] Generate a first verification result according to the text identifier, the text content to be submitted and the first dynamic token string, and send the first verification result to the client;
[0021] If the first verification result indicates that the verification is passed, the text content to be submitted is stored in the user's legal content list;
[0022] Receive the text content sent by the business server, and generate a second verification result based on the user's legal content list and the text content; wherein the text content is the text content to be submitted that has been verified by the risk control server; the business server determines whether to publish the text content based on the second verification result.
[0023] Optionally, generating a first verification result according to the text identifier, the text content to be submitted and the first dynamic token string includes:
[0024] Querying the risk control server to obtain the first dynamic token and the second dynamic token corresponding to the stored text identifier and the stored content change information;
[0025] Generate a second dynamic token string according to the first dynamic token and the second dynamic token corresponding to the stored text identifier;
[0026] Generate target text content according to the stored content change information;
[0027] Determine whether the first dynamic token string is consistent with the second dynamic token string, and determine whether the content of the text to be submitted is consistent with the content of the target text;
[0028] If it is determined that the first dynamic token string is consistent with the second dynamic token string, and the content of the text to be submitted is consistent with the content of the target text, a first verification result indicating that the verification is passed is generated;
[0029] If it is determined that the first dynamic token string and the second dynamic token string are inconsistent, and / or the content of the text to be submitted and the content of the target text are inconsistent, a first verification result indicating that the verification has failed is generated.
[0030] Optionally, the receiving the text content sent by the service server and generating a second verification result according to the user's legal content list and the text content includes:
[0031] querying whether the text content exists in the user's legal content list;
[0032] If the text content exists in the user's legal content list, generating a second verification result of passing the verification;
[0033] If the text content does not exist in the user's legal content list, a second verification result indicating that the verification has failed is generated.
[0034] The third aspect of the present application provides a method for identifying abnormal text, which is applied to a business server, comprising:
[0035] Receive text content sent by the client; wherein the text content is the text content to be submitted that has been verified by the risk control server;
[0036] The text content is sent to the risk control server; wherein the risk control server generates a second verification result according to the user's legal content list and the text content; and the business server determines whether to publish the text content according to the second verification result.
[0037] A fourth aspect of the present application provides an abnormal text recognition device, which is applied to a client and includes:
[0038] A first generating unit is configured to generate a text identifier after receiving a text input request from a user, and send the text identifier to a risk control server; wherein, after receiving the text identifier, the risk control server generates a first dynamic token and sends the first dynamic token to a client;
[0039] A second generating unit is used to generate content change information each time the user performs a text operation; wherein the text operation includes inputting text and deleting text;
[0040] A first sending unit is used to send the text identifier and the content change information to the risk control server; wherein the risk control server stores the content change information according to the text identifier, generates a second dynamic token, and sends the second dynamic token to the client;
[0041] A third generating unit, configured to generate a first dynamic token string according to the first dynamic token and all the second dynamic tokens when receiving a text submission request from a user;
[0042] a second sending unit, configured to send the text identifier, the text content to be submitted, and the first dynamic token string to the risk control server; wherein the risk control server generates a first verification result according to the text identifier, the text content to be submitted, and the first dynamic token string, and the risk control server returns the first verification result to the client, and if the first verification result indicates that the verification is passed, the risk control server stores the text content to be submitted in the legal content list of the user;
[0043] The third sending unit is used to send text content to the business server if the first verification result returned by the risk control server is verification passed; wherein the text content is the text content to be submitted that has passed the verification of the risk control server; the business server sends the text content to the risk control server; the risk control server generates a second verification result based on the user's legal content list and the text content; the business server determines whether to publish the text content based on the second verification result.
[0044] Optionally, the abnormal text recognition device further includes:
[0045] The link establishment unit is used to establish a link with the risk control server after receiving the client activation request.
[0046] Optionally, the third generating unit includes:
[0047] The third generating subunit is used for, when receiving a text submission request from a user, combining the first dynamic token and all the second dynamic tokens according to an agreed combination method to generate a first dynamic token string.
[0048] A fifth aspect of the present application provides an abnormal text recognition device, which is applied to a risk control server, including:
[0049] a fourth generating unit, configured to receive the text identifier sent by the client, generate a first dynamic token, and send the first dynamic token to the client;
[0050] A first storage unit, configured to receive a text identifier and content change information sent by a client, store the content change information according to the text identifier, generate a second dynamic token, and send the second dynamic token to the client;
[0051] A first receiving unit, configured to receive the text identifier, the text content to be submitted and the first dynamic token string sent by the client;
[0052] A first verification unit, configured to generate a first verification result according to the text identifier, the text content to be submitted and the first dynamic token string, and send the first verification result to the client;
[0053] A second storage unit is used to store the text content to be submitted into the user's legal content list if the first verification result indicates that the verification is passed;
[0054] The second verification unit is used to receive the text content sent by the business server, and generate a second verification result according to the user's legal content list and the text content; wherein the text content is the text content to be submitted that has been verified by the risk control server; the business server determines whether to publish the text content according to the second verification result.
[0055] Optionally, the first verification unit includes:
[0056] A first query unit, configured to query the risk control server to obtain the first dynamic token and the second dynamic token corresponding to the stored text identifier and the stored content change information;
[0057] A fifth generating unit, configured to generate a second dynamic token string according to the first dynamic token and the second dynamic token corresponding to the stored text identifier;
[0058] a sixth generating unit, configured to generate target text content according to the stored content change information;
[0059] A first judging unit, configured to judge whether the first dynamic token string is consistent with the second dynamic token string;
[0060] A second judgment unit is used to judge whether the content of the text to be submitted is consistent with the content of the target text;
[0061] a seventh generating unit, configured to generate a first verification result indicating that verification is passed if the first judging unit judges that the first dynamic token string is consistent with the second dynamic token string, and the second judging unit judges that the content of the text to be submitted is consistent with the content of the target text;
[0062] The seventh generation unit is also used to generate a first verification result indicating that the verification failed if the first judgment unit determines that the first dynamic token string and the second dynamic token string are inconsistent, and / or the second judgment unit determines that the text content to be submitted and the target text content are inconsistent.
[0063] Optionally, the second verification unit includes:
[0064] A second query unit, configured to query whether the text content exists in the user's legal content list;
[0065] An eighth generating unit, configured to generate a second verification result indicating that the verification has passed if the text content exists in the legal content list of the user;
[0066] The eighth generating unit is further configured to generate a second verification result indicating that the verification has failed if the text content does not exist in the legal content list of the user.
[0067] A sixth aspect of the present application provides an abnormal text recognition device, which is applied to a business server and includes:
[0068] A second receiving unit is used to receive text content sent by the client; wherein the text content is the text content to be submitted that has been verified by the risk control server;
[0069] The fourth sending unit is used to send the text content to the risk control server; wherein the risk control server generates a second verification result based on the user's legal content list and the text content; and the business server determines whether to publish the text content based on the second verification result.
[0070] A seventh aspect of the present application provides an electronic device, including:
[0071] one or more processors;
[0072] a storage device having one or more programs stored thereon;
[0073] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for identifying abnormal text as described in any one of the first aspect, the second aspect, or the third aspect.
[0074] An eighth aspect of the present application provides a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for identifying abnormal text as described in any one of the first aspect, the second aspect, or the third aspect is implemented.
[0075] As can be seen from the above scheme, the present application provides a method and related device for identifying abnormal texts, wherein after receiving the text input request from the user, the client generates a text identifier and sends the text identifier to the risk control server, and generates content change information each time the user performs a text operation, and the client sends the text identifier and the content change information to the risk control server. When receiving the text submission request from the user, a first dynamic token string is generated according to the first dynamic token and all second dynamic tokens returned by the risk control server, and the risk control server generates a first verification result according to the text identifier, the text content to be submitted and the first dynamic token string. If the first verification result indicates that the verification is passed, the risk control server stores the text content to be submitted in the user's legal content list. The client sends the text content to be submitted verified by the risk control server to the business server, and the business server verifies it again through the risk control server. If the verification is passed, the text content is published, thereby effectively identifying abnormal texts, preventing black industries from maliciously brushing reviews and flooding through automated tools, and protecting the experience of normal users and the reputation of the platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0077] Figure 1 A specific flow chart of a method for identifying abnormal text provided in an embodiment of the present application;
[0078] Figure 2A flow chart of a risk control server performing a first verification provided by another embodiment of the present application;
[0079] Figure 3 A flow chart of a risk control server performing a second verification provided by another embodiment of the present application;
[0080] Figure 4 A schematic diagram of an abnormal text recognition device (client) provided in another embodiment of the present application;
[0081] Figure 5 A schematic diagram of an abnormal text recognition device (risk control server) provided in another embodiment of the present application;
[0082] Figure 6 A schematic diagram of an abnormal text recognition device (business server) provided in another embodiment of the present application;
[0083] Figure 7 A schematic diagram of an electronic device for implementing a method for identifying abnormal text provided in another embodiment of the present application. DETAILED DESCRIPTION
[0084] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0085] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0086] It should be noted that the information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0087] It should be noted that the concepts such as "first" and "second" mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0088] It should be noted that the modifications of "one" and "plurality" mentioned in the present application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0089] First, the technical terms appearing in this application are explained:
[0090] Risk control server: A server used for risk control verification, which can also provide long link access capabilities.
[0091] Business server: a specific business server used for user comments and posting barrages.
[0092] Client: Android, iOS, and Hongmeng system terminals include mobile phones, tablets, computers, browsers, etc.
[0093] The present application embodiment provides a method for identifying abnormal text, such as Figure 1 As shown, the specific steps include:
[0094] S101. After receiving a text input request from a user, the client generates a text identifier and sends the text identifier to a risk control server.
[0095] The triggering method of the user's text input request may be, but is not limited to, the user clicking on a text box where text needs to be input, which is not limited here.
[0096] In the specific implementation process of this application, after receiving the activation request triggered by the user, the client establishes a link with the risk control server.
[0097] The activation request triggered by the user includes, but is not limited to, the user clicking on the APP on the touch screen, or using a mouse to click on the software on a personal computer to start the software, etc., which are not limited here. The way to establish a link with the risk control server can be, but is not limited to, a long link, etc., which are not limited here.
[0098] Specifically, when a user opens a client (including a browser), the client initiates authentication to the risk control server and establishes a long connection. If the client is a browser, a long connection of the websocket protocol is established.
[0099] S102: The risk control server generates a first dynamic token and sends the first dynamic token to the client.
[0100] The first dynamic token is a randomly generated dynamic token. In the specific implementation of this application, the dynamic token can be a string in the [AZ] range, or a number or other form. After the client receives the dynamic token pushed by the risk control server, it stores the dynamic token locally.
[0101] S103. When the user performs a text operation each time, the client generates content change information.
[0102] Among them, the text operations include inputting text and deleting text.
[0103] For example: If the customer inputs the text "sister", the client generates content change information: add [sister]; if the customer deletes "not", the generated content change information is: delete [not].
[0104] S104. The client sends the text identifier and the content change information to the risk control server.
[0105] S105. The risk control server stores the content change information according to the text identifier, generates a second dynamic token, and sends the second dynamic token to the client.
[0106] Among them, the second dynamic token is a randomly generated dynamic token. In the specific implementation process of this application, the dynamic token can be a string in the range of [A - Z], or it can be a number or other forms. After receiving the dynamic token pushed by the risk control server, the client stores the dynamic token locally.
[0107] Specifically, the risk control server queries the storage location corresponding to the text identifier according to the text identifier, stores the content change information, generates a second dynamic token, and sends the second dynamic token to the client.
[0108] S106. When the client receives the user's text submission request, it generates a first dynamic token string according to the first dynamic token and all the second dynamic tokens.
[0109] In the specific implementation process of this application, after the user completes all text content input, the user will click the submission button. When the client receives the user's text submission request, it generates a first dynamic token string according to the first dynamic token and all the second dynamic tokens.
[0110] Optionally, in another embodiment of this application, an implementation manner of step S106 may be, but is not limited to, when receiving the user's text submission request, combining the first dynamic token and all the second dynamic tokens in a pre-agreed combination manner to generate a first dynamic token string.
[0111] Specifically, it can splice the received dynamic tokens in order into a long string to generate a first dynamic token string, or generate a first dynamic token string according to a preset order, etc., which is not limited here.
[0112] For example: the first dynamic token received is str_0, the first second dynamic token received is str_1, the second second dynamic token received is str_2, and the nth second dynamic token received is str_n. If a long character string is formed according to the order of the received dynamic tokens to generate the first dynamic token string str_key, then str_key = str_0 + str_1 + str_2...str_n; if the first dynamic token string is generated in a preset order (for example, in a sequence of one dynamic token interval), then the first dynamic character string str_key = str_0 + str_2 + str_4...
[0113] In the specific implementation process of the present application, of course, the first dynamic token string can also be encrypted and other operations can be performed to make the interaction between the client and the risk control server more secure.
[0114] S107: The client sends the text identifier, the text content to be submitted, and the first dynamic token string to the risk control server.
[0115] The text content to be submitted may be, but is not limited to, the text content remaining in the final text box, and is not limited here.
[0116] S108. The risk control server generates a first verification result according to the text identifier, the text content to be submitted and the first dynamic token string.
[0117] Specifically, if the first verification result indicates that the verification is passed, the push is considered legal, and step S109 is executed while step S110 is executed. Of course, they can also be executed in sequence, such as executing step S109 first and then step S110, or executing step S110 first and then step S109. Figure 1 This is just one implementation of the present application, which is not limited here. If the first verification result shows that the verification fails, the push is considered illegal. In the specific implementation of the present application, an alarm message can be generated to remind relevant personnel to take relevant measures in a timely manner, such as banning the user's account, etc., which is not limited here.
[0118] Optionally, in another embodiment of the present application, an implementation of step S108 is as follows: Figure 2 As shown, including:
[0119] S201. Query the risk control server to obtain a first dynamic token and a second dynamic token corresponding to the stored text identifier and stored content change information.
[0120] Among them, each time the risk control server generates a dynamic token and receives content change information, the dynamic token and content change information will be stored in the storage location corresponding to the text identifier according to the text identifier. Therefore, during verification, the first dynamic token and the second dynamic token corresponding to the text identifier and the stored content change information can be obtained through the text identifier.
[0121] S202: Generate a second dynamic token string according to the first dynamic token and the second dynamic token corresponding to the stored text identifier.
[0122] It should be noted that the way the risk control server generates the second dynamic token string should be consistent with the way the client generates the first dynamic token string. It can be, but is not limited to, generating the second dynamic token string by splicing a long string in the order of the received dynamic tokens, or generating the second dynamic token string in a preset order, etc., which is not limited here.
[0123] S203: Generate target text content according to the stored content change information.
[0124] It should be noted that step S203 may be performed while step S202 is performed, or may be performed in sequence, such as first performing step S202 and then performing step S203, or first performing step S203 and then performing step S202. Figure 2 This is just one implementation of the present application and is not limited here.
[0125] In the specific implementation process of the present application, a restoration operation is performed based on the stored content change information to generate the target text content.
[0126] For example: merge [Add-One], [Add-Two], [Add-Three], [Delete-Three], [Add-Four], and [Add-Five] to obtain the target text content [One Two Four Five].
[0127] S204: Determine whether the first dynamic token string is consistent with the second dynamic token string.
[0128] S205: Determine whether the content of the text to be submitted is consistent with the content of the target text.
[0129] It should be noted that step S205 may be performed while step S204 is performed, or may be performed in sequence, such as first performing step S204 and then performing step S205, or first performing step S205 and then performing step S204. Figure 2 This is just one implementation of the present application and is not limited here.
[0130] Specifically, if it is determined that the first dynamic token string and the second dynamic token string are consistent, and the content of the text to be submitted and the target text content are consistent, step S206 is executed; if it is determined that the first dynamic token string and the second dynamic token string are inconsistent, and / or the content of the text to be submitted and the target text content are inconsistent, step S207 is executed.
[0131] S206: Generate a first verification result indicating that the verification is passed.
[0132] S207: Generate a first verification result indicating that the verification has failed.
[0133] S109: Return the first verification result to the client.
[0134] S110: If the first verification result indicates that the verification is passed, the text content to be submitted is stored in the user's legal content list.
[0135] In the specific implementation process of this application, an existence time can also be set for the legal content list, that is, the legal content list is time-sensitive, and the existence time (time limit) can be set and changed in advance on the risk control server by authorized technical personnel, etc., and is not limited here.
[0136] S111. If the first verification result is that the verification is passed, the client sends the text content to the service server.
[0137] Among them, the text content is the text content to be submitted that has passed the risk control server verification.
[0138] Specifically, if the first verification result is that the verification is passed, the user client initiates a comment, barrage, and other interface calls to the business server.
[0139] In the specific implementation process of this application, the parameters passed in will not carry any risk control verification related content, so even if the parameters of the http interface request are captured, it is difficult to crack the encryption scheme. In addition, since each text input will be protected by a long-linked token key, the content of the final comment or post cannot be modified.
[0140] S112. The business server sends the text content to the risk control server.
[0141] S113: The risk control server generates a second verification result according to the user's legal content list and text content.
[0142] Optionally, in another embodiment of the present application, an implementation of step S113 is as follows: Figure 3 As shown, including:
[0143] S301: Check whether there is text content in the user's legal content list.
[0144] S302: If the text content exists in the user's legal content list, generate a second verification result indicating that the verification has passed.
[0145] In the specific implementation process of the present application, for the sake of security and repeated sending of content, after the second verification result that passes the verification is generated, the text content is deleted from the user's legal content list.
[0146] S303: If the text content does not exist in the user's legal content list, a second verification result indicating that the verification has failed is generated.
[0147] S114: The business server determines whether to publish the text content according to the second verification result.
[0148] Specifically, if the second verification result indicates that the verification is passed, the business server publishes the text content; if the second verification result indicates that the verification is not passed, the business server does not publish the text content.
[0149] It can be seen from the above scheme that the present application provides a method for identifying abnormal texts, wherein after receiving the text input request from the user, the client generates a text identifier and sends the text identifier to the risk control server, and generates content change information each time the user performs a text operation, and the client sends the text identifier and content change information to the risk control server. When receiving the user's text submission request, a first dynamic token string is generated according to the first dynamic token and all second dynamic tokens returned by the risk control server, and the risk control server generates a first verification result according to the text identifier, the text content to be submitted and the first dynamic token string. If the first verification result indicates that the verification is passed, the risk control server stores the text content to be submitted in the user's legal content list. The client sends the text content to be submitted verified by the risk control server to the business server, and the business server verifies it again through the risk control server. If the verification is passed, the text content is published, thereby effectively identifying abnormal texts, preventing the black industry from maliciously brushing reviews and flooding through automated tools, and protecting the experience of normal users and the reputation of the platform.
[0150] The present application embodiment provides a device for identifying abnormal text, which is applied to a client, such as Figure 4 As shown, specifically including:
[0151] The first generating unit 401 is used to generate a text identifier after receiving a text input request from a user, and send the text identifier to a risk control server.
[0152] After receiving the text identifier, the risk control server generates a first dynamic token and sends the first dynamic token to the client.
[0153] The second generating unit 402 is used to generate content change information each time the user performs a text operation.
[0154] Among them, text operations include inputting text and deleting text.
[0155] The first sending unit 403 is used to send the text identifier and content change information to the risk control server.
[0156] The risk control server stores the content change information according to the text identifier, generates a second dynamic token, and sends the second dynamic token to the client.
[0157] The third generating unit 404 is configured to generate a first dynamic token string according to the first dynamic token and all the second dynamic tokens when receiving a text submission request from the user.
[0158] The second sending unit 405 is used to send the text identifier, the text content to be submitted and the first dynamic token string to the risk control server.
[0159] Among them, the risk control server generates a first verification result based on the text identifier, the text content to be submitted and the first dynamic token string, and returns the first verification result to the client. If the first verification result indicates that the verification is passed, the risk control server stores the text content to be submitted in the user's legal content list.
[0160] The third sending unit 406 is configured to send text content to the business server if the first verification result returned by the risk control server is verification passed.
[0161] Among them, the text content is the text content to be submitted that has been verified by the risk control server; the business server sends the text content to the risk control server; the risk control server generates a second verification result based on the user's legal content list and the text content; the business server determines whether to publish the text content based on the second verification result.
[0162] For the specific working process of the units disclosed in the above embodiments of the present application, please refer to the corresponding method embodiments, such as Figure 1 As shown, no further description is given here.
[0163] Optionally, an implementation of the abnormal text recognition device applied to the client further includes:
[0164] The link establishment unit is used to establish a link with the risk control server after receiving the client activation request.
[0165] The specific working process of the units disclosed in the above embodiments of the present application can be found in the corresponding method embodiments, which will not be repeated here.
[0166] Optionally, an implementation manner of the third generating unit includes:
[0167] The third generating subunit is used for, when receiving a text submission request from a user, combining the first dynamic token and all the second dynamic tokens according to an agreed combination method to generate a first dynamic token string.
[0168] The specific working process of the units disclosed in the above embodiments of the present application can be found in the corresponding method embodiments, which will not be repeated here.
[0169] The present application embodiment provides a device for identifying abnormal text, which is applied to a risk control server, such as Figure 5 As shown, specifically including:
[0170] The fourth generating unit 501 is configured to receive a text identifier sent by a client, generate a first dynamic token, and send the first dynamic token to the client.
[0171] The first storage unit 502 is used to receive the text identifier and content change information sent by the client, store the content change information according to the text identifier, generate a second dynamic token, and send the second dynamic token to the client.
[0172] The first receiving unit 503 is used to receive the text identifier, the text content to be submitted and the first dynamic token string sent by the client.
[0173] The first verification unit 504 is used to generate a first verification result according to the text identifier, the text content to be submitted and the first dynamic token string, and send the first verification result to the client.
[0174] The second storage unit 505 is used to store the text content to be submitted into the user's legal content list if the first verification result indicates that the verification is passed.
[0175] The second verification unit 506 is used to receive the text content sent by the service server and generate a second verification result according to the user's legal content list and the text content.
[0176] The text content is the text content to be submitted that has been verified by the risk control server; the business server determines whether to publish the text content based on the second verification result.
[0177] For the specific working process of the units disclosed in the above embodiments of the present application, please refer to the corresponding method embodiments, such as Figure 1 As shown, no further description is given here.
[0178] Optionally, in another embodiment of the present application, an implementation of the first verification unit 504 includes:
[0179] The first query unit is used to query the risk control server to obtain the first dynamic token and the second dynamic token corresponding to the stored text identifier and the stored content change information.
[0180] The fifth generating unit is used to generate a second dynamic token string according to the first dynamic token and the second dynamic token corresponding to the stored text identifier.
[0181] The sixth generating unit is used to generate target text content according to the stored content change information.
[0182] The first judging unit is used to judge whether the first dynamic token string is consistent with the second dynamic token string.
[0183] The second judgment unit is used to judge whether the content of the text to be submitted is consistent with the content of the target text.
[0184] The seventh generating unit is used to generate a first verification result indicating that the verification is passed if the first judging unit judges that the first dynamic token string is consistent with the second dynamic token string, and the second judging unit judges that the content of the text to be submitted is consistent with the content of the target text.
[0185] The seventh generation unit is also used to generate a first verification result indicating that the verification failed if the first judgment unit determines that the first dynamic token string and the second dynamic token string are inconsistent, and / or the second judgment unit determines that the text content to be submitted and the target text content are inconsistent.
[0186] For the specific working process of the units disclosed in the above embodiments of the present application, please refer to the corresponding method embodiments, such as Figure 2 As shown, no further description is given here.
[0187] Optionally, in another embodiment of the present application, an implementation of the second verification unit 506 includes:
[0188] The second query unit is used to query whether there is text content in the user's legal content list.
[0189] The eighth generating unit is configured to generate a second verification result indicating that the verification has passed if the text content exists in the user's legal content list.
[0190] The eighth generating unit is further configured to generate a second verification result indicating that the verification has failed if the text content does not exist in the user's legal content list.
[0191] For the specific working process of the units disclosed in the above embodiments of the present application, please refer to the corresponding method embodiments, such as Figure 3 As shown, no further description is given here.
[0192] The present application embodiment provides a device for identifying abnormal text, which is applied to a business server, such as Figure 6 As shown, specifically including:
[0193] The second receiving unit 601 is used to receive text content sent by the client.
[0194] Among them, the text content is the text content to be submitted that has passed the risk control server verification.
[0195] The fourth sending unit 602 is used to send the text content to the risk control server.
[0196] The risk control server generates a second verification result based on the user's legal content list and text content; and the business server determines whether to publish the text content based on the second verification result.
[0197] For the specific working process of the units disclosed in the above embodiments of the present application, please refer to the corresponding method embodiments, such as Figure 1 As shown, no further description is given here.
[0198] It can be seen from the above scheme that the present application provides an abnormal text recognition device, which generates a text identifier after receiving a user's text input request through the client, and sends the text identifier to the risk control server, and generates content change information each time the user performs a text operation, and the client sends the text identifier and content change information to the risk control server. When receiving the user's text submission request, a first dynamic token string is generated according to the first dynamic token and all second dynamic tokens returned by the risk control server, and the risk control server generates a first verification result according to the text identifier, the text content to be submitted and the first dynamic token string. If the first verification result indicates that the verification is passed, the risk control server stores the text content to be submitted in the user's legal content list. The client sends the text content to be submitted verified by the risk control server to the business server, and the business server verifies it again through the risk control server. If the verification passes, the text content is published, thereby effectively identifying abnormal texts, preventing black industries from maliciously brushing reviews and flooding through automated tools, and protecting the experience of normal users and the reputation of the platform.
[0199] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0200] Another embodiment of the present application provides an electronic device, such as Figure 7 As shown, including:
[0201] One or more processors 701.
[0202] The storage device 702 stores one or more programs.
[0203] When the one or more programs are executed by the one or more processors 701, the one or more processors 701 implement the abnormal text recognition method as described in any one of the above embodiments.
[0204] Another embodiment of the present application provides a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for identifying abnormal text as described in any one of the above embodiments is implemented.
[0205] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0206] It should be noted that the computer-readable medium mentioned above in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0207] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0208] Another embodiment of the present application provides a computer program product, which, when executed, is used to execute any of the above-mentioned methods for identifying abnormal text.
[0209] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, the above-mentioned functions defined in the method of the embodiment of the present application are executed.
[0210] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
[0211] Although several specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present application. Certain features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination.
[0212] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of application involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above application concept. For example, the above features are replaced with (but not limited to) technical features with similar functions applied in the present application.
Claims
1. A method for identifying abnormal text, characterized in that: Applied to the client, including: After receiving the text input request from the user, a text identifier is generated, and the text identifier is sent to the risk control server; wherein, after receiving the text identifier, the risk control server generates a first dynamic token and sends the first dynamic token to the client; When the user performs a text operation each time, content change information is generated; wherein the text operation includes inputting text and deleting text; Sending the text identifier and the content change information to the risk control server; wherein the risk control server stores the content change information according to the text identifier, generates a second dynamic token, and sends the second dynamic token to the client; When receiving a text submission request from a user, generating a first dynamic token string according to the first dynamic token and all the second dynamic tokens; The text identifier, the text content to be submitted and the first dynamic token string are sent to the risk control server; wherein the risk control server generates a first verification result according to the text identifier, the text content to be submitted and the first dynamic token string, and the risk control server returns the first verification result to the client, and if the first verification result indicates that the verification is passed, the risk control server stores the text content to be submitted in the legal content list of the user; If the first verification result returned by the risk control server is verification passed, the text content is sent to the business server; wherein the text content is the text content to be submitted that has passed the verification of the risk control server; the business server sends the text content to the risk control server; the risk control server generates a second verification result based on the user's legal content list and the text content; the business server determines whether to publish the text content based on the second verification result.
2. The method for identifying abnormal text according to claim 1, characterized in that: After receiving the text input request from the user, generating a text identifier, and before sending the text identifier to the risk control server, the method further includes: After receiving the client's activation request, establish a link with the risk control server.
3. The method for identifying abnormal text according to claim 1, characterized in that: When receiving a text submission request from a user, generating a first dynamic token string according to the first dynamic token and all the second dynamic tokens includes: When a text submission request from a user is received, the first dynamic token and all the second dynamic tokens are combined according to an agreed combination method to generate a first dynamic token string.
4. A method for identifying abnormal text, characterized in that: Applied to risk control servers, including: receiving a text identifier sent by a client, generating a first dynamic token, and sending the first dynamic token to the client; receiving a text identifier and content change information sent by a client, storing the content change information according to the text identifier, generating a second dynamic token, and sending the second dynamic token to the client; Receiving the text identifier, the text content to be submitted and the first dynamic token string sent by the client; Generate a first verification result according to the text identifier, the text content to be submitted and the first dynamic token string, and send the first verification result to the client; If the first verification result indicates that the verification is passed, the text content to be submitted is stored in the user's legal content list; Receive the text content sent by the business server, and generate a second verification result based on the user's legal content list and the text content; wherein the text content is the text content to be submitted that has been verified by the risk control server; the business server determines whether to publish the text content based on the second verification result.
5. The method for identifying abnormal text according to claim 4, characterized in that: The step of generating a first verification result according to the text identifier, the text content to be submitted and the first dynamic token string includes: Querying the risk control server to obtain the first dynamic token and the second dynamic token corresponding to the stored text identifier and the stored content change information; Generate a second dynamic token string according to the first dynamic token and the second dynamic token corresponding to the stored text identifier; Generate target text content according to the stored content change information; Determine whether the first dynamic token string is consistent with the second dynamic token string, and determine whether the content of the text to be submitted is consistent with the content of the target text; If it is determined that the first dynamic token string is consistent with the second dynamic token string, and the content of the text to be submitted is consistent with the content of the target text, a first verification result indicating that the verification is passed is generated; If it is determined that the first dynamic token string and the second dynamic token string are inconsistent, and / or the content of the text to be submitted and the content of the target text are inconsistent, a first verification result indicating that the verification has failed is generated.
6. The method for identifying abnormal text according to claim 4, characterized in that: The receiving service server sends the text content, and generates a second verification result according to the user's legal content list and the text content, including: querying whether the text content exists in the user's legal content list; If the text content exists in the user's legal content list, generating a second verification result of passing the verification; If the text content does not exist in the user's legal content list, a second verification result indicating that the verification has failed is generated.
7. A method for identifying abnormal text, characterized in that: Applied to business servers, including: Receive text content sent by the client; wherein the text content is the text content to be submitted that has been verified by the risk control server; The text content is sent to the risk control server; wherein the risk control server generates a second verification result according to the user's legal content list and the text content; and the business server determines whether to publish the text content according to the second verification result.
8. A device for identifying abnormal text, characterized in that: Applied to the client, including: A first generating unit is configured to generate a text identifier after receiving a text input request from a user, and send the text identifier to a risk control server; wherein, after receiving the text identifier, the risk control server generates a first dynamic token and sends the first dynamic token to a client; A second generating unit is used to generate content change information each time the user performs a text operation; wherein the text operation includes inputting text and deleting text; A first sending unit is used to send the text identifier and the content change information to the risk control server; wherein the risk control server stores the content change information according to the text identifier, generates a second dynamic token, and sends the second dynamic token to the client; A third generating unit, configured to generate a first dynamic token string according to the first dynamic token and all the second dynamic tokens when receiving a text submission request from a user; a second sending unit, configured to send the text identifier, the text content to be submitted, and the first dynamic token string to the risk control server; wherein the risk control server generates a first verification result according to the text identifier, the text content to be submitted, and the first dynamic token string, and the risk control server returns the first verification result to the client, and if the first verification result indicates that the verification is passed, the risk control server stores the text content to be submitted in the legal content list of the user; The third sending unit is used to send text content to the business server if the first verification result returned by the risk control server is verification passed; wherein the text content is the text content to be submitted that has passed the verification of the risk control server; the business server sends the text content to the risk control server; the risk control server generates a second verification result based on the user's legal content list and the text content; the business server determines whether to publish the text content based on the second verification result.
9. A device for identifying abnormal text, characterized in that: Applied to risk control servers, including: a fourth generating unit, configured to receive the text identifier sent by the client, generate a first dynamic token, and send the first dynamic token to the client; A first storage unit, configured to receive a text identifier and content change information sent by a client, store the content change information according to the text identifier, generate a second dynamic token, and send the second dynamic token to the client; A first receiving unit, configured to receive the text identifier, the text content to be submitted and the first dynamic token string sent by the client; A first verification unit, configured to generate a first verification result according to the text identifier, the text content to be submitted and the first dynamic token string, and send the first verification result to the client; A second storage unit is used to store the text content to be submitted into the user's legal content list if the first verification result indicates that the verification is passed; The second verification unit is used to receive the text content sent by the business server, and generate a second verification result according to the user's legal content list and the text content; wherein the text content is the text content to be submitted that has been verified by the risk control server; the business server determines whether to publish the text content according to the second verification result.
10. A device for identifying abnormal text, characterized in that: Applied to business servers, including: A second receiving unit is used to receive text content sent by the client; wherein the text content is the text content to be submitted that has been verified by the risk control server; A fourth sending unit is used to send the text content to the risk control server; wherein the risk control server generates a second verification result according to the user's legal content list and the text content; The business server determines whether to publish the text content according to the second verification result.
