# US 2020/0287865 A1 · Method for acquiring resource, method for returning resource, server, and storage medium

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

- Number: US 2020/0287865 A1
- Document ID: US20200287865A1
- Status: Published application
- Kind: A1
- Application number: 16/885,175
- Filed: 2020-05-27
- Published: 2020-09-10
- Earliest claimed: 2019-03-05
- Assignees: Wangsu Science & Technology Co., Ltd.
- Applicants: Wangsu Science & Technology Co., Ltd.
- Inventors: Long CHEN
- Web page: https://patentgrep.com/patent/US20200287865A1

## CPC

- H04L 61/301: Name conversion
- H04L 61/4511: using domain name system [DNS]
- H04L 61/2503: Translation of Internet protocol [IP] addresses
- H04L 63/101: {Access control lists [ACL]}
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 2101/35: containing special prefixes
- H04L 2101/659: Internet protocol version 6 [IPv6] addresses
- H04L 2101/686: using dual-stack hosts, e.g. in Internet protocol version 4 [IPv4]/Internet protocol version 6 [IPv6] networks
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The present disclosure relates to the Internet technology and discloses a method for acquiring a resource, a method for returning a resource, a server and a storage medium. In the present disclosure, the method for acquiring the resource includes: receiving a resource request message sent by a content delivery network server based on a first Internet protocol), the resource request message including a domain name address of the resource that is requested; determining that the domain name address belongs to a preset domain name, then decoding the domain name address to obtain an original domain name address, the original domain name address being used to access a resource server supporting a second Internet protocol; and acquiring the resource from the resource server based on the original domain name address.

## Claims

### Claim 1

A method for acquiring a resource, applied to a rewrite server, comprising:
receiving a resource request message sent by a content delivery network server based on a first Internet protocol, wherein the resource request message includes a domain name address of the resource that is requested;
determining that the domain name address belongs to a preset domain name;
decoding the domain name address to obtain an original domain name address, wherein the original domain name address is used to access a resource server supporting a second Internet protocol; and
acquiring the resource from the resource server based on the original domain name address.

### Claim 2 (depends on 1)

The method for acquiring the resource according to claim 1, wherein a version of the first Internet protocol is higher than that of the second Internet protocol.

### Claim 3 (depends on 2)

The method for acquiring the resource according to claim 2, wherein the first Internet Protocol is Internet Protocol Version 6, IPv6.

### Claim 4 (depends on 1)

The method for acquiring the resource according to claim 1, wherein the domain name address of the resource belongs to a white list, and the white list comprises a preset domain name supporting domain name conversion.

### Claim 5 (depends on 4)

The method for acquiring the resource according to claim 4, wherein the resource request message further comprises an Internet protocol address and a port number of the resource server.

### Claim 6 (depends on 1)

The method for acquiring the resource according to claim 1, wherein decoding the domain name address to obtain the original domain name address comprises:
replacing a special character in the domain name address with a dot separator, wherein the special character is any character in a set of characters allowed by an international domain name other than the dot separator; and
determining the original domain name address according to a replaced domain name address and the preset domain name.

### Claim 7 (depends on 6)

The method for acquiring the resource according to claim 6, wherein determining the original domain name address according to the replaced domain name address and the preset domain name comprises:
deleting the preset domain name contained in the replaced domain name address to obtain the original domain name address.

### Claim 8

A method for returning a resource, applied to a rewrite server, comprising:
receiving a response message returned by a resource server, wherein the response message carries the resource obtained according to a first domain name address;
encoding a second domain name address in the resource to obtain an encoded domain name address, wherein the first domain name address and the second domain name address do not belong to the same domain and the encoded domain name address belongs to a preset domain name; and
updating the resource according to the encoded domain name address and returning the resource that is updated to a client through a content delivery network server.

### Claim 9 (depends on 8)

The method for returning the resource according to claim 8, wherein the first domain name address is used to access the resource server supporting a first Internet protocol, and the second domain name address is used to access the resource server supporting a second Internet protocol.

### Claim 10 (depends on 9)

The method for returning the resource according to claim 9, wherein a version of the first Internet protocol is higher than that of the second Internet protocol.

### Claim 11 (depends on 10)

The method for returning the resource according to claim 10, wherein the first Internet protocol is Internet Protocol Version 6, IPv6.

### Claim 12 (depends on 8)

The method for returning the resource according to claim 8, wherein updating the resource according to the encoded domain name address comprises:
replacing the second domain name address in the resource with the encoded domain name address to obtain the resource that is updated.

### Claim 13 (depends on 12)

The method for returning the resource according to claim 12, wherein after receiving the response message returned by the resource server and before encoding the second domain name address in the resource to obtain the encoded domain name address, the method further comprises:
determining that a type of the resource is a text-type according to a type identification of the resource carried in the response message; and
scanning the resource to determine that the resource comprises the second domain name address.

### Claim 14 (depends on 13)

The method for returning the resource according to claim 13, wherein scanning the resource to determine that the resource comprises the second domain name address comprises:
scanning the resource with a regular expression, and determining that the resource comprises the second domain name address if it is determined that a string in the resource matches the regular expression, wherein the regular expression is a preset string with a characteristic of the second domain name address.

### Claim 15 (depends on 14)

The method for returning the resource according to claim 14, wherein encoding the second domain name address in the resource to obtain the encoded domain name address comprises:
replacing a dot separator in the second domain name address with a special character to obtain a replaced domain name address, wherein the special character is any character in a set of characters allowed by an international domain name other than the dot separator; and
determining the encoded domain name address according to the replaced domain name address and the preset domain name.

### Claim 16 (depends on 15)

The method for returning the resource according to claim 15, wherein the replaced domain name address comprises a replaced prefix and original path information;
determining the encoded domain name address according to the replaced domain name address and the preset domain name comprises:
superposing the replaced domain name address and the preset domain name to obtain the encoded domain name address, wherein the encoded domain name address is the replaced prefix, the preset domain name, and the original path information in sequence.

### Claim 17

A computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor, performs a method for acquiring a resource; wherein the method comprises:
receiving a resource request message sent by a content delivery network server based on a first Internet protocol, wherein the resource request message includes a domain name address of the resource that is requested;
determining that the domain name address belongs to a preset domain name;
decoding the domain name address to obtain an original domain name address, wherein the original domain name address is used to access a resource server supporting a second Internet protocol; and
acquiring the resource from the resource server based on the original domain name address.

### Claim 18 (depends on 17)

The computer readable storage medium according to claim 17, wherein a version of the first Internet protocol is higher than that of the second Internet protocol.

### Claim 19 (depends on 18)

The computer readable storage medium according to claim 18, wherein the first Internet Protocol is Internet Protocol Version 6, IPv6.

### Claim 20 (depends on 17)

The computer readable storage medium according to claim 17, wherein the domain name address of the resource belongs to a white list, and the white list comprises a preset domain name supporting domain name conversion.
