Webpage customization method and system, proxy server and client device

The proxy server-based method automates CSS file modification, addressing the complexity and speed issues of manual customization, thereby improving web page loading speed and user experience.

CN119066289APending Publication Date: 2024-12-03SF TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310626765.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-30
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

Existing web page customization methods require manual modification of CSS files, which is complex and time-consuming, leading to slower loading speeds.

Method used

A method and system that utilize a proxy server to automatically modify CSS files based on user-defined configuration rules, improving loading speed and customization efficiency.

Benefits of technology

Simplifies the customization process, reduces modification time, and enhances web page loading speed by allowing automatic modification of static resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119066289A_ABST
    Figure CN119066289A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of computers, and provides a webpage customization method and system, a proxy server and client equipment, the method is applied to the proxy server, and the method comprises the following steps: receiving target request information sent by the client equipment, and obtaining static resources of a target webpage based on the target request information; according to the target request information and a configuration rule, first response information is generated, the first response information comprises static resources obtained after original static resources of the target webpage are modified, and the configuration rule is a rule that a user configures different static resources in a user-defined mode according to different webpages; and sending the first response information to the client device. Therefore, the static resources of the webpage can be quickly modified, and the modified static resources of the webpage are sent to the client equipment, so that the client equipment can quickly load the modified static resources of the webpage, and the customization requirement of a user on the webpage can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and in particular, relates to a method, system, proxy server and client device for customizing a web page. Background Art

[0002] With the popularization and development of world wide web (Web) applications, Web applications can modify static resources (such as style, layout, and images) of web pages to meet users' customized needs for web pages.

[0003] Currently, Web applications can define cascading style sheets (CSS) rules through domain specific language (DSL). Web applications can dynamically generate CSS files based on CSS rules. Web applications can modify the basic style of a web page by modifying the code of the CSS file, thereby modifying the static resources of the web page.

[0004] However, in the above solution, the user is required to manually modify the code of the CSS file. For example, the user modifies the code of the CSS file by using the browser's developer tools or installing a browser plug-in, which makes the process of modifying the static resources of the web page more complicated and takes a long time to modify, resulting in slower loading speed of the web page. Summary of the invention

[0005] The embodiments of the present application provide a method, system, proxy server and client device for customizing a web page, which can realize automatic modification of CSS files. The process of modifying the static resources of a web page is relatively simple and the modification speed is relatively fast, which improves the loading speed of the modified web page and can meet the user's customization needs for the web page.

[0006] In a first aspect, an embodiment of the present application provides a method for customizing a web page, which is applied to a proxy server, and the method includes:

[0007] Receiving target request information sent by the client device, and acquiring static resources of the target web page based on the target request information;

[0008] Generate first response information according to the target request information and the configuration rules, the first response information includes static resources obtained after the original static resources of the target webpage are modified, the configuration rules are rules for users to customize different static resources for different webpages, and the static resources include resources related to one or more of the following factors: style, form, content and layout of the webpage;

[0009] A first response message is sent to the client device.

[0010] In a possible implementation manner, before generating the first response information, the method further includes:

[0011] Forward target request information to the web server;

[0012] The second response information returned by the web page server is received, where the second response information is used to respond to the target request information, and the second response information includes the original static resource generated by the web page server for the target web page.

[0013] In a possible implementation, when receiving the target request information for the first time, the method further includes:

[0014] Parsing the target request information to obtain first identification information, where the first identification information is used to identify the client device;

[0015] The first response information and the first identification information are cached, and the first identification information corresponds to the first response information. Thus, the response speed of the proxy server can be improved.

[0016] In a possible implementation manner, when the target request information is received again, the first response information is obtained through the first identification information.

[0017] In a possible implementation manner, before generating the first response information, the method further includes:

[0018] According to the preset verification rules, whether the target request information is safe is verified, and the preset verification rules include one or more of the identity verification rules, authority verification rules and access number verification rules. Thus, the security of the proxy server can be improved.

[0019] In a possible implementation, the method further includes:

[0020] Receive the configuration rules sent by the client device. Thus, the user can modify or add the configuration rules in the client device to meet the user's diverse web page customization needs.

[0021] Compared with the prior art, the embodiment of the present application can determine the user-defined configuration rules corresponding to the target request information by receiving the target request information sent by the client device. Then, according to the target request information and the configuration rules, the first response information can be generated, and the static resources of the target web page can be modified according to the rules of the user's customized configuration of different static resources for the target web page, and the first response information can be generated. Based on this, sending the first response information to the client device can enable the client device to obtain the modified static resources of the target web page according to the first response information. The client device can output the target web page after the static resources are modified to the user. Therefore, according to the user-defined configuration rules, different modifications can be made to the static resources to achieve diversified customization of the web page.

[0022] In a second aspect, an embodiment of the present application provides a method for customizing a web page, which is applied to a client device, and the method includes:

[0023] Sending target request information to the proxy server, and obtaining static resources of the target web page based on the target request information;

[0024] receiving first response information sent by the proxy server, the first response information being information generated by the proxy server according to the target request information and the configuration rule, the first response information including static resources obtained after the original static resources of the target webpage are modified, the configuration rule is a rule for a user to customize different static resources for different webpages, and the static resources include resources related to one or more of the following factors: style, form, content and layout of the webpage;

[0025] According to the first response information, a visualized target web page is output.

[0026] In a possible implementation, the configuration rules are sent to the proxy server.

[0027] In a third aspect, an embodiment of the present application provides a proxy server for customizing a web page, the proxy server comprising: a receiving module for receiving target request information sent by a client device, and acquiring static resources of a target web page based on the target request information;

[0028] The processing module is used to generate first response information according to the target request information and the configuration rules, wherein the first response information includes static resources obtained after the original static resources of the target webpage are modified, the configuration rules are rules for users to customize different static resources for different webpages, and the static resources include resources related to one or more of the following factors: style, form, content and layout of the webpage;

