Message processing method and device, electronic equipment, storage medium and computer program product

By transmitting redirection information and preset parameters between the message detection node and the client, the problem of too single message processing under the DPI device blocking strategy is solved, reducing the situation of mistaken discarding and improving the flexibility of message processing and efficiency.

CN119071014AActive Publication Date: 2024-12-03CHINA MOBILE COMM LTD RES INST +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410978017.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-12-03
Estimated Expiration
2044-07-19

AI Technical Summary

Technical Problem

Existing deep packet detection (DPI) devices have too single processing of packets under the blocking strategy, which can easily lead to misdiscarding of packets and lack flexibility and autonomy.

Method used

By transmitting redirection information between the message detection node and the client, the client is instructed to alert the blocked matched packets, and resend the packets according to user operations, using preset parameters to perform matching processing, thereby reducing errors Discarding situation.

Benefits of technology

It improves the flexibility and autonomy of message processing, reduces the misdiscarding of messages, provides greater autonomous processing operation space, and improves the processing efficiency of messages flowing through messages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071014A_ABST
    Figure CN119071014A_ABST
Patent Text Reader

Abstract

The invention provides a message processing method and device, electronic equipment, a storage medium and a computer program product, and relates to the technical field of message detection, and the method comprises the steps: responding to a first message sent by a receiving client, and carrying redirection information to send a second message to the client; wherein the redirection information is used for indicating the client to give an alarm prompt to the first message which is hit by plugging and matching; the redirection information comprises preset parameters; receiving a third message sent by the client, and performing corresponding processing on the third message based on the matching of the third message and a preset parameter; the third message is a message retransmitted for the first message based on the user operation. By means of the scheme in the embodiment of the invention, mistaken discarding of the messages can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of message detection technology, and in particular to a message processing method, device, electronic device, storage medium and computer program product. Background Art

[0002] In the related technology, after a blocking policy is issued to a deep packet inspection (DPI) device, the DPI device matches the message according to the issued policy after receiving the message, and directly discards the message after the match is successful. The DPI device can only perform a discard operation on the message that matches the blocking policy. This blocking method is very inflexible, and the blocking logic is relatively fixed and single, which easily causes the message to be discarded by mistake. Summary of the invention

[0003] The embodiments of the present application provide a message processing method, device, electronic device, storage medium and computer program product, which can reduce the erroneous discarding of messages.

[0004] The technical solution of this application is implemented as follows:

[0005] The present application provides a message processing method, including:

[0006] In response to receiving a first message sent by a client, a second message carrying redirection information is sent to the client; wherein the redirection information is used to instruct the client to issue an alarm prompt for blocking the first message that matches the hit; the redirection information includes: preset parameters;

[0007] A third message sent by the client is received, and corresponding processing is performed on the third message based on a match between the third message and the preset parameters; the third message is a message resent to the first message based on a user operation.

[0008] In the above solution, the redirection information includes: access location information, address information of the first network service node and the preset parameters; and sending the second message to the client with the redirection information includes:

[0009] A second message is sent to the client, carrying the access location information, the address information of the first network service node and the preset parameters generated based on the first message; wherein the second message is used to instruct the client to access the first network service node based on the second message, and to issue an alarm prompt for the first message based on the information fed back by the first network service node.

[0010] In the above scheme, the preset parameters include at least one of the following: a first sub-parameter and a second sub-parameter; wherein the first sub-parameter is formed based on the time of receiving the first message; and the second sub-parameter is formed by encrypting the time of receiving the first message.

[0011] In the above scheme, the method further includes:

[0012] Based on a match result between any information in the first message and preset blocking information, a blocking match hit result for the first message is determined.

[0013] In the above solution, the performing corresponding processing on the third message based on the matching between the third message and the preset parameter includes:

[0014] If any information in the third message matches the preset blocking information, and the first parameter in the third message matches the preset parameter, the third message is released.

[0015] In the above scheme, the method further includes:

[0016] Counting the number of the plurality of third messages released within a predetermined historical period;

[0017] If the number is greater than a preset threshold, the preset blocking information is deleted.

[0018] The present application also provides a message processing method, which is applied to a client and includes:

[0019] Sending a first message to a message detection node, and receiving a second message sent by the message detection node in response to the first message; wherein the second message includes redirection information; the redirection information is used to instruct the client to issue an alarm prompt for blocking the first message that matches the hit; the redirection message includes: preset parameters;

[0020] Based on the user operation, a third message is resent to the message detection node for the first message, so that the message detection node performs corresponding processing on the third message based on a match between the third message and the preset parameters.

