CN113742611A - Data request processing method and device - Google Patents

Data request processing method and device Download PDF

Info

Publication number
CN113742611A
CN113742611A CN202110013018.5A CN202110013018A CN113742611A CN 113742611 A CN113742611 A CN 113742611A CN 202110013018 A CN202110013018 A CN 202110013018A CN 113742611 A CN113742611 A CN 113742611A
Authority
CN
China
Prior art keywords
verification
data request
server
data
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110013018.5A
Other languages
Chinese (zh)
Inventor
柏玉鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202110013018.5A priority Critical patent/CN113742611A/en
Publication of CN113742611A publication Critical patent/CN113742611A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a data request processing method and device, and relates to the technical field of computers. The specific implementation mode of the method comprises the following steps: sending a data request to a server; receiving a verification data packet which is sent by the server and aims at the data request, acquiring a verification picture based on the verification data packet, and displaying the verification picture so that a user can select part of feature information included in the verification picture; providing the partial characteristic information to the server, so that the server verifies the data request based on the partial characteristic information; and receiving a processing result of the server to the data request according to the verification result. The implementation method can automatically check the data request, filter the invalid data request, is convenient and quick, improves the efficiency of data request verification, ensures the validity and the safety of the data request, improves the user experience, and can improve the processing performance of the server.

Description

