Method, device, reverse proxy server and storage medium for script injection

By adding script names to the reverse proxy server's configuration file, the reverse proxy server can automatically inject scripts and collect page information, solving the problem of tedious manual script addition in existing technologies. This achieves efficient script injection and information collection, and supports application optimization.

CN113900701BActive Publication Date: 2026-02-24QINGDAO HAIER TECH +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111154681.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-29
Publication Date
2026-02-24
Estimated Expiration
2041-09-29

AI Technical Summary

Technical Problem

In existing technologies, when using Umeng to monitor application pages, technicians need to manually add scripts to each application page, which is cumbersome, labor-intensive, and prone to oversights.

Method used

By adding a script name to the reverse proxy server's configuration file, the reverse proxy server can automatically obtain the script and embed it into the application page, collect page information, and then return the embedded application page to the user terminal and store it in the database.

Benefits of technology

It eliminates the need for technicians to manually add scripts to each application page, simplifying the script integration process, improving efficiency, and facilitating application optimization by collecting page information through scripts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113900701B_ABST
    Figure CN113900701B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of application programs, and discloses a method for script implantation, which is applied to the side of a reverse proxy server, and a configuration file of the reverse proxy server comprises a script name, and the configuration file is used for configuring the reverse proxy server; the method comprises the following steps: the reverse proxy server acquires a script according to the script name, the script is configured to collect page information in an executed application program page at runtime; in the case that an application program page access request sent by a user terminal is received, an application program page corresponding to the application program page access request is acquired; the reverse proxy server implants the script into the application program page, and an application program page implanted with the script is obtained. The method does not need a technical personnel to add scripts one by one for the application program page, so that the script can be implanted into the application program page more conveniently. The application further discloses a device for script implantation, a reverse proxy server and a storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of application technology, such as a method, apparatus, reverse proxy server, and storage medium for script implantation. Background Technology

[0002] During application operation and maintenance, due to inadequate design considerations or other reasons, numerous anomalies can easily occur, or the application may not conform to user habits. Therefore, to optimize the application, it is necessary to address these anomalies and consider user habits. Current technologies typically rely on technical personnel to monitor the application in real time. This allows for timely detection and optimization of anomalies, but it is labor-intensive, and manual real-time monitoring is prone to oversights.

[0003] To avoid oversights in monitoring, a system called Umeng is available for monitoring application pages. Umeng can monitor application pages in real time, allowing technical personnel to optimize the application based on anomalies detected by Umeng.

[0004] In the process of implementing the embodiments of this disclosure, at least the following problems were found in the related art:

[0005] If you want to use Umeng to monitor application pages, technicians need to add Umeng scripts to each application page, which can be quite cumbersome when there are many application pages. Summary of the Invention

[0006] To provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended as a general commentary, nor is it intended to identify key / important components or describe the scope of protection of these embodiments, but rather as a prelude to the detailed description that follows.

[0007] This disclosure provides a method, apparatus, reverse proxy server, and storage medium for script implantation, enabling more convenient script implantation into application pages.

[0008] In some embodiments, the method is applied on the reverse proxy server side, wherein the configuration file of the reverse proxy server includes a script name, and the configuration file is used to configure the reverse proxy server; the method includes: obtaining a script according to the script name; the script is configured to collect page information in the application page being executed at runtime; upon receiving an application page access request sent by a user terminal, obtaining the application page corresponding to the application page access request; and embedding the script into the application page to obtain an application page with the embedded script.

[0009] In some embodiments, the apparatus is applied on the reverse proxy server side, the configuration file of the reverse proxy server includes a script name, and the configuration file is used to configure the reverse proxy server; the apparatus includes: an acquisition module, configured to acquire a script according to the script name; the script is configured to collect page information in the executed application page during runtime; and upon receiving an application page access request sent by a user terminal, acquire the application page corresponding to the application page access request; and an implantation module, configured to implant the script into the application page to obtain the application page with the implanted script.

[0010] In some embodiments, the apparatus includes a processor and a memory storing program instructions, the processor being configured to perform the above-described method for script implantation when the program instructions are executed.

[0011] In some embodiments, the reverse proxy server includes the aforementioned means for script injection.

[0012] In some embodiments, the storage medium stores program instructions that, when executed, perform the above-described method for script implantation.

[0013] The method, apparatus, reverse proxy server, and storage medium for script implantation provided in this disclosure can achieve the following technical effects: a script is obtained based on its name; upon receiving an application page access request from a user terminal, the application page corresponding to the access request is obtained; and then the script is implanted into the application page to obtain the script-implanted application page. This way, technicians only need to add the script name to the reverse proxy server's configuration file to implant the script into the application page via the reverse proxy server, eliminating the need for technicians to add scripts to each application page individually, thus making script implantation into application pages more convenient.