[0021] In the above solution, after sending the first message to the message detection node and receiving the second message sent by the message detection node in response to the first message, the method further includes:

[0022] Based on the address information of the first network service node in the second message, a fourth message is sent to the first network service node carrying the access location information and the preset parameters;

[0023] receiving feedback information fed back by the first network service node in response to the fourth message; wherein the feedback information includes: the access location information and the preset parameters; the feedback information is used to instruct the client to issue an alarm prompt for the first message;

[0024] In response to the user's operation triggering an active release operation, the first parameter determined based on the preset parameter is added to the first message to form the third message and sent to the message detection node.

[0025] The embodiment of the present application further provides a message processing device, which is applied to a message detection node, including:

[0026] A first sending unit is used for sending a second message to the client in response to receiving a first message sent by the client, carrying redirection information; wherein the redirection information is used to instruct the client to issue an alarm prompt for blocking the first message that matches the hit; the redirection information includes: preset parameters;

[0027] A message processing unit is used to receive a third message sent by the client and perform corresponding processing on the third message based on a match between the third message and the preset parameters; the third message is a message resent for the first message based on a user operation.

[0028] The present application also provides a message processing device, which is applied to a client and includes:

[0029] A second sending unit, configured to send a first message to a message detection node, and receive a second message sent by the message detection node in response to the first message; wherein the second message includes redirection information; the redirection information is used to instruct the client to issue an alarm prompt for the first message that is blocked and matched; the redirection message includes: preset parameters;

[0030] The second sending unit is used to resend a third message to the message detection node for the first message based on a user operation, so that the message detection node can perform corresponding processing on the third message based on a match between the third message and the preset parameters.

[0031] An embodiment of the present application also provides an electronic device, including a first memory and a first processor, wherein the first memory stores a computer program that can be run on the first processor, and when the first processor executes the computer program, the steps in the method on the message detection node side are implemented.

[0032] An embodiment of the present application also provides an electronic device, including a second memory and a second processor, wherein the second memory stores a computer program that can be run on the second processor, and the second processor implements the steps in the client-side method when executing the computer program.

[0033] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a first processor, the steps in the method on the message detection node side are implemented.

[0034] The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by the second processor, the steps in the client-side method are implemented.

[0035] An embodiment of the present application also provides a computer program product, including a computer program, which implements the steps in the method on the message detection node side when executed by a first processor.

[0036] The embodiment of the present application also provides a computer program product, including a computer program, which implements the steps in the client-side method when executed by a second processor.

[0037] In the embodiment of the present application, in response to receiving a first message sent by a client, a second message carrying redirection information is sent to the client; wherein the redirection information is used to instruct the client to issue an alarm prompt for blocking the first message that matches the match; the redirection information includes: preset parameters; receiving a third message sent by the client, and performing corresponding processing on the third message based on the match between the third message and the preset parameters; the third message is a message resent to the first message based on a user operation. In this way, since the third message is a message resent to the first message that has been blocked and matched based on a user operation, the method of performing corresponding processing on the third message based on the match between the third message and the preset parameters reduces the number of erroneous occurrences of the discard operation compared to the solution of only discarding the blocked message in the related art, thereby reducing the erroneous discarding of messages. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 An optional flowchart of a message processing method provided in an embodiment of the present application;

[0039] Figure 2 An optional flowchart of a message processing method provided in an embodiment of the present application;

[0040] Figure 3 An optional flowchart of a message processing method provided in an embodiment of the present application;

[0041] Figure 4An optional flowchart of a message processing method provided in an embodiment of the present application;

[0042] Figure 5 An optional flowchart of a message processing method provided in an embodiment of the present application;

[0043] Figure 6 An optional flowchart of a message processing method provided in an embodiment of the present application;

[0044] Figure 7 An optional flowchart of a message processing method provided in an embodiment of the present application;

[0045] Figure 8 An optional flowchart of a message processing method provided in an embodiment of the present application;

[0046] Fig. 9 An interactive schematic diagram of a message processing method provided in an embodiment of the present application;

[0047] Fig.10 A schematic diagram of the structure of the message processing device provided in the embodiment of the present application Figure 1 ;

[0048] Fig.11 A hardware entity diagram of an electronic device provided in an embodiment of the present application Figure 1 ;

[0049] Fig.12 A schematic diagram of the structure of the message processing device provided in the embodiment of the present application Figure 2 ;