[0029] The sending module is used to send the first response information to the client device.

[0030] In a fourth aspect, an embodiment of the present application provides a web page customized client device, the client device comprising: a sending module, configured to send target request information to a proxy server, and obtain static resources of a target web page based on the target request information;

[0031] A receiving module, configured to receive first response information sent by a proxy server, wherein the first response information is information generated by the proxy server according to target request information and configuration rules, and the first response information includes static resources obtained after the original static resources of the target web page are modified, and the configuration rules are rules for users to customize different static resources for different web pages, and the static resources include resources related to one or more of the following factors: style, form, content and layout of the web page;

[0032] A display module, used for outputting a visualized target web page according to the first response information;

[0033] The configuration module is used to send configuration rules to the proxy server.

[0034] In a fifth aspect, an embodiment of the present application provides a web page customization system, the system comprising: a web page server, a proxy server, and a client device, the client device and the web page server are respectively connected to the proxy server for communication;

[0035] The web page server is used to receive the target request information forwarded by the proxy server, and obtain the static resources of the target web page based on the target request information;

[0036] The web page server is further used to send second response information to the proxy server, where the second response information is used to respond to the target request information and includes the original static resource generated by the web page server for the target web page.

[0037] In a sixth aspect, a readable storage medium is provided, wherein instructions are stored in the readable storage medium. When the instructions are executed on a computer, the computer executes the first aspect or any possible implementation of the first aspect, or executes the method for customizing a web page in the second aspect or any possible implementation of the second aspect.

[0038] According to a seventh aspect, a computer program product comprising instructions is provided. When the instructions are executed on a proxy server, the proxy server executes the web page customization method according to the first aspect or any possible implementation of the first aspect.

[0039] It can be understood that the beneficial effects of the second to seventh aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0041] Figure 1 It is a schematic structural diagram of a web page customization system provided in an embodiment of the present application;

[0042] Figure 2 It is a flowchart of a web page customization method provided in an embodiment of the present application;

[0043] Figure 3 It is a flowchart of a web page customization method provided in an embodiment of the present application;

[0044] Figure 4 It is a signaling interaction diagram of a web page customization method provided in an embodiment of the present application;

[0045] Figure 5 It is a schematic structural diagram of a proxy server for customizing web pages provided in an embodiment of the present application;

[0046] Figure 6 It is a schematic structural block diagram of a client device for customizing a web page provided in an embodiment of the present application;

[0047] Figure 7 It is a schematic block diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0049] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0050] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0051] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0052] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0053] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0054] In the prior art, DSL requires users to learn the specific programming language and syntax in DSL, and the learning curve is high. When a Web application needs to expand its functions, it is necessary to regenerate DSL code or modify DSL template to achieve the expansion of functions. The more functions a Web application can implement, the more complex the DSL code. In addition, Web applications implemented based on DSL cannot be used or further developed on other platforms (such as Windows and Linux).

[0055] See also Figure 1 , Figure 1 FIG. 1 is a schematic block diagram showing a system for customizing a web page provided in an embodiment of the present application. Figure 1 As shown, the web page customization system 100 in the embodiment of the present application may include: a proxy server 101 , a client device 102 and a web page server 103 .

[0056] The client device 102 and the web server 103 are respectively connected to the proxy server 101 for communication.

[0057] The client device 102 is used to perform data interaction with the proxy server 101 .

[0058] The client device 102 may be one or more. Exemplarily, the client device 102 may be a mobile phone, a desktop computer, a laptop computer, a palmtop computer or a tablet computer, etc., and the present application does not impose any specific limitation on it.

[0059] Specifically, the client device 102 is used to send request information to the proxy server 101 in response to request information input by the user.

[0060] The request information is used to request to obtain the static resources of the web page. The request information may include: a request header and a request body.

[0061] A web page includes at least one web page. Static resources can be represented by files such as CSS files, javascript files, and hypertext markup language (html) files. Static resources can include resources related to one or more of the following factors: the style, form, content, theme color, font, spacing, layout, and pictures of the web page. The CSS file contains the style, font, and layout of the web page. The javascript file contains the content and style of the web page. The html file contains pictures of the web page.

[0062] The request header may include: the format of the request header, user-defined information, and the type of the client device 102 , etc.

[0063] The format of the request header is usually the HTTP request header. The format of the HTTP request header is "content-type:".

[0064] It should be understood that when the request information is a non-http request, the format of the request header is correspondingly changed to the format of the non-http request.

[0065] The user-defined information is used to indicate the information of the special operation that the user requires the proxy server 101 to perform on the static resources of the web page. The user-defined information may include: cache information and compression information, etc. That is, when the user-defined information is cache information, the proxy server 101 may perform a cache operation on the static resources of the web page. When the user-defined information is compression information, the proxy server 101 may perform a compression operation on the static resources of the web page.

[0066] The type of the client device 102 can be characterized by a user agent (UA). The type of the client device 102 may include: the functional system, version and IP address of the client device 102, the type, version and webpage address of the browser, and the time point when the request information is sent. For example, the functional system of the client device 102 may be an order system or a cash register system.

[0067] The request body may include: the style of the webpage, the user's customized webpage requirements, and the type of the client device 102 .

[0068] The customized webpage requirement of the user is used to represent the rule of webpage customization. The customized webpage requirement of the user may include at least one rule.

[0069] The user's customized web page requirements can be pre-stored in the proxy server 101. Alternatively, the user's customized web page requirements can be input by the user in real time in the client device 102 and transmitted to the proxy server 101 for storage. Thus, the proxy server 101 can modify the style of the web page according to the user's actual web page browsing requirements. The proxy server 101 can send the web page with modified style to different functional systems in the client device 102 to realize the change of the entrance without re-publishing or modifying the application code of the functional system, which is more flexible and has lower maintenance costs.