Data request processing method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data request processing method and apparatus.
Background
When the server processes the data request, the server needs to verify the authenticity of the data request, and correspondingly processes the data request according to the verification result so as to prevent the bill-swiping behavior. In an existing data request processing manner, verification is usually performed by collecting hardware information of a device where a client is located or software information of the client itself, for example, CPU speed, memory capacity, screen size, software list, and the like, so as to ensure authenticity of the client.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
in the existing data request processing mode, due to the fact that hardware information or software information is updated continuously, in the data request processing process, verification information needs to be updated continuously by a user, and user experience is poor.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data request processing method and apparatus, which can automatically check a data request, and filter an invalid data request, and the verification method is convenient and fast, improves efficiency of data request verification, ensures validity and security of a data request, improves user experience, and can improve processing performance of a server.
In order to achieve the above object, according to an aspect of the embodiments of the present invention, there is provided a data request processing method, which is applied to a server and includes:
sending a data request to a server;
receiving a verification data packet which is sent by the server and aims at the data request, acquiring a verification picture based on the verification data packet, and displaying the verification picture so that a user can select part of feature information included in the verification picture;
providing the partial characteristic information to the server, so that the server verifies the data request based on the partial characteristic information;
and receiving a processing result of the server to the data request according to the verification result.
Optionally, the verification data packet includes a URL address;
obtaining a verification picture based on the verification data packet, including:
resolving a URL address from the verification data packet;
and establishing connection with the URL address, and downloading a verification picture from the URL address.
Optionally, the verification packet includes a data header and a data body, and the URL address is stored in the data header or the data body;
parsing out a URL address from the verification packet, including:
and analyzing the URL address from the data header or the data body.
Optionally, the partial feature information includes:
and the position information of at least one pixel point of the verification picture and the color information of the at least one pixel point.
Optionally, the method further comprises:
combining the position information of the at least one pixel point and the color information of the at least one pixel point into pixel point information;
converting the pixel point information into binary data;
providing the partial feature information to the server, including:
and providing the binary data to the server.
Optionally, receiving a processing result of the server to the data request includes:
and when the verification result indicates that the data request is valid, receiving a data page which is sent by the server and is related to the data request.
In order to achieve the above object, according to another aspect of the embodiments of the present invention, there is provided a data request processing method, which is applied to a server and includes:
receiving a data request sent by a client, and selecting a verification picture for the data request;
sending a verification data packet for the data request to the client, wherein the verification data packet comprises a URL (uniform resource locator) address of the verification picture, so that the client determines partial characteristic information of the verification picture based on the verification data packet;
receiving the partial characteristic information sent by the client, and verifying the data request based on the partial characteristic information;
and processing the data request according to the verification result.
Optionally, verifying the data request based on the partial feature information includes:
comparing the partial feature information with the selected verification picture;
and if the comparison result indicates that the part of the characteristic information is consistent with the selected part of the verification picture, determining that the data request is valid.
Optionally, receiving the partial feature information sent by the client, and verifying the data request based on the partial feature information includes:
receiving binary data sent by the client, and verifying the data request based on the binary data, wherein the binary data is formed by converting position information of at least one pixel point and color information of the at least one pixel point, which are included in the partial characteristic information.
Optionally, validating the data request based on the binary data comprises:
converting the binary data into position information of the at least one pixel point and color information of the at least one pixel point;
positioning a comparison target range in the selected verification picture according to the position information of the at least one pixel point;
and comparing the color information of the at least one pixel point with the color information of the pixel points in the comparison target range.
Optionally, selecting a verification picture for the data request includes:
and selecting a verification picture for the data request from the picture library based on a preset picture library.
According to still another aspect of the embodiments of the present invention, there is provided a data request verification apparatus, applied to a client, including:
the communication module is used for sending a data request to the server;
the characteristic selection module is used for receiving a verification data packet which is sent by the server and aims at the data request, acquiring a verification picture based on the verification data packet and displaying the verification picture so as to enable a user to select part of characteristic information included in the verification picture;
the communication module is further used for providing the partial characteristic information to the server so that the server verifies the data request based on the partial characteristic information;
and the access module is used for receiving the processing result of the server to the data request according to the verification result.
According to another aspect of the embodiments of the present invention, there is provided a data request verification apparatus, which is applied to a server, and includes:
the picture selection module is used for receiving a data request sent by a client and selecting a verification picture for the data request;
a communication module, configured to send a verification data packet for the data request to the client, where the verification data packet includes a URL address of the verification picture, so that the client determines, based on the verification data packet, partial feature information of the verification picture;
the verification module is used for receiving the partial characteristic information sent by the client and verifying the data request based on the partial characteristic information;
and the processing module is used for processing the data request according to the verification result.
According to another aspect of an embodiment of the present invention, there is provided an electronic apparatus including:
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 data request processing method provided by the present invention.
According to still another aspect of embodiments of the present invention, there is provided a computer-readable medium on which a computer program is stored, the program, when executed by a processor, implementing a data request processing method provided by the present invention.
One embodiment of the above invention has the following advantages or benefits: because the server side selects the verification picture and sends the verification data packet to the client side when the client side sends the data request to the server side, the client side downloads the verification picture based on the URL in the verification data packet, selects partial characteristic information comprising the coordinate information and the color information of the pixel points from the verification picture, combines the partial characteristic information and the coordinate information to convert the partial characteristic information into binary data and sends the binary data to the server side, the server side converts the binary data into the coordinate information and the color information of the pixel points, searches the comparison range of the selected verification picture based on the coordinate information and compares the color information of the pixel points with the comparison range of the verification picture, thereby the technical means for verifying the validity of the data request is adopted, the technical problems that the hardware information or the software information is continuously updated, the verification information of the data request needs to be continuously updated by a user, the user experience is poor are solved, and the data request can be automatically verified, invalid data requests are filtered, the verification method is convenient and fast, the data request verification efficiency is improved, the validity and the safety of the data requests are guaranteed, the user experience is improved, and the technical effect of the processing performance of the server side can be improved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is an exemplary system architecture diagram of a data request processing method or data request validation apparatus suitable for use with embodiments of the present invention;
FIG. 2 is a schematic diagram of a main flow of a data request processing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a detailed flow of a data request processing method according to an embodiment of the invention;
FIG. 4 is a schematic diagram of the main modules of a data request validation apparatus according to an embodiment of the present invention;
fig. 5 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
URL: a Uniform Resource Locator, which is an address of a standard Resource on the internet and mainly includes a protocol portion, a domain name portion, and a path portion.
Fig. 1 shows an exemplary system architecture diagram of a data request processing method or a data request verification apparatus suitable for being applied to an embodiment of the present invention, and as shown in fig. 1, the exemplary system architecture of the data request processing method or the data request verification apparatus of the embodiment of the present invention includes:
as shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a shopping application, a web browser application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server that provides various services, such as a background management server that supports shopping websites browsed by users using the terminal devices 101, 102, 103. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back the processing result (e.g., product information) to the terminal devices 101, 102, and 103.
It should be noted that the data request processing method provided by the embodiment of the present invention is generally executed by the terminal devices 101, 102, and 103 and the server 105, and accordingly, the data request verifying apparatus is generally disposed in the terminal devices 101, 102, and 103 and the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 2 is a schematic diagram of a main flow of a data request processing method according to an embodiment of the present invention, and as shown in fig. 2, the data request processing method of the present invention includes:
step S201, sending a data request to a server.
For example, when a user accesses the server through the client, in order to ensure the security of the data request, the client first sends the data request to the server so that the server verifies the data request, and the data request is accessible after the verification passes.
Step S202, receiving a verification data packet aiming at the data request sent by the server, obtaining a verification picture based on the verification data packet, and displaying the verification picture so that a user can select part of feature information included in the verification picture.
Illustratively, after receiving a data request from a client, a 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 URL address information of the verification picture. After receiving the verification data packet sent by the server, the client analyzes the URL address from the verification data packet, and downloads the verification picture to the local according to the URL address. And enabling the user to randomly select part of feature information from the verification picture. The verification of the partial characteristic information of the picture comprises the following steps: and verifying the position information of at least one pixel point of the picture and the color information of at least one pixel point.
Step S203, providing the partial feature information to the server, so that the server verifies the data request based on the partial feature information.
Exemplarily, the client converts part of characteristic information of the verification picture, that is, the position information and the color information of at least one pixel point are converted into binary data, and the binary data is sent to the server. And after receiving the binary data, the server converts the binary data into the position information and the color information of at least one pixel point. The server side determines the comparison range of the selected verification picture based on the position information of the pixel points, compares the color information of the pixel points with the comparison range of the selected verification picture, determines a verification result according to the comparison result of the color information of the pixel points and the comparison range of the selected verification picture, processes the data request and sends the processing result to the client side.
And step S204, receiving the processing result of the server to the data request according to the verification result.
For example, after receiving the processing result of the service on the data request, the client may 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 related service.
In the embodiment of the invention, a data request is sent to a server; receiving a verification data packet which is sent by the server and aims at the data request, acquiring a verification picture based on the verification data packet, and displaying the verification picture so that a user can select part of feature information included in the verification picture; providing the partial characteristic information to the server, so that the server verifies the data request based on the partial characteristic information; and receiving a processing result of the server for the data request according to a verification result, automatically verifying the data request, and filtering invalid data requests.
Fig. 3 is a schematic diagram of a detailed flow of a data request processing method according to an embodiment of the present invention, and as shown in fig. 3, the data request processing method of the present invention includes:
step S301, the client sends a data request to the server.
Illustratively, when a user accesses a server through a client to perform operations, including login, browsing, confirmation and the like, each operation needs to send a data request to the server, and the next operation can be performed after the server agrees/confirms the data request. And if the server judges that the access of the data request is abnormal, the server rejects the data request of the client and prevents the abnormal access of the data request.
Illustratively, if a user wants to access a server for operation, a data request is sent to the server through a client, and the type of the data request may include: various requests such as registration, login, browsing, collection, ordering, payment, etc.
Step S302, the server side selects a verification picture.
For example, after receiving a data request of a client, the server needs to verify the authenticity of the data request before returning a relevant service of the data request, and the server may verify the data request of the client by means of a verification picture. And the server randomly selects verification pictures from the picture library according to the preset picture library.
Step S303, the server side sends a verification data packet to the client side.
Exemplarily, after the server finishes selecting the verification picture, the server sends a verification data packet to the client; the verification packet may include a data body and a data header. The verification packet may include a URL (Uniform Resource Locator), and the URL may be stored in a header of the verification packet or a data body of the verification packet. The URL address is a URL address of the verification picture, and the verification picture can be accessed (acquired) by the URL address of the verification picture.
Further, the verification packet may include a verification picture, and the verification picture may be stored in a data body of the verification packet.
Further, the verification data packet is determined by the server based on the pre-agreed rules of the client and the server.
In step S304, the client downloads the verification picture.
Illustratively, after receiving a verification data packet sent by a server, a client accesses the URL address of the verification picture and downloads the verification picture to the local according to the URL address of the verification picture stored in the data header or the data body of the verification data packet.
Further, after receiving the verification data packet sent by the server, the client downloads the verification picture stored in the data body of the verification data packet to the local.
Further, the verification picture may be a picture with 64 × 64 pixels, or may be a picture with other pixel sizes, and is determined or selected according to the predetermined rule of the client and the server.
In step S305, the client displays a verification picture to enable the user to select part of the feature information.
Illustratively, after downloading the verification picture to the local according to the URL address of the verification picture by the clientAnd displaying the verification picture so that the user randomly selects part of characteristic information of the verification picture. The partial feature information includes position information and color information of a pixel, for example, the position information of the pixel is coordinate (x)i,yi) The collection coordinate is (x)i,yi) The color information of the pixel point is represented by an RGB function representation method, the color of the pixel point is represented by three values of red (R), green (G) and blue (B) by the RGB function representation method, the value range of the red (R), green (G) and blue (B) is 0-255, and correspondingly, the position information is coordinates (x)i,yi) The RGB color information of the pixel point is (R)i,Gi,Bi)。
Illustratively, the verification picture pointed by the URL address may be a picture with a size of 64 × 64 pixels, which corresponds to 4096 pixels, and the client randomly selects one pixel from the 4096 pixels and obtains a color corresponding to the pixel, thereby improving the security of data request verification.
Furthermore, the client displays the verification picture, and a user can select a plurality of pixel points and also can select one or a plurality of regions, wherein each region consists of a plurality of pixel points. Correspondingly, the partial feature information includes position information and color information of a plurality of pixel points of the verification picture.
Furthermore, the color of the pixel point can also be represented by an RGBA function representation method, an HSL function representation method, an HSLA function representation method and the like.
In step S306, the partial feature information is processed.
Illustratively, after the user selects part of feature information of the verification picture, the client obtains the position information as coordinates (x)i,yi) And collecting color information (R) corresponding to the pixel pointsi,Gi,Bi) Then, the coordinate information and the color information of the pixel point are combined to obtain pixel point information (x)i,yi,Ri,Gi,Bi). The client converts the pixel point information into binary data to obtain the binary data of partial characteristic information. For example, the pixel information is (x)m,ym,Rm,Gm,Bm) After being converted into binary data, the binary data of the partial feature information is 0101011011011000101. Wherein x in the coordinate information of the pixel pointmFive-bit binary data '01010', y converted into first to fifth bitsmFive-bit binary data "11011" converted into sixth to tenth bits; r in color information of pixel pointmConverted into the eleventh to thirteen-bit three-bit binary data "011", GmConverted into a fourteenth to sixteenth bit three-bit binary data "000", BmInto seventeenth to nineteenth three-bit binary data "101".
Step S307, binary data of partial characteristic information is sent to the server.
Illustratively, after converting part of feature information in a verification picture selected by a user, the client sends binary data of the part of feature information to the server.
Step S308, the server processes the binary data.
Illustratively, after receiving the binary data sent by the client, the server converts the binary data into partial characteristic information in the verification picture, that is, pixel point information (x) including coordinate information and color information of the pixel pointi,yi,Ri,Gi,Bi)。
Step S309, the server locates the comparison range.
Exemplarily, the server converts the received binary data into partial feature information in the verification picture, that is, pixel point information (x) including coordinate information and color information of the pixel pointi,yi,Ri,Gi,Bi) And then, according to the coordinate information in the pixel point information, determining the comparison range of the verification picture of the server, and comparing the comparison range with part of characteristic information of the verification picture sent by the client.
In step S310, the server determines a verification result.
Exemplarily, after the server determines the comparison range of the verification picture, the color information of the pixel point information in the comparison range is compared with part of characteristic information of the verification picture downloaded by the client based on the URL address, that is, the color information of the pixel point information of the verification picture downloaded based on the URL address and sent by the client is compared with the color information of the pixel point in the comparison range of the verification picture of the server; judging whether the two are consistent, if so, the verification result of the server side is passed; if the two are not consistent, the verification result of the server side is failed. And after the server side completes the verification, returning the verification result to the client side.
In step S311, the server processes the data request.
Exemplarily, after the server side determines the verification result of the verification picture, the server side processes the data request according to the verification result, and if the verification result is passed, the client side is allowed to access the related service; and if the verification result is that the client does not pass, the client is not allowed to access the related service.
In step S312, the server sends the data request processing result.
Illustratively, after processing the data request according to the verification result, the server sends the processing result of the data request to the client.
In step S313, the client accesses the relevant service.
Illustratively, the client receives a data request processing result sent by the server, and if the verification result is a pass, which indicates that the server passes the verification of the client, the data request of the client is valid, and the client is allowed to access the relevant service, the client may access the relevant service, including: various operations such as registration, login, browsing, collection, ordering, payment and the like; if the verification result is not passed, which indicates that the service end fails the verification of the client, the data request of the client is invalid, and the client is not allowed to access the related service, the access of the client is denied, and the related service cannot be accessed.
Further, if the server fails to pass the verification of the client, it indicates that the client may be a human-simulated interface, and the access of the data request is abnormal, so that the abnormal access of the client is denied.
In the embodiment of the invention, a data request is sent to a server side through a client side; the server side selects a verification picture; the server side sends a verification data packet to the client side; downloading a verification picture by a client; the client displays the verification picture so that the user can select partial characteristic information; processing part of the characteristic information; sending binary data of part of characteristic information to a server; the server side processes the binary data; the server side positions the comparison range; the server side determines a verification result; the server processes the data request; the server side sends a data request processing result; the method has the advantages that the client accesses the related service and other steps, the data request can be automatically checked, invalid data requests are filtered, the verification method is convenient and fast, the data request verification efficiency is improved, the validity and the safety of the data request are guaranteed, the user experience is improved, and the processing performance of the server can be improved.
Fig. 4 is a schematic diagram of main blocks of a data request validation device according to an embodiment of the present invention, and as shown in fig. 4, a data request validation device 400 of the present invention includes:
the communication module 401 is configured to send a data request to a server.
For example, when a user accesses the server through the client, in order to ensure the security of the data request, the client sends the data request to the server through the communication module 401 first to enable the server to verify the data request, and the data request is accessible after the verification.
A feature selection module 402, configured 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 selects part of feature information included in the verification picture.
Illustratively, after receiving a data request from a client, a 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 URL address information of the verification picture. After receiving the verification data packet sent by the server through the communication module 401, the client resolves the URL address from the verification data packet, and downloads the verification picture to the local according to the URL address. The feature selection module 402 enables the user to randomly select part of feature information from the verification picture. The verification of the partial characteristic information of the picture comprises the following steps: and verifying the position information of at least one pixel point of the picture and the color information of at least one pixel point.
The communication module 401 is further configured to provide the partial feature information to the server, so that the server verifies the data request based on the partial feature information.
Illustratively, the client converts part of feature information of the verification picture, that is, the position information and the color information of at least one pixel point are converted into binary data, and the binary data is sent to the server through the communication module 401. And after receiving the binary data, the server converts the binary data into the position information and the color information of at least one pixel point. The server side determines the comparison range of the selected verification picture based on the position information of the pixel points, compares the color information of the pixel points with the comparison range of the selected verification picture, determines a verification result according to the comparison result of the color information of the pixel points and the comparison range of the selected verification picture, processes the data request and sends the processing result to the client side.
And the access module 403 is configured to receive a processing result of the server for the data request according to a verification result.
For example, after the client receives the processing result of the service on the data request through the communication module 401, the access module 403 may access or be denied to access the relevant service according to the verification result. If the verification result is passed, the access module 403 may continue to access the relevant service.
In the embodiment of the invention, the data request can be automatically verified and invalid data requests can be filtered through modules such as the communication module, the feature selection module and the access module, the verification method is convenient and quick, the data request verification efficiency is improved, the validity and the safety of the data request are ensured, the user experience is improved, and the processing performance of the server side can be improved.
Fig. 5 is a schematic structural diagram of a computer system suitable for implementing a terminal device according to an embodiment of the present invention, and as shown in fig. 5, the computer system 500 of the terminal device according to the embodiment of the present invention includes:
a Central Processing Unit (CPU)501 that 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. In the RAM503, various programs and data necessary for the operation of the system 500 are also stored. The CPU501, ROM502, and RAM503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which 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 in some cases form a limitation on the modules themselves, and for example, a communication module may also be described as a "module that sends a data request to a server".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: sending a data request to a server; receiving a verification data packet which is sent by the server and aims at the data request, acquiring a verification picture based on the verification data packet, and displaying the verification picture so that a user can select part of feature information included in the verification picture; providing the partial characteristic information to the server, so that the server verifies the data request based on the partial characteristic information; and receiving a processing result of the server to the data request according to the verification result.
According to the technical scheme of the embodiment of the invention, the data request can be automatically verified, invalid data requests can be filtered, the verification method is convenient and quick, the data request verification efficiency is improved, the validity and the safety of the data request are ensured, the user experience is improved, and the processing performance of the server side can be improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (15)

