A method and device for processing data request

Through collaboration between the client and the server, the verification image and binary data are passed through the delivery of verification images, the problem of frequent update of data request verification information is solved, automated checksum and efficient verification is realized, and user experience and server performance is improved.

CN113742611BActive Publication Date: 2025-03-18BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110013018.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-06
Publication Date
2025-03-18
Estimated Expiration
2041-01-06

AI Technical Summary

Technical Problem

The existing data request processing methods are constantly updated due to the continuous update of hardware information or software information, which leads to users' need to constantly update verification information, which has a poor user experience.

Method used

The client sends a data request to the server, the server selects a verification picture and sends a verification data packet, the client downloads and displays a verification picture, and the user selects some feature information, including the coordinates and color information of the pixel point, and converts it into binary data and sends it to the server, and the server performs verification.

Benefits of technology

It realizes automated data request verification, filters invalid requests, improves verification efficiency, improves user experience, and improves server-side processing performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113742611B_ABST
    Figure CN113742611B_ABST
Patent Text Reader

Abstract

The present invention discloses a data request processing method and device, and relates to the field of computer technology. The specific implementation of the method includes: sending a data request to a server; receiving a verification data packet for the data request sent by the server, and obtaining a verification picture based on the verification data packet, and displaying the verification picture so that the user can select part of the feature information included in the verification picture; providing the part of the feature information to the server so that the server can verify the data request based on the part of the feature information; and receiving the processing result of the data request by the server according to the result of the verification. This implementation can automatically verify the data request and filter invalid data requests, and the verification method is convenient and fast, which improves the efficiency of data request verification, ensures the effectiveness and security of data requests, improves user experience, and can improve the processing performance of the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a data request processing method and device. Background Art

[0002] When processing data requests, the server needs to verify the authenticity of the data request and process the data request accordingly based on the verification results to prevent fake orders. The existing data request processing method usually verifies by collecting the hardware information of the client device or the software information of the client itself, such as CPU speed, memory capacity, screen size, software list, etc., to ensure the authenticity of the client.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0004] In the existing data request processing method, since hardware information or software information is constantly updated, during the data request processing, verification information needs to be continuously updated by the user, resulting in a poor user experience. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a data request processing method and device, which can automatically verify data requests and filter invalid data requests. The verification method is convenient and fast, which improves the efficiency of data request verification, ensures the validity and security of data requests, improves user experience, and can improve the processing performance of the server.

[0006] To achieve the above object, according to one aspect of an embodiment of the present invention, a data request processing method is provided, the method being applied to a server, comprising:

[0007] Send data request to the server;

[0008] receiving a verification data packet for the data request sent by the server, acquiring a verification picture based on the verification data packet, and displaying the verification picture so that a user can select part of the feature information included in the verification picture;

[0009] Providing the partial characteristic information to the server, so that the server verifies the data request based on the partial characteristic information;

[0010] Based on the verification result, the processing result of the data request by the server is received.

[0011] Optionally, the verification data packet includes a URL address;

[0012] Acquiring a verification image based on the verification data packet includes:

[0013] Parsing a URL address from the verification data packet;

[0014] A connection is established with the URL address, and a verification image is downloaded from the URL address.

[0015] Optionally, the verification data packet includes a data header and a data body, and the URL address is stored in the data header or the data body;

[0016] Parsing the URL address from the verification data packet includes:

[0017] The URL address is parsed from the data header or the data body.

[0018] Optionally, the partial feature information includes:

[0019] The verification image includes position information of at least one pixel and color information of at least one pixel.

[0020] Optionally, the method further comprises:

[0021] Combining the position information of the at least one pixel and the color information of the at least one pixel into pixel information;

[0022] and converting the pixel point information into binary data;

[0023] Providing the partial feature information to the server includes:

[0024] The binary data is provided to the server.

[0025] Optionally, receiving a processing result of the data request by the server includes:

[0026] When the verification result indicates that the data request is valid, a data page related to the data request sent by the server is received.

