CN-122022837-A - Method and device for identifying script ordering behavior
Abstract
The embodiment of the specification provides a method and a device for identifying a script ordering action, wherein the method comprises the steps that a business server receives an ordering request of a first user for goods, analyzes a first user identification of the first user from the ordering request, inquires whether target action data of the first user exist or not based on the first user identification, wherein the target action data are generated by a client of the first user, ordering related operations corresponding to the target action data are associated with the ordering request, and if the inquired result is that the target action data exist, it is determined that the ordering request does not involve the script ordering action, so that accurate identification of the ordering request triggered by the script is achieved.
Inventors
- HE SANYUAN
Assignees
- 支付宝(杭州)数字服务技术有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260122
Claims (12)
- 1. A method for identifying script ordering behavior is applied to a business server and comprises the following steps: receiving a first user ordering request for commodities; analyzing a first user identification of the first user from the order placing request; Inquiring whether target behavior data of the first user exists or not based on the first user identification, wherein the target behavior data are generated by a client of the first user, and a ordering related operation corresponding to the target behavior data is associated with the ordering request; and if the query result is that the target behavior data exists, determining that the ordering request does not relate to script ordering behavior.
- 2. The method of claim 1, further comprising: and if the query result is that the target behavior data does not exist, determining that the ordering request relates to script ordering behavior.
- 3. The method of claim 1, wherein the order request further carries a request time; the querying whether target behavior data of the first user exists includes: And inquiring whether the target behavior data which matches the corresponding time with the request time and carries the first user identification exists or not.
- 4. The method of claim 1, wherein the order related operations include at least one of a click operation of an order button of the commodity displayed by the client by the first user, an open operation of the client to open an order page of the commodity, an exposure operation of the client to the order button, and a refresh operation of the client to refresh the order page of the commodity.
- 5. The method of claim 1, wherein the querying whether target behavior data for the first user exists comprises: And sending a query request carrying at least the first user identifier to a log server to query whether target behavior data of the first user exist or not based on the first user identifier.
- 6. The method of any of claims 1-5, wherein the target behavior data includes at least one of trigger time, device information, the first user identification, merchandise information of the merchandise, operation type, page information, and network information corresponding to the order related operation.
- 7. A method for identifying script ordering behavior is applied to a client and comprises the following steps: After detecting the ordering operation triggered by the first user for the commodity, recording ordering behavior data corresponding to the ordering operation, and generating an ordering request for the ordering operation; At least sending the next-row data to a log server; And sending the order placing request to a service server side so that the service server side verifies whether the order placing request relates to script order placing behavior or not based on the order placing behavior data stored by the log server side.
- 8. The method of claim 7, wherein the sending at least the ordering behavior data to a log server comprises: And sending target behavior data in a preset time window to the log server, wherein the preset time window starts from the triggering time corresponding to the ordering operation and starts to the time corresponding to the first time before the triggering time, the ordering related operation corresponding to the target behavior data is associated with the ordering request, and the ordering related operation comprises the ordering operation.
- 9. The method of claim 7, wherein the sending at least the ordering behavior data to a log server comprises: encrypting at least the ordering behavior data by adopting an encryption algorithm negotiated with a log server to obtain an ordering behavior data ciphertext; And sending the next-row data ciphertext to the log server, so that the log server adopts a decryption algorithm corresponding to the encryption algorithm to decrypt the next-row data ciphertext to obtain and store the next-row behavior data for query by the business server.
- 10. An apparatus for identifying a script ordering behavior, deployed at a service server, comprising: The receiving module is configured to receive a first user ordering request for commodities; The analysis module is configured to analyze the first user identification of the first user from the ordering request; the query module is configured to query whether target behavior data of the first user exist or not based on the first user identifier, wherein the target behavior data are generated by a client of the first user, and a ordering related operation corresponding to the target behavior data is associated with the ordering request; And the first determining module is configured to determine that the ordering request does not relate to script ordering behavior if the query result is that the target behavior data exists.
- 11. An apparatus for identifying a script ordering behavior, deployed at a client, comprising: The record generation module is configured to record the ordering behavior data corresponding to the ordering operation after detecting the ordering operation triggered by the first user for the commodity, and generate an ordering request for the ordering operation; The first sending module is configured to send at least the next-row data to a log server; The second sending module is configured to send the order placing request to a service server, so that the service server verifies whether the order placing request relates to script order placing behavior or not based on the order placing behavior data stored by the log server.
- 12. A computing device comprising a memory and a processor, wherein the memory has executable code stored therein, which when executed by the processor, implements the method of any of claims 1-9.
Description
Method and device for identifying script ordering behavior Technical Field The present disclosure relates to the field of data processing technologies, and in particular, to a method and an apparatus for identifying a behavior of a script. Background art at present, in some links of commodity bidding, some requests of successful bidding are found to be triggered by a machine through a script, rather than by a user performing normal ordering interactive operation on shopping software (for example, clicking a commodity ordering button provided by the shopping software). For such requests, in order to improve user fairness, it is necessary to identify whether the order request is triggered by the machine through a script (i.e., whether the order request is triggered by a real user) in a scenario where goods are purchased (in particular, some goods are required to be purchased for bidding). At present, a process of identifying whether an order request is triggered by a machine through a script is generally that a client side and a server side negotiate a dynamic parameter generation rule in advance, when the client side performs commodity order, the client side firstly generates a dynamic parameter based on the negotiated dynamic parameter generation rule and constructs an order request carrying the dynamic parameter to send the order request to the server side, the server side detects whether the dynamic parameter carried in the order request received from the client side is legal according to a detection algorithm corresponding to the dynamic parameter generation rule which is negotiated in advance by the client side, if the detection is legal, the order request is determined not to be triggered by the machine through the script, otherwise, if the order request does not carry the dynamic parameter or the dynamic parameter is illegal, the order request is determined to be triggered by the machine through the script. However, in the above process, if the black product (i.e. the machine) breaks through the dynamic parameter generation rule pre-negotiated between the client and the server, the detection mode will fail. How to provide an improved method for identifying the ordering behavior of a script becomes a problem to be solved. Disclosure of Invention One or more embodiments of the present disclosure provide a method and an apparatus for identifying a behavior under a script, so as to accurately identify the behavior under the script. According to a first aspect, a method for identifying a script ordering behavior is provided, and is applied to a service server, and includes: receiving a first user ordering request for commodities; analyzing a first user identification of the first user from the order placing request; inquiring whether target behavior data of the first user exists or not based on the first user identification, wherein the target behavior data are generated by a client of the first user, and a ordering related operation corresponding to the target behavior data is associated with the ordering request; and if the query result is that the target behavior data exists, determining that the ordering request does not relate to script ordering behavior. According to a second aspect, there is provided a method of identifying a script ordering behaviour, for use in a client, comprising: After detecting the ordering operation triggered by the first user for the commodity, recording ordering behavior data corresponding to the ordering operation, and generating an ordering request for the ordering operation; At least sending the next-row data to a log server; And sending the order placing request to a service server side so that the service server side verifies whether the order placing request relates to script order placing behavior or not based on the order placing behavior data stored by the log server side. According to a third aspect, there is provided an apparatus for identifying a scenario ordering behavior, deployed at a service server, including: The receiving module is configured to receive a first user ordering request for commodities; The analysis module is configured to analyze the first user identification of the first user from the ordering request; The query module is configured to query whether target behavior data of the first user exists or not based on the first user identifier, the target behavior data are generated by a client of the first user, and a ordering related operation corresponding to the target behavior data is associated with the ordering request; And the first determining module is configured to determine that the ordering request does not relate to script ordering behavior if the query result is that the target behavior data exists. According to a fourth aspect, there is provided an apparatus for identifying a scenario ordering behavior, deployed at a client, comprising: The record generation module is configured to record the ordering behavior data corresponding to t