1. A data request processing method is applied to a client and comprises the following steps:
sending a data request to a server;
receiving a verification data packet which is sent by the server and aims at the data request, acquiring a verification picture based on the verification data packet, and displaying the verification picture so that a user can select part of feature information included in the verification picture;
providing the partial characteristic information to the server, so that the server verifies the data request based on the partial characteristic information;
and receiving a processing result of the server to the data request according to the verification result.
2. The method of claim 1, wherein the validation packet includes a URL address;
obtaining a verification picture based on the verification data packet, including:
resolving a URL address from the verification data packet;
and establishing connection with the URL address, and downloading a verification picture from the URL address.
3. The method of claim 2, wherein the validation packet comprises a header and a body, and wherein the URL address is stored in the header or the body;
parsing out a URL address from the verification packet, including:
and analyzing the URL address from the data header or the data body.
4. The method of claim 1, wherein the partial feature information comprises:
and the position information of at least one pixel point of the verification picture and the color information of the at least one pixel point.
5. The method of claim 4, further comprising:
combining the position information of the at least one pixel point and the color information of the at least one pixel point into pixel point information;
converting the pixel point information into binary data;
providing the partial feature information to the server, including:
and providing the binary data to the server.
6. The method of claim 1, wherein receiving a result of processing the data request by the server comprises:
and when the verification result indicates that the data request is valid, receiving a data page which is sent by the server and is related to the data request.
7. A data request processing method is applied to a server and comprises the following steps:
receiving a data request sent by a client, and selecting a verification picture for the data request;
sending a verification data packet for the data request to the client, wherein the verification data packet comprises a URL (uniform resource locator) address of the verification picture, so that the client determines partial characteristic information of the verification picture based on the verification data packet;
receiving the partial characteristic information sent by the client, and verifying the data request based on the partial characteristic information;
and processing the data request according to the verification result.
8. The method of claim 7, wherein validating the data request based on the partial signature information comprises:
comparing the partial feature information with the selected verification picture;
and if the comparison result indicates that the part of the characteristic information is consistent with the selected part of the verification picture, determining that the data request is valid.
9. The method of claim 7, wherein receiving the partial characterizing information sent by the client and validating the data request based on the partial characterizing information comprises:
receiving binary data sent by the client, and verifying the data request based on the binary data, wherein the binary data is formed by converting position information of at least one pixel point and color information of the at least one pixel point, which are included in the partial characteristic information.
10. The method of claim 9, wherein validating the data request based on the binary data comprises:
converting the binary data into position information of the at least one pixel point and color information of the at least one pixel point;
positioning a comparison target range in the selected verification picture according to the position information of the at least one pixel point;
and comparing the color information of the at least one pixel point with the color information of the pixel points in the comparison target range.
11. The method according to any one of claims 7 to 10, wherein selecting a verification picture for the data request comprises:
and selecting a verification picture for the data request from the picture library based on a preset picture library.
12. A data request processing apparatus, applied to a client, comprising:
the communication module is used for sending a data request to the server;
the characteristic selection module is used for receiving a verification data packet which is sent by the server and aims at the data request, acquiring a verification picture based on the verification data packet and displaying the verification picture so as to enable a user to select part of characteristic information included in the verification picture;
the communication module is further used for providing the partial characteristic information to the server so that the server verifies the data request based on the partial characteristic information;
and the access module is used for receiving the processing result of the server to the data request according to the verification result.
13. A data request processing apparatus, wherein the apparatus is applied to a server, and comprises:
the picture selection module is used for receiving a data request sent by a client and selecting a verification picture for the data request;
a communication module, configured to send a verification data packet for the data request to the client, where the verification data packet includes a URL address of the verification picture, so that the client determines, based on the verification data packet, partial feature information of the verification picture;
the verification module is used for receiving the partial characteristic information sent by the client and verifying the data request based on the partial characteristic information;
and the processing module is used for processing the data request according to the verification result.
14. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-11.
15. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-11.
CN202110013018.5A 2021-01-06 2021-01-06 Data request processing method and device Pending CN113742611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110013018.5A CN113742611A (en) 2021-01-06 2021-01-06 Data request processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110013018.5A CN113742611A (en) 2021-01-06 2021-01-06 Data request processing method and device