[0027] To achieve the above object, according to another aspect of an embodiment of the present invention, a data request processing method is provided, the method being applied to a server, comprising:

[0028] Receive a data request sent by a client, and select a verification image for the data request;

[0029] Sending a verification data packet for the data request to the client, wherein the verification data packet includes a URL address of the verification image, so that the client determines part of the feature information of the verification image based on the verification data packet;

[0030] receiving the partial characteristic information sent by the client, and verifying the data request based on the partial characteristic information;

[0031] The data request is processed according to the verification result.

[0032] Optionally, verifying the data request based on the partial feature information includes:

[0033] Comparing the partial feature information with the selected verification picture;

[0034] If the comparison result indicates that the partial feature information is consistent with a portion of the selected verification picture, it is determined that the data request is valid.

[0035] Optionally, receiving the partial characteristic information sent by the client, and verifying the data request based on the partial characteristic information includes:

[0036] Receive binary data sent by the client, and verify the data request based on the binary data, wherein the binary data is converted from position information of at least one pixel point included in the partial feature information and color information of the at least one pixel point.

[0037] Optionally, verifying the data request based on the binary data includes:

[0038] Converting the binary data into position information of the at least one pixel and color information of the at least one pixel;

[0039] Locating a comparison target range in the selected verification image according to the position information of the at least one pixel point;

[0040] The color information of the at least one pixel is compared with the color information of the pixels within the comparison target range.

[0041] Optionally, selecting a verification image for the data request includes:

[0042] Based on a preset picture library, a verification picture is selected from the picture library for the data request.

[0043] According to another aspect of an embodiment of the present invention, a data request verification device is provided, and the device is applied to a client, comprising:

[0044] Communication module, used to send data requests to the server;

[0045] A feature selection module, used to receive a verification data packet sent by the server for the data request, obtain a verification picture based on the verification data packet, and display the verification picture so that a user can select part of the feature information included in the verification picture;

[0046] The communication module is further used to provide the partial characteristic information to the server, so that the server verifies the data request based on the partial characteristic information;

[0047] The access module is used to receive the processing result of the data request by the server according to the verification result.

[0048] According to another aspect of an embodiment of the present invention, a data request verification device is provided, and the device is applied to a server, comprising:

[0049] An image selection module is used to receive a data request sent by a client and select a verification image for the data request;

[0050] A communication module, configured to send a verification data packet for the data request to the client, wherein the verification data packet includes a URL address of the verification image, so that the client determines part of the feature information of the verification image based on the verification data packet;

[0051] A verification module, configured to receive the partial characteristic information sent by the client, and verify the data request based on the partial characteristic information;

[0052] The processing module is used to process the data request according to the verification result.

[0053] According to another aspect of an embodiment of the present invention, there is provided an electronic device, including:

[0054] one or more processors;

[0055] a storage device for storing one or more programs,

[0056] When the one or more programs are executed by the one or more processors, the one or more processors implement the data request processing method provided by the present invention.

[0057] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the data request processing method provided by the present invention is implemented.

[0058] An embodiment of the above invention has the following advantages or beneficial effects: because when the client sends a data request to the server, the server selects a verification image and sends a verification data packet to the client, the client downloads the verification image based on the URL in the verification data packet, selects part of the feature information from the verification image, including the coordinate information and color information of the pixel points, combines them and converts them into binary data and sends them to the server, the server converts the binary data into the coordinate information and color information of the pixel points, searches for the comparison range of the selected verification image based on the coordinate information, and compares the color information of the pixel points with the comparison range of the verification image, thereby verifying the validity of the data request. Therefore, the technical problem that the verification information of the data request needs to be continuously updated by the user due to the continuous updating of hardware information or software information is overcome, thereby achieving the technical effect of being able to automatically verify the data request and filter out invalid data requests, and the verification method is convenient and fast, which improves the efficiency of data request verification, ensures the validity and security of the data request, improves the user experience, and can improve the processing performance of the server.