[0070] It should be understood that some of the types of the client device 102 can only be set in the request header. For example, the IP address of the client device 102. Some of the types of the client device 102 can be set in the request header or in the request body. For example, the type, version, and web page address of the browser. Those skilled in the art can set the request header and the request body according to conventional technical means in the art, and this application does not impose specific restrictions on it.

[0071] The proxy server 101 is used to monitor the request information from the client device 102. When the client device 102 sends multiple request information at the same time, the proxy server 101 can process the multiple request information concurrently. In other words, the proxy server 101 can merge multiple identical request information. Or the proxy server can forward multiple request information to the web server 103 at the same time.

[0072] The proxy server 101 is also used to perform data interaction with the web server 103. Specifically, the proxy server is also used to forward request information to the web server 103.

[0073] In some embodiments, the proxy server 101 may be created based on a node.js environment.

[0074] The node.js environment may include: an http module. The http module is used to create the proxy server 101. Thus, the static resources of the web page modified by the proxy server 101 can be adapted to different client devices 102.

[0075] The asynchronous IO model and high-performance javascript engine provided by the node.js environment can quickly parse and compile the code of the proxy server 101, thereby improving the performance of the proxy server 101. The code of the proxy server 101 can be programmed using javascript, and compared with the existing DSL technology, standardized tools and libraries can be used to implement different functions, with a higher degree of standardization.

[0076] The debugging tools and techniques provided by the node.js environment can better debug the code of the proxy server 101 , while DSL usually requires specific debugging tools or techniques to debug the code of the Web application, thereby improving the debuggability of the code of the proxy server 101 .

[0077] In addition, the proxy server 101 can also be created based on a Java environment or a Python environment.

[0078] The web page server 103 is used to store the static resources of the web page. Specifically, the web page server 103 is used to store the original static resources of the web page. The original static resources of the web page are used to represent the static resources of the web page that have not been modified.

[0079] The web server 103 is further configured to send response information to the proxy server 101 in response to the request information.

[0080] The response information is used to respond to the request information. The response information may include: a response header and a response body.

[0081] The response header may include: the format of the response header and user-defined information, etc.

[0082] The format of the response header is the same as the request header. The format of the response header usually adopts the HTTP response header. The format of the HTTP response header is "content-type:".

[0083] It should be understood that when the request information is a non-http request, the corresponding response information is also a non-http response. At this time, the format of the response header is correspondingly changed to the format of the non-http response.

[0084] The user-defined information in the response header is the same as the user-defined information in the request header. That is, when the user-defined information in the request header is cache information, the corresponding user-defined information in the response header is also cache information. When the user-defined information in the request header is compressed information, the corresponding user-defined information in the response header is also compressed information.

[0085] The response body may include: the original static resources of the web page, etc. In other words, the response body may include files such as CSS files, javascript files, and html files.

[0086] The proxy server 101 is also used to modify the original static resources of the webpage according to the customized webpage requirements of the user, and obtain the modified static resources of the webpage. In other words, the proxy server 101 is specifically used to modify the CSS file, the javascript file, the html file and other files according to the customized webpage requirements of the user, and obtain the modified CSS file, the javascript file, the html file and other files.

[0087] When the storage space occupied by the static resources of the modified web page is large and both the request header and the response header contain compression information, the proxy server 101 can compress the storage space occupied by the static resources of the modified web page, thereby improving the loading speed and response speed of the web page in the client device 102.

[0088] The proxy server 101 is also used to send the modified static resources of the web page to the client device 102. In other words, the proxy server 101 is also used to send the modified CSS file, javascript file, html file and other files to the client device 102.

[0089] In some embodiments, the proxy server 101 may also record the request information in a request log. The proxy server 101 may also record the response information in a response log. The proxy server 101 may store the request log and the response log in a local file or database configured in the proxy server 101, so that the proxy server 101 can troubleshoot and perform performance analysis on the request information according to the request log, and troubleshoot and perform performance analysis on the response information according to the response log.

[0090] In addition, the proxy server 101 may also use log analysis tools to analyze and compile statistics on request logs and response logs in order to optimize performance and locate faults.

[0091] Among them, log analysis tools may include: text analysis tool, tilipa, large logviewer, uv view soft or log viewer, etc.

[0092] In some embodiments, the proxy server 101 may also set different proxy parameters.

[0093] The proxy parameters may include: the port number of the proxy server 101, the proxy mode, and the preset cache space, etc. The proxy mode includes the http request mode and the non-http request mode, etc. The non-http request mode includes https and long links, etc. The preset cache space is the maximum space for the proxy server 101 to cache data.

[0094] It is understandable that the proxy server 101 of the embodiment of the present application adopts the modular mechanism and package manager provided by the node.js environment to manage the dependencies and components between multiple packages in the database, and has strong scalability. As business needs grow, users can also use other frameworks of node (such as koa2) to expand and optimize the proxy server 101 accordingly, so that the proxy server 101 can meet the new business needs.

[0095] The client device 102 is also used to output a visualized web page. Specifically, the client device 102 is also used to output a visualized web page according to the modified CSS file, javascript file, html file and other files, so as to display the static resources of the modified web page to the user.

[0096] Optionally, when the user does not need to customize the web page, the client device 102 is also used to interact with the web page server 103. Specifically, the client device 102 is used to send request information to the web page server 103 in response to the request information input by the user. The web page server 103 is used to send response information to the client device 102 in response to the request information. Thus, the client device 102 can display the static resources of the web page included in the response information to the user.

[0097] The web page customization system 100 of the embodiment of the present application can modify the static resources of the web page, thereby meeting the user's customization needs for the web page. Compared with the prior art in which the user manually modifies the code of the CSS file to modify the static resources of the web page, the modification process is simpler, the modification time is shorter, and the loading speed of the modified web page is faster.

