Page display methods, resource delivery methods, electronic devices, servers and media
By encapsulating the link request parameters in the header information on the page and only allows the proxy server analysis to solve the problem of the page jumping link easily attacked, and realizes the security protection and improvement of user privacy.
Patent Information
- Application Number
- CN202210398403.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-15
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2042-04-15
AI Technical Summary
When users browse web pages through electronic devices, the page jump link is easily attacked, resulting in user privacy leakage and affecting the user's user experience.
By detecting the trigger operation of the page jump link, obtain the link request parameter and package it in the head information of the page jumping link, send a page to the proxy server to obtain page resources to ensure that only the proxy server can analyze these parameters.
Effectively prevent the leakage of users' privacy, ensure the privacy and security of users, and improve the user experience.
Smart Images

Figure CN114710547B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of Internet technology, and in particular to a page display method, a resource sending method, an electronic device, a server and a medium. Background Art
[0002] With the development of Internet technology, users can browse web pages through electronic devices to obtain the Internet information they need.
[0003] When a user browses a web page through an electronic device, the electronic device needs to send a page jump link to the server for obtaining page resources. In the related art, the page jump link is generally spliced with the user's information, and criminals often use some illegal means to attack the page jump link sent by the electronic device, thereby stealing the user's information, causing the user's privacy to be leaked, and then the user's privacy security cannot be guaranteed, affecting the user's experience. Summary of the invention
[0004] In order to solve the above technical problems, the present disclosure provides a page display method, a resource sending method, an electronic device, a server and a medium.
[0005] In a first aspect, the present disclosure provides a page display method, comprising:
[0006] In response to detecting a triggering operation on a page jump link within the target application, obtaining link request parameters required for the page jump link;
[0007] Encapsulate the link request parameters in the header information of the page jump link;
[0008] Sending a page request to the proxy server, the page request carrying the encapsulated page jump link, the page request is used to make the proxy server request the target server to feedback the page resource corresponding to the encapsulated page jump link;
[0009] Receive page resources fed back by the target server;
[0010] Display the target page corresponding to the page resource in the target application.
[0011] In a second aspect, the present disclosure provides a resource sending method, including:
[0012] Receiving a page request sent by an electronic device, the page request carrying an encapsulated page jump link;
[0013] Parse the encapsulated page jump link to obtain header information corresponding to the encapsulated page jump link, where the header information includes link request parameters;
[0014] Concatenate the original page jump link corresponding to the encapsulated page jump link with the link request parameter;
[0015] A resource request is sent to a target server, wherein the resource request carries a spliced page jump link, and the spliced page jump link is used to enable the target server to feed back a corresponding page resource to the electronic device.
[0016] In a third aspect, the present disclosure provides an electronic device, including a processor and a memory, wherein the memory is used to store executable instructions, and the executable instructions enable the processor to perform the following operations:
[0017] In response to detecting a triggering operation on a page jump link within the target application, obtaining link request parameters required for the page jump link;
[0018] Encapsulate the link request parameters in the header information of the page jump link;
[0019] Sending a page request to the proxy server, the page request carrying the encapsulated page jump link, the page request is used to make the proxy server request the target server to feedback the page resource corresponding to the encapsulated page jump link;
[0020] Receive page resources fed back by the target server;
[0021] Display the target page corresponding to the page resource in the target application.
[0022] In a fourth aspect, the present disclosure provides a proxy server, including a processor and a memory, wherein the memory is used to store executable instructions, and the executable instructions enable the processor to perform the following operations:
[0023] Receiving a page request sent by an electronic device, the page request carrying an encapsulated page jump link;
[0024] Parse the encapsulated page jump link to obtain header information corresponding to the encapsulated page jump link, where the header information includes link request parameters;
[0025] Concatenate the original page jump link corresponding to the encapsulated page jump link with the link request parameter;
[0026] A resource request is sent to a target server, wherein the resource request carries a spliced page jump link, and the spliced page jump link is used to enable the target server to feed back a corresponding page resource to the electronic device.
[0027] In a fifth aspect, the present disclosure provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor implements the page display method of the first aspect or the resource sending method of the second aspect.
[0028] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0029] The page display method, resource sending method, electronic device, server and medium of the embodiments of the present disclosure can encapsulate the link request parameters required for the page jump link in the header information of the page jump link, obtain the encapsulated page jump link, and transmit the encapsulated page jump link between the electronic device and the proxy server to obtain the page resources to be displayed, thereby realizing the display of the target page. Since the header information of the page jump link can only be parsed by the corresponding proxy server, even if the encapsulated page jump link sent by the electronic device is attacked, it can effectively prevent the user's privacy from being leaked, ensure the user's privacy security, and thus improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0031] Figure 1 A flowchart of a page display method provided by an embodiment of the present disclosure;
[0032] Figure 2 A flowchart of another page display method provided by an embodiment of the present disclosure;
[0033] Figure 3 A schematic diagram of a flow chart of a resource sending method provided in an embodiment of the present disclosure;
[0034] Figure 4 A flowchart of a data interaction method provided by an embodiment of the present disclosure;
[0035] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;
[0036] Figure 6 A schematic diagram of the structure of a proxy server provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0037] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain 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 construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0038] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0039] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0040] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0041] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0042] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0043] The embodiments of the present disclosure provide a page display method, a resource sending method, an electronic device, a server and a medium.
[0044] Let's first combine Figure 1 The page display method provided by the embodiment of the present disclosure is described.
[0045] The page display method provided in the embodiment of the present disclosure may be executed by an electronic device capable of displaying a page, wherein the electronic device may include but is not limited to mobile terminals such as smart phones, laptops, tablet computers, etc., and fixed terminals such as desktop computers, smart home devices, etc.
[0046] Figure 1 A flow chart of a page display method provided by an embodiment of the present disclosure is shown.
[0047] like Figure 1 As shown, the page display method may include the following steps.
[0048] S110 . In response to detecting a triggering operation on a page jump link in a target application, obtaining link request parameters required for the page jump link.
[0049] In the disclosed embodiment, the electronic device can detect the trigger operation on the page jump link in the target application in real time during the process of displaying the page jump link in the target application. When the user wants to open the target page corresponding to the page jump link in the target application, the trigger operation for the page jump link can be input to the electronic device, and the electronic device can obtain the link request parameters required for the page jump link in response to detecting the user's trigger operation on the page jump link in the target application.
[0050] Optionally, the target application may be an application that displays a page jump link.
[0051] Optionally, the page jump link can be a resource address for obtaining a page resource from a server of a resource provider. The page jump link can be used to implement page jumps of native pages of the target application, or can be used to implement page jumps of pages of parasite programs of the target application, which is not limited here.
[0052] Optionally, the trigger operation can be any user operation that can trigger the electronic device to display the page corresponding to the page jump link. The trigger operation can include a gesture control operation (such as clicking, long pressing, double clicking, etc.), a voice control operation, or an expression control operation on the page jump link, which is not limited here.
[0053] Optionally, the link request parameter may be a parameter required for requesting a page resource corresponding to a page jump link or displaying a page corresponding to a page resource.
[0054] Specifically, taking the target application as a browser application as an example, when the user wants to open page A in the browser application, the page jump link corresponding to page A can be triggered. The electronic device can receive and respond to the trigger operation, trigger the display process of page A, and then obtain the link request parameters required for the page jump link.
[0055] S120: Encapsulate the link request parameters in the header information of the page jump link.
[0056] In the disclosed embodiment, after acquiring the link request parameters required for the page jump link, the electronic device may encapsulate the link request parameters in the header information of the page jump link.
[0057] Specifically, after obtaining the link request parameters required for the page jump link, the electronic device can add the link request parameters to the header information of the page jump link and encapsulate the added header information to encapsulate the link request parameters into the header information of the page jump link.
[0058] For example, the electronic device can package the link request parameters and add the data packet to a specified position in the header information of the page jump link, thereby encapsulating the link request parameters in the header information of the page jump link. Furthermore, the data packet can also be encrypted, thereby adding the encrypted data packet to a specified position in the header information of the page jump link.
[0059] S130: Send a page request to the proxy server, where the page request carries an encapsulated page jump link, and the page request is used to enable the proxy server to request the target server to feedback a page resource corresponding to the encapsulated page jump link.
[0060] In an embodiment of the present disclosure, after the electronic device encapsulates the link request parameters into the header information of the page jump link, it can send a page request carrying the encapsulated page jump link to the proxy server, so that the proxy server requests the target server to feedback the page resources corresponding to the encapsulated page jump link.
[0061] Optionally, the page request may be a request sent by the electronic device to the proxy server for requesting the target server to feedback the page resource.
[0062] Optionally, the page resource may be a resource used to display the target page, for example, the page resource may include text, static images, dynamic images, and videos.
[0063] Optionally, the proxy server can be a server that processes page requests and requests the target server to feedback page resources. The proxy server can serve as a communication interface between the electronic device and the server of the corresponding service, and the electronic device can implement data interaction with the server of the corresponding service through the proxy server.
[0064] Specifically, after the electronic device encapsulates the link request parameters into the header information of the page jump link, it can send a page request carrying the encapsulated page jump link to the proxy server, so that after receiving the page request, the proxy server can obtain the corresponding page resources according to the encapsulated page jump link carried therein, and feedback the obtained page resources to the electronic device.
[0065] S140: Receive page resources fed back by the target server.
[0066] In the disclosed embodiment, after the electronic device sends a page request to the proxy server, it can receive page resources fed back by the target server.
[0067] Specifically, after the electronic device sends a page request to the proxy server, the proxy server can, in response to receiving the page request, request the target service to feedback the encapsulated page jump link to obtain the corresponding page resource, thereby feeding back the page resource to the electronic device, so that the electronic device can receive the page resource fed back by the target server.
[0068] S150: Displaying a target page corresponding to the page resource in the target application.
[0069] In an embodiment of the present disclosure, after receiving the page resource fed back by the target server, the electronic device may display the target page corresponding to the page resource in the target application.
[0070] The target page may be the page that the user expects to see when triggering the page jump link. Specifically, when the page jump link is used to implement page jump of the native page of the target application, the target page may be the native page of the target application; when the page jump link is used to implement page jump of the parasitic program of the target application, the target page may be the page of the parasitic program of the target application.
[0071] Therefore, in the disclosed embodiment, the link request parameters required for the page jump link can be encapsulated in the header information of the page jump link to obtain the encapsulated page jump link, and the encapsulated page jump link can be transmitted between the electronic device and the proxy server to obtain the page resources to be displayed, thereby realizing the display of the target page. Since the header information of the page jump link can only be parsed by the corresponding proxy server, even if the encapsulated page jump link sent by the electronic device is attacked, it can effectively prevent the user's privacy from being leaked, ensure the user's privacy security, and thus improve the user experience.
[0072] In another embodiment of the present disclosure, in order to further ensure the privacy security of the user, the link request parameters may include encryption parameters.
[0073] The encryption parameter may be a parameter obtained by encrypting the user-related parameters.
[0074] Optionally, the user-related parameters may include user privacy data and parameters of the device used by the user, for example, the user's name data, date of birth data, contact phone data, financial data, and device name, device identification code, device address, etc.
[0075] The following is a detailed description of the page display method when the link request includes encrypted parameters.
[0076] Figure 2 A flow chart of another page display method provided by an embodiment of the present disclosure is shown.
[0077] S210: In response to detecting a triggering operation on a page jump link in a target application, obtaining user-related parameters required for the page jump link.
[0078] In the disclosed embodiment, the electronic device can detect the triggering operation on the page jump link in the target application in real time during the process of displaying the page jump link in the target application. When the user wants to open the target page corresponding to the page jump link in the target application, the triggering operation for the page jump link can be input to the electronic device, and the electronic device can obtain the user-related parameters required for the page jump link in response to detecting the user's triggering operation on the page jump link in the target application.
[0079] Specifically, after receiving a trigger operation from the user, the electronic device needs to first determine the parameter type required for the page jump link corresponding to the trigger operation. After determining the required parameter type, it queries and obtains the user-related parameters corresponding to the parameter type from the parameters related to user privacy and the device used by the user that are pre-stored in the local database.
[0080] S220: Encrypt the user-related parameters according to a preset encryption algorithm to obtain encrypted parameters.
[0081] In an embodiment of the present disclosure, the electronic device responds to a user triggering an operation on a page jump link within a target application and obtains user-related parameters required for the page jump link, and then encrypts the obtained user-related parameters according to a preset encryption algorithm to obtain corresponding encryption parameters.
[0082] Optionally, the preset encryption algorithm may be a pre-set algorithm for encrypting user-related parameters, for example, a symmetric encryption algorithm or an asymmetric encryption algorithm, wherein the asymmetric encryption algorithm may be a public key-private key (RSA) algorithm, an elliptic cryptographic algorithm (ECC) algorithm, etc., which is not limited here.
[0083] S230: Encapsulate the encrypted parameters in the header information of the page jump link.
[0084] In an embodiment of the present disclosure, the electronic device can respond to a user's triggering operation on a page jump link. After obtaining user-related parameters required for the page jump link, it can encrypt the user-related parameters using a preset encryption algorithm to obtain encrypted parameters of the user-related parameters, and then encapsulate the encrypted parameters into the header information of the page jump link.
[0085] S240: Send a page request to the proxy server, where the page request carries an encapsulated page jump link, and the page request is used to enable the proxy server to request the target server to feedback a page resource corresponding to the encapsulated page jump link.
[0086] S250: Receive page resources fed back by the target server.
[0087] S260: Display the target page corresponding to the page resource in the target application.
[0088] Among them, S230-S260 are similar to S120-150 and will not be described here.
[0089] Therefore, in the embodiments of the present disclosure, the electronic device can encrypt the user-related parameters, which can further effectively prevent the user's privacy from being leaked, ensure the user's privacy security, and thus improve the user experience.
[0090] In some embodiments, in order to prevent the parameters corresponding to the encapsulated page jump link in the sent page request from being tampered with, the electronic device can also encapsulate signature parameters in the header information of the page jump link so that the proxy server can judge whether the corresponding parameters are tampered with based on the signature parameters, which is described in detail below.
[0091] Optionally, before S240, the page display method further includes: signing the page jump link and user-related parameters according to a preset signature algorithm to obtain signature parameters; and encapsulating the signature parameters in the header information of the page jump link.
[0092] In the disclosed embodiment, before sending a page request to the proxy server, the electronic device also needs to sign the obtained page jump link and user-related parameters according to a preset signature algorithm to obtain corresponding signature parameters, and encapsulate the signature parameters in the header information of the page jump link, and send a page request carrying the signature parameters and the encapsulated page jump link to the proxy server, so that the proxy server can verify the signature parameters after receiving the page request, determine whether the encapsulated page jump link has been tampered with, and after the verification is passed, obtain the corresponding page resources according to the encapsulated page jump link, and feedback the obtained page resources to the electronic device.
[0093] Optionally, the preset signature algorithm may be a preset algorithm for generating signature parameters. For example, the preset signature algorithm may be a hash algorithm, or any other algorithm capable of implementing a signature function, which is not limited here.
[0094] Specifically, taking the preset signature algorithm as the sha256 algorithm and the preset encryption algorithm as the RSA algorithm as an example, the electronic device can process the obtained page jump link and user-related parameters according to the sha256 algorithm, first generate the corresponding parameter summary A, and then encrypt the parameter summary A according to the RSA algorithm to obtain the corresponding signature parameter. Then, the electronic device encapsulates the obtained signature parameter in the header information of the page jump link, and sends a page request carrying the encapsulated page jump link to the proxy server.
[0095] For example, the electronic device can package the signature parameters and add the data package to a specified position in the header information of the page jump link, so as to encapsulate the signature parameters in the header information of the page jump link. Furthermore, the signature parameters can be encrypted, so that the encrypted signature parameters are added to the specified position in the header information of the page jump link.
[0096] Among them, the designated position corresponding to the link request parameter and the designated position corresponding to the signature parameter are different positions.
[0097] Therefore, in the embodiments of the present disclosure, the electronic device can generate signature parameters to further prevent the user's privacy from being leaked, ensure the user's privacy security, and thus improve the user experience.
[0098] In other embodiments, in order to ensure the privacy security of the user and improve the security of the signature parameters, a random string may be added when generating the signature parameters, which is described in detail below.
[0099] Optionally, the page jump link and user-related parameters are signed according to a preset signature algorithm, and obtaining the signature parameters may specifically include: obtaining a random string corresponding to the trigger operation; according to a preset signature algorithm, the page jump link, user-related parameters and random string are signed to obtain the signature parameters.
[0100] In the embodiment of the present disclosure, when the electronic device performs signature processing according to the preset signature algorithm, it can also obtain the random string corresponding to the user trigger operation, and after obtaining the random string, the page jump link, user-related parameters and random string are signed through the preset signature algorithm to obtain the corresponding signature parameters, so that the obtained signature parameters are more accurate.
[0101] Optionally, the random string may include at least one of a timestamp and a random value. For example, the random value may be an arbitrary or non-repeating random value (Number once or Number used once, nonce) that is used only once. The timestamp may be the trigger time of the user triggering the operation.
[0102] Specifically, taking the preset signature algorithm as the sha256 algorithm and the preset encryption algorithm as the RSA algorithm as an example, the electronic device can also obtain the random string corresponding to the user trigger operation according to the user trigger operation, and process the obtained page jump link, user-related parameters and random string according to the sha256 algorithm, first generate the corresponding parameter summary A, and then encrypt the parameter summary A according to the RSA algorithm to obtain the corresponding signature parameter. Then, the electronic device encapsulates the obtained signature parameter in the header information of the page jump link, and then sends a page request carrying the encapsulated page jump link to the proxy server.
[0103] For example, the electronic device can package the signature parameters and add the data package to a specified position in the header information of the page jump link, so as to encapsulate the signature parameters in the header information of the page jump link. Furthermore, the signature parameters can be encrypted, so that the encrypted signature parameters are added to the specified position in the header information of the page jump link.
[0104] Among them, the designated position corresponding to the link request parameter and the designated position corresponding to the signature parameter are different positions.
[0105] Furthermore, before sending the page request to the proxy server, the page display method further includes: encapsulating the random string in the header information of the page jump link.
[0106] In the disclosed embodiment, before the electronic device sends a page request to the proxy server, it is also necessary to encapsulate the obtained random string in the header information of the page jump link, so that the proxy server can verify the signature parameters based on the random string after obtaining the signature parameters.
[0107] Specifically, after receiving the user trigger operation, the electronic device obtains the random string corresponding to the user trigger operation, and encapsulates the obtained random string in the header information of the page jump link, and then sends a page request to the proxy server.
[0108] For example, the electronic device may package the random string and add the data packet to a specified position in the header information of the page jump link, thereby encapsulating the random string in the header information of the page jump link.
[0109] Among them, the designated position corresponding to the link request parameter, the designated position corresponding to the signature parameter, and the designated position corresponding to the random string are different positions.
[0110] Therefore, in the disclosed embodiment, the electronic device also needs to obtain a random string to make the signature parameters more secure, which can effectively prevent the user's privacy from being leaked, ensure the user's privacy security, and thus improve the user experience.
[0111] In yet another embodiment of the present disclosure, in order to further ensure the privacy security of the user, the link request parameter may further include a target parameter.
[0112] Optionally, the public parameters may be some parameters shared by multiple users or services. For example, the public parameters may include a P parameter, a secure user login status identifier (zysid) and a non-secure user login status identifier (zyeid), etc.
[0113] Optionally, S110 may further specifically include: obtaining a parameter whitelist corresponding to the page jump link; and filtering the public parameters according to the parameter whitelist to obtain the target parameters.
[0114] In an embodiment of the present disclosure, after responding to a user's triggering operation on a page jump link, the electronic device can also obtain a parameter whitelist corresponding to the page jump link, and filter the public parameters according to the parameter whitelist to obtain corresponding target parameters, so as to obtain some public parameters related to the page jump link and remove some irrelevant public parameters.
[0115] Optionally, the parameter whitelist may be parameters pre-set in the whitelist, wherein the whitelist refers to valid parameters, and the parameter whitelist may be used to filter out invalid parameters in the public parameters.
[0116] Specifically, after responding to the user's triggering operation on the page jump link, the electronic device can search and obtain the parameter whitelist corresponding to the page jump link, and perform parameter filtering on the public parameters in the page jump link based on the obtained parameter whitelist, that is, remove invalid parameters in the public parameters that do not exist in the parameter whitelist, thereby obtaining the corresponding target parameters.
[0117] Therefore, in the disclosed embodiment, the electronic device can filter the public parameters to obtain the corresponding target parameters, and can obtain more accurate parameter data, further preventing the user's privacy from being leaked, ensuring the user's privacy security, and thus improving the user experience.
[0118] In yet another embodiment of the present disclosure, the link request parameters may further include encryption parameters and target parameters.
[0119] In the disclosed embodiment, the electronic device can respond to the user's trigger operation on the page jump link in the target application, and obtain the encryption parameters and target parameters required for the page jump link. Specifically, after receiving the user's trigger operation, the electronic device can obtain the corresponding user-related parameters and public parameters according to the parameter type corresponding to the page jump link, and encrypt the user-related parameters through a preset encryption algorithm and filter the public parameters through a parameter whitelist, thereby obtaining the corresponding encryption parameters and target parameters, and encapsulate the obtained encryption parameters and target parameters into the header information of the page jump link, and then send a page request carrying the encapsulated page jump link to the proxy server, so that the proxy server can obtain the corresponding page resources according to the encapsulated page jump link after receiving the page request, and feedback the obtained page resources to the electronic device.
[0120] In another embodiment of the present disclosure, the target page displayed by the electronic device may be a native page or a page of a parasitic program. The display methods of these two types of pages are described in detail below.
[0121] In some embodiments of the present disclosure, when the link request parameters may include user-related parameters and the target page may be a native page of the target application, S150 may include: displaying the target page in the target application according to the user-related parameters and page resources required for the page jump link.
[0122] In the disclosed embodiment, after the electronic device obtains the page resource fed back by the proxy server, if the target page corresponding to the page resource is the native page of the target application, the electronic device can display the corresponding target page in the target application based on the user-related parameters and page resources required for the obtained page jump link.
[0123] Optionally, the native page may be an original page in the target application, such as a page corresponding to the target video in a short video application.
[0124] Specifically, after the electronic device obtains the page resource corresponding to the native page of the target application fed back by the proxy server, it needs to obtain the target page corresponding to the page resource based on the user-related parameters required for the obtained page jump link and the page resource, and display the target page in the target application for user viewing.
[0125] Therefore, in the embodiment of the present disclosure, when the target page is a native page, the electronic device can quickly display the target page to the user, thereby improving the user experience.
[0126] In some other embodiments of the present disclosure, when the target page may be a page of a parasitic program of the target application, and before the electronic device detects a triggering operation on a page jump link within the target application, the page display method further includes: generating cookie information based on user-related data, the user-related data including user-related parameters required for the page jump link; and sending the cookie information to the parasitic program.
[0127] Optionally, the data (cookie) information stored on the user's local terminal may be information stored in a local database of the electronic device for storing user-related data.
[0128] Optionally, the user-related data may be data including user-related parameters required for a page jump link.
[0129] Optionally, the parasitic program may be a program that is parasitic in the target application, for example, an activity program that is parasitic in the short video application, or a fun program that is parasitic in the short video application.
[0130] Optionally, the page of the parasitic program may be a page corresponding to the program parasitic in the target application, for example, an advertising Hypertext Markup Language 5 (H5) page corresponding to an activity program in a short video application, or a game H5 page corresponding to a fun program in a short video application.
[0131] Specifically, before detecting a user's triggering operation on a page jump link within a target application, the electronic device first obtains user-related data including user-related parameters from a local database, then generates corresponding cookie information based on the user-related data, and saves the cookie information in the local database of the electronic device. After detecting a user's triggering operation on a page jump link corresponding to a parasitic program within the target application, the electronic device obtains the cookie information from the local database and sends the cookie information to the parasitic program.
[0132] Furthermore, S150 may also include: sending the page resource to the parasitic program, so that the parasitic program displays the target page in the target application according to the user-related parameters and the page resource in the cookie information.
[0133] In the disclosed embodiment, after the electronic device obtains the page resources corresponding to the page of the parasitic program of the target application fed back by the proxy server, the electronic device sends the obtained page resources to the parasitic program. The parasitic program can obtain the corresponding target page based on the received cookie information and page resources, and display the target page in the target application for user viewing.
[0134] Therefore, in the embodiment of the present disclosure, if the target page is a page of a parasitic program, the electronic device enables the parasitic program to display the corresponding target page by sending cookie information and page resources, and can inject cookie information into the parasitic program through the JavaScript (JS) injection method, so that the parasitic program can still display the page normally when the page jump link is not spliced with the link request parameters, thereby improving the user experience.
[0135] The present disclosure also provides a resource sending method. Figure 3 The resource sending method provided in the embodiment of the present disclosure is described.
[0136] The page display method provided in the embodiment of the present disclosure may be executed by a proxy server, wherein the proxy server may be a cloud server or a server cluster or other device having storage and computing functions.
[0137] Figure 3 A flow chart of a resource sending method provided by an embodiment of the present disclosure is shown.
[0138] like Figure 1 As shown, the resource sending method may include the following steps.
[0139] S310: receiving a page request sent by an electronic device, where the page request carries an encapsulated page jump link.
[0140] In the embodiment of the present disclosure, after the electronic device sends a page request to the proxy server, the proxy server may receive the page request carrying the encapsulated page jump link sent by the electronic device.
[0141] Specifically, after the electronic device sends a page request to the proxy server, the proxy server can receive the page request sent by the electronic device and can obtain the encapsulated page jump link carried by the page request.
[0142] S320: parse the encapsulated page jump link to obtain header information corresponding to the encapsulated page jump link, where the header information includes link request parameters.
[0143] In the embodiment of the present disclosure, after receiving a page request carrying an encapsulated page jump link, the proxy server can parse the encapsulated page jump link to obtain the header information corresponding to the encapsulated page jump link, thereby obtaining the link request parameters included in the header information.
[0144] Optionally, the parsing process may be a process in which the proxy server disassembles and analyzes the encapsulated page jump link.
[0145] Specifically, after receiving a page request sent by an electronic device, the proxy server can obtain the encapsulated page jump link carried in the page request, and after disassembling and analyzing the obtained encapsulated page jump link, obtain the header information corresponding to the encapsulated page jump link, and the header information includes link request parameters.
[0146] S330: Concatenate the original page jump link corresponding to the encapsulated page jump link with the link request parameter.
[0147] In the disclosed embodiment, after obtaining the header information including the link request parameters corresponding to the encapsulated page jump link, the proxy server can splice the original page jump link corresponding to the encapsulated page jump link with the link request parameters to obtain the spliced page jump link.
[0148] Optionally, the original page jump link may be an original page jump link corresponding to the encapsulated page jump link.
[0149] Specifically, the proxy server can obtain the original page jump link corresponding to the encapsulated page jump link after obtaining the header information including the link request parameters corresponding to the encapsulated page jump link, and splice the obtained link request parameters with the original page jump link. The link request parameters and the original page jump link can be spliced by a preset method to obtain the spliced page jump link.
[0150] Optionally, the preset method may be a pre-set method that can be recognized by the corresponding server. For example, the preset method may be to add the link request parameter to the original page jump link.
[0151] S340: Send a resource request to a target server, wherein the resource request carries a spliced page jump link, and the spliced page jump link is used to enable the target server to feed back a corresponding page resource to the electronic device.
[0152] In the disclosed embodiment, after obtaining the spliced page jump link, the proxy server may send a resource request to the target server, so that the target server may feedback the corresponding page resource to the electronic device according to the spliced page jump link included in the resource request.
[0153] Therefore, in the embodiment of the present disclosure, after receiving a page request carrying an encapsulated page jump link sent by an electronic device, the obtained encapsulated page jump link is parsed and processed to obtain header information including link request parameters corresponding to the encapsulated page jump link, and then the original page jump link corresponding to the encapsulated page jump link is spliced with the link request parameters, and then a resource request is sent to the target server, wherein the resource request carries the spliced page jump link, so that the target server feeds back the corresponding page resource to the electronic device, thereby, the proxy server parses and processes the page request carrying the encapsulated page jump link, thereby obtaining the corresponding page resource, which can effectively prevent the user's privacy from being leaked, ensure the user's privacy security, and thereby improve the user experience.
[0154] In another embodiment of the present disclosure, the proxy server may decrypt the encrypted parameters included in the link request parameters, which is described in detail below.
[0155] Optionally, S330 may specifically include: decrypting the encrypted parameters according to a preset decryption algorithm to obtain user-related parameters; and concatenating the original page jump link with the user-related parameters.
[0156] In the embodiment of the present disclosure, after receiving the header information including the link request parameters, the proxy server can decrypt the encrypted parameters included in the link request parameters according to a preset decryption algorithm to obtain the corresponding user-related parameters, and then splice the original page jump link with the user-related parameters.
[0157] Optionally, the preset decryption algorithm may be a pre-set algorithm for decrypting encryption parameters. The preset decryption algorithm may be the same as the preset encryption algorithm. For example, a symmetric encryption algorithm or an asymmetric encryption algorithm, wherein the asymmetric encryption algorithm may be a public key-private key (RSA) algorithm, an elliptic cryptographic algorithm (ECC) algorithm, etc., which are not limited here. Specifically, after obtaining the encryption parameters included in the link request parameters, the proxy server decrypts the obtained encryption parameters through a preset decryption algorithm, thereby obtaining corresponding user-related parameters, and then splicing the obtained user-related parameters with the original page jump link, that is, after splicing the user-related parameters with the original page jump link, the corresponding spliced page jump link is obtained.
[0158] Therefore, in the embodiment of the present disclosure, the proxy server can decrypt the encrypted parameters, which can effectively prevent the user's privacy from being leaked, ensure the user's privacy security, and thus improve the user experience.
[0159] In some embodiments, in order to confirm whether the parameters corresponding to the encapsulated page jump link have been tampered with, the proxy server can verify the signature parameters encapsulated in the header information of the page jump link, which is described in detail below.
[0160] Optionally, before the proxy server concatenates the original page jump link with the user-related parameters, the resource sending method may further specifically include: verifying the signature parameters according to the page jump link and the user-related parameters.
[0161] In the embodiment of the present disclosure, before the proxy server concatenates the original page jump link with the user-related parameters, it is also necessary to verify the signature parameters included in the header information corresponding to the encapsulated page jump link, that is, to verify the signature through a preset signature algorithm based on the obtained page jump link and user-related parameters.
[0162] Specifically, taking the preset signature algorithm as sha256 algorithm and the preset encryption algorithm as RSA algorithm as an example, after the proxy server obtains the signature parameters included in the header information corresponding to the encapsulated page jump link, it verifies the signature parameters. First, the proxy server decrypts the signature parameters according to the RSA algorithm to obtain the corresponding parameter summary A, and then processes the obtained page jump link and user-related parameters according to the sha256 algorithm to obtain parameter summary B. Finally, the obtained parameter summary B is compared with the parameter summary A to determine whether they are the same, and the signature verification can be completed.
[0163] Furthermore, the proxy server will splice the original page jump link with the user-related parameters, and may also specifically include: if the signature parameters pass the signature verification, splicing the original page jump link with the link request parameters.
[0164] In the disclosed embodiment, if the proxy server verifies the signature parameters and the verification result is passed, the original page jump link is concatenated with the link request parameters.
[0165] Specifically, continuing to refer to the above, the proxy server compares the obtained parameter summary B with parameter summary A. If parameter summary B is the same as parameter summary A, it means that the corresponding page jump link and user-related parameters have not changed, that is, the signature verification is successful. At this time, the proxy server splices the original page jump link with the link request parameters to obtain the corresponding spliced page jump link.
[0166] Therefore, in the disclosed embodiment, the proxy server verifies the signature parameters and performs splicing only when the verification is passed, thereby further preventing the user's privacy from being leaked, ensuring the user's privacy security, and thus improving the user experience.
[0167] In other embodiments, the proxy server may also obtain a random string encapsulated in the header information of the page jump link to verify the signature parameters, which is described in detail below.
[0168] Optionally, the proxy server verifies the signature parameters according to the page jump link and the user-related parameters, which may also specifically include: verifying the signature parameters according to the page jump link, the user-related parameters and the random string.
[0169] In the disclosed embodiment, the proxy server may also receive a random string in the header information corresponding to the encapsulated page jump link, so that the proxy server may verify the signature through a preset signature algorithm based on the acquired page jump link, user-related parameters and random string.
[0170] Specifically, taking the preset signature algorithm as sha256 algorithm and the preset encryption algorithm as RSA algorithm as an example, after the proxy server obtains the random string included in the header information corresponding to the encapsulated page jump link, it performs a signature verification operation on the obtained signature parameters. First, the proxy server decrypts the signature parameters according to the RSA algorithm to obtain the corresponding parameter summary A, and then processes the obtained page jump link, user-related parameters and random string according to the sha256 algorithm to obtain parameter summary B. Finally, the obtained parameter summary B is compared with the parameter summary A to determine whether they are the same, and the signature verification can be completed.
[0171] Therefore, in the disclosed embodiment, the proxy server can further verify the signature through the random string, and only perform splicing when the signature verification passes, thereby further preventing the user's privacy from being leaked, ensuring the user's privacy security, and thus improving the user experience.
[0172] In another embodiment of the present disclosure, when the proxy server obtains the page resource corresponding to the spliced page jump link, it also needs to obtain the business parameters therein, which is described in detail below.
[0173] Optionally, S340 may include:
[0174] S3401. Extract business parameters from the spliced page jump link.
[0175] In the embodiment of the present disclosure, after acquiring the spliced page jump link, the proxy server may also extract the business parameters included in the spliced page jump link.
[0176] Optionally, the service parameter may be a parameter used to determine the service type, for example, may include a service identification (Identity document, ID).
[0177] Specifically, after obtaining the spliced page jump link, the proxy server searches for the corresponding business parameter in the spliced page jump link, that is, takes the corresponding character string at the specified position in the link address corresponding to the spliced page jump link as the business parameter, and then extracts the business parameter.
[0178] S3402. Determine a target server corresponding to the business parameter among multiple servers.
[0179] In the disclosed embodiment, after extracting the business parameter from the spliced page jump link, the proxy server determines a target server corresponding to the business parameter from among multiple servers.
[0180] Among them, multiple servers can correspond to different services respectively.
[0181] Optionally, the target server may be a server to which a server ID corresponding to the service ID included in the service parameter belongs.
[0182] Specifically, after extracting the business parameters in the spliced page jump link, the proxy server can obtain the business ID included in the business parameters, and then determine the target server ID based on the correspondence between the business ID and the server ID, and use the server corresponding to the target server ID as the target server among multiple servers.
[0183] S3403. Send a resource request to the target server.
[0184] In the disclosed embodiment, after determining the target server corresponding to the business parameters, the proxy server can send a resource request carrying a spliced page jump link to the target server, so that after receiving the resource request, the target server can feedback the page resource corresponding to the spliced page jump link to the electronic device.
[0185] Optionally, the resource request may be a request sent by the proxy server to the target server for causing the target server to feed back a request for obtaining the page resource to the electronic device.
[0186] Specifically, after determining the target server corresponding to the business parameters, the proxy server can send a resource request carrying a spliced page jump link to the target server, so that after receiving the resource request, the target server can determine the corresponding page resource based on the spliced page jump link carried therein, and feed the page resource back to the electronic device.
[0187] Therefore, in the disclosed embodiment, the proxy server can determine the corresponding target server according to the business parameters, accurately obtain page resources, ensure the privacy and security of the user, and thus improve the user experience.
[0188] Combine the following Figure 4 The page display method and resource sending method provided in the embodiments of the present disclosure are described in combination.
[0189] Figure 4 A flow chart of a data interaction method provided by an embodiment of the present disclosure is shown.
[0190] like Figure 4 As shown, the data interaction method may include the following steps.
[0191] S401: Obtain link request parameters required for page jump link.
[0192] In the disclosed embodiment, the electronic device can detect the trigger operation on the page jump link in the target application in real time during the process of displaying the page jump link in the target application. When the user wants to open the target page corresponding to the page jump link in the target application, the trigger operation for the page jump link can be input to the electronic device, and the electronic device can obtain the link request parameters required for the page jump link in response to detecting the user's trigger operation on the page jump link in the target application.
[0193] Furthermore, the link request parameters acquired by the electronic device may include target parameters.
[0194] Specifically, the electronic device can obtain public parameters related to the page jump link, which may include P parameters, a secure user login status identifier (zysid) and a non-secure user login status identifier (zyeid), etc., and filter the public parameters based on a parameter whitelist, such as removing some duplicate parameters, to obtain the corresponding target parameters.
[0195] Furthermore, the link request parameters acquired by the electronic device may also include encryption parameters.
[0196] Specifically, the electronic device can obtain user-related parameters related to the page jump link, and encrypt the user-related parameters based on a preset encryption algorithm such as an RSA algorithm, thereby obtaining corresponding encryption parameters.
[0197] Thus, the electronic device can obtain the link request parameters including the target parameters and the encryption parameters.
[0198] S402: Encapsulate the link request parameters in the header information of the page jump link.
[0199] In the disclosed embodiment, after the electronic device obtains the link request parameters including the encryption parameters and the target parameters required for the page jump link, the electronic device may encapsulate the link request parameters in the header information of the page jump link.
[0200] Furthermore, the electronic device may also obtain a random string and encapsulate the random string in the header information of the page jump link.
[0201] Furthermore, the electronic device can also obtain signature parameters.
[0202] Specifically, the electronic device can sign the page jump link, user-related parameters and random string based on a preset signature algorithm such as the sha256 algorithm and a preset encryption algorithm such as the RSA algorithm, thereby obtaining the corresponding signature parameters, and encapsulating the signature parameters in the header information of the page jump link.
[0203] S403: Send a page request carrying the encapsulated page jump link.
[0204] In the disclosed embodiment, the electronic device carries the encapsulated page jump link in the page request and sends the page request to the proxy server, so that after receiving the page request, the proxy server can obtain the corresponding page resources according to the encapsulated page jump link carried therein, and thus feed back the obtained page resources to the electronic device.
[0205] S404: parse the received page jump link carrying the encapsulation to obtain header information corresponding to the encapsulated page jump link, wherein the header information includes link request parameters.
[0206] In an embodiment of the present disclosure, after the electronic device sends a page request to the proxy server, the proxy server can receive the page request and obtain the encapsulated page jump link carried by the page request, and then parse the encapsulated page jump link to obtain the corresponding header information of the encapsulated page jump link.
[0207] Furthermore, the proxy server obtains the header information corresponding to the encapsulated page jump link, thereby obtaining the link request parameters, signature parameters and random strings included in the header information, and can also obtain the original page jump link corresponding to the encapsulated page jump link.
[0208] Furthermore, the proxy server decrypts the encrypted parameters included in the link request parameters to obtain corresponding user-related parameters.
[0209] Furthermore, the proxy server verifies the signature parameters to determine whether the encapsulated page jump link has been tampered with.
[0210] S405: Concatenate the original page jump link corresponding to the encapsulated page jump link with the link request parameter.
[0211] In the disclosed embodiment, after the proxy server verifies the signature parameters, if the verification passes, the proxy server concatenates the original page jump link with the link request parameters to obtain a concatenated page jump link.
[0212] S406: Send a link to the spliced page.
[0213] In the disclosed embodiment, after the proxy server obtains the spliced page jump link, it determines the target server corresponding to the business parameter among multiple servers based on the business parameter extracted from the spliced page jump link, and then sends the spliced page jump link to the target server.
[0214] S407: receiving the spliced page jump link.
[0215] In the disclosed embodiment, after the proxy server sends the spliced page jump link to the target server, the target server can receive the resource request and search for the page resource corresponding to the spliced page jump link carried by the resource request, thereby obtaining the page resource.
[0216] S408: Feedback the page resources corresponding to the spliced jump links.
[0217] In the disclosed embodiment, after acquiring the page resource corresponding to the spliced page jump link, the target server may feed back the page resource to the electronic device, so that the electronic device may receive the page resource fed back by the target server.
[0218] S409: Receive page resources.
[0219] In an embodiment of the present disclosure, after the target server feeds back the page resource corresponding to the spliced page jump link, the electronic device can receive the page resource and display the target page corresponding to the page resource in the target application.
[0220] The specific implementation methods of the above steps are referred to above and will not be repeated here.
[0221] As a result, the electronic device can exchange data with the target server through the proxy server, thereby effectively preventing the user's privacy from being leaked, ensuring the user's privacy security, and further improving the user experience.
[0222] Figure 5 A schematic structural diagram of an electronic device provided by an embodiment of the present disclosure is shown.
[0223] The electronic devices provided by the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as smart phones, laptop computers, tablet computers, etc., and fixed terminals such as desktop computers, smart home devices, etc.
[0224] It should be noted that Figure 5 The electronic device 500 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0225] The electronic device 500 conventionally includes a processor 510 and a computer program product or computer-readable medium in the form of a memory 520. The memory 520 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk or a ROM. The memory 520 has a storage space 521 for executable instructions (or program codes) 5211 for executing any method steps in the above-mentioned page display method. For example, the storage space 521 for executable instructions may include individual executable instructions 5211 for respectively implementing various steps in the above page display method. These executable instructions may be read from or written to one or more computer program products. These computer program products include program code carriers such as a hard disk, a compact disk (CD), a memory card or a floppy disk. Such a computer program product is typically a portable or fixed storage unit. The storage unit may have a storage device 5211 having a plurality of computer program products. Figure 5 The memory 520 in the electronic device 500 is similarly arranged as a storage segment or storage space. The executable instructions can be compressed, for example, in an appropriate form. Generally, the storage unit includes executable instructions for executing the steps of the page display method according to the present disclosure, that is, codes that can be read by a processor such as the processor 510, and when these codes are executed by the electronic device 500, the electronic device 500 executes the various steps in the page display method described above.
[0226] Of course, to simplify, Figure 5 Only some of the components related to the present disclosure in the electronic device 500 are shown, and components such as a bus, an input / output interface, an input device, an output device, etc. are omitted. In addition, according to specific application situations, the electronic device 500 may also include any other appropriate components.
[0227] Figure 6 A schematic diagram of the structure of a server provided by an embodiment of the present disclosure is shown.
[0228] The server provided in the embodiment of the present disclosure may include a cloud server or a server cluster or other device with storage and computing functions.
[0229] It should be noted that Figure 6 The server 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0230] The server 600 conventionally includes a processor 610 and a computer program product or computer-readable medium in the form of a memory 620. The memory 620 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk or a ROM. The memory 620 has a storage space 621 for executable instructions (or program codes) 6211 for executing any method steps in the above-mentioned resource sending method. For example, the storage space 621 for executable instructions may include individual executable instructions 6211 for respectively implementing various steps in the above-mentioned resource sending method. These executable instructions may be read from or written to one or more computer program products. These computer program products include program code carriers such as a hard disk, a compact disk (CD), a memory card or a floppy disk. Such a computer program product is typically a portable or fixed storage unit. The storage unit may have a storage device having a storage medium ... Figure 6 The memory 620 in the server 600 is similarly arranged as a storage segment or storage space. The executable instructions may be compressed, for example, in an appropriate form. Generally, the storage unit includes executable instructions for executing the steps of the resource sending method according to the present invention, that is, codes that can be read by a processor such as the processor 610, and when these codes are executed by the server 600, the server 600 executes the various steps in the resource sending method described above.
[0231] Of course, to simplify, Figure 6 Only some of the components related to the present invention in the server 600 are shown, and components such as a bus, an input / output interface, an input device, an output device, etc. are omitted. In addition, according to specific application conditions, the server 600 may also include any other appropriate components.
[0232] The embodiments of the present disclosure further provide a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the page jump method provided by the embodiments of the present disclosure.
[0233] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical link with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0234] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0235] In the disclosed embodiments, program codes for performing the operations of the disclosed embodiments may be written in one or more programming languages or combinations thereof, including but not limited to object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be linked to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be linked to an external computer (e.g., via the Internet using an Internet service provider).
[0236] This application discloses:
[0237] A1. A page display method, comprising:
[0238] In response to detecting a triggering operation on a page jump link within the target application, obtaining link request parameters required for the page jump link;
[0239] Encapsulate the link request parameters in the header information of the page jump link;
[0240] Sending a page request to the proxy server, the page request carrying the encapsulated page jump link, the page request is used to make the proxy server request the target server to feedback the page resource corresponding to the encapsulated page jump link;
[0241] Receive page resources fed back by the target server;
[0242] Display the target page corresponding to the page resource in the target application.
[0243] A2. The method according to claim A1, wherein the link request parameters include encryption parameters;
[0244] Among them, the link request parameters required to obtain the page jump link include:
[0245] Get the user-related parameters required for the page jump link;
[0246] According to the preset encryption algorithm, the user-related parameters are encrypted to obtain encrypted parameters.
[0247] A3. According to the method of claim A2, before sending the page request to the proxy server, the method further comprises:
[0248] According to the preset signature algorithm, the page jump link and user-related parameters are signed to obtain signature parameters;
[0249] Encapsulate the signature parameters in the header information of the page jump link.
[0250] A4. According to the method of claim A3, the page jump link and user-related parameters are signed according to a preset signature algorithm to obtain signature parameters, including:
[0251] Get the random string corresponding to the trigger operation;
[0252] According to the preset signature algorithm, the page jump link, user-related parameters and random string are signed to obtain signature parameters;
[0253] Before sending the page request to the proxy server, the method further includes:
[0254] Encapsulate the random string in the header information of the page jump link.
[0255] A5. A method according to any one of claims A1 to A4, wherein the link request parameters include target parameters;
[0256] Among them, the link request parameters required to obtain the page jump link include:
[0257] Get the parameter whitelist corresponding to the page jump link;
[0258] According to the parameter whitelist, the public parameters are filtered to obtain the target parameters.
[0259] A6. According to the method of claim A1, wherein the link request parameters include user-related parameters, and the target page is a native page of the target application;
[0260] Among them, the target page corresponding to the page resource is displayed in the target application, including:
[0261] Display the target page in the target application based on the user-related parameters and page resources required by the page jump link.
[0262] A7. The method according to claim A1, wherein the target page is a page of a parasitic program of the target application;
[0263] Before detecting a triggering operation on a page jump link in the target application, the method further includes:
[0264] Generate cookie information based on user-related data, which includes user-related parameters required for page jump links;
[0265] Send cookie information to parasitic programs;
[0266] Among them, the target page corresponding to the page resource is displayed in the target application, including:
[0267] Send page resources to the parasite program so that the parasite program displays the target page in the target application according to the user-related parameters and page resources in the cookie information.
[0268] B8. A resource sending method, comprising:
[0269] Receiving a page request sent by an electronic device, the page request carrying an encapsulated page jump link;
[0270] Parse the encapsulated page jump link to obtain header information corresponding to the encapsulated page jump link, where the header information includes link request parameters;
[0271] Concatenate the original page jump link corresponding to the encapsulated page jump link with the link request parameter;
[0272] A resource request is sent to a target server, wherein the resource request carries a spliced page jump link, and the spliced page jump link is used to enable the target server to feed back a corresponding page resource to the electronic device.
[0273] B9. The method according to claim B8, wherein the link request parameters include encryption parameters;
[0274] Among them, the original page jump link corresponding to the encapsulated page jump link is concatenated with the link request parameter, including:
[0275] Decrypt the encrypted parameters according to the preset decryption algorithm to obtain user-related parameters;
[0276] Concatenate the original page jump link with user-related parameters.
[0277] B10. The method according to claim B9, wherein the header information includes signature parameters;
[0278] Before concatenating the original page jump link with the user-related parameters, the method further includes:
[0279] Verify the signature parameters based on the page jump link and user-related parameters;
[0280] Among them, the original page jump link is spliced with user-related parameters, including:
[0281] If the signature parameters pass the verification, the original page jump link is concatenated with the link request parameters.
[0282] B11. The method according to claim B10, wherein the header information includes a random string;
[0283] Among them, the signature parameters are verified according to the page jump link and user-related parameters, including:
[0284] The signature parameters are verified based on the page jump link, user-related parameters and random string.
[0285] B12. According to the method of claim B8, obtaining the page resource corresponding to the spliced page jump link comprises:
[0286] Extract the business parameters from the spliced page jump link;
[0287] Determine a target server corresponding to the service parameter among multiple servers;
[0288] Send a resource request to the target server.
[0289] C13. An electronic device, comprising a processor and a memory, wherein the memory is used to store executable instructions, and the executable instructions enable the processor to perform the following operations:
[0290] In response to detecting a triggering operation on a page jump link within the target application, obtaining link request parameters required for the page jump link;
[0291] Encapsulate the link request parameters in the header information of the page jump link;
[0292] Sending a page request to the proxy server, the page request carrying the encapsulated page jump link, the page request is used to make the proxy server request the target server to feedback the page resource corresponding to the encapsulated page jump link;
[0293] Receive page resources fed back by the target server;
[0294] Display the target page corresponding to the page resource in the target application.
[0295] C14. An electronic device according to claim C13, wherein the link request parameter includes an encryption parameter;
[0296] When the processor executes the link request parameter required for obtaining the page jump link, the executable instruction specifically causes the processor to execute:
[0297] Get the user-related parameters required for the page jump link;
[0298] According to the preset encryption algorithm, the user-related parameters are encrypted to obtain encrypted parameters.
[0299] C15. The electronic device according to claim C14, wherein, before the processor executes the step of sending the page request to the proxy server, the executable instructions further cause the processor to execute:
[0300] According to the preset signature algorithm, the page jump link and user-related parameters are signed to obtain signature parameters;
[0301] Encapsulate the signature parameters in the header information of the page jump link.
[0302] C16. The electronic device according to claim C15, wherein when the processor executes the signature algorithm to sign the page jump link and the user-related parameters to obtain the signature parameters, the executable instructions specifically cause the processor to execute:
[0303] Get the random string corresponding to the trigger operation;
[0304] According to the preset signature algorithm, the page jump link, user-related parameters and random string are signed to obtain signature parameters;
[0305] Before the processor executes and sends the page request to the proxy server, the executable instructions further cause the processor to execute:
[0306] Encapsulate the random string in the header information of the page jump link.
[0307] C17. An electronic device according to any one of claims C13 to C16, wherein the link request parameter includes a target parameter;
[0308] When the processor executes the link request parameter required for obtaining the page jump link, the executable instruction specifically causes the processor to execute:
[0309] Get the parameter whitelist corresponding to the page jump link;
[0310] According to the parameter whitelist, the public parameters are filtered to obtain the target parameters.
[0311] C18. The electronic device according to claim C13, wherein the link request parameter includes a user-related parameter, and the target page is a native page of the target application;
[0312] When the processor executes to display the target page corresponding to the page resource in the target application, the executable instruction specifically causes the processor to execute:
[0313] Display the target page in the target application based on the user-related parameters and page resources required by the page jump link.
[0314] C19. The electronic device according to claim C13, wherein the target page is a page of a parasitic program of the target application;
[0315] Before the processor executes the trigger operation of detecting the page jump link in the target application, the executable instructions further cause the processor to execute:
[0316] Generate cookie information based on user-related data, which includes user-related parameters required for page jump links;
[0317] Send cookie information to parasitic programs;
[0318] When the processor executes to display the target page corresponding to the page resource in the target application, the executable instruction specifically causes the processor to execute:
[0319] Send page resources to the parasite program so that the parasite program displays the target page in the target application according to the user-related parameters and page resources in the cookie information.
[0320] D20. A proxy server, comprising a processor and a memory, wherein the memory is used to store executable instructions, and the executable instructions enable the processor to perform the following operations:
[0321] Receiving a page request sent by an electronic device, the page request carrying an encapsulated page jump link;
[0322] Parse the encapsulated page jump link to obtain header information corresponding to the encapsulated page jump link, where the header information includes link request parameters;
[0323] Concatenate the original page jump link corresponding to the encapsulated page jump link with the link request parameter;
[0324] A resource request is sent to a target server, wherein the resource request carries a spliced page jump link, and the spliced page jump link is used to enable the target server to feed back a corresponding page resource to the electronic device.
[0325] D21. A proxy server according to claim D20, wherein the link request parameters include encryption parameters;
[0326] When the processor executes the concatenation of the original page jump link corresponding to the encapsulated page jump link and the link request parameter, the executable instruction specifically causes the processor to execute:
[0327] Decrypt the encrypted parameters according to the preset decryption algorithm to obtain user-related parameters;
[0328] Concatenate the original page jump link with user-related parameters.
[0329] D22. A proxy server according to claim D21, wherein the header information includes a signature parameter;
[0330] Before the processor executes the concatenation of the original page jump link and the user-related parameters, the executable instructions further cause the processor to execute:
[0331] Verify the signature parameters based on the page jump link and user-related parameters;
[0332] When the processor executes the concatenation of the original page jump link corresponding to the encapsulated page jump link and the link request parameter, the executable instruction specifically causes the processor to execute:
[0333] If the signature parameters pass the verification, the original page jump link is concatenated with the link request parameters.
[0334] D23. A proxy server according to claim D22, wherein the header information includes a random string;
[0335] Among them, when the processor verifies the signature parameters according to the page jump link and user-related parameters, the executable instruction specifically causes the processor to execute:
[0336] The signature parameters are verified based on the page jump link, user-related parameters and random string.
[0337] D24. A proxy server according to claim D20, wherein, when sending a resource request to a target server, the executable instructions specifically cause the processor to execute:
[0338] Extract the business parameters from the spliced page jump link;
[0339] Determine a target server corresponding to the service parameter among multiple servers;
[0340] Send a resource request to the target server.
[0341] E25. A computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the information processing method of any one of the above claims A1-A7 or the resource sending method of any one of the above claims B8-B12.
[0342] The various component embodiments of the present disclosure can be implemented in hardware in all or part of the steps, or implemented in software modules running on one or more processors, or implemented in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the electronic device according to the embodiments of the present disclosure. The present disclosure can also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present disclosure can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0343] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0344] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0345] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A page display method, characterized in that: include: In response to detecting a triggering operation on a page jump link in a target application, obtaining a link request parameter required for the page jump link; Encapsulating the link request parameters in the header information of the page jump link; Sending a page request to a proxy server, the page request carrying an encapsulated page jump link, the page request being used to enable the proxy server to request a target server to feedback a page resource corresponding to the encapsulated page jump link, the page resource being fed back by the target server according to the resource request carrying the spliced page jump link, the resource request being sent by the proxy server to the target server, the spliced page jump link being spliced by the original page jump link corresponding to the encapsulated page jump link and the link request parameter, the link request parameter being obtained by the proxy server from parsing the encapsulated page jump link to obtain header information corresponding to the encapsulated page jump link; Receiving the page resource fed back by the target server; The target page corresponding to the page resource is displayed in the target application.
2. The method according to claim 1, characterized in that The link request parameters include encryption parameters; Wherein, the link request parameters required for obtaining the page jump link include: Obtaining user-related parameters required for the page jump link; The user-related parameters are encrypted according to a preset encryption algorithm to obtain the encrypted parameters.
3. The method according to claim 2, characterized in that Before sending the page request to the proxy server, the method further includes: According to a preset signature algorithm, the page jump link and the user-related parameters are signed to obtain signature parameters; The signature parameters are encapsulated in the header information of the page jump link.
4. The method according to claim 3, characterized in that The step of signing the page jump link and the user-related parameters according to a preset signature algorithm to obtain the signature parameters includes: Obtaining a random string corresponding to the trigger operation; According to a preset signature algorithm, the page jump link, the user-related parameters and the random string are signed to obtain the signature parameters; Wherein, before sending the page request to the proxy server, the method further includes: The random string is encapsulated in the header information of the page jump link.
5. The method according to any one of claims 1 to 4, characterized in that The link request parameters include target parameters; Wherein, the link request parameters required for obtaining the page jump link include: Obtain a parameter whitelist corresponding to the page jump link; According to the parameter whitelist, the public parameters are filtered to obtain the target parameters.
6. The method according to claim 1, characterized in that The link request parameters include user-related parameters, and the target page is a native page of the target application; Wherein, displaying the target page corresponding to the page resource in the target application includes: The target page is displayed in the target application according to the user-related parameters and the page resources required by the page jump link.
7. The method according to claim 1, characterized in that The target page is a page of a parasitic program of the target application; Before the triggering operation on the page jump link in the target application is detected, the method further includes: Generate cookie information according to user-related data, wherein the user-related data includes user-related parameters required for the page jump link; Sending the cookie information to the parasitic program; Wherein, displaying the target page corresponding to the page resource in the target application includes: The page resource is sent to the parasitic program, so that the parasitic program displays the target page in the target application according to the user-related parameters in the cookie information and the page resource.
8. A resource sending method, characterized in that: include: Receiving a page request sent by an electronic device, the page request carrying an encapsulated page jump link, the page jump link being obtained by the electronic device encapsulating link request parameters in header information of the page jump link, the link request parameters being obtained by the electronic device in response to detecting a triggering operation on the page jump link in a target application; Parsing the encapsulated page jump link to obtain header information corresponding to the encapsulated page jump link, wherein the header information includes link request parameters; Concatenate the original page jump link corresponding to the encapsulated page jump link with the link request parameter; A resource request is sent to a target server, wherein the resource request carries a spliced page jump link, and the spliced page jump link is used to enable the target server to feed back a corresponding page resource to the electronic device.
9. The method according to claim 8, characterized in that The link request parameters include encryption parameters; The step of concatenating the original page jump link corresponding to the encapsulated page jump link with the link request parameter includes: Decrypt the encrypted parameters according to a preset decryption algorithm to obtain user-related parameters; The original page jump link is concatenated with the user-related parameters.
10. The method according to claim 9, characterized in that The header information includes signature parameters; Before the original page jump link is concatenated with the user-related parameter, the method further includes: Verify the signature parameters according to the page jump link and the user-related parameters; The step of concatenating the original page jump link with the user-related parameters includes: If the signature parameter passes the verification, the original page jump link is concatenated with the link request parameter.
11. The method according to claim 10, characterized in that The header information includes a random string; The step of verifying the signature parameters according to the page jump link and the user-related parameters includes: The signature parameters are verified according to the page jump link, the user-related parameters and the random string.
12. The method according to claim 8, characterized in that The sending of a resource request to a target server comprises: Extracting business parameters from the spliced page jump link; Determining the target server corresponding to the service parameter among multiple servers; A resource request is sent to the target server.
13. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory is used to store executable instructions, and the executable instructions enable the processor to perform the following operations: In response to detecting a triggering operation on a page jump link in a target application, obtaining a link request parameter required for the page jump link; Encapsulating the link request parameters in the header information of the page jump link; Sending a page request to a proxy server, the page request carrying an encapsulated page jump link, the page request being used to enable the proxy server to request a target server to feedback a page resource corresponding to the encapsulated page jump link, the page resource being fed back by the target server according to the resource request carrying the spliced page jump link, the resource request being sent by the proxy server to the target server, the spliced page jump link being spliced by the original page jump link corresponding to the encapsulated page jump link and the link request parameter, the link request parameter being obtained by the proxy server from parsing the encapsulated page jump link to obtain header information corresponding to the encapsulated page jump link; Receiving the page resource fed back by the target server; The target page corresponding to the page resource is displayed in the target application.
14. The electronic device according to claim 13, characterized in that: The link request parameters include encryption parameters; Wherein, when the processor executes the step of obtaining the link request parameter required for the page jump link, the executable instruction specifically causes the processor to execute: Obtaining user-related parameters required for the page jump link; The user-related parameters are encrypted according to a preset encryption algorithm to obtain the encrypted parameters.
15. The electronic device according to claim 14, characterized in that: Before the processor executes the step of sending the page request to the proxy server, the executable instructions further cause the processor to execute: According to a preset signature algorithm, the page jump link and the user-related parameters are signed to obtain signature parameters; The signature parameters are encapsulated in the header information of the page jump link.
16. The electronic device according to claim 15, characterized in that: When the processor executes the signing of the page jump link and the user-related parameters according to the preset signature algorithm to obtain the signature parameters, the executable instructions specifically cause the processor to execute: Obtaining a random string corresponding to the trigger operation; According to a preset signature algorithm, the page jump link, the user-related parameters and the random string are signed to obtain the signature parameters; Before the processor executes the step of sending the page request to the proxy server, the executable instruction further causes the processor to execute: The random string is encapsulated in the header information of the page jump link.
17. The electronic device according to any one of claims 13 to 16, characterized in that: The link request parameters include target parameters; Wherein, when the processor executes the step of obtaining the link request parameter required for the page jump link, the executable instruction specifically causes the processor to execute: Obtain a parameter whitelist corresponding to the page jump link; According to the parameter whitelist, the public parameters are filtered to obtain the target parameters.
18. The electronic device according to claim 13, characterized in that: The link request parameters include user-related parameters, and the target page is a native page of the target application; When the processor executes to display the target page corresponding to the page resource in the target application, the executable instruction specifically causes the processor to execute: The target page is displayed in the target application according to the user-related parameters and the page resources required by the page jump link.
19. The electronic device according to claim 13, characterized in that: The target page is a page of a parasitic program of the target application; Before the processor executes the triggering operation of detecting the page jump link in the target application, the executable instruction further causes the processor to execute: Generate cookie information according to user-related data, wherein the user-related data includes user-related parameters required for the page jump link; Sending the cookie information to the parasitic program; When the processor executes to display the target page corresponding to the page resource in the target application, the executable instruction specifically causes the processor to execute: The page resource is sent to the parasitic program, so that the parasitic program displays the target page in the target application according to the user-related parameters in the cookie information and the page resource.
20. A proxy server, characterized in that: The invention comprises a processor and a memory, wherein the memory is used to store executable instructions, and the executable instructions enable the processor to perform the following operations: Receiving a page request sent by an electronic device, the page request carrying an encapsulated page jump link, the page jump link being obtained by the electronic device encapsulating link request parameters in header information of the page jump link, the link request parameters being obtained by the electronic device in response to detecting a triggering operation on the page jump link in a target application; Parsing the encapsulated page jump link to obtain header information corresponding to the encapsulated page jump link, wherein the header information includes link request parameters; Concatenate the original page jump link corresponding to the encapsulated page jump link with the link request parameter; A resource request is sent to a target server, wherein the resource request carries a spliced page jump link, and the spliced page jump link is used to enable the target server to feed back a corresponding page resource to the electronic device.
21. The proxy server according to claim 20, characterized in that The link request parameters include encryption parameters; Wherein, when the processor executes the step of concatenating the original page jump link corresponding to the encapsulated page jump link with the link request parameter, the executable instruction specifically causes the processor to execute: Decrypt the encrypted parameters according to a preset decryption algorithm to obtain user-related parameters; The original page jump link is concatenated with the user-related parameters.
22. The proxy server according to claim 21, characterized in that The header information includes signature parameters; Before the processor executes the step of splicing the original page jump link with the user-related parameter, the executable instruction further causes the processor to execute: Verify the signature parameters according to the page jump link and the user-related parameters; Wherein, when the processor executes the step of concatenating the original page jump link corresponding to the encapsulated page jump link with the link request parameter, the executable instruction specifically causes the processor to execute: If the signature parameter passes the verification, the original page jump link is concatenated with the link request parameter.
23. The proxy server according to claim 22, characterized in that The header information includes a random string; Wherein, when the processor executes the verification of the signature parameter according to the page jump link and the user-related parameters, the executable instruction specifically causes the processor to execute: The signature parameters are verified according to the page jump link, the user-related parameters and the random string.
24. The proxy server according to claim 20, characterized in that When the processor executes the sending of the resource request to the target server, the executable instruction specifically causes the processor to execute: Extracting business parameters from the spliced page jump link; Determining the target server corresponding to the service parameter among multiple servers; A resource request is sent to the target server.
25. A computer-readable storage medium, characterized in that: The storage medium stores a computer program. When the computer program is executed by a processor, the processor implements the page display method described in any one of claims 1 to 7 or the resource sending method described in any one of claims 8 to 12.
Citation Information
Patent Citations
Webpage resource acquisition method and device
CN111159614A