[0059] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0061] Figure 1 is an exemplary system architecture diagram suitable for use in a data request processing method or a data request verification device according to an embodiment of the present invention;

[0062] Figure 2 is a schematic diagram of the main process of the data request processing method according to an embodiment of the present invention;

[0063] Figure 3 is a schematic diagram of a detailed process of a data request processing method according to an embodiment of the present invention;

[0064] Figure 4 is a schematic diagram of main modules of a data request verification device according to an embodiment of the present invention;

[0065] Figure 5 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0066] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0067] URL: Uniform Resource Locator, is the address of standard resources on the Internet, mainly including the protocol part, domain name part and path part.

[0068] Figure 1 An exemplary system architecture diagram of a data request processing method or a data request verification device suitable for use in an embodiment of the present invention is shown. Figure 1 As shown, an exemplary system architecture of the data request processing method or data request verification device according to an embodiment of the present invention includes:

[0069] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0070] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0071] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0072] The server 105 may be a server that provides various services, such as a backend management server that provides support for shopping websites browsed by users using the terminal devices 101, 102, and 103. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as product information) to the terminal devices 101, 102, and 103.

[0073] It should be noted that the data request processing method provided in the embodiment of the present invention is generally executed by the terminal devices 101 , 102 , 103 and the server 105 , and accordingly, the data request verification device is generally arranged in the terminal devices 101 , 102 , 103 and the server 105 .

[0074] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0075] Figure 2 FIG. 1 is a schematic diagram of the main flow of the data request processing method according to an embodiment of the present invention. Figure 2 As shown, the data request processing method of the present invention includes:

[0076] Step S201, sending a data request to the server.

[0077] Exemplarily, when a user accesses a server through a client, in order to ensure the security of a data request, the client first sends a data request to the server so that the server verifies the data request, and access is allowed only after the verification is passed.

[0078] Step S202, receiving a verification data packet sent by the server for the data request, obtaining a verification picture based on the verification data packet, and displaying the verification picture so that the user can select part of the feature information included in the verification picture.

[0079] Exemplarily, after receiving the data request from the client, the server selects a verification picture from a preset picture library and sends a verification data packet to the client, wherein the verification data packet includes the URL address information of the verification picture. After receiving the verification data packet sent by the server, the client parses the URL address from the verification data packet and downloads the verification picture to the local computer according to the URL address. The partial feature information randomly selected by the user from the verification picture. Among them, the partial feature information of the verification picture includes: the position information of at least one pixel point of the verification picture and the color information of at least one pixel point.

[0080] Step S203: providing the partial characteristic information to the server, so that the server verifies the data request based on the partial characteristic information.

[0081] Exemplarily, the client converts part of the feature information of the verification image, that is, converts the position information and color information of at least one pixel into binary data, and sends it to the server. After receiving the binary data, the server converts the binary data into the position information and color information of at least one pixel. The server determines the comparison range of the selected verification image based on the position information of the pixel, and compares the color information of the pixel with the comparison range of the selected verification image, determines the verification result according to the comparison results of the two, processes the data request, and sends the processing result to the client.

[0082] Step S204: receiving the processing result of the data request by the server according to the verification result.

[0083] Exemplarily, after receiving the processing result of the data request from the server, the client can access or be denied access to the relevant service according to the verification result. If the verification result is passed, the client can continue to access the relevant service.

[0084] In an embodiment of the present invention, by sending a data request to a server; receiving a verification data packet for the data request sent by the server, and obtaining a verification picture based on the verification data packet, and displaying the verification picture so that a user can select part of the feature information included in the verification picture; providing the part of the feature information to the server so that the server verifies the data request based on the part of the feature information; receiving the processing result of the data request by the server according to the result of the verification, etc., the data request can be automatically verified and invalid data requests can be filtered out, and the verification method is convenient and fast, which improves the efficiency of data request verification, ensures the validity and security of data requests, improves user experience, and can improve the processing performance of the server.