[0050] Fig.13 A hardware entity diagram of an electronic device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0052] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0053] If similar descriptions of "first / second" appear in the application documents, the following instructions are added. In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0054] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0055] This application embodiment provides a message processing method, see Figure 1 , is an optional flow chart of the message processing method provided in the embodiment of the present application, which will be combined with Figure 1 The steps shown are explained:

[0056] S101. In response to receiving a first message sent by a client, a second message carrying redirection information is sent to the client; wherein the redirection information is used to instruct the client to issue an alarm prompt for blocking the first message that is matched.

[0057] In an embodiment of the present application, when a client accesses a website, it sends a first message to a website server, and during the process of sending the first message, it is intercepted and received by a message detection node in the network. The message detection node determines that the first message is a message that is blocked and matched, and determines corresponding redirection information for the first message. A second message is sent to the client with the redirection information. The redirection information is used to instruct the client to issue an alarm prompt for the first message that is blocked and matched.

[0058] The redirection information may include any one of the following: access address information of the client, access location information, preset parameters, and address information of the first network service node. The first network service node is used to instruct the client to issue an alarm prompt for the first message.

[0059] The message detection node may be a deep packet inspection (DPI) device arranged in the network. In other embodiments, the message detection node may also be other network nodes having the same function.

[0060] In an embodiment of the present application, after receiving the first message, the message detection node may first match the string information in the first message with the preset blocking information to determine whether the blocking match hits the first message. The preset blocking information may be any pre-set string information. Exemplarily, the preset blocking information is a character in a specified Uniform Resource Locator (URL): http: / / www.***.com.

[0061] S102, receiving a third message sent by the client, and performing corresponding processing on the third message based on a match between the third message and the preset parameters; the third message is a message resent for the first message based on a user operation.

[0062] In the embodiment of the present application, after the client receives the second message, the client issues an alarm prompt for the first message under the action of the second message, and the client resends the first message in response to the user's operation on the alarm prompt box, that is, sends the third message to the message detection node. After receiving the third message, the message detection node matches the third message with the preset parameters in the redirection information, and processes the third message based on the matching result.

[0063] Wherein, the manner of processing the third message based on the matching result may include: discarding and releasing. Exemplarily, if the specified information in the third message matches the preset parameters, the third message is released. If the specified information in the third message does not match the preset parameters, the third message may be discarded or an alarm may be issued.

[0064] In some other embodiments, the message detection node may also count the interval between the time point when the second message is sent and the time point when the third message is received, and if the interval is not greater than the preset time, a process of performing corresponding processing on the third message based on the matching of the third message with the preset parameters is executed. If the interval is greater than the preset time, it is determined that the third message is invalid and subsequent steps are not executed.

[0065] In the embodiment of the present application, in response to receiving a first message sent by a client, a second message carrying redirection information is sent to the client; wherein the redirection information is used to instruct the client to issue an alarm prompt for blocking the first message that matches the match; the redirection information includes: preset parameters; receiving a third message sent by the client, and performing corresponding processing on the third message based on the match between the third message and the preset parameters; the third message is a message resent to the first message based on a user operation. In this way, since the third message is a message resent to the first message that has been blocked and matched based on a user operation, the method of performing corresponding processing on the third message based on the match between the third message and the preset parameters reduces the number of erroneous occurrences of the discard operation compared to the solution of only discarding the blocked message in the related art, thereby reducing the erroneous discarding of messages.

[0066] See also Figure 2 , is an optional flow chart of the message processing method provided in the embodiment of the present application, Figure 1 S102 in the above can also be implemented by S201, which will be described in combination with the steps:

[0067] S201. Send a second message to the client, carrying the access location information, the address information of the first network service node, and the preset parameters generated based on the first message; wherein the second message is used to instruct the client to access the first network service node based on the second message, and to issue an alarm prompt for the first message based on the information fed back by the first network service node.

[0068] In an embodiment of the present application, after receiving the first message, the message detection node can extract the access location information in the first message and form corresponding preset parameters for the first message. The message detection node carries the access location information, the address information of the first network service node and the preset parameters to send a second message to the client. The second message is used to instruct the client to access the first network service node based on the second message, and to issue an alarm prompt for the first message based on the information fed back by the first network service node.

[0069] The first network service node may be a pre-designated alarm server, or in other embodiments, may be other network nodes with the same alarm function. The access location information may be URL information accessed by the client.

[0070] The preset parameter includes at least one of the following: a first sub-parameter and a second sub-parameter; wherein the first sub-parameter is formed based on the time when the first message is received; and the second sub-parameter is encrypted based on the time when the first message is received. Exemplarily, the preset parameter may be passcode information. In an embodiment of the present application, when forming the second message, the preset parameter (passcode information) may be placed at the end of the URL, and the second message may be formed in combination with the address information of the first network service node.