[0014] The above general description and the description below are exemplary and illustrative only and are not intended to limit this application. Attached Figure Description

[0015] One or more embodiments are illustrated by way of example with reference to the accompanying drawings. These illustrations and drawings do not constitute a limitation on the embodiments. Elements having the same reference numerals in the drawings are shown as similar elements. The drawings are not to be scaled. And wherein:

[0016] Figure 1 This is a schematic diagram of a method for script implantation provided in an embodiment of this disclosure;

[0017] Figure 2 This is a schematic diagram of another method for script implantation provided in an embodiment of this disclosure;

[0018] Figure 3 This is a schematic diagram of another method for script implantation provided in an embodiment of this disclosure;

[0019] Figure 4 This is a timing diagram of a method for script implantation provided in an embodiment of this disclosure;

[0020] Figure 5 This is a schematic diagram of a device for script implantation provided in an embodiment of this disclosure;

[0021] Figure 6 This is a schematic diagram of another device for script implantation provided in an embodiment of this disclosure. Detailed Implementation

[0022] To provide a more detailed understanding of the features and technical content of the embodiments of this disclosure, the implementation of the embodiments of this disclosure will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for illustrative purposes only and are not intended to limit the embodiments of this disclosure. In the following technical description, for ease of explanation, several details are used to provide a full understanding of the disclosed embodiments. However, one or more embodiments may still be implemented without these details. In other cases, well-known structures and devices may be simplified in their depiction to simplify the drawings.

[0023] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this disclosure described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion.

[0024] Unless otherwise stated, the term "multiple" means two or more.

[0025] In this embodiment of the disclosure, the character " / " indicates that the objects before and after it are in an "or" relationship. For example, A / B means: A or B.

[0026] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.

[0027] The term "correspondence" can refer to an association or binding relationship. The correspondence between A and B means that there is an association or binding relationship between A and B.

[0028] Combination Figure 1 As shown, this disclosure provides a method for script injection, applied on a reverse proxy server. The reverse proxy server's configuration file includes a script name, and the configuration file is used to configure the reverse proxy server. The method includes:

[0029] Step S101: The reverse proxy server obtains the script based on the script name. The script is configured to collect page information from the application page being executed at runtime. Upon receiving an application page access request from a user terminal, the server obtains the application page corresponding to the application page access request.

[0030] In step S102, the reverse proxy server injects the script into the application page and obtains the application page with the script injected.

[0031] The script implantation method provided in this disclosure involves obtaining a script based on its name; upon receiving an application page access request from a user terminal, obtaining the application page corresponding to the access request; and then implanting the script into the application page to obtain the script-implanted application page. This allows technicians to implant scripts into application pages simply by adding the script name to the reverse proxy server's configuration file, eliminating the need for technicians to manually add scripts to each application page. This makes script implantation into application pages more convenient. Furthermore, the script can be used to collect page information, facilitating application optimization based on the collected page information.

[0032] Optionally, if a script name is detected in the configuration file, the script can be retrieved based on the script name.

[0033] Optionally, retrieving a script based on its name includes: matching the script corresponding to the script name in a preset first database, where the first database stores the correspondence between script names and scripts.

[0034] Optionally, the script can be embedded into the application page, including embedding the script at the beginning of the application page. This allows the script to collect page information in real time when the application page is executed.

[0035] Combination Figure 2 As shown, this disclosure provides a method for script injection, applied on a reverse proxy server. The reverse proxy server's configuration file includes a script name, and the configuration file is used to configure the reverse proxy server. The method includes:

[0036] Step S201: The reverse proxy server obtains the script based on the script name; the script is configured to collect page information in the application page being executed at runtime; upon receiving an application page access request sent by the user terminal, the application page corresponding to the application page access request is obtained.

[0037] In step S202, the reverse proxy server injects the script into the application page and obtains the application page with the script injected.

[0038] In step S203, the reverse proxy server sends the application page with the embedded script to the user terminal, triggering the user terminal to store the page information collected by the script into a preset second database when accessing the application page with the embedded script.

[0039] The script implantation method provided in this disclosure involves obtaining a script based on its name; upon receiving an application page access request from a user terminal, obtaining the application page corresponding to the request; implanting the script into the application page, obtaining the script-embedded application page, and sending the script-embedded application page back to the user terminal. This triggers the user terminal to store the page information collected by the script in a preset second database when accessing the script-embedded application page. This allows technicians to implant scripts into application pages simply by adding the script name to the reverse proxy server's configuration file, eliminating the need to manually add scripts to each application page. Furthermore, this method can collect user and page information through the script, facilitating technicians to retrieve page information from the second database and optimize the application based on this information.

