Webpage access flow limiting method, apparatus and computer readable storage medium"

LAP950AUndetermined Publication Date: 2026-05-01CHINA UNIONPAY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
LAP950
Authority / Receiving Office
LA · LA
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-11-24
Filing Date
2022-09-07
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

The existing web page access current limiting algorithm needs to set the threshold in advance based on experience, lacks universality and dynamic adjustment capabilities, and cannot dynamically update the current limiting threshold based on the user's historical access data.

Method used

By obtaining the user's current access information, the user access sequence is generated and input into the access matrix pool to dynamically update the user access profile matrix. Based on the user access sequence and profile matrix, it is judged whether the current access is consistent with the user's access habits and the current limit range is dynamically determined. and threshold.

Benefits of technology

It achieves dynamic current limiting without setting thresholds in advance, adjusts the current limiting strategy based on user historical access data, adapts to different users' access habits, and improves the flexibility and adaptability of current limiting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
  • Figure 00000000_0001_ABST
    Figure 00000000_0001_ABST
  • Figure 00000000_0002_ABST
    Figure 00000000_0002_ABST
Patent Text Reader

Abstract

The present disclosure provides a method for restricting access to a network page, a system model, and a computer-readable storage medium. The method comprises; obtaining current access information sent by a user host when a user accesses a web page service of the host user; generating a user access sequence based on the current access information, the user access sequence ranking the current access information of the user and the previous access information of a predetermined number of times; importing the user access sequence into an access matrix collection to improve timely resolution by compressing a user access program matrix similar to each user, the user access program matrix being generated based on user access history information and comprising access summary information of various sizes;Obtaining a similar user access matrix from a collection of access matrices based on a user identifier, and determining, based on the user access sequence and the user program matrix, whether or not to rank the current access by user access characteristics, with the above method, the flow restriction level may be flexibly adjusted for different users by analyzing user access data, thus depending on the flow restriction of network access.; It may be in order of current access or not. With user access habits, it may be in order of current access.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device and computer-readable storage medium for limiting web page access

[0001] This application claims priority to the Chinese patent application filed on November 24, 2021, with application number 202111407417.6 and titled “A method, device and computer-readable storage medium for limiting web page access”. The disclosure of the Chinese patent application is incorporated herein by reference. Technical Field

[0002] The present invention belongs to the field of current limiting, and specifically relates to a web page access current limiting method, device and computer-readable storage medium. Background Art

[0003] This section is intended to provide a background or context to embodiments of the invention that are recited in the claims. No statement herein is admitted to be prior art by inclusion in this section.

[0004] When developing highly concurrent systems, rate limiting is often used to effectively control the system's query rate per second, thereby protecting the system. The purpose of rate limiting is to limit the rate of concurrent access. Once a certain rate is reached, service denial, queueing, or downgrade can be implemented.

[0005] Currently, there are two common rate limiting algorithms: the counter algorithm and the token bucket algorithm. The counter algorithm uses a sliding window combined with a counter to implement web access rate limiting. The token bucket algorithm uses a fixed-size token bucket and generates tokens at a constant rate. If there are tokens in the token bucket, the request is allowed to be sent; if there are no tokens in the token bucket, the request is not allowed to be sent.

[0006] Existing current limiting algorithms, whether it is the threshold of the counter algorithm or the bucket size and rate of the token bucket algorithm, require setting the threshold in advance based on experience. They lack universality and cannot be adjusted through dynamic learning of data.

[0007] Summary of the Invention

[0008] In response to the problems existing in the above-mentioned prior art, a web page access current limiting method, device and computer-readable storage medium are proposed. By using this method, device and computer-readable storage medium, the above-mentioned problems can be solved.

[0009] The present invention provides the following solutions.

[0010] In a first aspect, a method for limiting web page access is provided, comprising: when a user accesses a web page service of a host application, obtaining current access information sent by the host application; generating a user access sequence based on the current access information, wherein the user access sequence arranges the user's current access information and previous access information of a preset number of times in chronological order; inputting the user access sequence into an access matrix pool to dynamically update a user access portrait matrix corresponding to each user, wherein the user access portrait matrix is ​​generated based on the user's historical access data and includes access summary data of multiple dimensions; obtaining a corresponding user access portrait matrix from the access matrix pool based on a user identifier, and judging whether the current access conforms to the user's access habits based on the user access sequence and the user portrait matrix.