[0098] Combine the following Figures 2 to 4 , detailed description applies to Figure 1The specific implementation process of the web page customization method in the web page customization system.

[0099] See also Figure 2 , Figure 2 A schematic diagram of a method for customizing a web page provided in an embodiment of the present application is shown. Figure 2 As shown, the web page customization method of the present application is applied to the proxy server 101 or a software module in the proxy server 101. The web page customization method of the present application may include:

[0100] S201: Receive target request information sent by a client device, and obtain static resources of a target web page based on the target request information.

[0101] The target request information is the request information of the target web page that the user wants to browse. The target request information may include a target request header and a target request body. The target request information can be specifically referred to in the description of the request information above, which will not be repeated here.

[0102] From the perspective of the client device 102, the purpose of sending the target request message is to obtain the static resource corresponding to the target webpage, specifically the modified static resource. The target webpage is the webpage that the user wants to browse or access. The embodiment of the present application does not specifically limit the type of the target webpage. For example, the target webpage is a page of a website, a page of a functional system, or a page of a Web application.

[0103] The proxy server 101 may receive the target request information sent by the client device 102. In some embodiments, the user may input the target request information in the input interface (such as an H5 page) of the client device 102. The client device 102 may receive the target request information in response to the user's input operation. After receiving the target request information, the client device 102 may send the target request information to the proxy server 101.

[0104] In summary, the proxy server 101 can receive the target request information sent by the client device 102, so that the proxy server 101 can further perform subsequent processing on the target request information.

[0105] S202: Generate first response information according to the target request information and configuration rules.

[0106] The configuration rule is a rule in the user's customized web page requirements. The configuration rule is a rule for the user to customize different static resources for different web pages. Exemplarily, the configuration rule may include a modification rule for the static resources corresponding to the target web page.

[0107] The configuration rule may be a rule pre-stored in the proxy server 101. Alternatively, the configuration rule may be a rule input by the user on the client device 102. The client device 102 may receive the configuration rule in response to the user's input operation and send the configuration rule to the proxy server 101.

[0108] The first response information is used to respond to the target request information. The first response information may include the static resources obtained after the original static resources of the target webpage are modified. The original static resources of the target webpage are used to represent the static resources of the target webpage that have not been modified. In combination with the above description, it can be seen that the first response information may include files such as the modified CSS file, javascript file, and html file.

[0109] The first response information may include a first response header and a first response body. The first response information may refer to the description of the response information above, which will not be repeated here. Specifically, the first response body may include files such as the modified CSS file, javascript file, and html file.

[0110] After receiving the target request information, the proxy server 101 may obtain the configuration rules pre-stored in the proxy server 101. Alternatively, the proxy server 101 may receive the configuration rules sent by the client device 102. The proxy server 101 may generate the first response information according to the target request information and the configuration rules.

[0111] Since the modified static resources of the target web page included in different first response information are different, the different first response information generated by the proxy server 101 can improve the personalization of the target web page by making different modifications to the style, pattern and layout of the target web page, meet the user's customized needs for the web page, and better attract the user's attention. Moreover, compared with the existing DSL technology, the static resources of the target web page modified by the proxy server 101 in the embodiment of the present application are more applicable. The static resources of the target web page modified by the proxy server 101 can adapt to client devices 102 with different screen sizes and different resolutions, which can improve the user experience.

[0112] S203: Send first response information to the client device.

[0113] After generating the first response information, the proxy server 101 may send the first response information to the client device 102. Thus, the client device 102 can display the target webpage that the user wants to browse or access according to the modified static resources of the target webpage included in the first response information.

[0114] The web page customization method of the embodiment of the present application can identify the target request information sent by different client devices by receiving the target request information sent by the client device, and determine the user-defined configuration rules corresponding to the target request information according to the different target request information. Then, according to the target request information and the configuration rules, the first response information can be generated, and the static resources of the target web page can be modified according to the rules of the user's customized configuration of different static resources for the target web page to meet the user's customized needs for the target web page. Sending the first response information to the client device can enable the client device to output the target web page after the static resources are modified to the user. Therefore, according to the actual needs of the user to browse the web page, the rules of different static resources can be customized, and the static resources of the web page can be modified differently to achieve diversified customization of the web page.

[0115] In some embodiments, after executing S201, the proxy server 101 may forward the target request information to the web server 103. After receiving the target request information, the web server 103 may send the second response information to the proxy server 101. The proxy server 101 may receive the second response information returned by the web server 103.

[0116] The second response information is used to respond to the target request information. The second response information may include the original static resource generated by the web page server 103 for the target web page.

[0117] The second response information may include a second response header and a second response body. The second response information may refer to the above description of the response information, which will not be described in detail here. Specifically, the second response body may include the original static resource of the target webpage.

[0118] Thus, the proxy server 101 can parse and modify the second response information according to the target request information and the configuration rules to obtain the first response information. In other words, the proxy server 101 can parse the second response information to obtain the second response header and the second response body. The proxy server 101 can modify the second response body according to the target request information and the configuration rules to obtain the first response body. It can be seen that the modification operation is only for the second response body, and the second response header is not modified, so the second response header is the same as the first response header.

[0119] Exemplarily, the proxy server 101 may modify the second response body using a regular expression or a library for parsing HTML.

[0120] In summary, the proxy server 101 can generate the first response information.

[0121] Considering that the proxy server 101 generates the first response information multiple times according to the same target request information and the same configuration rules, it will cause a waste of resources of the proxy server 101 and increase the time for the proxy server 101 to modify the static resources of the target web page, resulting in an increase in the time for loading the target web page in the client device 102.

[0122] Therefore, the proxy server 101 can cache the first response information corresponding to the target request information when it receives the target request information for the first time (or the first time). Thus, it can avoid the proxy server 101 from frequently forwarding the target request information to the web page server 103, and it can also be realized that when the proxy server 101 receives the target request information again (or any time after the first time, for example, the second time), it can quickly send the first response information to the client device 102, thereby improving the speed of loading the target web page in the client device 102.