Publications (1)

Publication Number Publication Date
CN113742611A true CN113742611A (en) 2021-12-03

Family

ID=78728103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110013018.5A Pending CN113742611A (en) 2021-01-06 2021-01-06 Data request processing method and device

Country Status (1)

Country Link
CN (1) CN113742611A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107369016A (en) * 2017-06-14 2017-11-21 维沃移动通信有限公司 Method of payment and device
WO2018120459A1 (en) * 2016-12-28 2018-07-05 平安科技(深圳)有限公司 Method, apparatus and device for verifying authenticity of image, and storage medium and service end
CN108564367A (en) * 2018-04-11 2018-09-21 郑鸿 A kind of encrypted algorithm of payment
CN110098921A (en) * 2018-01-30 2019-08-06 北京京东尚科信息技术有限公司 Verification code generation method, device, application service end and system
CN110798433A (en) * 2018-08-03 2020-02-14 广州小鹏汽车科技有限公司 Verification code verification method and device
CN112187702A (en) * 2019-07-02 2021-01-05 北京京东尚科信息技术有限公司 Method and device for verifying client

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018120459A1 (en) * 2016-12-28 2018-07-05 平安科技(深圳)有限公司 Method, apparatus and device for verifying authenticity of image, and storage medium and service end
CN107369016A (en) * 2017-06-14 2017-11-21 维沃移动通信有限公司 Method of payment and device
CN110098921A (en) * 2018-01-30 2019-08-06 北京京东尚科信息技术有限公司 Verification code generation method, device, application service end and system
CN108564367A (en) * 2018-04-11 2018-09-21 郑鸿 A kind of encrypted algorithm of payment
CN110798433A (en) * 2018-08-03 2020-02-14 广州小鹏汽车科技有限公司 Verification code verification method and device
CN112187702A (en) * 2019-07-02 2021-01-05 北京京东尚科信息技术有限公司 Method and device for verifying client

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
肖斌斌;徐雨明;: "基于双重验证的抗重放攻击方案", 计算机工程, no. 05, 15 May 2017 (2017-05-15) *