[0071] In the embodiment of the present application, a second message is sent to the client carrying the access location information, the address information of the first network service node, and the preset parameters generated based on the first message; wherein the second message is used to instruct the client to access the first network service node based on the second message, and to issue an alarm prompt for the first message based on the information fed back by the first network service node. In this way, after the first message is blocked and matched, the client can be instructed to issue an alarm prompt for the first message based on the redirection information. Compared with the solution in the related art that discards the message as long as the blocking match is hit, it can provide users with a relatively large autonomous processing operation space and reduce the occurrence of mistaken discarding of messages.

[0072] See also Figure 3 , which is an optional flow chart of the message processing method provided in the embodiment of the present application, will be described in combination with the steps:

[0073] S301: Determine a blocking match hit result for the first message based on a matching result between any information in the first message and preset blocking information.

[0074] In an embodiment of the present application, preset blocking information can be configured on the message detection node. After receiving the first message, the message detection node can extract information of the same type as the preset blocking information in the first message and match it with the preset blocking information, and determine the blocking match hit result of the first message based on the matching result.

[0075] The preset blocking information may be a preset URL address. After receiving the first message, the message detection node may extract the URL address in the first message, match the extracted URL address with the preset blocking information, and determine the blocking match hit result of the first message based on the matching result. If the extracted URL address matches the preset blocking information, it is determined that the first message blocking match hits; if the extracted URL address does not match the preset blocking information, it is determined that the first message blocking match misses.

[0076] In the embodiment of the present application, the blocking match hit result for the first message is determined based on the match result between any information in the first message and the preset blocking information. In this way, after receiving the first message, the first message is firstly subjected to blocking match detection to determine whether the first message is a blocking match hit message, if the blocking match hits, the subsequent redirection message alarm prompt process is executed, if the blocking match does not hit, the release process is executed, thereby saving the subsequent redirection message alarm prompt process, saving the processing time of some messages, and thus improving the processing efficiency of the messages passing through.

[0077] See also Figure 4 , which is an optional flow chart of the message processing method provided in the embodiment of the present application, S102 can also be implemented by S401, which will be described in combination with the steps:

[0078] S401: If any information in the third message matches the preset blocking information, and the first parameter in the third message matches the preset parameter, the third message is released.

[0079] In the embodiment of the present application, after receiving the third message, the message detection node can extract the string information of the same type as the preset blocking information in the third message and match it with the preset blocking information, and match the first parameter in the third message with the preset parameter. If the extracted string information matches the preset blocking information, and the first parameter matches the preset parameter, the third message is released. If the extracted string information matches the preset blocking information, and the first parameter does not match the preset parameter, the third message is discarded.

[0080] The first parameter in the third message is a parameter determined by the client based on the received preset parameter. The first parameter may be the same as the preset parameter.

[0081] In the embodiment of the present application, if any information in the third message matches the preset blocking information, and the first parameter in the third message matches the preset parameter, the third message is released. In this way, when the user needs to release the first message, the first message can be processed into a third message that can pass the message detection node, and finally the third message is released. Since the third message is obtained by converting the first message, the application information in the third message is the same as that in the first message, so the client can smoothly access the first message without being mistakenly discarded by the message detection node.

[0082] See also Figure 5 , which is an optional flow chart of the message processing method provided in the embodiment of the present application, will be described in combination with the steps:

[0083] S501. Count the number of the third messages released within a predetermined historical period.

[0084] In an embodiment of the present application, the message detection node can count, within a preset historical period, the number of third messages that are resent by each client in the alarm prompt window in response to the user's operation and are received and released by the message detection node.

[0085] S502: If the number is greater than a preset threshold, delete the preset blocking information.

[0086] In the embodiment of the present application, if the number of the plurality of third messages counted by the message detection node is greater than a preset threshold, the preset blocking information is deleted.

[0087] In the embodiment of the present application, the number of the plurality of third messages released within a predetermined historical period is counted. If the number is greater than a preset threshold, the preset blocking information is deleted. In this way, when the message matched by the preset blocking information reaches a certain number of re-issues, the preset blocking information is deleted in a targeted manner, so that subsequent messages will not be matched and hit by the preset blocking information, reducing the processing process of transmitting the message through the message detection node, thereby improving the transmission efficiency of the message.