[0123] In some embodiments, the specific process of the proxy server 101 caching the first response information is as follows:

[0124] When receiving the target request information for the first time, the proxy server 101 may parse the target request information. After parsing the target request information, the proxy server 101 may obtain the first identification information.

[0125] The first identification information is used to identify the client device 102. Exemplarily, the first identification information is specifically used to identify the client device 102 by the type of the client device 102.

[0126] The first identification information corresponds to the first response information, so that the proxy server 101 can use the first identification information to search for the corresponding first response information.

[0127] Considering that the proxy server 101 receives the target request information for the first time, the proxy server 101 does not have the first response information corresponding to the target request information. Therefore, the proxy server 101 can determine the corresponding configuration rule according to the first identification information. Thus, the proxy server 101 can generate the first response information according to the target request information and the configuration rule received for the first time.

[0128] At this time, the proxy server 101 can cache the first identification information, and the first response information generated by the cache proxy server 101 according to the target request information and the configuration rule. In addition, when the proxy server 101 needs to cache the first identification information and the first response information, the target request header, the second response header, and the first response header should all contain the cache information, so that the proxy server 101 can successfully perform the cache operation.

[0129] In addition, since the modified static resource of the target webpage is only included in the first response body, the proxy server 101 can cache only the first identification information and the first response body without caching the first response header, thereby saving cache space of the proxy server 101.

[0130] Based on the above description, when the user needs to browse or access the target webpage again, the user can resend the target request information to the proxy server 101 through the client device 102. When receiving the target request information again, the proxy server 101 can obtain the first response information through the first identification information.

[0131] In some embodiments, when the target request information is received again, the proxy server 101 may parse the target request information. After parsing the target request information, the proxy server 101 may obtain the second identification information, and the second identification information may be understood as the identification information obtained after parsing the target request information. After obtaining the second identification information, the second identification information may be compared with the identification information stored in the cache. If the identification information identical to the second identification information is found (such as the aforementioned first identification information), the first response information corresponding to the first identification information may be directly obtained, so that the modified static resources related to the target request information may be quickly called.

[0132] Similar to the first identification information, the second identification information is also used to identify the client device 102. Exemplarily, the second identification information is specifically used to identify the client device 102 by the type of the client device 102.

[0133] Considering that the proxy server 101 receives the same target request information again, the proxy server 101 may cache the first response information corresponding to the target request information. Therefore, the proxy server 101 may determine whether the second identification information is the cached first identification information.

[0134] When the second identification information is the cached first identification information, that is, the second identification information is the same as the cached first identification information, the proxy server 101 can determine the cached first response information according to the second identification information. The proxy server 101 can directly send the cached first response information to the client device 102 without any modification, thereby improving the speed of loading the target web page in the client device 102.

[0135] Considering that before the proxy server 101 receives the same target request information again, there may be a situation where the first identification information and the first response information are not cached.

[0136] For example, when the first identification information and the first response information are obtained for the first time, the proxy server 101 does not cache the first identification information and the first response information. Alternatively, if the proxy server 101 does not receive the same target request information again within a certain period of time, the proxy server 101 may delete the cached first identification information and the first response information in order to save cache space.

[0137] Therefore, when the second identification information is not the cached first identification information, that is, the second identification information is different from the cached first identification information, the proxy server 101 can determine the corresponding configuration rule according to the second identification information. Thus, the proxy server 101 can generate the first response information according to the target request information and the configuration rule received again. After generating the first response information, the proxy server 101 can cache the second identification information and the first response information.

[0138] Considering that the client device 102 may not have access rights to the target webpage, and the client device 102 may also be maliciously attacking or illegally accessing, the proxy server 101 needs to verify the target request information before generating the first response information, thereby ensuring that the user's private data and sensitive data in the target webpage will not be leaked, and the security is higher.

[0139] In some embodiments, the proxy server 101 may verify whether the target request information is safe according to preset verification rules.

[0140] The preset verification rule is a rule in the user's customized webpage requirement. The preset verification rule may include: one or more of an identity verification rule, a permission verification rule, and a visit count verification rule.

[0141] The preset verification rule may be a rule pre-stored in the proxy server 101. Alternatively, the preset verification rule may be a rule input by the user on the client device 102. The client device 102 may receive the preset verification rule in response to the user's input operation and send the preset verification rule to the proxy server 101.

[0142] It can be seen that the embodiment of the present application verifies the target request information through the proxy server 101, and only the code of the proxy server 101 needs to be modified, without adding a verification function to the application code of the functional system. The modified code is more operable and more controllable.

[0143] Specifically, before the proxy server 101 generates the first response information, the proxy server 101 may determine whether the target request information is a legitimate identity that can access the target web page according to the identity authentication rule. If the target request information is a legitimate identity that can access the target web page, the proxy server 101 may continue to generate the first response information according to the target request information. If the target request information is an illegal identity that cannot access the target web page, the proxy server 101 cannot generate the first response information. At this time, the proxy server 101 may send feedback information of identity anomaly to the client device 102.

[0144] Before the proxy server 101 generates the first response information, the proxy server 101 may determine whether the target request information has the authority to access the target web page according to the authority verification rule. If the target request information has the authority to access the target web page, the proxy server 101 may continue to generate the first response information according to the target request information. If the target request information does not have the authority to access the target web page, the proxy server 101 cannot generate the first response information. At this time, the proxy server 101 may send feedback information of authority abnormality to the client device 102.

[0145] Before the proxy server 101 generates the first response information, the proxy server 101 may determine whether the number of accesses to the target request information within the preset time period exceeds the preset number of accesses according to the access number verification rule. For example, the preset time period is 30 seconds, and the preset number of accesses is 5 times. If the number of accesses to the target request information within the preset time period does not exceed the preset number of accesses, the proxy server 101 may continue to generate the first response information according to the target request information. If the number of accesses to the target request information within the preset time period exceeds the preset number of accesses, the proxy server 101 cannot generate the first response information. At this time, the proxy server 101 may send feedback information of abnormal access times to the client device 102.