[0085] Figure 3 is a schematic diagram of a detailed process of a data request processing method according to an embodiment of the present invention. Figure 3 As shown, the data request processing method of the present invention includes:

[0086] Step S301: The client sends a data request to the server.

[0087] For example, when a user accesses a server through a client to perform operations, including login, browsing, confirmation, etc., each step of the operation requires sending a data request to the server, and the next step can only be performed after the server agrees / confirms. If the server determines that the access to the data request is abnormal, it will reject the client's data request to prevent abnormal access.

[0088] For example, if a user wants to access the server to perform an operation, the user sends a data request to the server through the client. The types of data requests may include various requests such as registration, login, browsing, favorites, ordering, and payment.

[0089] Step S302: the server selects a verification picture.

[0090] For example, after receiving the data request from the client, the server needs to verify the authenticity of the data request before returning the relevant service of the data request. The server can verify the data request of the client by verifying the picture. The server randomly selects the verification picture from the preset picture library.

[0091] Step S303: the server sends a verification data packet to the client.

[0092] Exemplarily, after the server completes the selection of the verification image, it sends the verification data packet to the client; wherein the verification data packet may include a data body and a data header. The verification data packet may include a URL (i.e., Uniform Resource Locator) address, which may be stored in the data header of the verification data packet or in the data body of the verification data packet. The URL address is the URL address of the verification image, and the verification image may be accessed (obtained) through the URL address of the verification image.

[0093] Furthermore, the verification data packet may include a verification picture, and the verification picture may be stored in a data body of the verification data packet.

[0094] Furthermore, the verification data packet is determined by the server based on a pre-agreed rule between the client and the server.

[0095] Step S304: the client downloads the verification image.

[0096] Exemplarily, after receiving the verification data packet sent by the server, the client accesses the URL address of the verification image according to the URL address of the verification image stored in the data header or data body of the verification data packet and downloads the verification image locally.

[0097] Furthermore, after receiving the verification data packet sent by the server, the client downloads the verification image stored in the data body of the verification data packet to the local computer.

[0098] Furthermore, the verification image may be an image of 64*64 pixels in size, or an image of other pixel sizes, which is determined or selected according to a pre-agreed rule between the client and the server.

[0099] Step S305: the client displays the verification picture to allow the user to select part of the feature information.

[0100] Exemplarily, after the client downloads the verification image to the local computer according to the URL address of the verification image, the verification image is displayed so that the user can randomly select part of the characteristic information of the verification image. Part of the characteristic information includes the position information and color information of a pixel point. For example, the position information of the pixel point is the coordinate (x i ,y i ), the acquisition coordinate is (x i ,y i ) pixel color information, the pixel color is represented by RGB function representation, the RGB function representation represents the color of the pixel by red (R), green (G), blue (B) three values, the value range of red (R), green (G), blue (B) is between 0 and 255, correspondingly, the position information is the coordinate (x i ,y i ) is the RGB color information of the pixel point (R i , G i , B i ).

[0101] Exemplarily, the verification image pointed to by the URL address can be a 64*64 pixel image, corresponding to 4096 pixels. The client randomly selects a pixel from the 4096 pixels and obtains the color corresponding to the pixel, thereby improving the security of data request verification.

[0102] Furthermore, the client displays the verification image, and the user can select multiple pixels or one or more regions, where the region is composed of multiple pixels. Accordingly, the partial feature information includes the position information and color information of multiple pixels of the verification image.

[0103] Furthermore, the representation of pixel color may also adopt RGBA function representation, HSL function representation, HSLA function representation, etc.

[0104] Step S306: Process part of the feature information.