[0088] See also Figure 6 , which is an optional flow chart of the message processing method provided in the embodiment of the present application, will be described in combination with the steps:

[0089] S601. Send a first message to a message detection node, and receive a second message sent by the message detection node in response to the first message; wherein the second message includes redirection information; the redirection information is used to instruct the client to issue an alarm prompt for blocking the first message that is matched.

[0090] In an embodiment of the present application, when a client accesses a website, it sends a first message to a website server, and during the process of sending the first message, it is intercepted and received by a message detection node in the network. The message detection node determines the corresponding redirection information for the first message, and sends a second message to the client with the redirection information. The redirection information is used to instruct the client to issue an alarm prompt for blocking the first message that matches the hit.

[0091] S602: Resend a third message to the message detection node for the first message based on a user operation, so that the message detection node performs corresponding processing on the third message based on a match between the third message and the preset parameters.

[0092] In the embodiment of the present application, since the redirection information is used to instruct the client to issue an alarm prompt for blocking the first message that is matched. After the client receives the second message, an alarm prompt is issued for the first message. The client triggers the retransmission of the first message in the alarm prompt box based on the user's operation, and sends the third message formed based on the first message to the message detection node. The message detection node performs corresponding processing on the third message based on the matching result of the third message and the preset parameters.

[0093] If any character string information in the third message matches the preset parameters, the message detection node can release the third message. If any character string information in the third message does not match the preset parameters, the message detection node can discard or issue an alarm for the third message.

[0094] In this way, since the third message is a message resent based on the user operation for the first message that has been blocked and matched, the method of performing corresponding processing on the third message based on the match between the third message and the preset parameters reduces the number of erroneous occurrences of the discard operation compared to the solution in the related art of only discarding the blocked message, thereby reducing the erroneous discard of messages.

[0095] See also Figure 7 , is an optional flow chart of a message processing method provided in an embodiment of the present application, Figure 6 The process shown in S601 may further include: S603 to S605, which will be described in combination with the steps:

[0096] S603: Based on the address information of the first network service node in the second message, send a fourth message to the first network service node by carrying access location information and preset parameters.

[0097] In an embodiment of the present application, the client receives a second message sent by the message detection node. The second message includes access location information, address information of the first network service node, and preset parameters. Based on the address information of the first network service node, the client sends a fourth message to the first network service node carrying the access location information and the preset parameters.

[0098] S604, receiving feedback information fed back by the first network service node in response to the fourth message; wherein the feedback information includes: the access location information and the preset parameters; the feedback information is used to instruct the client to issue an alarm prompt for the first message.

[0099] In the embodiment of the present application, after receiving the fourth message, the first network service node may generate feedback information based on the access location information and preset parameters in the fourth message and send it to the client. The feedback information is used to instruct the client to issue an alarm prompt for the first message.

[0100] Exemplarily, the client accesses the alarm server, carrying information including the URL of the website originally visited and the passcode information. The alarm server responds, inserts a pop-up window message, adds the URL of the website originally visited and the passcode, and returns a 200OK message. The 200OK message is used to instruct the client to issue a pop-up window alarm for the first message. The pop-up window may display a prompt that "the website you are visiting is a suspicious website, please confirm whether you want to continue to visit".

[0101] S605: In response to the user's operation triggering an active release operation, the first parameter determined based on the preset parameter is added to the first message to form the third message, and the third message is sent to the message detection node.

[0102] In an embodiment of the present application, after the client issues a pop-up window alert for the first message, a first control and a second control may be set in the pop-up window. The first control is used to trigger a resending operation, and the second control is used to trigger termination of sending of the first message. In response to the user's operation on the first control, the client triggers a resending operation on the first message, and the client may form a first parameter based on a preset parameter, add it to the first message, form a third message, and send it to the message detection node.

[0103] In the embodiment of the present application, based on the address information of the first network service node in the second message, a fourth message is sent to the first network service node with access location information and preset parameters; feedback information of the first network service node in response to the fourth message is received; wherein the feedback information includes: access location information and preset parameters; the feedback information is used to instruct the client to issue an alarm prompt for the first message; in response to the user's operation triggering the active release operation, the first parameter determined based on the preset parameter is added to the first message to form a third message and sent to the message detection node. Since the first parameter in the third message is formed based on the preset parameter, the release of the third message can be executed on the basis that the third message is blocked and matched, and the first parameter in the third message matches the preset parameter. Compared with the operation of discarding the message as long as the message matches the block in the related art, a diversified message processing method is realized, and the occurrence of mistaken message discarding is reduced.

