Full-domain-name automatic address conversion method and device based on server agent

Through the server agent, the domain name in the response content is automatically converted to the port address, which solves the problem of cumbersome whitelist configuration in the existing technology, and achieves the effect of reducing operation and maintenance workload and improving access efficiency.

CN119449767APending Publication Date: 2025-02-14E-SURFING DIGITAL LIFE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411766602.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

When the prior art allows internal networks to access external websites, it requires configuring a large number of whitelists, which leads to large configuration workloads and prone to errors, and increases the workload of operation and maintenance personnel.

Method used

The server-side agent-based full domain name automatic address conversion method is adopted to receive the client's page access request through the server, respond to and receive the page response content, modify the domain name in the response content to the port address, and record and store the page address and domain name. Mapping relationship table.

Benefits of technology

There is no need for a client to open a large number of whitelists or configure agents, which reduces the operation and maintenance workload, improves access efficiency, and ensures the normal use of business functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449767A_ABST
    Figure CN119449767A_ABST
Patent Text Reader

Abstract

The invention relates to a full-domain-name automatic address conversion method and device based on a server agent, which are applied to the technical field of computer networks, and the method comprises the following steps: receiving a page access request of a target client, the page access request comprising a target page address; responding to the target page access request, and receiving response content of the target page; and modifying the domain name in the response content into a port address, wherein the port address comprises an IP address of the server and a port number of the server for identifying the target page when the target page is accessed. By the adoption of the method, the domain name in the response content is converted into the port address at a time through the server proxy full-domain-name automatic address conversion method and system, the client does not need to open a large number of white lists or configure the proxy, and therefore the operation and maintenance workload can be reduced, and normal use of service functions is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer network technology, and in particular to a method and device for automatically converting a full domain name address based on a server-side proxy. Background Art

[0002] Currently, there are many internal networks and computer room networks that need to be managed, and the egress access to these networks is usually strictly restricted. Due to business needs, some external websites still need to be accessed.

[0003] In the related technology, the current technical solution is mainly to allow the internal network to access these external websites by whitelisting the IPs resolved by specific domain names, that is, first resolve the domain name of the specific external website to obtain its corresponding IP address; then add the resolved IP address to the whitelist of the internal network, allowing the traffic of these IP addresses to pass through the firewall. However, although the existing technical solutions can solve the needs of controlled internal networks to access external websites to a certain extent, in order to access a page normally, a large number of whitelists need to be added to the internal network, including the CDN addresses of static resources and the call addresses of REST APIs. The configuration workload of these addresses is huge and prone to errors, which increases the workload of operation and maintenance personnel. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for automatic conversion of full domain name addresses based on server-side proxy to address the above technical problems.

[0005] In a first aspect, the present application provides a method for automatically converting a full domain name address based on a server-side proxy, the method comprising:

[0006] Receive a page access request from a target client, where the page access request includes a target page address;

[0007] Respond to the target page access request and receive the response content of the target page;

[0008] Change the domain name in the response content to a port address. The port address includes the server's IP address and the port number used by the server to identify the target page when it is accessed.

[0009] In one embodiment, after receiving the response content of the target page, the method further includes:

[0010] The target page address and its corresponding domain name are recorded and stored in a preset mapping relationship table between page address and domain name.

[0011] In one embodiment, a mapping table between page addresses and domain names is stored in a cache.

[0012] In one embodiment, after modifying the domain name in the response content to a port address, the method further includes:

[0013] The port address is sent to the target client, so that the target client updates the access address when requesting to access the website of the server according to the port address, and obtains the updated access address.

[0014] In one embodiment, after obtaining the updated access address, the method further includes:

[0015] According to the updated access address, the corresponding page target address is determined, and a request is made to access the page target address.

[0016] In one of the embodiments, after requesting to access the page target address, the method further includes:

[0017] The page target address, target client, and port address are logged, including access operation records.

[0018] In a second aspect, the present application further provides a device for automatically converting a full domain name address, the device comprising:

[0019] An access request receiving module, used to receive a page access request from a target client, wherein the page access request includes a target page address;

[0020] The access request response module is used to respond to the target page access request and receive the response content of the target page;

[0021] The domain name conversion address module is used to modify the domain name in the response content into a port address. The port address includes the IP address of the server and the port number used by the server to identify the target page when it is accessed.

[0022] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:

[0023] Receive a page access request from a target client, where the page access request includes a target page address;

[0024] Respond to the target page access request and receive the response content of the target page;