[0011] In one embodiment, the current access information includes: user identification, current service URL, and timestamp.

[0012] In one embodiment, whether the current access conforms to the user access habits is judged based on the user access sequence and the user portrait matrix, including: determining the flow limit range of each dimension according to the user access portrait matrix; obtaining the value of each dimension corresponding to the user access portrait matrix according to the user access sequence; and determining whether the value of each dimension is within the flow limit range to determine whether the current access is a normal access.

[0013] In one embodiment, the user access portrait matrix includes a user identifier and contains any one or more of the following dimensions: the total number of requests for a specific URL by the user per unit time, the total number of URL requests by the user per unit time, the ratio of the total number of URL requests by the user per unit time to the number of URL types, the total number of requests for a specific URL by all users per unit time, the total number of URL requests by all users per unit time, and the ratio of the total number of URL requests by all users per unit time to the number of URL types.

[0014] In one embodiment, it also includes: setting a tracking point at the web service entrance within the host application, so that when any one or more users access the web service, the tracking point is triggered to generate a call request, and the call request includes the current access information; the judgment result of the current access is responded to the tracking point of the host application, and when the tracking point receives a response of an abnormal access, a current limiting reminder is fed back to the host application.

[0015] In one embodiment, an access matrix pool is generated by performing data summarization on the time dimension and the space dimension of historical user access data to obtain the access matrix pool; wherein the time dimension refers to summarizing the access sequence of a single user, and the space dimension refers to summarizing the concurrent access information of different users at the same time.

[0016] In one embodiment, multiple dimensions of the user portrait matrix are prioritized according to dimension weights; whether the value of each dimension is within the corresponding current limiting range is determined in order of priority; wherein, once it is determined that the current access is an abnormal access, there is no need to judge the subsequent priority dimensions.

[0017] On the second aspect, a web page access current limiting device is provided, including: an access collection module, which is used to obtain the current access information sent by the host application when the user accesses the web page service of the host application; an access collection module, which is used to generate a user access sequence based on the current access information, and the user access sequence arranges the user's current access information and the previous access information of a preset number of times in chronological order; an access matrix pool, which inputs the user access sequence into the access matrix pool to dynamically update the user access portrait matrix corresponding to each user, and the user access portrait matrix is ​​generated based on the user's historical access data and includes access summary data of multiple dimensions; a current limiting calculation module, which is used to obtain the corresponding user access portrait matrix from the access matrix pool according to the user identifier, and judge whether the current access conforms to the user's access habits based on the user access sequence and the user portrait matrix.

[0018] In one embodiment, the current access information includes: user identification, current service URL, and timestamp.

[0019] In one embodiment, the current limiting calculation module is also used to: determine the current limiting range of each dimension based on the user access portrait matrix; obtain the values ​​of each dimension corresponding to the user access portrait matrix based on the user access sequence; and determine whether the current access is a normal access by judging whether the value of each dimension is within the current limiting range.

[0020] In one embodiment, the user access portrait matrix includes a user identifier and contains any one or more of the following dimensions: the total number of requests for a specific URL by the user per unit time, the total number of URL requests by the user per unit time, the ratio of the total number of URL requests by the user per unit time to the number of URL types, the total number of requests for a specific URL by all users per unit time, the total number of URL requests by all users per unit time, and the ratio of the total number of URL requests by all users per unit time to the number of URL types.

[0021] In one embodiment, it also includes: an application tracking point module, which is used to set a tracking point at the web service entrance within the host application, so that when any one or more users access the web service, the tracking point is triggered to generate a call request, and the call request includes the current access information; a result output module, which is used to respond the judgment result of the current access to the tracking point of the host application, and when the application tracking point module receives a response to an abnormal access, it feeds back a current limiting reminder to the host application.

[0022] In one embodiment, the access matrix pool is further used to obtain the access matrix pool by summarizing the user's historical access data in terms of time dimension and space dimension respectively; wherein the time dimension refers to summarizing the access sequence of a single user, and the space dimension refers to summarizing the concurrent access information of different users at the same time.