[0104] See also Figure 8 , which is an optional flow chart of the message processing method provided in the embodiment of the present application, will be described in combination with the steps:

[0105] S11. The client accesses the original website.

[0106] In the embodiment of the present application, the client sends a request message, and the requested URL is www.123.com. Before sending the request message, a blocking strategy needs to be set for the DPI device. The specific strategy can be to perform a pop-up window alarm processing on requests containing 123.com characters in the URL, and to release requests containing specific parameters and 123.com characters. Pop-up window alarm processing can be performed on specific URLs as needed.

[0107] S12. Send a forged 302 message to the client.

[0108] In the embodiment of the present application, DPI matches the blocking instruction, and the processing mode is a pop-up window warning. Specifically, a forged 302 message is sent to the client, in which the warning server address, the original visited website URL and passcode information are filled. Specifically, www.warning.com / w.html? originalurl={www.123.com? passcode=1693837440} The passcode information is generated by DPI, which can be the current UTC time, or it can be encrypted and presented, without specific limitation.

[0109] S13, access the alarm server, carrying information including the original website URL of the original visit and preset parameters.

[0110] In the embodiment of the present application, the client accesses the alarm server, carrying information including the URL of the originally visited website and the passcode

[0111] S14. The alarm server responds, inserts a pop-up window message, adds the original website URL and preset parameters of the original visit, and returns 200OK.

[0112] In the embodiment of the present application, the alarm server responds, implants the pop-up information, adds the original visited website URL and passcode, and returns 200OK.

[0113] S15. After the terminal browser receives the 200OK response, a "Continue access" button appears. If you click it, continue accessing.

[0114] In the embodiment of the present application, after the client receives a 200OK response, a "Continue to access" button appears, or a prompt "The website you are visiting is a suspicious website, please confirm whether you want to continue to access" appears, which is not limited here.

[0115] S16. Access the original website and add preset parameters after the original website URL.

[0116] In the embodiment of the present application, if you click Continue to visit, the original website URL is accessed and the passcode information is added, http: / / www.123.com?passcode=1693837440.

[0117] S17: The blocked URL instruction is hit, but the preset parameters meet the release requirements, so the access is still released.

[0118] In the embodiment of the present application, the DPI hits and blocks the URL instruction, but the passcode meets the release requirements, and the DPI releases this access.

[0119] Furthermore, DPI can be used to count the number of clicks on blocked websites, or to actively test blocked websites. If the number of visits exceeds a certain amount, or the test is successful, it can be determined that the website is not a suspicious website and the website can be removed from the blocking list, thereby dynamically updating the blocking strategy.

[0120] See also Fig. 9 , which is an interactive schematic diagram of the message processing method provided in the embodiment of the present application, will be described in combination with the steps:

[0121] S701. In response to receiving a first message sent by a client, a message detection node sends a second message carrying redirection information to the client; wherein the redirection information is used to instruct the client to issue an alarm prompt for blocking the first message that is matched.

[0122] In the embodiment of the present application, the specific implementation process of S701 can refer to S101 and will not be described in detail here.

[0123] S702. The message detection node receives a third message sent by the client, and performs corresponding processing on the third message based on a match between the third message and the preset parameters; the third message is a message resent for the first message based on a user operation.

[0124] In the embodiment of the present application, the specific implementation process of S702 can refer to S102 and will not be described in detail here.

[0125] See also Fig.10 , which is a schematic diagram of the structure of the message processing device provided in the embodiment of the present application Figure 1 .

[0126] The embodiment of the present application further provides a message processing device 600 , which is applied to a message detection node and includes: a first sending unit 601 and a message processing unit 602 .

[0127] The first sending unit 601 is used for sending a second message to the client in response to receiving a first message sent by the client, carrying redirection information; wherein the redirection information is used to instruct the client to issue an alarm prompt for blocking the first message that matches the hit; the redirection information includes: preset parameters;

[0128] The message processing unit 602 is used to receive the third message sent by the client, and perform corresponding processing on the third message based on the matching of the third message and the preset parameters; the third message is a message resent for the first message based on user operation.

[0129] In an embodiment of the present application, the redirection information includes: access location information, address information of the first network service node and the preset parameters; the first sending unit 601 in the message processing device 600 is used to carry the access location information, the address information of the first network service node and the preset parameters generated based on the first message to send a second message to the client; wherein the second message is used to instruct the client to access the first network service node based on the second message, and to issue an alarm prompt for the first message based on the information fed back by the first network service node.

