# US 12,120,195 B2 · Resource acquisition method, WebVPN proxy server, system, and server

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 12,120,195 B2
- Document ID: US12120195B2
- Status: Granted
- Kind: B2
- Application number: 18/194,595
- Filed: 2023-03-31
- Published: 2023-07-27
- Granted: 2024-10-15
- Earliest claimed: 2021-05-19
- Assignees: Wangsu Science & Technology Co., Ltd.
- Applicants: Wangsu Science & Technology Co., Ltd.
- Inventors: Wenwei Xie
- Web page: https://patentgrep.com/patent/US12120195B2

## CPC

- H04L 67/561: Adding application-functional data or data for application control, e.g. adding metadata
- H04L 12/4641: {Virtual LANs, VLANs, e.g. virtual private networks [VPN] (LAN interconnection over a bridge based backbone H04L12/462; encapsulation techniques H04L12/4633; routing of packets H04L45/00; packet switches H04L49/00; virtual private networks for security H04L63/0272)}
- H04L 63/0272: {Virtual private networks}
- H04L 63/0281: {Proxies}
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/563: Data redirection of data network streams
- H04L 67/565: Conversion or adaptation of application format or content (adding application control or application functional data H04L67/561)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Embodiments of the present disclosure relate to the field of communication technology, and disclose a resource acquisition method, including: receiving a user input event from a first browser on a client; acquiring an event result triggered at a second browser by the user input event, where the second browser runs on the server for the WebVPN; acquiring, using the second browser, resources from a source station according to the event result; and feeding back the resources to the client, to present the resources at the first browser. Embodiments of the present disclosure further disclose a proxy server for a WebVPN, a resource acquisition system, and a server.

## Claims

### Claim 1

A resource acquisition method, applicable to a proxy service running on a server for a web virtual private network (WebVPN), comprising:
receiving a user input event from a first browser on a client;
acquiring an event result triggered at a second browser by the user input event, wherein the second browser runs on the server for the Web VPN;
acquiring, using the second browser, resources from a source station according to the event result, and taking a screenshot of an image of a web page presented at the second browser as a view of the web page after loading and rendering of the resources at the second browser; and
feeding back the resources to the client based on the view of the web page, to present the resources at the first browser.

### Claim 2 (depends on 1)

The resource acquisition method according to claim 1, wherein feeding back the resources to the client based on the view of the web page, comprises:
generating HTML text according to the view of the web page, and adding a monitoring script configured to monitor the user input event to the HTML text; and
feeding back the HTML text to the client, to present the HTML text and run the monitoring script at the first browser.

### Claim 3 (depends on 1)

The resource acquisition method according to claim 1, wherein acquiring, using the second browser, the resources from the source station according to the event result comprises:
in response to the event result being page jumping, acquiring an address of a new page to be accessed from an access request sent by the second browser to the new page, replacing a domain name of the source station in the address of the new page with a proxy domain name directing to the server for the WebVPN to obtain a replaced address of the new page, and generating a page jumping request based on the replaced address of the new page;
sending the page jumping request to the first browser;
receiving an access request sent by the first browser in response to the page jumping request;
replacing the proxy domain name in the access request sent by the first browser with the domain name of the source station; and
acquiring, using the second browser, the resources from the source station directed to by the domain name of the source station.

### Claim 4 (depends on 3)

The resource acquisition method according to claim 3, wherein replacing the domain name of the source station in the address of the new page with the proxy domain name directing to the server for the WebVPN comprises:
assigning the proxy domain name corresponding to the server for the Web VPN to the domain name of the source station in the address of the new page, and recording a mapping relationship between the domain name of the source station and the proxy domain name; and
replacing the domain name of the source station in the address of the new page with the proxy domain name;
wherein replacing the proxy domain name in the access request sent by the first browser with the domain name of the source station comprises:
replacing, according to the mapping relationship, the proxy domain name in the access request sent by the first browser with the domain name of the source station.

### Claim 5 (depends on 4)

The resource acquisition method according to claim 4, wherein during recording the mapping relationship between the domain name of the source station and the proxy domain name, a validity duration is set for the mapping relationship; and
in response to expiration of the validity duration, the mapping relationship is marked as invalid or is deleted.

### Claim 6 (depends on 5)

The resource acquisition method according to claim 5, wherein before replacing, according to the mapping relationship, the proxy domain name in the access request sent by the first browser with the domain name of the source station, the method further comprises:
verifying validity of the access request sent by the first browser based on the mapping relationship and the validity duration;
in response to the mapping relationship corresponding to the proxy domain name existing and being valid, determining that the access request sent by the first browser is valid; or
in response to the mapping relationship corresponding to the proxy domain name not existing or being invalid, determining that the access request sent by the first browser is invalid, and refusing the access request sent by the first browser.

### Claim 7

A proxy server for a WebVPN, wherein a proxy service and a second browser run on the proxy server, and the proxy service is configured to acquire resources from a source station and feed back the resources to a client based on a resource acquisition method, wherein the method comprises:
receiving a user input event from a first browser on the client;
acquiring an event result triggered at the second browser by the user input event, wherein the second browser runs on the proxy server for the WebVPN;
acquiring, using the second browser, the resources from the source station according to the event result, and taking a screenshot of an image of a web page presented at the second browser as a view of the web page after loading and rendering of the resources at the second browser; and
feeding back the resources to the client based on the view of the web page, to present the resources at the first browser.