[0146] Therefore, upon receiving feedback information of abnormal identity, abnormal authority or abnormal access times, the client device 102 can adjust the target request information in time to ensure that the user can successfully browse the target web page after the static resource is modified.

[0147] It should be understood that the preset time period and the preset number of visits can be set by those skilled in the art according to actual conditions, and this application does not impose any specific restrictions on them.

[0148] In addition, since the web server 103 may also receive the target request information, the preset verification rule may also be a rule pre-stored in the web server 103. Before the web server 103 sends the second response information to the proxy server 101, the web server 103 may verify whether the target request information is safe according to the preset verification rule. When it is determined that the target request information is safe, the web server 103 may send the second response information to the proxy server 101 in response to the target request information.

[0149] See also Figure 3 , Figure 3 The following is a flow chart of a method for customizing a web page provided in an embodiment of the present application. It should be understood that Figure 3 Some of the terms or concepts involved in Figure 2 Same, for specific explanation or description, please refer to the previous article Figure 2 For the sake of brevity, its meaning will not be elaborated below. Figure 3 As shown, the web page customization method of the present application is applied to the client device 102 or a software module in the client device 102. The web page customization method of the present application may include:

[0150] S301: Send target request information to a proxy server, and obtain static resources of a target web page based on the target request information.

[0151] The client device 102 may send the target request information to the proxy server 101. In some embodiments, the user may input the target request information in the client device 102. The client device 102 may receive the target request information in response to the user's input operation. After receiving the target request information, the client device 102 may send the target request information to the proxy server 101. Thus, the proxy server 101 obtains the static resources of the target webpage based on the target request information.

[0152] S302, receiving a first response message sent by the proxy server, the first response message is information generated by the proxy server according to the target request information and the configuration rules, the first response message includes the static resources obtained after the original static resources of the target web page are modified, the configuration rules are rules for users to customize different static resources for different web pages, and the static resources include resources related to one or more of the following factors: the style, form, content and layout of the web page.

[0153] After receiving the target request information, the proxy server 101 may execute S202 and S203 . After the proxy server 101 executes S203 , the client device 102 may receive the first response information sent by the proxy server 101 .

[0154] S303: Output a visualized target web page according to the first response information.

[0155] After receiving the first response information, the client device 102 may output a visualized target webpage according to the first response information. Specifically, the client device 102 may obtain the modified static resource of the target webpage based on the first response information. Based on this, the client device 102 may generate a target webpage of a corresponding style, layout or pattern according to the modified static resource of the target webpage. The client device 102 may display the target webpage to the user. Thus, the user can browse the target webpage after the static resource is modified in the client device 102, satisfying the user's customized demand for the webpage.

[0156] In some embodiments, the client device 102 may send the configuration rules to the proxy server 101. The proxy server 101 may receive and store the configuration rules.

[0157] In some embodiments, the client device 102 may modify or add configuration rules. Specifically, the user may modify the configuration rules or add configuration rules in the client device 102. In response to the user's modification or addition operation, the client device 102 may receive the modified configuration rules or the added configuration rules. The client device 102 may send the modified configuration rules or the added configuration rules to the proxy server 101. Thus, the user can customize the configuration rules of the web page according to the actual needs of browsing the web page, which is more convenient for the user to customize web pages of different styles.

[0158] When there are multiple client devices 102, the user can make customized modifications or additions in any client device 102 that supports modifying configuration rules or adding configuration rules according to the user's actual web browsing needs.

[0159] When the user modifies the current configuration rule in any one of the client devices 102, any one of the client devices 102 may receive the modified current configuration rule in response to the user's modification operation. Any one of the client devices 102 may send the modified current configuration rule to the proxy server 101. After receiving the modified current configuration rule, the proxy server 101 may change the static resources of the webpage modified by the current configuration rule in the multiple client devices 102 to the static resources of the webpage corresponding to the modified current configuration rule.

[0160] When a user adds a new configuration rule in a certain client device 102, the client device 102 can receive the new configuration rule in response to the user's adding operation. It should be noted that any client device 102 can send a new configuration rule to the proxy server 101. After receiving the new configuration rule, the proxy server 101 can modify the static resources of the web page to be requested by any client device 102 according to the new configuration rule when receiving the request information sent by any client device 102. In other words, the updated configuration rule can be applied to all client devices 102 communicating with the proxy server 101.

[0161] In addition, the proxy server 101 may also store the modified configuration rules or the added configuration rules.

[0162] In addition, in some embodiments, the client device 102 may also inject a new CSS file. The user may input a new CSS file in the client device 102. In response to the user's input operation, the client device 102 may receive the new CSS file. The client device 102 may send the new CSS file to the proxy server 101, so that the proxy server 101 may generate a first response message according to the new CSS file. In other words, the proxy server 101 may inject the new CSS file into the first response message, overwriting the original CSS file in the first response message, and completing the modification of static resources such as the style and style of the target web page.

[0163] based on Figures 1 to 3 The following description is combined with Figure 4 , an example is given to illustrate the specific implementation process of the web page customization method of the present application.

[0164] It is assumed that the proxy server 101 stores preset configuration rules and access times verification rules.

[0165] The configuration rules include: Rule A, Rule B and Rule C. Rule A: The style of the webpage is red font color. Rule B: The style of the webpage is 4-point font size, and the line spacing is a fixed value of 23 points. Rule C: The style of the webpage is blue font color, and the font size is 4-point.

[0166] The preset time period in the access count verification rule is 20 seconds, and the preset access count is 4 times.