[0023] In one embodiment, the current limiting calculation module is also used to: prioritize multiple dimensions of the user portrait matrix according to dimension weights; determine whether the value of each dimension is within the corresponding current limiting range in order of priority; wherein, once it is determined that the current access is an abnormal access, there is no need to judge the subsequent priority dimensions.

[0024] In a third aspect, a web page access current limiting device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute: the method of the first aspect.

[0025] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a program, and when the program is executed by a multi-core processor, the multi-core processor executes the method of the first aspect.

[0026] At least one of the above-mentioned technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: In this embodiment, there is no need to set a threshold in advance, and it is possible to determine whether it is necessary to limit the user's current access to the web service based on an access matrix pool generated based on the user's historical access data and dynamically updated, for example, based on the current user data.

[0027] It should be understood that the above description is only an overview of the technical solution of the present invention, so that the technical means of the present invention can be more clearly understood and implemented in accordance with the contents of the description. In order to make the above and other objects, features and advantages of the present invention more clearly understood, the following examples are given to illustrate specific embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The advantages and benefits described herein, as well as other advantages and benefits, will become apparent to those skilled in the art upon reading the detailed description of the exemplary embodiments below. The accompanying drawings are provided for illustration purposes only and are not to be construed as limiting the present invention. The same reference numerals are used throughout the accompanying drawings to denote the same components. In the accompanying drawings:

[0029] FIG1 is a flow chart of a method for limiting web page access according to an embodiment of the present invention;

[0030] FIG2 is a schematic structural diagram of a device for limiting web page access current according to an embodiment of the present invention;

[0031] FIG3 is a schematic structural diagram of a device for limiting web page access current according to another embodiment of the present invention.

[0032] In the drawings, the same or corresponding reference numerals denote the same or corresponding parts. DETAILED DESCRIPTION

[0033] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0034] In the description of the embodiments of the present application, it should be understood that terms such as "including" or "having" are intended to indicate the presence of features, numbers, steps, actions, components, parts, or a combination thereof disclosed in this specification, and are not intended to exclude the possibility of the presence of one or more other features, numbers, steps, actions, components, parts, or a combination thereof.

[0035] Unless otherwise specified, “ / ” means or. For example, A / B can mean A or B. “and / or” in this article is merely a way to describe the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0036] The terms "first," "second," etc. are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Thus, a feature defined as "first," "second," etc. may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.

[0037] All codes in this application are exemplary, and those skilled in the art may think of various modifications based on the programming language used, specific needs, personal habits and other factors without departing from the ideas of this application.

[0038] It should also be noted that, in the absence of conflict, the embodiments and features of the embodiments of the present invention can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0039] This application proposes a web page access throttling method, specifically comprising: when a user accesses a web page service of a host application, obtaining current access information sent by the host application; generating a user access sequence based on the current access information, wherein the user access sequence arranges the user's current access information and a preset number of previous access information in chronological order; inputting the user access sequence into an access matrix pool to dynamically update a user access profile matrix corresponding to each user, wherein the user access profile matrix is ​​generated based on the user's historical access data and includes access summary data of multiple dimensions; obtaining a corresponding user access profile matrix from the access matrix pool based on the user identifier, and determining whether the current access conforms to the user's access habits based on the user access sequence and the user profile matrix. Thus, by analyzing user access data, the throttling threshold can be dynamically adjusted for different users, thereby achieving web page access throttling.

[0040] Figure 1 is a flow chart of a method for limiting web page access according to an embodiment of the present application, which is used to limit abnormal access. In this process, from the device perspective, the execution subject can be one or more electronic devices; from the program perspective, the execution subject can correspondingly be the program installed on these electronic devices.

[0041] As shown in FIG1 , the method provided in this embodiment may include the following steps:

[0042] S101. When a user accesses a webpage service of a host application, obtain current access information sent by the host application;

[0043] In one embodiment, the current access information includes: user identification, current service URL and timestamp, for example, (user A, url1, timestamp 10).

[0044] In one embodiment, in order to start the above-mentioned current limiting method more seamlessly, it also includes: setting a tracking point at the web service entrance within the host application, so that when any one or more users access the web service, the tracking point is triggered to generate a call request, and the call request includes current access information.