[0105] For example, after the user selects part of the feature information of the verification image, the client obtains the location information as the coordinates (x i ,y i ) pixels and collect the color information corresponding to the pixels (R i , G i , B i ), the pixel coordinate information and color information are combined to obtain the pixel information (x i ,y i , Ri , G i , B i ). The client converts the pixel information into binary data to obtain binary data of some feature information. For example, the pixel information is (x m ,y m , R m , G m , B m ), after being converted into binary data, the binary data of some feature information is 0101011011011000101. Among them, the x in the coordinate information of the pixel point m Converted into the five-bit binary data "01010" from the first to the fifth bit, y m Converted into the five-bit binary data "11011" from the sixth to the tenth bit; the R in the color information of the pixel m Converted into the three-digit binary data "011" from the eleventh to the thirteenth digit, G m Converted into three binary data "000" from the 14th to the 16th digit, B m Converted into three-digit binary data "101" for the seventeenth to nineteenth digits.

[0106] Step S307: Send binary data of part of the characteristic information to the server.

[0107] Exemplarily, after the client converts part of the feature information in the verification image selected by the user, the client sends the binary data of the part of the feature information to the server.

[0108] Step S308: the server processes the binary data.

[0109] For example, after receiving the binary data sent by the client, the server converts the binary data into partial feature information in the verification image, that is, pixel information (x i ,y i , R i , G i , B i ).

[0110] Step S309: the server locates the comparison range.

[0111] Exemplarily, the server converts the received binary data into partial feature information in the verification image, that is, pixel information (x i ,y i , R i , G i , B i), the comparison range of the verification image on the server is determined according to the coordinate information in the pixel point information, which is used to compare with part of the feature information of the verification image sent by the client.

[0112] Step S310: the server determines the verification result.

[0113] Exemplarily, after the server determines the comparison range of the verification image, it compares the color information of the pixel information in the comparison range with the partial feature information of the verification image downloaded by the client based on the URL address, that is, it compares the color information of the pixel information of the verification image sent by the client based on the URL address with the color information of the pixel points in the comparison range of the verification image on the server; it determines whether the two are consistent, if the two are consistent, the verification result of the server is passed; if the two are inconsistent, the verification result of the server is not passed. After the server completes the verification, it returns the verification result to the client.

[0114] Step S311, the server processes the data request.

[0115] Exemplarily, after the server determines the verification result of the verification image, it processes the data request according to the verification result. If the verification result is passed, the client is allowed to access the relevant service; if the verification result is failed, the client is not allowed to access the relevant service.

[0116] Step S312: the server sends a data request processing result.

[0117] Exemplarily, after the server processes the data request according to the verification result, the server sends the processing result of the data request to the client.

[0118] Step S313: the client accesses related services.

[0119] Exemplarily, the client receives the data request processing result sent by the server. If the verification result is passed, it means that the server has passed the client's verification, the client's data request is valid, and the client is allowed to access related services. The client can access related services, including: registration, login, browsing, favorites, ordering, payment and other operations; if the verification result is failed, it means that the server has not passed the client's verification, the client's data request is invalid, and the client is not allowed to access related services. The client's access is denied and cannot access related services.

[0120] Furthermore, if the server fails to pass the client's verification, it means that the client may be artificially simulating the interface, and there is an abnormality in the access of the data request, and the client's abnormal access is denied.

[0121] In an embodiment of the present invention, through the steps of sending a data request from a client to a server; the server selects a verification picture; the server sends a verification data packet to the client; the client downloads the verification picture; the client displays the verification picture to allow the user to select part of the feature information; processing part of the feature information; sending binary data of part of the feature information to the server; the server processes the binary data; the server locates the comparison range; the server determines the verification result; the server processes the data request; the server sends the data request processing result; the client accesses related services, etc., the data request can be automatically verified and invalid data requests can be filtered out, and the verification method is convenient and fast, which improves the efficiency of data request verification, ensures the validity and security of data requests, improves user experience, and can improve the processing performance of the server.

[0122] Figure 4 is a schematic diagram of the main modules of the data request verification device according to an embodiment of the present invention, such as Figure 4 As shown, the data request verification device 400 of the present invention includes:

[0123] The communication module 401 is used to send a data request to the server.