[0025] Change the domain name in the response content to a port address. The port address includes the server's IP address and the port number used by the server to identify the target page when it is accessed.

[0026] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0027] Receive a page access request from a target client, where the page access request includes a target page address;

[0028] Respond to the target page access request and receive the response content of the target page;

[0029] Change the domain name in the response content to a port address. The port address includes the server's IP address and the port number used by the server to identify the target page when it is accessed.

[0030] In a fifth aspect, the present application further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0031] Receive a page access request from a target client, where the page access request includes a target page address;

[0032] Respond to the target page access request and receive the response content of the target page;

[0033] Change the domain name in the response content to a port address. The port address includes the server's IP address and the port number used by the server to identify the target page when it is accessed.

[0034] The above-mentioned method, device, computer equipment, storage medium and computer program product for automatic conversion of full domain name addresses based on server-side proxy, when the server converts the domain name address, first receives the page access request of the target client, and the page access request includes the target page address; then responds to the target page access request and receives the response content of the target page; finally, modifies the domain name in the response content into a port address, and the port address includes the IP address of the server and the port number used by the server to identify when the target page is accessed.

[0035] This application adopts the above method, through the server-side proxy full domain name automatic address conversion method and system, to convert the domain name in the response content into a port address at one time, without the client opening a large number of whitelists or configuring proxies, thereby helping to reduce the workload of operation and maintenance and ensure the normal use of business functions. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] FIG1 is an application environment diagram of a method for automatically converting a full domain name address based on a server-side proxy in one embodiment;

[0037] FIG2 is a flow chart of a method for automatically converting a full domain name address based on a server-side proxy in one embodiment;

[0038] FIG3 is a flow chart of an embodiment of the server and the client interactively accessing addresses;

[0039] FIG4 is a flow chart of a server requesting to access a page target address in one embodiment;

[0040] FIG5 is a schematic diagram of the structure of a full domain name automatic address conversion system based on a server-side proxy in one embodiment;

[0041] FIG6 is a block diagram of a device for automatically converting a full domain name address in one embodiment;

[0042] FIG. 7 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0044] Currently, there are many internal networks and computer room networks that need to be managed, and the egress access to these networks is usually strictly restricted. Due to business needs, some external websites still need to be accessed.

[0045] In the related technology, the current technical solution is mainly to allow the internal network to access these external websites by whitelisting the IPs resolved by specific domain names, that is, first resolve the domain name of the specific external website to obtain its corresponding IP address; then add the resolved IP address to the whitelist of the internal network, allowing the traffic of these IP addresses to pass through the firewall. However, although the existing technical solutions can solve the needs of controlled internal networks to access external websites to a certain extent, in order to access a page normally, a large number of whitelists need to be added to the internal network, including the CDN addresses of static resources and the call addresses of REST APIs. The configuration workload of these addresses is huge and prone to errors, which increases the workload of operation and maintenance personnel.

[0046] In response to the above technical problems, an embodiment of the present application provides a method for automatically converting the full domain name address based on a server-side agent, which can be applied to the application environment shown in Figure 1. Among them, the terminal 102 communicates with the server 104 through the network, and the data storage system can store the data that the server 104 needs to process. The server 104 is the server, and the terminal 102 is the client. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0047] In one embodiment, as shown in FIG2 , the method is applied to the terminal in FIG1 as an example for explanation. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0048] Step 202: Receive a page access request from a target client, where the page access request includes a target page address.

[0049] The target client is used to represent the device or application that initiates the page access request, which can be the user's browser or the application on the mobile device. The target client sends a request to the server through the specified URL in the hope of obtaining the content of a certain page. The server refers to the server or server application that receives and processes the target client's request. It is responsible for responding to the client's request and returning the corresponding page content or data. The target page address refers to the specific address of the page requested by the target client. It can be a relative path or an absolute path, usually containing information such as the protocol, domain name, and path.

[0050] For example, assuming that a user enters the target page address http: / / 192.168.1.2:10010 in a browser, the user of the browser is the target client, and the server 192.168.1.2 is the server, which listens on port 10010 to receive requests from the target client.

[0051] Step 204, respond to the target page access request and receive the response content of the target page.

[0052] The target page access request is used to represent the request sent by the target client to the server to obtain specific page content, and the request contains the address information of the target page. The response content is used to represent the page content returned to the target client after the server receives the page access request. This includes static resources such as HTML, CSS, JavaScript, and dynamic data obtained through API calls.

[0053] For example, the request http: / / 192.168.1.2:10010 sent by the target client (browser) to the server (192.168.1.2) is a page access request. After the server receives this request, it may return an HTML page containing specific content, which is the response content.