[0040] Optionally, the script is also configured to collect user information stored on the user terminal during runtime. When the application page with the script embedded is fed back to the user terminal, the script may also be configured to: trigger the user terminal to store the user information collected by the script in a second database when the user terminal accesses the application page with the script embedded.

[0041] Optionally, the script is also configured to collect user information stored on the user terminal during runtime and generate a correspondence between the user information and the collected page information; when the application page with the script embedded is fed back to the user terminal, it further includes: when the user terminal accesses the application page with the script embedded, storing the correspondence between the page information and the user information generated by the script in a preset second database.

[0042] Combination Figure 3 As shown, this disclosure provides a method for script implantation, applied on the user terminal side, the method comprising:

[0043] Step S301: The user terminal sends an application page access request to the reverse proxy server, triggering the reverse proxy server to obtain the application page corresponding to the application page access request, and injects the script obtained according to the script name in its configuration file into the application page, obtains and returns the application page with the injected script; the configuration file is used to configure the reverse proxy server; the script is configured to collect page information in the application page being executed at runtime.

[0044] In step S302, the user terminal receives the application page with the embedded script from the reverse proxy server.

[0045] In step S303, when the user terminal accesses an application page with an embedded script, the page information collected by the script is stored in a preset second database.

[0046] The method for script implantation provided in this disclosure involves a user terminal sending an application page access request to a reverse proxy server. This triggers the reverse proxy server to retrieve the application page corresponding to the access request and implant the script obtained according to the script name in its configuration file into the application page. The user terminal then obtains and returns the application page with the implanted script. The configuration file is used to configure the reverse proxy server script to collect page information from the application page during runtime. The user terminal receives the application page with the implanted script from the reverse proxy server. When the user terminal accesses the application page with the implanted script, it stores the page information collected by the script in a second database. This allows technicians to implant scripts into application pages simply by adding the script name to the reverse proxy server's configuration file, eliminating the need to manually add scripts to each application page. This makes script implantation into application pages more convenient. Furthermore, this method can collect page information through scripts, facilitating application optimization by technicians based on the collected page information.

[0047] Optionally, the page information consists of user-defined events in the script.

[0048] Optionally, when a user terminal accesses an application page with an embedded script, the script is triggered to collect page information corresponding to the operation when the user terminal performs an operation on the application page with the embedded script; the script includes the correspondence between the operation and the page information.

[0049] In some embodiments, the operation includes "click to confirm purchase", and the page information corresponding to "click to confirm purchase" includes "confirmed purchase item" and "item price"; when the user terminal clicks "confirm purchase" on the application page with embedded script, the page information "confirmed purchase item" and "item price" corresponding to "click to confirm purchase" in the application page with embedded script are collected.

[0050] In some embodiments, the application page includes multiple components, and the operation includes "clicking the component". The page information corresponding to "clicking the component" is "the number of times the component is clicked". When a user terminal "clicks the component" on the application page with the embedded script, the page information "the number of times the component is clicked" corresponding to "clicking the component" in the application page with the embedded script is collected.

[0051] Combination Figure 4 As shown, this disclosure provides a timing diagram of a method for script implantation, including:

[0052] Step S401: The user terminal sends an application page access request to the reverse proxy server;

[0053] Step S402: The reverse proxy server receives the application page access request sent by the user terminal, obtains the application page corresponding to the application page access request, and matches the script corresponding to the script name in the preset first database.

[0054] Step S403: The reverse proxy server injects the script into the application page and obtains the application page with the script injected.

[0055] In step S404, the reverse proxy server sends the application page with the embedded script back to the user terminal.

[0056] In step S405, the user terminal receives and accesses the application page with the embedded script returned by the reverse proxy server, and stores the correspondence between the user information generated by the script and the page information in the second database.

[0057] The user script implantation method provided in this disclosure involves sending an application page access request to a reverse proxy server; the reverse proxy server receiving the application page access request from the user terminal and obtaining the application page corresponding to the request; matching the script with the script name in a preset first database; the reverse proxy server implanting the script into the application page, obtaining the application page with the implanted script; the reverse proxy server feeding back the application page with the implanted script to the user terminal; the user terminal receiving and accessing the application page with the implanted script fed back by the reverse proxy server, and storing the correspondence between user information generated by the script and page information in a second database. This allows technicians to implant scripts into application pages simply by adding the script name to the reverse proxy server's configuration file, eliminating the need for technicians to add scripts to each application page individually, thus making script implantation into application pages more convenient. Furthermore, this method can obtain the correspondence between page information and user information through the script, facilitating application optimization by technicians using the correspondence between page information and user information in the second database.