[0124] Exemplarily, when a user accesses a server through a client, in order to ensure the security of a data request, the client first sends a data request to the server through the communication module 401 so that the server verifies the data request, and access is allowed only after the verification is passed.

[0125] The feature selection module 402 is used to receive a verification data packet sent by the server for the data request, obtain a verification picture based on the verification data packet, and display the verification picture so that the user can select part of the feature information included in the verification picture.

[0126] Exemplarily, after receiving the data request from the client, the server selects a verification picture from a preset picture library and sends a verification data packet to the client, wherein the verification data packet includes the URL address information of the verification picture. After receiving the verification data packet sent by the server through the communication module 401, the client parses the URL address from the verification data packet and downloads the verification picture to the local computer according to the URL address. The feature selection module 402 allows the user to randomly select partial feature information from the verification picture. Among them, the partial feature information of the verification picture includes: the position information of at least one pixel point of the verification picture and the color information of at least one pixel point.

[0127] The communication module 401 is further used to provide the partial characteristic information to the server, so that the server verifies the data request based on the partial characteristic information.

[0128] Exemplarily, the client converts part of the feature information of the verification image, that is, converts the position information and color information of at least one pixel into binary data, and sends it to the server through the communication module 401. After receiving the binary data, the server converts the binary data into the position information and color information of at least one pixel. The server determines the comparison range of the selected verification image based on the position information of the pixel, and compares the color information of the pixel with the comparison range of the selected verification image, determines the verification result according to the comparison results of the two, processes the data request, and sends the processing result to the client.

[0129] The access module 403 is used to receive the processing result of the data request by the server according to the verification result.

[0130] Exemplarily, after the client receives the processing result of the data request from the server through the communication module 401, the access module 403 can access or be denied access to the relevant service according to the verification result. If the verification result is passed, the access module 403 can continue to access the relevant service.

[0131] In an embodiment of the present invention, through modules such as a communication module, a feature selection module and an access module, data requests can be automatically verified and invalid data requests can be filtered out. In addition, the verification method is convenient and fast, which improves the efficiency of data request verification, ensures the validity and security of data requests, improves user experience, and can improve the processing performance of the server.

[0132] Figure 5 is a schematic diagram of the structure of a computer system of a terminal device suitable for implementing an embodiment of the present invention, such as Figure 5 As shown, the computer system 500 of the terminal device in the embodiment of the present invention includes:

[0133] A central processing unit (CPU) 501 can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage section 508 into a random access memory (RAM) 503. Various programs and data required for the operation of the system 500 are also stored in the RAM 503. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0134] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.

[0135] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a 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 the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.

[0136] It should be noted that the computer-readable medium shown in the present invention 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 invention, 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 invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. 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. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, 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 appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0137] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0138] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes a communication module, a feature selection module and an access module. The names of these modules do not constitute a limitation on the modules themselves in some cases, for example, the communication module may also be described as a "module for sending data requests to a server".

[0139] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: sending a data request to a server; receiving a verification data packet for the data request sent by the server, and obtaining a verification picture based on the verification data packet, and displaying the verification picture so that the user can select part of the feature information included in the verification picture; providing the part of the feature information to the server, so that the server can verify the data request based on the part of the feature information; and receiving the processing result of the data request by the server according to the verification result.

[0140] According to the technical solution of the embodiment of the present invention, data requests can be automatically verified and invalid data requests can be filtered out. In addition, the verification method is convenient and fast, which improves the efficiency of data request verification, ensures the validity and security of data requests, improves user experience, and can improve the processing performance of the server.

[0141] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A data request processing method, characterized in that: The method is applied to a client and includes: Send data request to the server; receiving a verification data packet for the data request sent by the server, acquiring a verification picture based on the verification data packet, and displaying the verification picture so that a user can select partial feature information included in the verification picture; the partial feature information includes: position information of at least one pixel point of the verification picture and color information of the at least one pixel point; Providing the partial feature information to the server so that the server verifies the data request based on the partial feature information; wherein the server verifies the data request based on the partial feature information, including: determining a comparison range of a verification picture of the server according to coordinate information in the pixel point information; comparing color information in the pixel point information with color information of pixels within the comparison range of the verification picture of the server; Based on the verification result, the processing result of the data request by the server is received.