[0054] Step 206: modify the domain name in the response content to a port address, where the port address includes the IP address of the server and the port number used by the server to identify when the target page is accessed.

[0055] The port address is used to represent the specific port that the server listens to, and is used to identify the port number when the server processes the target page being accessed. It usually consists of an IP address and a port number, and is used to uniquely identify an application or service on the server.

[0056] Specifically, the IP address identifies a specific device (such as a server) in the network, while the port number identifies a specific service or application on the device. The port address can uniquely determine the specific location of a service or application on the server that receives and processes the request. In other words, through the port address, the target client can clearly know where to send the request to the server, and the server can also clearly know which service or application should process the request.

[0057] For example, 192.168.1.2:10010 in step 204 is a port address, where 192.168.1.2 is the IP address of the server, and 10010 is the port number used by the server to identify the target page when it is accessed. The target client (browser) can send a request to the server through this port address, and the server listens to the port and processes the request.

[0058] The above-mentioned method for automatically converting the full domain name address based on the server-side proxy converts the domain name in the response content into a port address at one time through the server-side proxy full domain name automatic address conversion method and system, without the client opening a large number of whitelists or configuring proxies, thereby helping to reduce the workload of operation and maintenance and ensure the normal use of business functions.

[0059] In one embodiment, after receiving the response content of the target page, the method further includes: recording and storing the target page address and its corresponding domain name in a preset mapping relationship table between page address and domain name.

[0060] After receiving the response content of the target page, the target page address and its corresponding domain name are recorded and stored in a preset mapping relationship table between page address and domain name for subsequent data query.

[0061] Specifically, by recording and using mapping relationships, redundant query operations can be reduced and the overall performance of the system can be improved; and query delays can be significantly reduced and response speeds can be improved; in addition, the mapping relationship table can serve as the basis for system expansion, facilitating the addition of new page address and domain name mapping relationships, and supporting dynamic expansion of the system.

[0062] For example, assuming that the target page address requested by the target client is http: / / 192.168.1.2:10010 / apixxx / , after receiving the request, the server will record the following mapping relationship:

[0063] The target page address is: http: / / 192.168.1.2:10010 / apixxx / ; the domain name is: www.a.com.

[0064] These mapping relationships are recorded and stored in the preset mapping relationship table between page address and domain name, as shown in the following table:

[0065]

[0066] In this embodiment, by establishing a mapping relationship table between page addresses and domain names, it helps to reduce redundant query operations and improve the overall performance of the system; it can significantly reduce query delays and improve response speed; it can also facilitate the addition of new page address and domain name mapping relationships to support dynamic expansion of the system.

[0067] In one embodiment, a mapping table between page addresses and domain names is stored in a cache.

[0068] Specifically, storing the mapping relationship table between page addresses and domain names in the cache can significantly improve the query speed, quickly obtain the mapping relationship, significantly reduce the response delay, improve the user experience, and avoid querying the database or file system every time; and the cache system can usually handle high-concurrency access requests, ensuring that the system can still respond quickly in the case of a large number of concurrent requests; in addition, the cache mechanism can support fast data invalidation and update, ensuring that the mapping relationship data in the cache is always kept up to date; in addition, the cache mechanism supports dynamic expansion, and new mapping relationships can be easily added, and the expiration time of the data can be set, which is convenient for system expansion and maintenance.

[0069] For example, the mapping table between page addresses and domain names is stored in redis (cache). When the target client requests http: / / 192.168.1.2:10010 / apixxx / again, the system can directly query the mapping relationship from Redis. In this way, the system can complete the query of the mapping relationship in a very short time, significantly improving the response speed and system performance.

[0070] In one embodiment, after modifying the domain name in the response content to a port address, the method further includes: sending the port address to the target client so that the target client updates the access address when requesting to access the server's website according to the port address to obtain an updated access address.

[0071] Specifically, after the domain name in the response content is modified to the port address, in order to ensure that the target client uses the correct address to access the server and avoid access failures due to address errors, the port address needs to be sent to the target client. Moreover, when the server address changes, the client's access address can be dynamically updated through this step to ensure that the client always uses the latest server address; in addition, directly sending the port address to the target client can reduce the network request path between the client and the server, and improve the efficiency and speed of the request.

[0072] For example, assuming that the target page address requested by the target client (browser) is http: / / www.a.com / apixxx / , after receiving the request, the server modifies the domain name www.a.com in the response content to the port address 192.168.1.2:10010 and sends it to the target client. The specific operation is shown in Figure 3:

[0073] Step 302: The server receives the request and modifies the domain name.

[0074] For example, the target page address is: http: / / www.a.com / apixxx / ; the modified port address is: 192.168.1.2:10010 / apixxx / ;

[0075] Step 304: Send the port address to the target client.

[0076] Exemplarily, the server sends the modified port address 192.168.1.2:10010 / apixxx / to the target client.

[0077] Step 306: The target client updates the access address.

[0078] For example, after receiving the port address, the target client updates its access address to 192.168.1.2:10010 / apixxx / . The target client uses the updated address to send a request to access the server.

[0079] In this embodiment, in this way, the client can ensure that the correct address is used to access the server, avoiding access failures caused by domain name resolution errors. At the same time, the server can dynamically update the client's access address when the address changes, ensuring that the client can always correctly access the server.

[0080] In one embodiment, after obtaining the updated access address, the method further includes: determining a corresponding page target address according to the updated access address, and requesting access to the page target address.

[0081] Specifically, after obtaining the updated access address, in order to ensure that the page access request points to the correct page resource, avoid resource acquisition failure due to address errors, optimize the request path, reduce unnecessary network jumps and intermediate agents, and ensure that users can obtain the latest, dynamically generated page content, the server needs to determine the corresponding page target address based on the updated access address and request to access the page target address. The page target address is the address determined based on the updated access address.

[0082] For example, assuming that the updated access address of the target client (browser) is 192.168.1.2:10010 / apixxx / , after receiving the request, the server determines the corresponding page target address and requests to access the target address. The specific operation is shown in Figure 4:

[0083] Step 402, determine the page target address.

[0084] Exemplarily, the updated access address is: 192.168.1.2:10010 / apixxx / ; the corresponding page target address is: http: / / 192.168.1.2:10010 / apixxx / .

[0085] Step 404, request to access the page target address.

[0086] For example, the target client sends a request according to the determined page target address http: / / 192.168.1.2:10010 / apixxx / . After receiving the request, the server returns the corresponding page content or resource.

[0087] In this embodiment, in this way, the client can ensure that the request points to the correct page target address, avoiding resource acquisition failure caused by address errors. At the same time, the server can dynamically adjust the client's request address when the page resource address changes, ensuring that the client can always access the resource correctly.

[0088] In one embodiment, after requesting to access the page target address, the method further includes: logging the page target address, the target client, and the port address, wherein the log record includes an access operation record.

[0089] Specifically, in order to track and record the user's operation behavior, ensure the traceability of system operations, and facilitate post-analysis and troubleshooting, the page target address, target client, and port address need to be logged. The log record is used to represent the detailed operation information recorded in the system, including the following: timestamp, target client, page target address, port address, access result, and response time.

[0090] For example, the log record is in the form of:

[0091] [2024-11-30 08:00:00] Access operation records:

[0092] Target client: 192.168.1.100

[0093] Page target address: http: / / 192.168.1.2:10010 / apixxx /

[0094] Port address: 192.168.1.2:10010

[0095] Access result: Success

[0096] Response time: 100ms.

[0097] In this embodiment, the system operation information can be recorded in detail through log recording, which is convenient for monitoring, analysis, troubleshooting and performance optimization. In other words, through log recording, the maintainability of the system can be improved, the security of the system can be enhanced, compliance requirements can be supported, and the user experience can be optimized.

[0098] In a detailed embodiment, as shown in Figure 5, Figure 5 is a structural diagram of a full domain name automatic address conversion system based on a server-side agent provided in this embodiment. The server (providing proxy service) configures the address of the accessed page, and after starting the service, it listens to a port (such as: 192.168.1.2:10010). The client (browser) accesses 192.168.1.2:10010 to directly access all the contents of the page.

[0099] After the server receives the client's request, it requests a fixed-configuration page and then receives the page response content, including various static resources and external calls;

[0100] After receiving the response content, the server records the interface address and domain name, and stores them in redis (cache), mapping the interface and domain name and recording them one by one, for example:

[0101] ①Convert www.a.com / apixxx / to 192.168.1.2:10010 / apixxx / ;

[0102] ②At this time, the address mapping of / apixxx / is recorded as www.a.com;

[0103] ③The client accesses 192.168.1.2:10010 / apixxx / , and the proxy server automatically requests www.a.com / apixxx / ;

[0104] The server automatically changes all response contents (including interface response contents / content in js files) to 192.168.1.2:10010 and then forwards them to the client.