[0130] In an embodiment of the present application, the preset parameters include at least one of the following: a first sub-parameter and a second sub-parameter; wherein the first sub-parameter is formed based on the time of receiving the first message; and the second sub-parameter is formed by encrypting the time of receiving the first message.

[0131] In the embodiment of the present application, the message processing unit 602 in the message processing device 600 is used to determine a blocking match hit result for the first message based on a matching result between any information in the first message and preset blocking information.

[0132] In the embodiment of the present application, the message processing unit 602 in the message processing device 600 is used to release the third message if any information in the third message matches the preset blocking information and the first parameter in the third message matches the preset parameter.

[0133] In the embodiment of the present application, the message processing unit 602 in the message processing device 600 is used to count the number of multiple third messages released within a predetermined historical period; if the number is greater than a preset threshold, the preset blocking information is deleted.

[0134] It should be noted that in the embodiment of the present application, if the above-mentioned message processing method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable a message processing device (which can be a personal computer, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0135] Correspondingly, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by the first processor, the steps in the method on the message processing device 600 side are implemented.

[0136] Correspondingly, an embodiment of the present application further provides a computer program product, including a computer program, which can be executed by the first processor 701 of the electronic device 700 to complete the steps in the method on the message processing device 600 side.

[0137] Correspondingly, an embodiment of the present application provides an electronic device 700, including a first memory 702 and a first processor 701, wherein the first memory 702 stores a computer program that can be executed on the first processor 701, and the first processor 701 implements the steps in the above method when executing the program.

[0138] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0139] It should be noted that Fig.11 A hardware entity diagram of an electronic device provided in an embodiment of the present application Figure 1 ,like Fig.11 As shown, the hardware entity of the electronic device 700 includes: a first processor 701 and a first memory 702, wherein;

[0140] The first processor 701 generally controls the overall operations of the electronic device 700 .

[0141] The first memory 702 is configured to store instructions and applications executable by the first processor 701, and can also cache data to be processed or processed by the first processor 701 and various modules in the electronic device 700 (for example, image data, audio data, voice communication data, and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).

[0142] See also Fig.12 , which is a schematic diagram of the structure of the message processing device provided in the embodiment of the present application Figure 2 .

[0143] The embodiment of the present application further provides a message processing device 800 , applied to a client, comprising: a second sending unit 801 .

[0144] The second sending unit 801 is used to send a first message to the message detection node, and receive a second message sent by the message detection node in response to the first message; wherein the second message includes redirection information; the redirection information is used to instruct the client to issue an alarm prompt for the first message that is blocked and matched; the redirection message includes: preset parameters;

[0145] The second sending unit 801 is used to resend a third message to the message detection node for the first message based on a user operation, so that the message detection node performs corresponding processing on the third message based on a match between the third message and the preset parameters.

[0146] In the embodiment of the present application, the second sending unit 802 in the message processing device 800 is used to send a fourth message to the first network service node based on the address information of the first network service node in the second message, carrying the access location information and the preset parameters;

[0147] receiving feedback information fed back by the first network service node in response to the fourth message; wherein the feedback information includes: the access location information and the preset parameters; the feedback information is used to instruct the client to issue an alarm prompt for the first message;

[0148] In response to the user's operation triggering an active release operation, the first parameter determined based on the preset parameter is added to the first message to form the third message and sent to the message detection node.

[0149] Correspondingly, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by the second processor, the steps in the method on the message processing device 800 side are implemented.

[0150] Correspondingly, an embodiment of the present application provides a computer program product, including a computer program, which can be executed by the second processor 901 of the electronic device 900 to complete the steps in the method on the message processing device 800 side.

[0151] Correspondingly, an embodiment of the present application provides an electronic device 900, including a second memory 902 and a second processor 901, wherein the second memory 902 stores a computer program that can be executed on the second processor 901, and the second processor 901 implements the steps in the above method when executing the program.

[0152] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0153] It should be noted that Fig.13 A hardware entity diagram of an electronic device provided in an embodiment of the present application Figure 2 ,like Fig.13 As shown, the hardware entity of the electronic device 900 includes: a second processor 901 and a second memory 902, wherein;

[0154] The second processor 901 generally controls the overall operation of the electronic device 900 .

[0155] The second memory 902 is configured to store instructions and applications executable by the second processor 901, and can also cache data to be processed or processed by the second processor 901 and various modules in the electronic device 900 (for example, image data, audio data, voice communication data, and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).

[0156] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0157] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0158] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.

[0159] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0160] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0161] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a magnetic disk or an optical disk, and other media that can store program codes.