2. The method according to claim 1, characterized in that The verification data packet includes a URL address; Acquiring a verification image based on the verification data packet includes: Parsing a URL address from the verification data packet; A connection is established with the URL address, and a verification image is downloaded from the URL address.

3. The method according to claim 2, characterized in that The verification data packet includes a data header and a data body, and the URL address is stored in the data header or the data body; Parsing the URL address from the verification data packet includes: The URL address is parsed from the data header or the data body.

4. The method according to claim 1, characterized in that: The method further comprises: Combining the position information of the at least one pixel and the color information of the at least one pixel into pixel information; and converting the pixel point information into binary data; Providing the partial feature information to the server includes: The binary data is provided to the server.

5. The method according to claim 1, characterized in that Receiving a processing result of the data request by the server, including: When the verification result indicates that the data request is valid, a data page related to the data request sent by the server is received.

6. A data request processing method, characterized in that: The method is applied to the server, and includes: Receive a data request sent by a client, and select a verification image for the data request; Sending a verification data packet for the data request to the client, wherein the verification data packet includes a URL address of the verification image, so that the client determines part of the feature information of the verification image based on the verification data packet; Receiving the partial feature information sent by the client, and verifying the data request based on the partial feature information; specifically comprising: receiving binary data sent by the client, wherein the binary data is converted from the position information of at least one pixel and the color information of the at least one pixel included in the partial feature information; converting the binary data into the position information of the at least one pixel and the color information of the at least one pixel; locating a comparison target range in the selected verification image according to the position information of the at least one pixel; comparing the color information of the at least one pixel with the color information of the pixels within the comparison target range; The data request is processed according to the verification result.

7. The method according to claim 6, characterized in that Verifying the data request based on the partial characteristic information includes: Comparing the partial feature information with the selected verification picture; If the comparison result indicates that the partial feature information is consistent with a portion of the selected verification picture, it is determined that the data request is valid.

8. The method according to claim 6 or 7, characterized in that: Selecting a verification image for the data request includes: Based on a preset picture library, a verification picture is selected from the picture library for the data request.

9. A data request processing device, characterized in that: The device is applied to a client and includes: Communication module, used to send data requests to the server; a feature selection module, configured to receive a verification data packet sent by the server for the data request, obtain a verification image based on the verification data packet, and display the verification image so that a user can select partial feature information included in the verification image; the partial feature information includes: position information of at least one pixel point of the verification image and color information of the at least one pixel point; The communication module is further used to provide the partial feature information to the server, so that the server verifies the data request based on the partial feature information; wherein the server determines the comparison range of the verification picture of the server according to the coordinate information in the pixel point information; and compares the color information in the pixel point information with the color information of the pixel points within the comparison range of the verification picture of the server; The access module is used to receive the processing result of the data request by the server according to the verification result.

10. A data request processing device, characterized in that: The device is applied to a server, and includes: An image selection module is used to receive a data request sent by a client and select a verification image for the data request; A communication module, configured to send a verification data packet for the data request to the client, wherein the verification data packet includes a URL address of the verification image, so that the client determines part of the feature information of the verification image based on the verification data packet; A verification module, used to receive the partial feature information sent by the client, and verify the data request based on the partial feature information; specifically used to: receive binary data sent by the client, wherein the binary data is converted from the position information of at least one pixel and the color information of the at least one pixel included in the partial feature information; convert the binary data into the position information of the at least one pixel and the color information of the at least one pixel; locate the comparison target range in the selected verification image according to the position information of the at least one pixel; compare the color information of the at least one pixel with the color information of the pixels within the comparison target range; The processing module is used to process the data request according to the verification result.

11. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.

12. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Payment method and apparatus

    CN107369016A

  • Method and device for verifying client

    CN112187702A