[0105] When the client (browser) requests the address of the website, it will all be converted into the format of 192.168.1.2:10010 / apixxx / . If it is a different address interface, the server will map the interface address and make a proxy request.

[0106] This embodiment adopts the above method, which has the following beneficial effects:

[0107] 1. Improve work efficiency: The address translation system only needs to configure one target address, without the need to configure other known or unknown domain names within the page, thus reducing a large amount of configuration and debugging time.

[0108] 2. Reduce management costs: Network administrators only need to configure the whitelist for the proxy server and do not need to manage other client IP address access lists.

[0109] 3. Enhanced scalability: With one-time proxy configuration, no additional configuration is required to modify page content.

[0110] 4. Improved security: Since there is no whitelist of public network access to the client host, the client only communicates on the intranet, improving the security of the internal network.

[0111] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0112] Based on the same inventive concept, the embodiment of the present application also provides a device for automatically converting a full domain name address for implementing the method for automatically converting a full domain name address based on a server-side proxy. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more embodiments of the device for automatically converting a full domain name address provided below can refer to the limitations of the method for automatically converting a full domain name address based on a server-side proxy in the above text, and will not be repeated here.

[0113] In one embodiment, as shown in FIG. 6 , a device for automatically converting a full domain name address is provided, including: an access request receiving module 602, an access request response module 604, and a domain name conversion address module 606, wherein:

[0114] The access request receiving module 602 is used to receive a page access request from a target client, wherein the page access request includes a target page address;

[0115] The access request response module 604 is used to respond to the target page access request and receive the response content of the target page;

[0116] The domain name conversion address module 606 is used to modify the domain name in the response content into a port address, where the port address includes the IP address of the server and the port number used by the server to identify the target page when it is accessed.

[0117] In one embodiment, the device further includes a data storage module 608, which is used to record and store the target page address and its corresponding domain name in a preset mapping relationship table between page address and domain name.

[0118] In one embodiment, the data storage module 608 is further used to store a mapping relationship table between page addresses and domain names in a cache.

[0119] In one embodiment, the domain name conversion address module 606 is further used to send the port address to the target client, so that the target client updates the access address when requesting to access the website of the server according to the port address, and obtains the updated access address.

[0120] In one embodiment, the domain name conversion address module 606 is further used to: determine the corresponding page target address according to the updated access address, and request to access the page target address.

[0121] In one embodiment, the domain name conversion address module 606 is further used to log the page target address, target client and port address, and the log record includes the access operation record.

[0122] Each module in the above-mentioned full domain name automatic conversion address device can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module above.

[0123] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG7 . The computer device includes a processor, a memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store relevant data such as page access data of the client and response data of the server. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for automatically converting a full domain name address based on a server-side agent is implemented.

[0124] Those skilled in the art will understand that the structure shown in FIG. 7 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0125] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0126] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0127] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0128] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0129] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0130] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0131] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for automatically converting a full domain name address based on a server-side proxy, characterized in that: The method comprises: Receiving a page access request from a target client, wherein the page access request includes a target page address; Responding to the target page access request and receiving the response content of the target page; The domain name in the response content is modified into a port address, wherein the port address includes the IP address of the server and the port number used by the server to identify when the target page is accessed.

2. The method according to claim 1, characterized in that After receiving the response content of the target page, the method further includes: The target page address and its corresponding domain name are recorded and stored in a preset mapping relationship table between page addresses and domain names.

3. The method according to claim 2, characterized in that The mapping relationship table between the page address and the domain name is stored in the cache.

4. The method according to claim 1, characterized in that: After modifying the domain name in the response content to a port address, the method further includes: The port address is sent to the target client, so that the target client updates the access address when requesting to access the website of the server according to the port address, and obtains the updated access address.

5. The method according to claim 4, characterized in that After obtaining the updated access address, the method further includes: According to the updated access address, a corresponding page target address is determined, and a request is made to access the page target address.

6. The method according to claim 5, characterized in that After the request accesses the page target address, the method further comprises: The page target address, the target client and the port address are recorded in a log, wherein the log record includes an access operation record.

7. A device for automatically converting a full domain name address, characterized in that: The device comprises: An access request receiving module, used for receiving a page access request from a target client, wherein the page access request includes a target page address; An access request response module, used to respond to the target page access request and receive the response content of the target page; The domain name conversion address module is used to modify the domain name in the response content into a port address, wherein the port address includes the IP address of the server and the port number used by the server to identify the target page when it is accessed.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.