[0167] The target request information includes the IP address of the client device 102, the style of the webpage with a red font color, and cache information. The target request information is accessed twice within 20 seconds.

[0168] See also Figure 4 , Figure 4A schematic diagram of signaling interaction of a web page customization method provided by an embodiment of the present application is shown. Figure 4 As shown, the specific implementation process of the web page customization method in the embodiment of the present application is as follows:

[0169] Step 11: The user inputs target request information on the client 102.

[0170] Step 12: The client device 102 may receive target request information in response to the user's input operation.

[0171] Step 13: The client device 102 may send target request information to the proxy server 101 .

[0172] Step 14: The proxy server 101 may determine whether the number of target information requests within a preset time period exceeds a preset number of accesses according to an access number verification rule.

[0173] Specifically, the proxy server 101 may compare the number of target request information with the preset access number. The proxy server 101 may determine that the number of target request information does not exceed the preset access number within 20 seconds. At this time, the proxy server 101 may execute steps 16 to 24.

[0174] If yes, the proxy server 101 may execute step 15. If no, the proxy server 101 may execute steps 16 to 24.

[0175] Step 15: The proxy server 101 may send feedback information of abnormal access times to the client device 102. Thus, the client device 102 can prompt the user to reduce the number of times the target request information is sent according to the feedback information of abnormal access times, thereby ensuring that the proxy server 101 can successfully receive the target request information sent by the client device 102 and perform subsequent processing on the target request information.

[0176] Step 16: The proxy server 101 may parse the target request information to obtain the IP address of the client device 102, the style of the web page with the font color being red, and cache information.

[0177] Step 17: The proxy server 101 may determine that the configuration rule is Rule A according to the IP address of the client device 102 and the style of the webpage, which is a red font color.

[0178] Step 18: The proxy server 101 may send target request information to the web server 103.

[0179] Step 19: After receiving the target request information, the web server 103 may determine the second response information corresponding to the target request information according to the target request information.

[0180] Step 20: The web server 103 may send a second response message to the proxy server 101.

[0181] Step 21: After receiving the second response information, the proxy server 101 may modify the second response information according to rule A to obtain the first response information.

[0182] Specifically, after receiving the second response information, the proxy server 101 may modify the font color of the target webpage to red according to rule A to obtain the first response information.

[0183] In addition, since the target request information also includes cache information, the proxy server 101 needs to execute step 22 after obtaining the first response information.

[0184] Step 22: The proxy server 101 may cache the IP address and the first response information of the client device 102. This facilitates the proxy server 101 to directly determine the first response information according to the IP address of the client device 102 when receiving the target request information again, and execute steps 23 and 24.

[0185] Step 23 : The proxy server 101 may send a first response message to the client device 102 .

[0186] Step 24: After receiving the first response information, the client device 102 may output a visualized target web page. At this time, the user may browse the target web page with a red font color on the client device 102.

[0187] In summary, the web page customization method of the embodiment of the present application can realize diversified modification of the web page according to the actual browsing needs of the user, thereby meeting the user's customization needs for the web page.

[0188] See also Figure 5 , Figure 5 The schematic block diagram of the structure of a proxy server for web page customization provided by an embodiment of the present application is shown. Figure 5 As shown, the web page customized proxy server 400 of the present application may include:

[0189] The receiving module 401 is used to receive the target request information sent by the client device 102, and obtain the static resources of the target webpage based on the target request information;

[0190] The processing module 402 is used to generate first response information according to the target request information and the configuration rule, wherein the first response information includes the static resource obtained after the original static resource of the target webpage is modified, the configuration rule is a rule for the user to customize different static resources for different webpages, and the static resource includes resources related to one or more of the following factors: the style, form, content and layout of the webpage;

[0191] The sending module 403 is configured to send first response information to the client device 102 .

[0192] In some embodiments, the processing module 402 is further used to modify the second response information according to the target request information and the configuration rule to obtain the first response information, and the second response information includes the original static resource generated by the web page server 103 for the target web page.

[0193] In some embodiments, the sending module 403 is further used to forward the target request information to the web server 103;

[0194] The receiving module 401 is further used to receive second response information returned by the webpage server 103, where the second response information is used to respond to the target request information.

[0195] In some embodiments, the web page customized proxy server 400 of the present application further includes: a cache module 404;

[0196] The processing module 402 is further used to parse the target request information when the target request information is received for the first time to obtain first identification information, where the first identification information is used to identify the client device;

[0197] The cache module 404 is used to cache the first response information and the first identification information, where the first identification information corresponds to the first response information.

[0198] In some embodiments, the processing module 402 is further configured to obtain the first response information through the first identification information when the target request information is received again.

[0199] In some embodiments, the processing module 402 is also used to verify whether the target request information is safe according to preset verification rules before generating the first response information. The preset verification rules include one or more of identity authentication rules, permission verification rules and access count verification rules.

[0200] See also Figure 6 , Figure 6 The structure schematic diagram of a client device for customizing a web page provided in an embodiment of the present application is shown. Figure 6 As shown, the client device 500 for customizing web pages of the present application may include:

[0201] The sending module 501 is used to send target request information to the proxy server 101, and obtain static resources of the target web page based on the target request information;

[0202] The receiving module 502 is used to receive the first response information sent by the proxy server 101. The first response information is information generated by the proxy server 101 according to the target request information and the configuration rule. The first response information includes the static resources obtained after the original static resources of the target webpage are modified. The configuration rule is a rule for the user to customize different static resources for different webpages. The static resources include resources related to one or more of the following factors: the style, form, content and layout of the webpage;

[0203] A display module 503, configured to output a visualized target web page according to the first response information;

[0204] The configuration module 504 is used to send configuration rules to the proxy server 101 .