[0058] Combination Figure 5 As shown, this disclosure provides an apparatus for script implantation, applied on the reverse proxy server side. The reverse proxy server's configuration file includes a script name, and the configuration file is used to configure the reverse proxy server. The apparatus includes an acquisition module 501 and an implantation module 502. The acquisition module 501 is configured to acquire a script based on the script name. The script is configured to collect page information from the executed application page during runtime. Upon receiving an application page access request sent by a user terminal, the application page corresponding to the application page access request is acquired. The implantation module 502 implants the script into the application page, obtaining the application page with the implanted script.

[0059] The device for script implantation provided in this disclosure obtains a script by means of an acquisition module based on the script name; upon receiving an application page access request from a user terminal, it obtains the application page corresponding to the access request; and then, through an implantation module, it implants the script into the application page, thus obtaining the application page with the implanted script. In this way, technicians only need to add the script name to the configuration file of the reverse proxy server to implant the script into the application page via the reverse proxy server, without needing to add scripts to each application page individually, making script implantation into application pages much more convenient. Furthermore, this device can also collect page information through the script, facilitating optimization of the application by technicians based on the collected page information.

[0060] Optionally, the acquisition module is configured to acquire a script based on its name by matching the script corresponding to the script name in a preset first database, where the first database stores the correspondence between script names and scripts.

[0061] Optionally, the embedding module is configured to embed the script at the beginning of the application page.

[0062] Optionally, the device for script implantation also includes a feedback module, which is configured to send the application page with the implanted script back to the user terminal, triggering the user terminal to store the page information collected by the script into a preset second database when accessing the application page with the implanted script.

[0063] Optionally, the script is also configured to collect user information stored on the user terminal during runtime, and the feedback module is also configured to send the application page with the script embedded back to the user terminal, triggering the user terminal to store the user information collected by the script into the second database when accessing the application page with the script embedded.

[0064] Optionally, the script is also configured to collect user information stored on the user terminal during runtime and generate a correspondence between the user information and the collected page information. The feedback module is also configured to feed back the application page with the script embedded to the user terminal, triggering the user terminal to store the correspondence between the user information and the page information generated by the script in the second database when accessing the application page with the script embedded.

[0065] Combination Figure 6 As shown, this disclosure provides an apparatus for script implantation, including a processor 600 and a memory 601. Optionally, the apparatus may further include a communication interface 602 and a bus 603. The processor 600, communication interface 602, and memory 601 can communicate with each other via the bus 603. The communication interface 602 can be used for information transmission. The processor 600 can call logical instructions in the memory 601 to execute the script implantation method of the above embodiment.

[0066] The device for script implantation provided in this disclosure obtains the script based on its name; upon receiving an application page access request from a user terminal, it obtains the application page corresponding to the access request; and then implants the script into the application page, resulting in an application page with the implanted script. This allows technicians to implant scripts into application pages simply by adding the script name to the reverse proxy server's configuration file, eliminating the need for technicians to manually add scripts to each application page. Furthermore, this device can collect page information through the script, facilitating application optimization based on the collected page information.

[0067] Furthermore, the logic instructions in the aforementioned memory 601 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.

[0068] The memory 601, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of this disclosure. The processor 600 executes functional applications and data processing by running the program instructions / modules stored in the memory 601, that is, it implements the method for script implantation in the above embodiments.

[0069] The memory 601 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 601 may include high-speed random access memory and may also include non-volatile memory.

[0070] This disclosure provides a reverse proxy server that includes the above-described apparatus for script injection.

[0071] Using the reverse proxy server provided in this embodiment, a script is obtained based on its name; upon receiving an application page access request from a user terminal, the corresponding application page is obtained; and then the script is embedded into the application page, resulting in an application page with the embedded script. This allows technicians to embed scripts into application pages simply by adding the script name to the reverse proxy server's configuration file, eliminating the need for technicians to manually add scripts to each application page, thus making script embedding into application pages more convenient. Furthermore, this device can also collect page information through the script, facilitating application optimization based on the collected page information.

[0072] This disclosure provides a storage medium storing program instructions that, when executed, perform the above-described method for script implantation.

[0073] This disclosure provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions that, when executed by a computer, cause the computer to perform the above-described method for script implantation.

[0074] The aforementioned computer-readable storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.