### Claim 8 (depends on 7)

The proxy server according to claim 7, wherein feeding back the resources to the client based on the view of the web page, comprises:
generating HTML text according to the view of the web page, and adding a monitoring script configured to monitor the user input event to the HTML text; and
feeding back the HTML text to the client, to present the HTML text and run the monitoring script at the first browser.

### Claim 9 (depends on 7)

The proxy server according to claim 7, wherein acquiring, using the second browser, the resources from the source station according to the event result comprises:
in response to the event result being page jumping, acquiring an address of a new page to be accessed from an access request sent by the second browser to the new page, replacing a domain name of the source station in the address of the new page with a proxy domain name directing to the proxy server for the Web VPN to obtain a replaced address of the new page, and generating a page jumping request based on the replaced address of the new page;
sending the page jumping request to the first browser;
receiving an access request sent by the first browser in response to the page jumping request;
replacing the proxy domain name in the access request sent by the first browser with the domain name of the source station; and
acquiring, using the second browser, the resources from the source station directed to by the domain name of the source station.

### Claim 10 (depends on 9)

The proxy server according to claim 9, wherein replacing the domain name of the source station in the address of the new page with the proxy domain name directing to the proxy server for the Web VPN comprises:
assigning the proxy domain name corresponding to the proxy server for the Web VPN to the domain name of the source station in the address of the new page, and recording a mapping relationship between the domain name of the source station and the proxy domain name; and
replacing the domain name of the source station in the address of the new page with the proxy domain name;
wherein replacing the proxy domain name in the access request sent by the first browser with the domain name of the source station comprises:
replacing, according to the mapping relationship, the proxy domain name in the access request sent by the first browser with the domain name of the source station.

### Claim 11 (depends on 10)

The proxy server according to claim 10, wherein during recording the mapping relationship between the domain name of the source station and the proxy domain name, a validity duration is set for the mapping relationship; and
in response to expiration of the validity duration, the mapping relationship is marked as invalid or is deleted.

### Claim 12 (depends on 11)

The proxy server according to claim 11, wherein before replacing, according to the mapping relationship, the proxy domain name in the access request sent by the first browser with the domain name of the source station, the method further comprises:
verifying validity of the access request sent by the first browser based on the mapping relationship and the validity duration;
in response to the mapping relationship corresponding to the proxy domain name existing and being valid, determining that the access request sent by the first browser is valid; or
in response to the mapping relationship corresponding to the proxy domain name not existing or being invalid, determining that the access request sent by the first browser is invalid, and refusing the access request sent by the first browser.

### Claim 13

A server, comprising:
at least one processor; and
a memory being in communication connection with the at least one processor;
wherein the memory is configured to store instructions, which, when executed by the at least one processor, causes the at least one processor to implement operations of a resource acquisition method, wherein the method comprises:
receiving a user input event from a first browser on a client;
acquiring an event result triggered at a second browser by the user input event, wherein the second browser runs on the server for a Web VPN;
acquiring, using the second browser, resources from a source station according to the event result, and taking a screenshot of an image of a web page presented at the second browser as a view of the web page after loading and rendering of the resources at the second browser; and
feeding back the resources to the client based on the view of the web page, to present the resources at the first browser.

### Claim 14 (depends on 13)

The server according to claim 13, wherein feeding back the resources to the client based on the view of the web page, comprises:
generating HTML text according to the view of the web page, and adding a monitoring script configured to monitor the user input event to the HTML text; and
feeding back the HTML text to the client, to present the HTML text and run the monitoring script at the first browser.

### Claim 15 (depends on 13)

The server according to claim 13, wherein acquiring, using the second browser, the resources from the source station according to the event result comprises:
in response to the event result being page jumping, acquiring an address of a new page to be accessed from an access request sent by the second browser to the new page, replacing a domain name of the source station in the address of the new page with a proxy domain name directing to the server for the WebVPN to obtain a replaced address of the new page, and generating a page jumping request based on the replaced address of the new page;
sending the page jumping request to the first browser;
receiving an access request sent by the first browser in response to the page jumping request;
replacing the proxy domain name in the access request sent by the first browser with the domain name of the source station; and
acquiring, using the second browser, the resources from the source station directed to by the domain name of the source station.

### Claim 16 (depends on 15)

The server according to claim 15, wherein replacing the domain name of the source station in the address of the new page with the proxy domain name directing to the server for the WebVPN comprises:
assigning the proxy domain name corresponding to the server for the Web VPN to the domain name of the source station in the address of the new page, and recording a mapping relationship between the domain name of the source station and the proxy domain name; and
replacing the domain name of the source station in the address of the new page with the proxy domain name;
wherein replacing the proxy domain name in the access request sent by the first browser with the domain name of the source station comprises:
replacing, according to the mapping relationship, the proxy domain name in the access request sent by the first browser with the domain name of the source station.

### Claim 17 (depends on 16)

The server according to claim 16, wherein during recording the mapping relationship between the domain name of the source station and the proxy domain name, a validity duration is set for the mapping relationship; and
in response to expiration of the validity duration, the mapping relationship is marked as invalid or is deleted.