[0162] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a mobile storage device, a ROM, a magnetic disk, or an optical disk.

[0163] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A message processing method, characterized in that: Applied to message detection nodes, including: In response to receiving a first message sent by a client, a second message carrying redirection information is sent to the client; wherein the redirection information is used to instruct the client to issue an alarm prompt for blocking the first message that matches the hit; the redirection information includes: preset parameters; A third message sent by the client is received, and corresponding processing is performed on the third message based on a match between the third message and the preset parameters; the third message is a message resent to the first message based on a user operation.

2. The message processing method according to claim 1, characterized in that: The redirection information includes: access location information, address information of the first network service node and the preset parameters; and the sending of the second message to the client carrying the redirection information includes: A second message is sent to the client, carrying the access location information, the address information of the first network service node and the preset parameters generated based on the first message; wherein the second message is used to instruct the client to access the first network service node based on the second message, and to issue an alarm prompt for the first message based on the information fed back by the first network service node.

3. The message processing method according to claim 2, characterized in that: The preset parameter includes at least one of the following: a first sub-parameter and a second sub-parameter; wherein the first sub-parameter is formed based on the time of receiving the first message; and the second sub-parameter is formed by encrypting the time of receiving the first message.

4. The message processing method according to claim 1, characterized in that: The method further comprises: Based on a match result between any information in the first message and preset blocking information, a blocking match hit result for the first message is determined.

5. The message processing method according to claim 1, characterized in that: The performing corresponding processing on the third message based on the matching between the third message and the preset parameter includes: If any information in the third message matches the preset blocking information, and the first parameter in the third message matches the preset parameter, the third message is released.

6. The message processing method according to claim 5, characterized in that: The method further comprises: Counting the number of the plurality of third messages released within a predetermined historical period; If the number is greater than a preset threshold, the preset blocking information is deleted.

7. A message processing method, characterized in that: Applied to the client, including: Sending a first message to a message detection node, and receiving a second message sent by the message detection node in response to the first message; wherein the second message includes redirection information; the redirection information is used to instruct the client to issue an alarm prompt for blocking the first message that matches the hit; the redirection message includes: preset parameters; Based on the user operation, a third message is resent to the message detection node for the first message, so that the message detection node performs corresponding processing on the third message based on a match between the third message and the preset parameters.

8. The message processing method according to claim 7, characterized in that: After sending the first message to the message detection node and receiving the second message sent by the message detection node in response to the first message, the method further includes: Based on the address information of the first network service node in the second message, a fourth message is sent to the first network service node carrying the access location information and the preset parameters; receiving feedback information fed back by the first network service node in response to the fourth message; wherein the feedback information includes: the access location information and the preset parameters; the feedback information is used to instruct the client to issue an alarm prompt for the first message; In response to the user's operation triggering an active release operation, the first parameter determined based on the preset parameter is added to the first message to form the third message and sent to the message detection node.

9. A message processing device, characterized in that: Applied to message detection nodes, including: A first sending unit is used for sending a second message to the client in response to receiving a first message sent by the client, carrying redirection information; wherein the redirection information is used to instruct the client to issue an alarm prompt for blocking the first message that matches the hit; the redirection information includes: preset parameters; A message processing unit is used to receive a third message sent by the client and perform corresponding processing on the third message based on a match between the third message and the preset parameters; the third message is a message resent for the first message based on a user operation.

10. A message processing device, characterized in that: Applied to the client, including: A second sending unit, configured to send a first message to a message detection node, and receive a second message sent by the message detection node in response to the first message; wherein the second message includes redirection information; the redirection information is used to instruct the client to issue an alarm prompt for the first message that is blocked and matched; the redirection message includes: preset parameters; The second sending unit is used to resend a third message to the message detection node for the first message based on a user operation, so that the message detection node can perform corresponding processing on the third message based on a match between the third message and the preset parameters.

11. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the steps of the method according to any one of claims 1 to 6, or implements the steps of the method according to claim 7 or 8 when executing the computer program.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 6, or implements the steps of the method according to claim 7 or 8.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 6, or implements the steps of the method according to claim 7 or 8.

Citation Information

Patent Citations

  • Safety detection method and device for database operation and operating system

    CN112668023A

  • Access request redirection method, system and device and storage medium

    CN114697380A

  • Message processing method and device, equipment and storage medium

    CN116015841A

  • Security control method and device for network traffic and computer equipment

    CN116582365A

  • Packet loss processing method and device, switch, sending equipment and data transmission system

    CN116830543A