[0075] The technical solutions of this disclosure can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes one or more instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in this disclosure. The aforementioned storage medium can be a non-transitory storage medium, including: a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and other media capable of storing program code; it can also be a transient storage medium.

[0076] The foregoing description and accompanying drawings fully illustrate embodiments of this disclosure to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, procedural, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the order of operation may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the terminology used in this application is for describing embodiments only and is not intended to limit the claims. As used in the description of embodiments and claims, the singular forms “a,” “an,” and “the” are intended to equally include the plural forms unless the context clearly indicates otherwise. Similarly, the term “and / or” as used in this application means including one or more of the associated listed items and all possible combinations thereof. Additionally, when used in this application, the term "comprise" and its variations "comprises" and / or "comprising" refer to the presence of stated features, integrals, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof. Without further limitations, an element defined by the phrase "comprises a..." does not exclude the presence of other identical elements in the process, method, or apparatus that includes said element. In this document, each embodiment may focus on the differences from other embodiments, and similar or identical parts between embodiments can be referred to mutually. For methods, products, etc., disclosed in the embodiments, if they correspond to the method section disclosed in the embodiments, the relevant parts can be referred to the description of the method section.

[0077] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this disclosure. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0078] The methods and products (including but not limited to devices and equipment) disclosed in the embodiments herein can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of units may be merely a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the shown or discussed units may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected to implement this embodiment according to actual needs. Furthermore, the functional units in the embodiments of this disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0079] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than that shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different blocks may also occur in a different order than disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. Each block in a block diagram and / or flowchart, and combinations of blocks in a block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

Claims

1. A method for script implantation, characterized in that, The application is applied to the side of a reverse proxy server, a script name is included in a configuration file of the reverse proxy server, and the configuration file is used for configuring the reverse proxy server; the method comprises the following steps: A script is acquired according to the script name; the script is configured to collect page information in an executed application page at runtime; in the case that an application page access request sent by a user terminal is received, an application page corresponding to the application page access request is acquired; The script is implanted into the application page, and an implanted script application page is obtained; The implanted script application page is fed back to the user terminal, and in the case that the implanted script application page is operated by the user terminal, the script collects page information corresponding to the operation; the script comprises a corresponding relationship between the operation and the page information.

2. The method of claim 1, wherein, The script is acquired according to the script name, which comprises the following steps: A script corresponding to the script name is matched in a preset first database; the first database stores a corresponding relationship between a script name and a script.

3. The method of claim 1, wherein, The script is implanted into the application page, which comprises implanting the script into a starting position of the application page.

4. The method of claim 1, wherein, After the implanted script application page is obtained, the user terminal stores page information collected by the script into a preset second database in the case that the implanted script application page is accessed.

5. The method of claim 4, wherein, The script is further configured to collect user information stored by the user terminal at runtime, and in the case that the implanted script application page is fed back to the user terminal, the following steps are further included: The user terminal stores user information collected by the script into the second database in the case that the implanted script application page is accessed.

6. The method of claim 4, wherein, The script is further configured to collect user information stored by the user terminal at runtime and generate a corresponding relationship between the user information and the page information, and in the case that the implanted script application page is fed back to the user terminal, the following steps are further included: The user terminal stores the corresponding relationship between the user information and the page information generated by the script into the second database in the case that the implanted script application page is accessed.

7. An apparatus for script implantation, characterized by, The application is applied to the side of a reverse proxy server, a script name is included in a configuration file of the reverse proxy server, and the configuration file is used for configuring the reverse proxy server; the method comprises the following steps: An acquisition module is configured to acquire a script according to the script name; the script is configured to collect page information in an executed application page at runtime; in the case that an application page access request sent by a user terminal is received, an application page corresponding to the application page access request is acquired; An implantation module is configured to implant the script into the application page, and obtain an implanted script application page; A feedback module configured to feed the implanted application page of the script to a user terminal, and trigger the script to collect page information corresponding to the operation in the case that the user terminal operates the implanted application page of the script; and the script comprises a corresponding relationship between the operation and the page information.

8. An apparatus for script implantation, comprising a processor and a memory having stored therein program instructions, the apparatus characterized by: The processor is configured to execute the method for script implantation according to any one of claims 1 to 6 when running the program instruction.

9. A reverse proxy server, characterized in that, The apparatus for script implantation according to claim 8.

10. A storage medium storing program instructions, characterized in that, The program instruction is configured to execute the method for script implantation according to any one of claims 1 to 6 when running.

Citation Information

Patent Citations

  • Monitoring method, device and system

    CN107566200A