[0045] For example, a tracking point can be set in the host application where current limiting analysis and disposal need to be performed. Specifically, it can be located at the web service entrance of the host application. When the web service of the host application is called, the tracking point is triggered, and the web current limiting method is called synchronously and its feedback result is received at the first time.

[0046] Among them, HTTP service can be provided to the host application to receive a call request sent by the host application by triggering the application tracking point. The call request can include the current access information of the user accessing the web service.

[0047] S102: Generate a user access sequence based on the current access information, where the user access sequence arranges the user's current access information and the previous access information of a preset number of times in chronological order;

[0048] Among them, the current access information may include (user A, url1, timestamp 10), and the user access sequence generated by its conversion may include [(user A, url1, timestamp 1), (user A, url2, timestamp 2), ..., (user A, url1, timestamp 10)]. Among them, the number of information in the user access sequence can be set, for example, 10, and then the current access information is used as the last sequence element, and the previous 9 previous access information of user A is extracted and combined into a user access sequence arranged in chronological order.

[0049] It is understandable that if the user's previous visits before the current visit do not meet the preset number or do not occur in the previous visit, a user access sequence with fewer than the preset elements may also be generated.

[0050] For example, if user A clicks the Get Verification Code button three times in one second, and the URL for getting the verification code is / getAuthCode, the URL sequence data corresponding to the three requests is:

[0051] 1. [( / getAuthCode, timestamp 1)],

[0052] 2. [( / getAuthCode, timestamp 1), ( / getAuthCode, timestamp 2)]

[0053] 3. [( / getAuthCode, timestamp 1), ( / getAuthCode, timestamp 2), ( / getAuthCode, timestamp 3)]

[0054] S103: Input the user access sequence into the access matrix pool to dynamically update the user access portrait matrix corresponding to each user;

[0055] The user access profile matrix is ​​generated based on historical user access data and includes access summary data across multiple dimensions. For example, the access matrix pool is dynamically updated based on the real-time input of user access sequences. Before the user access data corresponding to the current access is input, the user access matrix and user access habits have been calculated by processing the previously input user access data. This allows for the formation of a rolling user traffic profile to depict the user's access summary data across various dimensions.

[0056] In one embodiment, generating an access matrix pool may further include summarizing historical user access data in both the time and space dimensions to obtain the access matrix pool. The time dimension summarizes the access sequence of a single user, while the space dimension summarizes concurrent access information from different users at the same time. This ultimately forms a user access profile matrix for each user in the access matrix pool, which is used as a basis for making user access restriction decisions.

[0057] In one embodiment, the user access portrait matrix includes a user identifier and contains any one or more of the following dimensions: the total number of requests for a specific URL by the user per unit time, the total number of URL requests by the user per unit time, the ratio of the total number of URL requests by the user per unit time to the number of URL types, the total number of requests for a specific URL by all users per unit time, the total number of URL requests by all users per unit time, and the ratio of the total number of URL requests by all users per unit time to the number of URL types.

[0058] The unit time may be 1 second, and all users refer to all users accessing the matrix pool.

[0059] It is understandable that the above dimensions can be designed according to the actual business scenario dimensions, and this application does not impose any specific restrictions on this.

[0060] S104. Obtain the corresponding user access portrait matrix from the access matrix pool according to the user identifier, and determine whether the current access conforms to the user access habit based on the user access sequence and the user portrait matrix.

[0061] It can be understood that the user access portrait matrix depicts the user's access habits from multiple dimensions. Therefore, the user access portrait matrix can be used to analyze the user's recent access data contained in the user access sequence to determine whether the access is normal.

[0062] Furthermore, the user access portrait matrix can be used to analyze and judge multiple user access sequences concurrently generated by multiple users at the current time to determine whether the access of multiple users is normal.

[0063] In one embodiment, determining whether the current access conforms to the user's access habits based on the user access sequence and the user portrait matrix in S104 may specifically include:

[0064] Determine the flow limit range of each dimension based on the user access portrait matrix; obtain the values ​​of each dimension corresponding to the user access portrait matrix based on the user access sequence; and determine whether the current access is normal access by judging whether the value of each dimension is within the flow limit range.

[0065] For example, if the user access portrait matrix of user A is used to determine that the total number of requests for a specific URL by user A within 1 second (click to obtain the verification code getAuthCode) is limited to less than 2 times, the total number of requests for all URLs by user A within 1 second is limited to less than 5 times, the total number of requests for a specific URL by all users within 1 second (click to obtain the verification code getAuthCode) is limited to less than 1000 times, and so on. Then the current limiting ranges for each dimension can be obtained as follows: less than 2; less than 5; less than 1000. Based on this, the values ​​of each dimension corresponding to the user access portrait matrix can be obtained according to the user access sequence, such as: 1; 3; 489. It can be seen that at this time, each indicator does not exceed the current limiting range and can be considered as normal access.

[0066] Optionally, the judgment rule can be set as follows: if the amount of time exceeding the current limit range does not exceed a preset threshold, it can also be considered a normal access. The judgment rule can also be set as follows: set a weight for each dimension, and perform a weighted calculation based on the weight and whether the current limit range is exceeded (or the degree of exceeding the current limit range). If the final result does not exceed the set value, it can be considered a normal access. This application does not impose specific restrictions on this.

[0067] In one embodiment, in order to reduce unnecessary calculations, the present application may also include: prioritizing multiple dimensions of the user portrait matrix according to dimension weights; judging in order of priority whether the value of each dimension is within the corresponding current limiting range; wherein, once it is determined that the current access is an abnormal access, there is no need to judge the subsequent priority dimensions.

[0068] After determining whether the current access conforms to the user's access habits, the system sends the result to the tracking point of the host application. If the tracking point receives a response indicating an abnormal access, it sends a flow control reminder to the host application. For example, the reminder may require action such as dropping the request, disconnecting the connection, or issuing an alarm.

[0069] In the description of this specification, the description with reference to the terms "some possible implementation methods", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.

[0070] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.

[0071] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention pertain.

[0072] About the method flow chart of the embodiment of the present application, some operations are described as the different steps performed in a certain order.Such flow chart belongs to illustrative and non-restrictive.Some steps described in this article can be grouped together and performed in a single operation, some steps can be divided into multiple sub-steps and can be performed in a different order than shown in this article.The various steps shown in the flow chart can be realized in any way by any circuit structure and / or tangible mechanism (for example, by the software, hardware (for example, the logical function realized by processor or chip) etc. running on computer equipment and / or its any combination).

[0073] Based on the same technical concept, an embodiment of the present invention further provides a web page access current limiting device for executing the web page access current limiting method provided in any of the above embodiments. FIG2 is a schematic structural diagram of a web page access current limiting device provided in an embodiment of the present invention.

[0074] As shown in FIG2 , the apparatus 20 includes:

[0075] The access collection module 201 is used to obtain the current access information sent by the host application when the user accesses the web service of the host application;

[0076] The access aggregation module 202 is used to generate a user access sequence based on the current access information. The user access sequence arranges the user's current access information and the previous access information of a preset number of times in chronological order.

[0077] Access matrix pool 203, inputs user access sequences into the access matrix pool to dynamically update the user access profile matrix corresponding to each user. The user access profile matrix is ​​generated based on the user's historical access data and includes access summary data of multiple dimensions;

[0078] The current limiting calculation module 204 is used to obtain the corresponding user access portrait matrix from the access matrix pool according to the user identifier, and determine whether the current access is consistent with the user access habit based on the user access sequence and the user portrait matrix.

[0079] In one embodiment, the current access information includes: user identification, current service URL, and timestamp.

[0080] In one embodiment, the current limiting calculation module 204 is also used to: determine the current limiting range of each dimension based on the user access portrait matrix; obtain the values ​​of each dimension corresponding to the user access portrait matrix based on the user access sequence; and determine whether the current access is a normal access by judging whether the value of each dimension is within the current limiting range.

[0081] In one embodiment, the user access portrait matrix includes a user identifier and contains any one or more of the following dimensions: the total number of requests for a specific URL by the user per unit time, the total number of URL requests by the user per unit time, the ratio of the total number of URL requests by the user per unit time to the number of URL types, the total number of requests for a specific URL by all users per unit time, the total number of URL requests by all users per unit time, and the ratio of the total number of URL requests by all users per unit time to the number of URL types.

[0082] In one embodiment, it also includes: an application tracking point module 200, which is used to set a tracking point at the web service entrance in the host application, so that when any one or more users access the web service, the tracking point is triggered to generate a call request, and the call request includes the current access information; a result output module, which is used to respond the judgment result of the current access to the tracking point of the host application, and when the application tracking point module receives a response to an abnormal access, it feeds back a current limiting reminder to the host application.

[0083] In one embodiment, the access matrix pool 203 is further used to obtain an access matrix pool by summarizing the user's historical access data in terms of time dimension and space dimension, respectively; wherein the time dimension refers to summarizing the access sequence of a single user, and the space dimension refers to summarizing the concurrent access information of different users at the same time.

[0084] In one embodiment, the current limiting calculation module 204 is also used to: prioritize multiple dimensions of the user portrait matrix according to dimension weights; determine whether the value of each dimension is within the corresponding current limiting range in order of priority; wherein, once it is determined that the current access is an abnormal access, there is no need to judge the subsequent priority dimensions.

[0085] It should be noted that the device in the embodiment of the present application can implement the various processes of the embodiment of the aforementioned method and achieve the same effects and functions, which will not be repeated here.

[0086] Figure 3 is a web page access current limiting device according to an embodiment of the present application, which is used to execute the web page access current limiting method shown in Figure 1. The device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described in the above embodiment.

[0087] According to some embodiments of the present application, a non-volatile computer storage medium for a web page access limiting method is provided, on which computer executable instructions are stored. The computer executable instructions are configured to execute the method described in the above embodiment when executed by a processor.

[0088] The various embodiments in this application are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences from other embodiments. In particular, the descriptions of the apparatus, device, and computer-readable storage medium embodiments are simplified because they are generally similar to the method embodiments. For relevant parts, please refer to the descriptions of the method embodiments.

[0089] The apparatus, device and computer-readable storage medium provided in the embodiments of the present application correspond one-to-one to the method. Therefore, the apparatus, device and computer-readable storage medium also have similar beneficial technical effects as the corresponding method. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the apparatus, device and computer-readable storage medium will not be repeated here.

[0090] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0091] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0092] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0093] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0094] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0095] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0096] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information using any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. In addition, although the operations of the present method are described in a particular order in the accompanying drawings, this does not require or imply that the operations must be performed in this particular order or that all illustrated operations must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into a single step, and / or a single step may be broken down into multiple steps.

[0097] Although the spirit and principles of the present invention have been described with reference to several specific embodiments, it should be understood that the present invention is not limited to the specific embodiments disclosed, and the division into various aspects does not mean that the features of these aspects cannot be combined to benefit. Such division is only for the convenience of expression. The present invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims

1. A web page access current limiting method, comprising: When a user accesses a webpage service of a host application, obtaining current access information sent by the host application; generating a user access sequence according to the current access information, wherein the user access sequence arranges the current access information of the user and the previous access information of a preset number of times in chronological order; Input the user access sequence into an access matrix pool to dynamically update a user access portrait matrix corresponding to each user, wherein the user access portrait matrix is ​​generated based on the user's historical access data and includes access summary data of multiple dimensions; The corresponding user access portrait matrix is ​​obtained from the access matrix pool according to the user identifier, and whether the current access conforms to the user access habit is determined based on the user access sequence and the user portrait matrix.

2. The method according to claim 1, wherein The current access information includes: user identification, current service URL and timestamp.

3. The method according to claim 1 or 2, wherein: Determining whether the current access conforms to the user's access habits based on the user access sequence and the user portrait matrix includes: Determine the current limiting range of each dimension according to the user access portrait matrix; Acquire values ​​corresponding to various dimensions of the user access portrait matrix according to the user access sequence; Whether the current access is a normal access is determined by judging whether the values ​​of the various dimensions are within the current limiting range.

4. The method according to any one of claims 1 to 3, wherein The user access profile matrix includes user identification and access summary data of any one or more of the following dimensions: The total number of specific URL requests per user unit time, the total number of URL requests per user unit time, the ratio of the total number of URL requests per user unit time to the number of URL types, the total number of specific URL requests per user unit time, the total number of URL requests per user unit time, and the ratio of the total number of URL requests per user unit time to the number of URL types.

5. The method according to any one of claims 1 to 4, wherein: Also includes: Setting a tracking point at the web service entrance in the host application, so that when any one or more users access the web service, the tracking point is triggered to generate a call request, and the call request includes the current access information; The judgment result of the current access is responded to the embedding point of the host application, and when the embedding point receives a response of an abnormal access, a current limiting reminder is fed back to the host application.

6. The method according to any one of claims 1 to 5, wherein: The access matrix pool is generated using the following method: The access matrix pool is obtained by summarizing the user's historical access data in time dimension and space dimension respectively; The time dimension refers to summarizing the access sequence of a single user, and the space dimension refers to summarizing the concurrent access information of different users at the same time.

7. The method according to any one of claims 3 to 6, wherein: Prioritizing multiple dimensions of the user portrait matrix according to dimension weights; Determine in order of priority whether the value of each dimension is within the corresponding current limiting range; Herein, once it is determined that the current access is an abnormal access, there is no need to judge the subsequent priority dimension.

8. A web page access current limiting device, wherein: include: An access collection module, configured to obtain current access information sent by a host application when a user accesses a webpage service of the host application; an access aggregation module, configured to generate a user access sequence based on the current access information, wherein the user access sequence arranges the current access information of the user and the previous access information of a preset number of times in chronological order; An access matrix pool, inputting the user access sequence into the access matrix pool to dynamically update a user access portrait matrix corresponding to each user, wherein the user access portrait matrix is ​​generated based on the user's historical access data and includes access summary data of multiple dimensions; The current limiting calculation module is used to obtain the corresponding user access portrait matrix from the access matrix pool according to the user identifier, and determine whether the current access conforms to the user access habit based on the user access sequence and the user portrait matrix.

9. The device according to claim 8, wherein The current access information includes: user identification, current service URL and timestamp.

10. The device according to claim 8 or 9, wherein The current limiting calculation module is further used to: Determine the current limiting range of each dimension according to the user access portrait matrix; Acquire values ​​corresponding to various dimensions of the user access portrait matrix according to the user access sequence; Whether the current access is a normal access is determined by judging whether the values ​​of the various dimensions are within the current limiting range.

11. The device according to any one of claims 8 to 10, wherein: The user access profile matrix includes a user identifier and any one or more of the following dimensions: The total number of specific URL requests per user unit time, the total number of URL requests per user unit time, the ratio of the total number of URL requests per user unit time to the number of URL types, the total number of specific URL requests per user unit time, the total number of URL requests per user unit time, and the ratio of the total number of URL requests per user unit time to the number of URL types.

12. The device according to any one of claims 8 to 11, wherein: Also includes: an application tracking module, configured to set a tracking point at a web service entrance within the host application, so that when any one or more users access the web service, the tracking point is triggered to generate a call request, wherein the call request includes the current access information; The result output module is used to respond the judgment result of the current access to the tracking point of the host application, and when the application tracking point module receives a response of an abnormal access, it feeds back a current limiting reminder to the host application.

13. The device according to any one of claims 8 to 12, wherein: The access matrix pool is also used to: The access matrix pool is obtained by summarizing the user's historical access data in time dimension and space dimension respectively; The time dimension refers to summarizing the access sequence of a single user, and the space dimension refers to summarizing the concurrent access information of different users at the same time.

14. The device according to any one of claims 10 to 13, wherein: The current limiting calculation module is also used for: Prioritizing multiple dimensions of the user portrait matrix according to dimension weights; Determine in order of priority whether the value of each dimension is within the corresponding current limiting range; Herein, once it is determined that the current access is an abnormal access, there is no need to judge the subsequent priority dimension.

15. A web page access current limiting device, comprising: at least one processor; And, a memory communicatively connected to at least one processor; wherein the memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor to enable the at least one processor to execute: the method according to any one of claims 1-7. 16 . A computer-readable storage medium storing a program, wherein when the program is executed by a multi-core processor, the multi-core processor is caused to execute the method according to claim 1 .