[0205] See also Figure 7 , Figure 7 FIG. 1 is a schematic block diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 7 As shown, the electronic device 600 of the present application may include: a processor 601, a memory 602, a communication interface 603 and a bus 604. The processor 601, the memory 602 and the communication interface 603 communicate via the bus 604, or may communicate via other means such as wireless transmission. The memory 602 is used to store instructions, and the processor 601 is used to execute the instructions stored in the memory 602. The memory 602 stores program codes, and the processor 601 may call the program codes stored in the memory 602 to execute Figure 2 or Figure 3 The method of customizing the web page shown.

[0206] It should be understood that in the embodiment of the present application, the processor 601 may be a CPU, and the processor 601 may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.

[0207] The memory 602 may include a read-only memory and a random access memory, and provide instructions and data to the processor 601. The memory 602 may also include a non-volatile random access memory. The memory 602 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).

[0208] In addition to the data bus, the bus 604 may also include a power bus, a control bus, and a status signal bus. Figure 7 Various buses are labeled as bus 604.

[0209] It should be understood that the electronic device 600 according to the embodiment of the present application may correspond to the embodiment of the present application. Figure 2 or Figure 3 The device in the method shown, that is, the web page customized proxy server 400 or the web page customized client device 500, when the electronic device 600 corresponds to Figure 2 or Figure 3 When the device in the method shown in the figure is used, the above and other operations and / or functions of each module in the electronic device 600 are respectively to implement Figure 2 or Figure 3 The operation steps of the method executed by the web page customized proxy server 400 or the web page customized client device 500 are not repeated here for the sake of brevity.

[0210] The embodiment of the present application further provides a readable storage medium, which stores a computer program. When the computer program is executed by the processor 601, the steps in the above-mentioned method embodiments can be implemented.

[0211] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a proxy server, enables the proxy server to execute the steps in the above-mentioned method embodiments.

[0212] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0213] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0214] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0215] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0216] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example 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 performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0217] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the above modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0218] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0219] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for customizing a web page, characterized in that: Applied to a proxy server; the method comprises: Receiving target request information sent by a client device, and acquiring static resources of a target web page based on the target request information; Generate first response information according to the target request information and the configuration rule, the first response information includes the static resource obtained after the original static resource of the target webpage is modified, the configuration rule is a rule for a user to customize different static resources for different webpages, and the static resource includes resources related to one or more of the following factors: style, form, content and layout of the webpage; The first response information is sent to the client device.

2. The method according to claim 1, characterized in that Before generating the first response information, the method further includes: forwarding the target request information to a web page server; The second response information returned by the web page server is received, where the second response information is used to respond to the target request information, and the second response information includes the original static resource generated by the web page server for the target web page.

3. The method according to claim 1, characterized in that When the target request information is received for the first time, the method further includes: Parsing the target request information to obtain first identification information, where the first identification information is used to identify the client device; The first response information and the first identification information are cached, wherein the first identification information corresponds to the first response information.

4. The method according to claim 3, characterized in that: The method further comprises: When the target request information is received again, the first response information is acquired through the first identification information.

5. The method according to claim 1 or 2, characterized in that: Before generating the first response information, the method further includes: According to preset verification rules, verify whether the target request information is safe, wherein the preset verification rules include one or more of identity verification rules, authority verification rules and access number verification rules.

6. The method according to claim 1 or 2, characterized in that: The method further comprises: The configuration rule sent by the client device is received.

7. A method for customizing a web page, characterized in that: Applied to a client device; the method comprises: Sending target request information to the proxy server, and acquiring static resources of the target web page based on the target request information; receiving first response information sent by the proxy server, the first response information being information generated by the proxy server according to the target request information and configuration rules, the first response information comprising static resources obtained after the original static resources of the target webpage are modified, the configuration rules are rules for a user to customize different static resources for different webpages, the static resources comprising resources related to one or more of the following factors: style, form, content and layout of the webpage; The target webpage is visualized and output according to the first response information.

8. The method according to claim 7, characterized in that The method further includes: sending the configuration rule to the proxy server.

9. A web page customized proxy server, characterized in that: The proxy server comprises: A receiving module, used for receiving target request information sent by a client device, and acquiring static resources of a target web page based on the target request information; A processing module, configured to generate first response information according to the target request information and configuration rules, wherein the first response information includes static resources obtained after the original static resources of the target webpage are modified, wherein the configuration rules are rules for users to customize different static resources for different webpages, and the static resources include resources related to one or more of the following factors: style, form, content and layout of the webpage; A sending module is used to send the first response information to the client device.

10. A client device for customizing web pages, characterized in that: The client device comprises: A sending module, used for sending target request information to a proxy server, and obtaining static resources of a target web page based on the target request information; a receiving module, configured to receive first response information sent by the proxy server, wherein the first response information is information generated by the proxy server according to the target request information and configuration rules, wherein the first response information includes static resources obtained after the original static resources of the target webpage are modified, wherein the configuration rules are rules for users to customize different static resources for different webpages, and wherein the static resources include resources related to one or more of the following factors: style, form, content and layout of the webpage; A display module, configured to output a visualized target web page according to the first response information; A configuration module is used to send the configuration rules to the proxy server.

11. A web page customization system, characterized in that: It comprises a web page server and a proxy server as claimed in claim 9 and a client device as claimed in claim 10, wherein the client device and the web page server are respectively connected to the proxy server for communication; The web page server is used to receive the target request information forwarded by the proxy server, and obtain static resources of the target web page based on the target request information; The web page server is further used to send second response information to the proxy server, where the second response information is used to respond to the target request information, and the second response information includes the original static resource generated by the web page server for the target web page.

Citation Information

Patent Citations

  • Web page browsing method, system, proxy server and mobile phone browser

    CN101296255A

  • Data acquisition method, system and equipment

    CN102710748A

  • Message processing method, device and system

    CN105763507A

  • Reverse proxy method, reverse proxy system, proxy server and storage medium

    CN107770189A

  • Website page modification method, device and system

    CN110334295A