Web page loading methods, apparatus, computer equipment, and computer-readable storage media
By performing secure verification and permission generation on the target user's identity information, the loading process is optimized, resolving security risks and loading speed issues during webpage loading, and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- PING AN TECH (SHENZHEN) CO LTD
- Filing Date
- 2022-07-29
- Publication Date
- 2026-05-05
AI Technical Summary
In existing technologies, there are security risks that make it difficult to guarantee the authenticity of identity information during webpage loading, and the loading speed of operable controls is slow, resulting in a poor user experience.
By obtaining the target user's identity information, performing security verification, generating permission information, and generating a personalized loading process based on the permission information, the system prioritizes loading operable controls, avoids pop-up windows obscuring the view, and improves loading speed and security.
It improves the security and convenience of webpage loading, enables seamless security authentication during user registration and login, and enhances the user experience.
Smart Images

Figure CN115221442B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of artificial intelligence technology, and in particular to a webpage loading method, apparatus, computer device, and computer-readable storage medium. Background Technology
[0002] Currently, users can log in to multiple different website accounts simultaneously. Specifically, when a user registers and logs in to the website to be loaded, they can generate corresponding identity information based on their account on another website, and then register and log in to the website to be loaded using that identity information. The website to be loaded will load the corresponding content after confirming the login is complete.
[0003] However, for websites that are about to load, registering users based on the identity information of accounts on other websites makes it difficult to ensure the authenticity of the identity information, thus posing certain security risks. At the same time, during the loading of web pages, the loading speed of operable controls is slow, and the user experience needs to be improved.
[0004] Therefore, how to improve the security and speed of webpage loading is a hot topic that is being researched by those skilled in the art. Summary of the Invention
[0005] This invention provides a webpage loading method, apparatus, computer device, and computer-readable storage medium, aiming to improve the security and convenience of user registration and login before webpage loading, as well as the personalization and intelligence during webpage loading, and to achieve seamless user security authentication.
[0006] In a first aspect, embodiments of the present invention provide a webpage loading method, including:
[0007] Obtain the target user's identity information and the webpage information requested by the target user based on the webpage login request entered by the target user;
[0008] When it is determined that the identity information is not associated with webpage information, security verification of the identity information is performed;
[0009] Generate permission information corresponding to the webpage information based on the identity information that has passed security verification;
[0010] Obtain the loading requirements of the target user and generate a loading process based on the loading requirements and permission information;
[0011] The webpage content corresponding to the webpage information is loaded through a loading process.
[0012] In some implementations, the identity information is securely verified, including:
[0013] Query the historical request records of the target user for loading web pages within a preset time period;
[0014] Determine the operational security level of the target user based on historical request records;
[0015] When the operation security factor is greater than the preset threshold, the corresponding identity information is confirmed to pass the security verification.
[0016] In some implementations, the historical request record includes at least the network address information used by the target user when entering login requests within a preset time period. Determining the target user's operational security level based on the historical request record includes:
[0017] Parse historical request records to obtain the contact information and identity string used by the target user when requesting to load the webpage;
[0018] The first security factor corresponding to the contact information and the second security factor corresponding to the identity string are determined based on the network address information.
[0019] The operational safety factor is generated based on the first safety factor and the second safety factor.
[0020] In some implementations, determining a first security factor corresponding to the contact information includes:
[0021] Based on network address information and contact information, obtain the target user's single contact information and determine the number of times the single contact information is reused within a preset time period;
[0022] Determine frequently used and infrequently used contact information within a single contact message based on the number of times it is reused.
[0023] Calculate the sample proportion of frequently used contact information in the contact information, and determine the sample number of infrequently used contact information;
[0024] The first safety factor is determined based on the sample proportion of frequently used contact information and the sample quantity of infrequently used contact information.
[0025] In some implementations, determining the second security factor corresponding to the identity string includes:
[0026] Call the preset identity string sample set, which includes several identity string samples and network address information samples corresponding to the identity string samples;
[0027] Search for identity string samples that match the identity string in the identity string sample set, and extract the corresponding network address information samples;
[0028] The geographical span of the network address information sample is calculated to determine the second security factor.
[0029] In some implementations, a loading process is generated based on loading requirements and permission information, including:
[0030] Determine the target user's user level based on the permission information;
[0031] Match the optional processes corresponding to the user level in the preset operation permission library, and determine the loading process from the optional processes according to the loading requirements.
[0032] In some implementations, the webpage content corresponding to the webpage information is loaded through a loading process, including:
[0033] Obtain preload information of web page information, wherein the preload information includes the first position of the control area corresponding to the operable control in the web page information and the second position of the pop-up window area corresponding to the pop-up window;
[0034] The order in which the loading control area and the loading pop-up area are loaded is determined based on the loading process;
[0035] If the control area is loaded first, load the operable control in the first position;
[0036] The third position is obtained by correcting the second position based on the first position, and a pop-up window is loaded at the third position.
[0037] Secondly, embodiments of the present invention also provide a webpage loading device, comprising:
[0038] The request processing module is used to obtain the target user's identity information and the webpage information requested by the target user based on the webpage login request entered by the target user.
[0039] The security verification module is used to perform security verification on identity information when it is determined that the identity information is not associated with web page information;
[0040] The permission information generation module is used to generate permission information corresponding to the webpage information based on the identity information that has passed security verification.
[0041] The loading process generation module is used to obtain the loading requirements of the target user and generate a loading process based on the loading requirements and permission information.
[0042] The loading execution module is used to load the webpage content corresponding to the webpage information through the loading process.
[0043] Thirdly, embodiments of the present invention also provide a computer device, the computer device including a memory and a processor;
[0044] Memory, used to store computer programs;
[0045] A processor for executing computer programs and, in executing the computer programs, implementing any of the web page loading methods provided in the embodiments of this specification.
[0046] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to implement any of the web page loading methods provided in the embodiments of this specification.
[0047] This invention provides a webpage loading method, apparatus, computer device, and computer-readable storage medium. The webpage loading method includes: obtaining the target user's identity information and the requested webpage information based on a webpage login request input by the target user; when it is determined that the identity information is not associated with webpage information, performing security verification on the identity information; generating permission information corresponding to the webpage information based on the verified identity information; obtaining the target user's loading requirements; generating a loading process based on the loading requirements and permission information; and loading the webpage content corresponding to the webpage information through the loading process. The webpage loading method provided by this invention generates corresponding permission information by performing security verification on unassociated users and achieves a personalized and intelligent webpage loading effect based on the permission information. Attached Figure Description
[0048] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0049] Figure 1 This is a flowchart illustrating the steps of a webpage loading method according to an embodiment of the present invention;
[0050] Figure 2 yes Figure 1 A flowchart illustrating the security verification steps in the webpage loading method;
[0051] Figure 3 yes Figure 2 A flowchart illustrating the operation security factor generation step within the security verification process;
[0052] Figure 4 yes Figure 1 A flowchart illustrating the loading process generation steps in the webpage loading method;
[0053] Figure 5 yes Figure 1 A flowchart illustrating the steps of loading webpage content in the webpage loading method;
[0054] Figure 6 This is a schematic diagram of the module structure of a webpage loading device provided in an embodiment of the present invention;
[0055] Figure 7 This is a schematic block diagram of a computer device provided in an embodiment of the present invention. Detailed Implementation
[0056] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0057] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the order described. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.
[0058] It should be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0059] It should also be understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0060] Currently, users can log in to multiple different website accounts simultaneously. Specifically, when registering and logging into a website to be loaded, a user can generate corresponding identity information based on their account on another website, and then register and log in on the website to be loaded using that identity information. The website to be loaded will then load the corresponding content after confirming the login. However, for the website to be loaded, registering a user based on identity information from another website makes it difficult to ensure the authenticity of the identity information, thus posing certain security risks. Additionally, during the webpage loading process, the loading speed of interactive controls is slow, and the user experience needs improvement.
[0061] Based on this, embodiments of the present invention provide a webpage loading method, apparatus, computer device, and computer-readable storage medium, aiming to improve the security and convenience of user registration and login before webpage loading, as well as the intelligence during webpage loading, and to achieve seamless user security authentication. The webpage loading method can be applied to electronic devices such as computers, intelligent robots, independent servers, or server clusters, and is not limited thereto.
[0062] In this embodiment, the webpage loading method is described using an independent server as an example, but it is not limited to the webpage loading method being used only on an independent server.
[0063] The following detailed description of some embodiments of the present invention is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0064] Please see Figure 1 , Figure 1 The present invention provides a schematic flowchart of a webpage loading method, which specifically includes the following steps S1-S5.
[0065] Step S1: Obtain the target user's identity information and the webpage information requested by the target user based on the webpage login request entered by the target user.
[0066] The target user inputs a webpage login request. Specifically, this can be either the target user sending a webpage login request to the server executing this webpage loading method using their corresponding device, or the target user clicking a preset control to generate a webpage login request. After confirming that the target user's webpage login request has been received, the system obtains the target user's identity information and the webpage information requested by the target user based on the webpage login request.
[0067] Specifically, the webpage login request entered by the target user includes at least the target user's identity information and the webpage information requested by the target user to log in. The webpage information requested by the target user to log in includes at least the website address of the target website to which the target user requests to log in and the webpage content to be loaded on the target website.
[0068] For example, the target user's identity information includes the target user's identity string, network address information, and registration information. It should be understood that the identity string corresponds uniquely to the target user, such as an ID card number; the network address information may be the network address used by the target user when entering the webpage login request, corresponding to the network device used by the target user when entering the webpage login request; and the registration information may be the contact information used by the target user when requesting login information, such as a phone number, email address, or home address.
[0069] In some implementations, obtaining the target user's identity information based on a webpage login request input by the target user includes: parsing the webpage login request input by the target user to obtain an identity string corresponding to the target user, and retrieving the corresponding network address information and registration information from a preset identity information database based on the identity string. It should be understood that the preset identity information database is pre-configured with identity strings, network address information, and registration information for several users, as well as the correspondence between these multiple sets of information. For example, a user's identity string can correspond to several network address information and several registration information, thus allowing the retrieval of the corresponding network address information and registration information from the preset identity information database based on the identity string.
[0070] Furthermore, the identity strings, network address information, and registration information pre-configured in the identity information database can be shared with preset external websites. For example, the webpage information included in the webpage login request corresponds to the target website requested by the target user. The preset external website can be another webpage besides the target website. By pre-associating the target website with the external website, the identity strings, network address information, and registration information used by the user during registration on the external website can be obtained. Based on the identity string, the corresponding network address information and registration information can be retrieved to obtain the target user's identity information. Then, the user registers and logs in on the target website using this identity information. After confirming successful login, the target website loads the corresponding content. This makes webpage loading, registration, login, and loading faster.
[0071] In some implementations, after obtaining the target user's identity information and the webpage information requested by the target user based on the webpage login request entered by the target user, the method further includes: determining whether the identity information is associated with the webpage information. Specifically, the server executing this method traverses the pre-configured association relationships between identity information and webpage information to determine whether the identity information is associated with the webpage information. An association between identity information and webpage information indicates that the identity information has passed the security verification of the target website, while no association between identity information and webpage information indicates that the identity information has not undergone security verification or has failed security verification.
[0072] It should be understood that directly retrieving the corresponding network address and registration information from an identity string to obtain the target user's identity information, and then using this identity information to register on a target website, poses a certain security risk to both the target website and the target user. Therefore, when obtaining identity information and webpage information, it is necessary to determine whether the identity information is associated with the webpage information. If it is determined that the identity information is not associated with webpage information, security verification of the identity information is required to improve the security and speed of webpage loading.
[0073] Step S2: When it is determined that the identity information is not associated with web page information, perform security verification on the identity information.
[0074] like Figure 2 As shown, in some embodiments, the identity information is securely verified in step S2, specifically including steps S21-S23:
[0075] Step S21: Query the historical request records of the target user requesting to load the webpage within a preset time period;
[0076] Step S22: Determine the target user's operation security factor based on historical request records;
[0077] Step S23: When the operation security factor is greater than the preset threshold, the corresponding identity information is confirmed to have passed the security verification.
[0078] Specifically, the server executing this method first queries the target user's historical request records for loading web pages within a preset time period based on the user's identity information. Then, it determines the target user's operation security coefficient based on the historical request records. When the operation security coefficient is greater than a preset threshold, the corresponding identity information is confirmed to have passed security verification. The preset time period can be one week, one month, or one year, and the length of the preset time period and its start time can be set according to actual needs.
[0079] It should be noted that historical request records are any single login requests made by the target user within a preset time period, containing information such as identity strings, network address information, or contact information. The target user's operation security coefficient represents the security level of the identity strings, network address information, and contact information used by the target user in the input web page login request. Therefore, the target user's operation security coefficient can be determined based on the historical request records, and the corresponding identity information can be determined based on the operation security coefficient to determine whether it has passed security verification.
[0080] In some implementations, the server is pre-configured with a historical request record database for storing historical request records. Querying the historical request records of a target user requesting to load a webpage within a preset time period includes: retrieving the target user's historical request records for loading a webpage within the historical request record database based on their identity information. Specifically, the historical request records of a target user requesting to load a webpage within the preset time period include the network address information used by the target user when entering the webpage login request, the contact information used by the target user when requesting to load the webpage, and identity strings, etc.
[0081] It should be understood that querying the target user's historical request records for loading web pages within a preset time period when the identity information is not associated with the web page information can effectively perform user security authentication for the target user, and can keep the corresponding target user unaware of the user security authentication process.
[0082] like Figure 3 As shown, in some implementations, the historical request record includes at least the network address information used by the target user when entering the login request within a preset time period. Step S22 determines the target user's operation security factor based on the historical request record, specifically including steps S221-S223:
[0083] Step S221: Parse historical request records to obtain the contact information and identity string used by the target user when requesting to load the webpage;
[0084] Step S222: Determine the first security factor corresponding to the contact information and the second security factor corresponding to the identity string based on the network address information;
[0085] Step S223: Generate an operational safety factor based on the first safety factor and the second safety factor.
[0086] Specifically, the historical request record contains any number of single login requests entered by the target user within a preset time period. The network address information is the IP address (Internet Protocol Address) used by the target user when entering the login request within the preset time period, which is also the IP address corresponding to the login request received by the server executing this method.
[0087] The server executing this method first parses historical request records to obtain the contact information and identity string used by the target user when requesting to load web pages in the history, as well as the network address information used by the target user when entering login requests within a preset time period. Then, based on the network address information, it determines a first security factor corresponding to the contact information and a second security factor corresponding to the identity string, and generates an operation security factor based on the first and second security factors. A higher first security factor indicates higher credibility of the contact information used by the target user in the history, and a higher second security factor indicates higher credibility of the identity string used by the target user in the history.
[0088] For example, after determining the first security factor corresponding to the contact information and the second security factor corresponding to the identity information, the operation security factor can be calculated based on the first security factor, the first weight pre-configured for the first security factor, the second security factor, and the second weight pre-configured for the second security factor.
[0089] In some implementations, determining the first security factor corresponding to the contact information in step S222 specifically includes:
[0090] Based on network address information and contact information, obtain the target user's single contact information and determine the number of times the single contact information is reused within a preset time period;
[0091] Determine frequently used and infrequently used contact information within a single contact message based on the number of times it is reused.
[0092] Calculate the sample proportion of frequently used contact information in the contact information, and determine the sample number of infrequently used contact information;
[0093] The first safety factor is determined based on the sample proportion of frequently used contact information and the sample quantity of infrequently used contact information.
[0094] Specifically, the first security factor characterizes the credibility of the contact information used by the target user in the historical record. When determining the first security factor corresponding to the contact information, the server executing this method first obtains several single contact information corresponding to the target user based on the network address information and the contact information, and determines the number of times the single contact information is reused in a preset time period. Based on the number of reuses, frequently used contact information and infrequently used contact information are determined in the single contact information. Then, the sample proportion of frequently used contact information in all contact information in the historical record is calculated, and the sample size of infrequently used contact information is determined. Finally, the first security factor is determined based on the sample proportion of frequently used contact information and the sample size of infrequently used contact information.
[0095] It should be understood that a single contact information refers to the contact information used by a target user in a single login request within a preset time period, such as a home address, email address, or phone number. Specifically, this method associates network address information with target users one-to-one, that is, it determines several single contact information corresponding to a target user through network address information. The number of times a single contact information is reused within the preset time period can be obtained by statistically analyzing the usage frequency of the home address, email address, and phone number used in login requests output from the same network address information. The sample size of infrequent contact information is the number of different contact information among the infrequent contact information.
[0096] For example, in login requests sent by the same network address information A within a preset time period, the email addresses used include "example001.com", "example002.com", and "example003.com". The number of times "example001.com" is reused is 7, "example002.com" is reused 2 times, and "example001.com" is reused 1 time. Therefore, the frequently used contact information for network address information A is determined to be "example001.com", while the infrequently used contact information includes "example002.com" and "example003.com". Furthermore, the sample proportion of "example001.com" is determined to be 7 / 10, and the sample size of infrequently used contact information is 2. After obtaining the sample proportion of frequently used contact information and the sample size of infrequently used contact information, a first security factor can be determined based on these factors.
[0097] By determining the first security factor based on the sample ratio of frequently used contact information and the sample number of infrequently used contact information, the credibility of the contact information used by the target user in the historical record can be effectively determined, avoiding website congestion caused by the same network address using different contact information multiple times. For example, when this method is applied to some ticketing websites, when there are many users requesting to log in to the ticketing website at the same time, the target users with higher credibility of the corresponding contact information can be given priority to log in to the ticketing website.
[0098] In some implementations, determining the second security factor corresponding to the identity string in step S222 specifically includes:
[0099] Call the preset identity string sample set, which includes several identity string samples and network address information samples corresponding to the identity string samples;
[0100] Search for identity string samples that match the identity string in the identity string sample set, and extract the corresponding network address information samples;
[0101] The geographical span of the network address information sample is calculated to determine the second security factor.
[0102] Specifically, the server executing this method first calls a preset set of identity string samples. This set includes several identity string samples and corresponding network address information samples. Then, it searches the set for identity string samples that match the original identity string, extracts the network address information sample corresponding to each identity string sample, and calculates the geographic span of the network address information sample to determine a second security factor. It should be noted that the identity string samples matching the original identity string are specifically those identical to the identity string in the webpage login request.
[0103] It should be understood that the geographical span of the network address information samples specifically refers to the geographical span between the server addresses corresponding to each of the multiple network address information samples. It is important to know that the server addresses are real geographical locations. Specifically, calculating the geographical span of the network address information samples to determine the second security factor includes: obtaining the server address corresponding to each network address information sample, and calculating the geographical span of the server addresses corresponding to the multiple network address information samples based on the real geographical locations of the multiple server addresses. It should be noted that the geographical span is used to represent the distance information between the real geographical locations of at least two different server addresses. For example, the distance between the two farthest server addresses among the multiple server addresses can be used as the geographical span. It should also be noted that the larger the geographical span, the lower the second security factor.
[0104] It should also be understood that the preset set of identity string samples can be obtained by parsing historical request records. Specifically, several identity strings and their corresponding network address information are extracted from the historical request records as samples to obtain identity string samples.
[0105] For example, for the same identity string, such as an ID card number, this method first queries the identity string sample set that is the same as the ID card number, and then queries the network address information corresponding to the login operation using the ID card number. Then, it further determines the server address corresponding to the network address information sample to determine the second security factor based on the geographical span of multiple server addresses.
[0106] For example, if a query in the identity string sample set finds five records of an ID card number being used to log in to a website, and the corresponding server addresses are Guangdong, Guangdong, Guangdong, Guangxi, and Beijing, then the geographical span can be calculated based on the farthest server addresses—Guangdong and Beijing. A larger geographical span results in a lower second security factor. It should be understood that a larger geographical span may indicate that the same identity string has been used multiple times for impersonation. For instance, for a ticketing website, an ID card number with login records in multiple provinces has lower credibility and is therefore assigned a lower second security factor.
[0107] By determining the second security factor based on the geographical span of network address information samples, and assigning a lower second security factor to the corresponding identity string with a larger geographical span, the operation security factor of the current target user is further determined, making it difficult for identity strings that have been impersonated in multiple provinces to pass security verification.
[0108] Step S3: Generate permission information corresponding to the webpage information based on the identity information that has passed security verification.
[0109] After verifying the identity information, permission information corresponding to the webpage information is generated based on the verified identity information. Specifically, this can be done by matching the verified identity information with the webpage information according to a preset matching relationship, or by generating permission information corresponding to the webpage information based on the operation security level determined during the security verification process. It should be understood that the higher the operation security level, the more permissions are corresponding to the generated permission information.
[0110] For example, when this method is applied to some ticketing websites, if there are many users requesting to log in at the same time, more permissions can be granted to target users with higher operational security levels. This allows target users with higher operational security levels to use a smoother and more convenient loading process in subsequent page loading, thus helping these target users purchase tickets.
[0111] In some implementations, this method further includes: when identity information is associated with webpage information, generating permission information corresponding to the webpage information based on the identity information. Specifically, the server executing this method can generate corresponding permission information based on the identity information associated with the webpage information.
[0112] Step S4: Obtain the loading requirements of the target user and generate a loading process based on the loading requirements and permission information.
[0113] In some implementations, the web login request also includes information corresponding to loading requirements. Before determining the loading process in the optional process based on the loading requirements, the process further includes: parsing the web login request to obtain the loading requirements. Specifically, the loading requirements include, but are not limited to, the target loading process input by the target user.
[0114] In other implementations, obtaining the target user's loading requirements specifically includes: outputting and displaying alternative loading requirement information, wherein the alternative loading requirement information includes loading process requirements that the target user can select, and receiving the loading requirements input by the target user in response to the alternative loading requirement information.
[0115] like Figure 4As shown, in some implementations, step S4 generates a loading process based on loading requirements and permission information, specifically including steps S41-S42:
[0116] Step S41: Determine the user level of the target user based on the permission information;
[0117] Step S42: Match the optional process corresponding to the user level in the preset operation permission library, and determine the loading process from the optional process according to the loading requirements.
[0118] Specifically, the pre-defined operation permission library stores several process samples. The server executing this method first determines the target user's user level based on the permission information. Then, it matches the process samples stored in the pre-defined operation permission library with the optional processes corresponding to the user level, and determines the loading process from the optional processes according to the loading requirements. It should be understood that the target user's permission information corresponds to the user level. The more permissions the permission information corresponds to, the higher the user level, and the more optional processes the target user can actually choose from at that user level.
[0119] After matching the optional processes corresponding to the user level of the target user, the loading process is determined according to the loading requirements input by the target user and the optional processes that the target user can actually choose. Specifically, the loading process includes at least the order between the control area corresponding to the operable control and the pop-up area corresponding to the pop-up window, so that the web page content corresponding to the web page information is loaded according to the loading process in the future, so as to realize personalized loading process configuration.
[0120] Step S5: Load the webpage content corresponding to the webpage information through the loading process.
[0121] like Figure 5 As shown, in some implementations, step S5 loads the webpage content corresponding to the webpage information through a loading process, specifically including steps S51-S54:
[0122] Step S51: Obtain the preloading information of the web page information, wherein the preloading information includes the first position of the control area corresponding to the operable control in the web page information and the second position of the pop-up window area corresponding to the pop-up window.
[0123] Step S52: Determine the order of loading the control area and loading the pop-up area according to the loading process;
[0124] Step S53: If the control area is loaded first, load the operable control in the first position;
[0125] Step S54: Correct the second position according to the first position to obtain the third position, and load a pop-up window at the third position.
[0126] It should be understood that the pre-loaded information for web pages specifically includes several web page contents and the corresponding location information of those contents within the website page. The web page content includes, but is not limited to, animations, images, text, operable controls, or pop-ups. Pop-ups within the web page information include, but are not limited to, pop-up images, text, and animations. It should also be understood that during the loading process of some website pages, pop-ups may obscure operable controls. In such cases, the pop-up must be closed before clicking the operable control, which is inconvenient for the target user. For example, on some ticketing websites, the target user has a limited time to click on operable controls to perform the ticket purchase operation.
[0127] Based on this, the server executing this method first obtains pre-loading information of the webpage information. This pre-loading information includes the first position of the control area corresponding to the operable control and the second position of the pop-up area corresponding to the pop-up. The loading order between loading the control area and loading the pop-up area is determined according to the loading process. If the control area is loaded first, the operable control is loaded at the first position, and the second position is adjusted based on the first position to obtain the third position, so that the pop-up is loaded at the third position.
[0128] In some implementations, the third position is obtained by modifying the second position based on the first position, and the pop-up is loaded at the third position. Specifically, this can be done by adjusting the second position of the pop-up area to obtain the third position, so that the pop-up loaded at the third position is offset from the operable controls, and then loading the pop-up at the third position. Alternatively, the pop-up may not be displayed in the area where the first and second positions overlap, thereby avoiding the pop-up from affecting the operable controls of the target user, and improving the convenience and intelligence of the target user's login to the website and website loading.
[0129] In summary, the webpage loading method provided by this invention can be applied to servers to improve the security and convenience of user registration and login before webpage loading, as well as the personalization and intelligence during webpage loading, and achieve seamless user security authentication. Specifically, the webpage loading method includes: obtaining the target user's identity information and the webpage information requested by the target user based on the webpage login request input by the target user; when it is determined that the identity information is not associated with webpage information, performing security verification on the identity information; generating permission information corresponding to the webpage information based on the verified identity information; obtaining the target user's loading requirements; generating a loading process based on the loading requirements and permission information; and loading the webpage content corresponding to the webpage information through the loading process. The webpage loading method provided by this invention improves the security and convenience of user registration and login before webpage loading, as well as the personalization and intelligence during webpage loading, and achieves seamless user security authentication by performing security verification on unassociated users to generate corresponding permission information and achieving personalized and intelligent webpage loading effects based on the permission information.
[0130] This invention also provides a webpage loading device. Figure 6 This is a schematic diagram of the module structure of a webpage loading device provided in an embodiment of the present invention, such as... Figure 6 As shown, the webpage loading device 600 includes:
[0131] The request processing module 601 is used to obtain the target user's identity information and the webpage information requested by the target user based on the webpage login request entered by the target user.
[0132] The security verification module 602 is used to perform security verification on the identity information when it is determined that the identity information is not associated with web page information;
[0133] The permission information generation module 603 is used to generate permission information corresponding to the webpage information based on the identity information that has passed security verification.
[0134] The loading process generation module 604 is used to obtain the loading requirements of the target user and generate a loading process based on the loading requirements and permission information.
[0135] The loading execution module 605 is used to load the web page content corresponding to the web page information through the loading process.
[0136] In some implementations, the security verification module 602 performs security verification on the identity information, specifically including:
[0137] Query the historical request records of the target user for loading web pages within a preset time period;
[0138] Determine the operational security level of the target user based on historical request records;
[0139] When the operation security factor is greater than the preset threshold, the corresponding identity information is confirmed to pass the security verification.
[0140] In some implementations, the historical request record includes at least the network address information used by the target user when entering the webpage login request. The security verification module 602 determines the target user's operation security level based on the historical request record, specifically including:
[0141] Parse historical request records to obtain the contact information and identity string used by the target user when requesting to load the webpage;
[0142] Determine the first security factor corresponding to the contact information and the second security factor corresponding to the identity information;
[0143] The operational safety factor is generated based on the first safety factor and the second safety factor.
[0144] In some implementations, the security verification module 602 determines a first security factor corresponding to the contact information, specifically including:
[0145] Based on network address information and contact information, obtain the target user's single contact information and determine the number of times the single contact information is reused within a preset time period;
[0146] Determine frequently used and infrequently used contact information within a single contact message based on the number of times it is reused.
[0147] Calculate the sample proportion of frequently used contact information in the contact information, and determine the sample number of infrequently used contact information;
[0148] The first safety factor is determined based on the sample proportion of frequently used contact information and the sample quantity of infrequently used contact information.
[0149] In some implementations, the security verification module 602 determines a second security factor corresponding to the identity string, specifically including:
[0150] Call the preset identity string sample set, which includes several identity string samples and network address information samples corresponding to the identity string samples;
[0151] Search for identity string samples that match the identity string in the identity string sample set, and extract the corresponding network address information samples;
[0152] The geographical span of the network address information sample is calculated to determine the second security factor.
[0153] In some implementations, the loading process generation module 604 generates a loading process based on loading requirements and permission information, including:
[0154] Determine the target user's user level based on the permission information;
[0155] Match the optional processes corresponding to the user level in the preset operation permission library, and determine the loading process from the optional processes according to the loading requirements.
[0156] In some implementations, the loading execution module 605 loads the webpage content corresponding to the webpage information through a loading process, including:
[0157] Obtain preload information of web page information, wherein the preload information includes the first position of the control area corresponding to the operable control in the web page information and the second position of the pop-up window area corresponding to the pop-up window;
[0158] The order in which the loading control area and the loading pop-up area are loaded is determined based on the loading process;
[0159] If the control area is loaded first, load the operable control in the first position;
[0160] The third position is obtained by correcting the second position based on the first position, and a pop-up window is loaded at the third position.
[0161] This invention also provides a computer device; please refer to [link / reference]. Figure 7 , Figure 7 This is a schematic block diagram of the structure of a computer device provided in an embodiment of the present invention.
[0162] like Figure 7 As shown, the computer device 700 includes a processor 701 and a memory 702, which are connected via a bus 703, such as an I2C (Inter-integrated Circuit) bus.
[0163] Specifically, processor 701 provides computing and control capabilities to support the operation of the entire computer device. Processor 701 can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0164] Specifically, the memory 702 can be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a portable hard drive, etc.
[0165] Those skilled in the art will understand that Figure 7 The structures shown are merely block diagrams of some structures related to the embodiments of the present invention, and do not constitute a limitation on the computer devices to which the embodiments of the present invention are applied. Specific computer devices may include more or fewer components than those shown in the figures, or combine certain components, or have different component arrangements.
[0166] The processor is used to run a computer program stored in the memory, and implements any of the web page loading methods provided in the embodiments of the present invention when executing the computer program.
[0167] In some embodiments, processor 701 is used to run a computer program stored in memory 702, and performs the following steps when executing the computer program:
[0168] Obtain the target user's identity information and the webpage information requested by the target user based on the webpage login request entered by the target user;
[0169] When it is determined that the identity information is not associated with webpage information, security verification of the identity information is performed;
[0170] Generate permission information corresponding to the webpage information based on the identity information that has passed security verification;
[0171] Obtain the loading requirements of the target user and generate a loading process based on the loading requirements and permission information;
[0172] The webpage content corresponding to the webpage information is loaded through a loading process.
[0173] In some implementations, when performing security verification on identity information, the processor 701 includes:
[0174] Query the historical request records of the target user for loading web pages within a preset time period;
[0175] Determine the operational security level of the target user based on historical request records;
[0176] When the operation security factor is greater than the preset threshold, the corresponding identity information is confirmed to pass the security verification.
[0177] In some implementations, the historical request record includes at least the network address information used by the target user when entering the login request. When determining the target user's operational security factor based on the historical request record, the processor 701 includes:
[0178] Parse historical request records to obtain the contact information and identity string used by the target user when requesting to load the webpage;
[0179] The first security factor corresponding to the contact information and the second security factor corresponding to the identity string are determined based on the network address information.
[0180] The operational safety factor is generated based on the first safety factor and the second safety factor.
[0181] In some implementations, when determining the first security factor corresponding to the contact information, the processor 701 includes:
[0182] Based on network address information and contact information, obtain the target user's single contact information and determine the number of times the single contact information is reused within a preset time period;
[0183] Determine frequently used and infrequently used contact information within a single contact message based on the number of times it is reused.
[0184] Calculate the sample proportion of frequently used contact information in the contact information, and determine the sample number of infrequently used contact information;
[0185] The first safety factor is determined based on the sample proportion of frequently used contact information and the sample quantity of infrequently used contact information.
[0186] In some implementations, when determining the second security factor corresponding to the identity string, the processor 701 includes:
[0187] Call the preset identity string sample set, which includes several identity string samples and network address information samples corresponding to the identity string samples;
[0188] Search for identity string samples that match the identity string in the identity string sample set, and extract the corresponding network address information samples;
[0189] The geographical span of the network address information sample is calculated to determine the second security factor.
[0190] In some implementations, when the processor 701 generates a loading process based on loading requirements and permission information, it includes:
[0191] Determine the target user's user level based on the permission information;
[0192] Match the optional processes corresponding to the user level in the preset operation permission library, and determine the loading process from the optional processes according to the loading requirements.
[0193] In some implementations, when the processor 701 loads the webpage content corresponding to the webpage information through the loading process, it includes:
[0194] Obtain preload information of web page information, wherein the preload information includes the first position of the control area corresponding to the operable control in the web page information and the second position of the pop-up window area corresponding to the pop-up window;
[0195] The order in which the loading control area and the loading pop-up area are loaded is determined based on the loading process;
[0196] If the control area is loaded first, load the operable control in the first position;
[0197] The third position is obtained by correcting the second position based on the first position, and a pop-up window is loaded at the third position.
[0198] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the computer device described above can be referred to the corresponding process in the aforementioned animal identification method embodiments, and will not be repeated here.
[0199] This invention also provides a computer-readable storage medium storing a computer program that can be executed by one or more processors to implement the steps of any of the webpage loading methods provided in the embodiments of this specification.
[0200] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiments, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, SmartMedia Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the computer device.
[0201] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware embodiments, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0202] It should be understood that the term "and / or" as used in this specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes such combinations. It should be noted that, herein, the terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0203] The sequence numbers of the above embodiments of the present invention are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. The above descriptions are only specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A webpage loading method, characterized in that, The method includes: Based on the webpage login request entered by the target user, obtain the target user's identity information and the webpage information requested by the target user to log in; When it is determined that the identity information is not associated with the webpage information, the identity information is subjected to security verification; Based on the identity information that has passed the security verification, permission information corresponding to the webpage information is generated; Obtain the loading requirements of the target user, and generate a loading process based on the loading requirements and the permission information; The webpage content corresponding to the webpage information is loaded through the loading process described above. The security verification of the identity information includes: Query the historical request records of the target user requesting to load web pages within a preset time period. The historical request records include at least the network address information used by the target user when entering the login request within the preset time period. The operational security factor of the target user is determined based on the historical request records. When the operation security factor is greater than a preset threshold, the corresponding identity information is determined to have passed the security verification. Determining the target user's operational security factor based on the historical request records includes: Parse the historical request records to obtain the contact information and identity string used by the target user when requesting to load the webpage; Based on the network address information, a first security factor corresponding to the contact information and a second security factor corresponding to the identity string are determined; The operational safety factor is generated based on the first safety factor and the second safety factor.
2. The method according to claim 1, characterized in that, Determining the first security factor corresponding to the contact information includes: Based on the network address information and the contact information, obtain the single contact information of the target user, and determine the number of times the single contact information is reused within the preset time period; Based on the number of times it is reused, frequently used and infrequently used contact information are determined from the single contact information. Calculate the sample proportion of the frequently used contact information in the contact information, and determine the sample quantity of the infrequently used contact information; The first security factor is determined based on the sample proportion of the frequently used contact information and the sample quantity of the infrequently used contact information.
3. The method according to claim 2, characterized in that, Determining the second security factor corresponding to the identity string includes: Call a preset set of identity string samples, wherein the set of identity string samples includes several identity string samples and network address information samples corresponding to the identity string samples; Query the identity string sample set to find the identity string that matches the identity string, and extract the corresponding network address information sample; The geographical span of the network address information sample is calculated to determine the second security factor.
4. The method as described in claim 1, characterized in that, The step of generating a loading process based on the loading requirements and the permission information includes: The user level of the target user is determined based on the permission information; Match the optional process corresponding to the user level in the preset operation permission library, and determine the loading process from the optional process according to the loading requirements.
5. The method according to any one of claims 1-4, characterized in that, The loading of the webpage content corresponding to the webpage information through the loading process includes: Obtain preload information of the web page information, wherein the preload information includes the first position of the control area corresponding to the operable control in the web page information and the second position of the pop-up window area corresponding to the pop-up window; The loading order between loading the control area and loading the pop-up area is determined according to the loading process. If the control area is loaded first, the operable control is loaded at the first position; The second position is corrected based on the first position to obtain the third position, and the pop-up window is loaded at the third position.
6. A webpage loading device, characterized in that, include: The request processing module is used to obtain the identity information of the target user and the webpage information requested by the target user based on the webpage login request input by the target user. The security verification module is used to perform security verification on the identity information when it is determined that the identity information is not associated with the webpage information; The permission information generation module is used to generate permission information corresponding to the webpage information based on the identity information that has passed the security verification; The loading process generation module is used to obtain the loading requirements of the target user and generate a loading process based on the loading requirements and the permission information. A loading execution module is used to load the webpage content corresponding to the webpage information through the loading process. The security verification module performs security verification on the identity information, including: Query the historical request records of the target user requesting to load web pages within a preset time period. The historical request records include at least the network address information used by the target user when entering the login request within the preset time period. The operational security factor of the target user is determined based on the historical request records. When the operation security factor is greater than a preset threshold, the corresponding identity information is determined to have passed the security verification. The security verification module determines the target user's operation security factor based on the historical request records, including: Parse the historical request records to obtain the contact information and identity string used by the target user when requesting to load the webpage; Based on the network address information, a first security factor corresponding to the contact information and a second security factor corresponding to the identity string are determined; The operational safety factor is generated based on the first safety factor and the second safety factor.
7. A computer device, characterized in that, The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is configured to execute the computer program and, in executing the computer program, implement the webpage loading method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to implement the web page loading method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
User login validation method, device and system
CN104580075A
Floating window page display method, device and equipment / terminal / server
CN111045573A
Information access method and device, computer equipment and medium
CN113239397A
Page loading method and device, electronic equipment and storage medium
CN114238801A