Similar Documents

Publication Publication Date Title
CN106998329B (en) File sharing method and device
CN111062024B (en) Application login method and device
US11108761B2 (en) Method, apparatus and system for remote control of intelligent device
CN111160845A (en) Service processing method and device
CN103036902A (en) Login control method and login control system based on two-dimension code
CN111104675A (en) Method and device for detecting system security vulnerability
CN106254528B (en) Resource downloading method and caching device
CN110708335A (en) Access authentication method and device and terminal equipment
CN111651408B (en) Method, device, terminal and storage medium for acquiring data
CN109726545B (en) Information display method, equipment, computer readable storage medium and device
US20150101059A1 (en) Application License Verification
CN113438256B (en) Data transmission method, system and proxy server based on double-layer SSL
CN114049122A (en) Service processing method and system
CN109284584A (en) Verification method and device
CN107634942B (en) Method and device for identifying malicious request
CN108512889B (en) Application response pushing method based on HTTP and proxy server
CN113572763A (en) Data processing method and device, electronic equipment and storage medium
CN112905990A (en) Access method, client, server and access system
CN109714770B (en) Method and apparatus for transmitting information
CN108737350B (en) Information processing method and client
CN113742611A (en) Data request processing method and device
CN110941805B (en) Identity authentication method and device
CN112966286B (en) Method, system, device and computer readable medium for user login
CN112751799B (en) Verification method and device based on picture verification code
CN115098840A (en) Identity authentication method, device, equipment, medium and product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination