Address acquisition method, device, computer equipment and storage medium
Patent Information
- Application Number
- CN202310393330.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-13
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2043-04-13
AI Technical Summary
但是该方法只能获取到用户的客户端的单栈地址,无法获取到用户的客户端的全量地址,从而导致获取客户端全量网络线路对应的标识信息的效率较低
[0061]The above-mentioned address acquisition method, device, computer equipment and storage medium obtain the single-stack domain name information corresponding to each network line included in the target operating network by responding to the data access request message sent by the client; based on each of the single-stack domain name information, a web page address corresponding to each of the single-stack domain name information is generated, and a response message containing each of the web page addresses is sent to the client; the response message is used to indicate the cross-domain access request message sent by the client through each network line respectively; based on the source network address contained in each of the cross-domain access request messages, the full address of the client is obtained. The target operating network is determined based on the data access request message transmitted by the user's client, and multiple web page addresses are generated for each single-stack domain name information configured in each network line of the target operating network. Then, multiple cross-domain access request messages of the client are obtained by sending each web page address to the client, and finally the full address of the client is obtained based on the source network address of the client corresponding to all cross-domain access request messages, thereby improving the efficiency of obtaining the identification information corresponding to the full network line of the client.
Smart Images

Figure CN116346778B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the fields of artificial intelligence and information security technology, and in particular to an address acquisition method, apparatus, computer equipment, and storage medium. Background Art
[0002] With the development of internet technology, more and more companies are providing services to customers by deploying application portals over the internet. For network security and other reasons, some applications require whitelisting of access source network addresses. For example, this can be achieved by configuring policies on the company's internet perimeter firewall. This requires obtaining the client IP (Internet Protocol) address used by users accessing the application.
[0003] The traditional method for obtaining identification information corresponding to client network lines is to manually request users to use address query tools on the Internet to query the identification information corresponding to the client network lines. The obtained identification information is then fed back to the company for subsequent whitelist activation. However, this method can only obtain the user's client's single-stack address, not the full address of the user's client, resulting in a low efficiency in obtaining identification information corresponding to the client's full network lines. Summary of the Invention
[0004] Based on this, it is necessary to provide an address acquisition method, apparatus, computer device, computer-readable storage medium and computer program product to address the above technical problems.
[0005] In a first aspect, the present application provides an address acquisition method. The method comprises:
[0006] In response to the data access request message sent by the client, obtain the single stack domain name information corresponding to each network line included in the target operating network;
[0007] Generate a webpage address corresponding to each single-stack domain name information based on each single-stack domain name information, and send a response message containing each webpage address to the client; the response message is used to indicate the cross-domain access request message sent by the client through each network line respectively;
[0008] Based on the source network address included in each cross-domain access request message, the full address of the client is obtained.
[0009] Optionally, obtaining the single-stack domain name information corresponding to each network line included in the target operating network includes:
[0010] Determine the target operating network of the client application according to the data access request message, and obtain each network line included in the target operating network and identification information of each network line;
[0011] For each network line, multiple single-stack domain name information corresponding to the network line is configured based on the network line identification information corresponding to the network line.
[0012] Optionally, the sending a response message including each of the web page addresses to the client includes:
[0013] For each webpage address, based on the single-stack domain name information corresponding to the webpage address, a response message including the webpage address is sent to the client via the network line corresponding to the single-stack domain name information.
[0014] Optionally, before the source network address included in each cross-domain access request message, the method further includes:
[0015] Determining a network line for sending the cross-domain access request message based on single-stack domain name information corresponding to the webpage address accessed by the cross-domain access request message;
[0016] Based on the network line for sending the cross-domain access request message, a source network address of the client in the cross-domain access request message is collected.
[0017] Optionally, after collecting the source network address of the client in the cross-domain access request message based on the network line for sending the cross-domain access request message, the method further includes:
[0018] Classifying each source network address according to the address type corresponding to the source network address to obtain multiple source network address groups;
[0019] Deduplication processing is performed on each source network address in each source network address group to obtain optimized source network addresses.
[0020] Optionally, after responding to the data access request message sent by the client, the method further includes:
[0021] Querying the address database to determine whether the full address of the client is included;
[0022] In a case where the address database does not contain the full address of the client, determining a target operating network applied by the client based on the data access request message;
[0023] In a case where the address database contains the full address of the client, the full address of the client is queried in the address database.
[0024] In a second aspect, the present application provides an address acquisition method. The method comprises:
[0025] Sending a data access request message to the server;
[0026] Receiving a response message including a plurality of web page addresses sent by the server; the web page addresses are generated by the server based on single stack domain name information corresponding to each network line included in the target operating network;
[0027] Parse each web page address separately to obtain the single stack domain name information corresponding to each web page address;
[0028] A cross-domain access request message is sent to the web page address corresponding to the single-stack domain name information through the network line corresponding to each single-stack domain name information; the cross-domain access request message is used to instruct the server to obtain the full address of the client based on the source network address included in the cross-domain access request message.
[0029] In a third aspect, the present application further provides an address acquisition device. The device comprises:
[0030] The first receiving module is configured to obtain, in response to a data access request message sent by a client, single-stack domain name information corresponding to each network line included in the target operating network;
[0031] A first sending module is configured to generate a webpage address corresponding to each single-stack domain name information based on each single-stack domain name information, and send a response message containing each webpage address to the client; the response message is used to indicate the cross-domain access request message sent by the client through each network line respectively;
[0032] The acquisition module is used to obtain the full address of the client based on the source network address included in each cross-domain access request message.
[0033] Optionally, the first receiving module is specifically configured to:
[0034] Determine the target operating network of the client application according to the data access request message, and obtain each network line included in the target operating network and identification information of each network line;
[0035] For each network line, multiple single-stack domain name information corresponding to the network line is configured based on the network line identification information corresponding to the network line.
[0036] Optionally, the first sending module is specifically configured to:
[0037] For each webpage address, based on the single-stack domain name information corresponding to the webpage address, a response message including the webpage address is sent to the client via the network line corresponding to the single-stack domain name information.
[0038] Optionally, the device further includes:
[0039] a determination module, configured to determine a network line for sending the cross-domain access request message based on single-stack domain name information corresponding to the webpage address accessed by the cross-domain access request message;
[0040] The collection module is used to collect the source network address of the client in the cross-domain access request message based on the network line for sending the cross-domain access request message.
[0041] Optionally, the device further includes:
[0042] a classification module, configured to classify each source network address according to an address type corresponding to the source network address, to obtain a plurality of source network address groups;
[0043] The deduplication module is used to perform deduplication processing on each source network address in each source network address group to obtain optimized source network addresses.
[0044] Optionally, the device further includes:
[0045] A first query module, configured to query an address database to determine whether the full address of the client is included;
[0046] a second query module, configured to determine, based on the data access request message, a target operating network applied by the client when the address database does not contain the full address of the client;
[0047] The third query module queries the full address of the client in the address database when the address database contains the full address of the client.
[0048] In a fourth aspect, the present application further provides an address acquisition device. The device comprises:
[0049] A second sending module is used to send a data access request message to the server;
[0050] A second receiving module is configured to receive a response message including a plurality of web page addresses sent by the server; the web page addresses are generated by the server based on single stack domain name information corresponding to each network line included in the target operating network;
[0051] A parsing module is used to parse each web page address separately to obtain the single stack domain name information corresponding to each web page address;
[0052] The third sending module is used to send a cross-domain access request message to the web page address corresponding to the single-stack domain name information through the network line corresponding to each single-stack domain name information; the cross-domain access request message is used to instruct the server to obtain the full address of the client based on the source network address contained in the cross-domain access request message.
[0053] In a fifth aspect, the present application also provides an address acquisition system. The system includes a server and a client:
[0054] The client is used to send a data access request message to the server;
[0055] The server is configured to, in response to a data access request message sent by a client, obtain single-stack domain name information corresponding to each network line included in the target operating network; generate a webpage address corresponding to each single-stack domain name information based on each single-stack domain name information, and send a response message including each webpage address to the client;
[0056] The client is configured to receive a response message containing multiple web page addresses sent by the server; parse each web page address separately to obtain the single-stack domain name information corresponding to each web page address; and send a cross-domain access request message to the web page address corresponding to the single-stack domain name information through the network line corresponding to each single-stack domain name information;
[0057] The server is configured to obtain the full address of the client based on the source network address included in each cross-domain access request message.
[0058] In a sixth aspect, the present application provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method according to any one of the first aspect or the second aspect when executing the computer program.
[0059] In a seventh aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method according to any one of the first aspect or the second aspect are implemented.
[0060] In an eighth aspect, the present application provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of the first aspect or the second aspect are implemented.
[0061] The above-mentioned address acquisition method, device, computer equipment and storage medium obtain the single-stack domain name information corresponding to each network line included in the target operating network by responding to the data access request message sent by the client; based on each of the single-stack domain name information, a web page address corresponding to each of the single-stack domain name information is generated, and a response message containing each of the web page addresses is sent to the client; the response message is used to indicate the cross-domain access request message sent by the client through each network line respectively; based on the source network address contained in each of the cross-domain access request messages, the full address of the client is obtained. The target operating network is determined based on the data access request message transmitted by the user's client, and multiple web page addresses are generated for each single-stack domain name information configured in each network line of the target operating network. Then, multiple cross-domain access request messages of the client are obtained by sending each web page address to the client, and finally the full address of the client is obtained based on the source network address of the client corresponding to all cross-domain access request messages, thereby improving the efficiency of obtaining the identification information corresponding to the full network line of the client. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 A diagram showing an application environment of an address acquisition method in one embodiment;
[0063] Figure 2 1 is a flow chart of an address acquisition method according to an embodiment;
[0064] Figure 3 Schematic diagram of a flow chart of an address acquisition method in another embodiment;
[0065] Figure 4 A flowchart of an address acquisition example in one embodiment;
[0066] Figure 5 A flowchart of an example of address acquisition interaction in one embodiment;
[0067] Figure 6 is a structural block diagram of an address acquisition device in one embodiment;
[0068] Figure 7 is a structural block diagram of an address acquisition device in another embodiment;
[0069] Figure 8 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0070] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0071] The address acquisition method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. The client 102 communicates with the server 101 through the network. The server 101 determines the target operating network through a data access request message based on the user's client transmission, and generates multiple web page addresses based on the single stack domain name information configured in each network line of the target operating network. Then, by sending each web page address to the client to obtain multiple cross-domain access request messages of the client, the full address of the client is obtained based on the source network address of the client corresponding to all cross-domain access request messages, thereby improving the efficiency of obtaining the identification information corresponding to the full network line of the client. The client 102 can be, but is not limited to, various personal computers, laptops, smart phones, and tablet computers. The server 101 can be implemented with an independent server or a server cluster consisting of multiple servers.
[0072] In one embodiment, Figure 2 As shown, a method for obtaining an address is provided, which is applied to Figure 1 The following steps are used as an example to illustrate the server in the example:
[0073] Step S201: In response to a data access request message sent by a client, single-stack domain name information corresponding to each network line included in a target operating network is obtained.
[0074] In this embodiment, in response to a data access request message sent by a user's client, the server obtains the target operating network corresponding to the client. The server queries the network links included in the target operating network and obtains multiple single-stack domain names corresponding to each network link. The target operating network can be the operating network of any ISP (Internet Service Provider). The server obtains each network link included in the target operating network and, based on the network link identifier pre-assigned by the user to each network link, configures the single-stack domain name corresponding to each network link identifier. The network link identifier is the IPv4 (Internet Protocol version 4) address and IPv6 (Internet Protocol version 6) address assigned to each network link. For example, if the target operator's Internet links are n network links from ISP1, ISP2, ..., ISPn, the server obtains an IPv4 address and an IPv6 address assigned by the user to each ISP link, obtaining the IPv4 addresses IP1, IP2, ..., IPn, and the IPv6 addresses IP1', IP2', ..., IPn' corresponding to each network link. The server then obtains the single-stack domain name corresponding to each network link identifier configured by the user. Among them, the n domain names domain4-1.example.com to domain4-n.example.com are IPv4 single-stack domain name information (only A records, that is, IPv4 address records), which are respectively resolved to the IPv4 addresses IP1 to IPn of the above n network lines; the other n domain names domain6-1.example.com to domain6-n.example.com are IPv6 single-stack domain names (only AAAA records, that is, IPv6 address records), which are respectively resolved to the IPv6 addresses IP1' to IPn' of the above n network lines.
[0075] Step S202: Generate a webpage address corresponding to each single-stack domain name information based on each single-stack domain name information, and send a response message including each webpage address to the client.
[0076] The response message is used to indicate the cross-domain access request message sent by the client through each network line.
[0077] In this embodiment, the server generates a webpage address corresponding to each single-stack domain name information based on the single-stack domain name information. The server sends a response message containing each webpage address to the client via the network line corresponding to each single-stack domain name information. The webpage address is a URL address, and each webpage address corresponds to a virtual web page. The response message containing the webpage address is used to request the client to instruct the client to send a cross-domain access request message via each network line. The cross-domain access request message is a request message for the client to access the webpage address.
[0078] Step S203: Obtain the full address of the client based on the source network address included in each cross-domain access request message.
[0079] In this embodiment, when the server receives a cross-domain access request message corresponding to each webpage address sent by the client, it obtains the source network address of the client in the cross-domain access request message and uses all the source network addresses of the client as the full address of the client.
[0080] Based on the above solution, the target operating network is determined based on the data access request message transmitted by the user's client. Multiple web page addresses are generated based on the single-stack domain name information configured on each network link of the target operating network. Then, each web page address is sent to the client to obtain multiple cross-domain access request messages from the client. Finally, based on the client's source network address corresponding to all cross-domain access request messages, the full address of the client is obtained, improving the efficiency of obtaining identification information corresponding to all network links of the client.
[0081] Optionally, obtain the single-stack domain name information corresponding to each network line included in the target operating network, including: determining the target operating network of the client application based on the data access request message, and obtaining the network lines included in the target operating network, as well as the identification information of each network line; for each network line, based on the network line identification information corresponding to the network line, configure multiple single-stack domain name information corresponding to the network line.
[0082] In this embodiment, based on the client corresponding to the data access request message, the server queries the historical operation database for the target operating network used by the client. Based on the target operating network, the server queries each network link within the target operating network and obtains the IP address (i.e., network link identification information) configured by the staff for each network link. For example, based on the ISP (target operating network) in the data access request message, the server obtains an IPv4 address (IP address) and an IPv6 address (IP address) assigned by the staff to each ISP link (network link). These IP addresses are used to configure single-stack domain name information. If the target operating network includes n network links, such as ISP1, ISP2, ..., ISPn, the IPv4 addresses obtained by the server are IP1, IP2, ..., IPn, and the IPv6 addresses obtained by the server are IP1', IP2', ..., IPn'. For each network link, based on the network link identification information corresponding to that network link, the server configures the single-stack domain name information corresponding to each network link, thereby obtaining multiple single-stack domain name information corresponding to that network link. For example, as for the IPv4 addresses and IPv6 addresses of the aforementioned ISP lines, the server configures single-stack domain name information based on each IPv4 address to obtain n domain names - domain4-1.example.com to domain4-n.example.com, which respectively correspond to the IPv4 addresses IP1 to IPn of the above-mentioned n network lines; based on the configuration of single-stack domain name information for each IPv6 address, n domain names are obtained, and another n domain names - domain6-1.example.com to domain6-n.example.com, which respectively correspond to the IPv6 addresses IP1' to IPn' of the above-mentioned n network lines.
[0083] Based on the above solution, by configuring the single-stack domain name information corresponding to each network line, a method is provided for subsequently obtaining the source network address transmitted by the client on the network line.
[0084] Optionally, a response message containing each web page address is sent to the client, including: for each web page address, based on the single stack domain name information corresponding to the web page address, a response message containing the web page address is sent to the client through the network line corresponding to the single stack domain name information.
[0085] In this embodiment, for each webpage address generated by the single-stack domain name information, the server sends a response message including the webpage address to the client via the network line corresponding to the single-stack domain name information of the webpage address. The response message includes the webpage address and a cross-domain access request message requesting the client to access the webpage address.
[0086] Based on the above solution, by sending a response message including the web page address to the client, a cross-domain access request message for the client to access the web page address is obtained to obtain the client's source network address, thereby improving the efficiency of obtaining the client's source network address.
[0087] Optionally, before the source network address contained in each cross-domain access request message, it also includes: determining the network line for sending the cross-domain access request message based on the single-stack domain name information corresponding to the web page address accessed by the cross-domain access request message; and collecting the source network address of the client in the cross-domain access request message based on the network line for sending the cross-domain access request message.
[0088] In this embodiment, the server determines the network link through which the client sent the cross-domain access request message based on the single-stack domain name information corresponding to the webpage address accessed by the cross-domain access request message. Based on the network link through which the cross-domain access request message was sent, the server collects the client's source network address contained in the cross-domain access request message. The cross-domain access request message contains the client's source network address when sent via the network link. The terminal uses all network links to obtain all possible source network addresses used by the client.
[0089] Based on the above solution, the source network address of the client in the cross-domain access request message is collected through the network line that sends the cross-domain access request message, thereby improving the efficiency of obtaining each source network address.
[0090] Optionally, based on the network line for sending the cross-domain access request message, after collecting the source network address of the client in the cross-domain access request message, it also includes: classifying each source network address according to the address type corresponding to the source network address to obtain multiple source network address groups; deduplicating each source network address in each source network address group to obtain optimized source network addresses.
[0091] In this embodiment, the server uses the type of network line identification information corresponding to the obtained single-stack domain name information of the web address corresponding to the source network address as the address type corresponding to the source network address. For example, if the single-stack domain name information of the web address corresponding to source address 1 is domain4-5.example.com, then the address type corresponding to source address 1 is IPv4; if the single-stack domain name information of the web address corresponding to source address 2 is domain6-8.example.com, then the address type corresponding to source address 2 is IPv6. The server classifies each source network address according to the address type of each source network address to obtain multiple source network address groups. The server deduplicates each source network address in each source network address group to obtain optimized source network addresses.
[0092] Based on the above solution, by deduplicating source network addresses of the same address type, the number of full addresses and the memory size occupied by full addresses are optimized, and the time for staff to query each source network address is reduced, thereby improving the operability of the obtained full addresses.
[0093] Optionally, after responding to the data access request message sent by the client, it also includes: querying whether the full address of the client is included in the address database; if the address database does not contain the full address of the client, determining the target operating network of the client application based on the data access request message; if the address database contains the full address of the client, querying the address database for the full address of the client.
[0094] In this embodiment, after receiving the data access request message sent by the client, the server queries the address database of the server whether it contains the full address of the client. In the case that the address database does not contain the full address of the client, the server executes step S201. In the case that the address database contains the full address of the client, the server directly queries and obtains the full address of the client in the address database. The address database is the corresponding full address of each client obtained by the server through the above-mentioned address acquisition method or the manual address acquisition method when each client accesses the server in the historical period. In the case that the full address of the client is not in the address database of the server, the terminal stores the full address of the client obtained by the above-mentioned address acquisition method in the address database.
[0095] Based on the above solution, by determining whether the full address of the client exists in the address database before executing step S201, the process of re-obtaining the full address every time the client accesses the server is avoided, thereby improving the efficiency of the server in obtaining the full address of the client.
[0096] In one embodiment, Figure 3 As shown, a method for obtaining an address is provided, which is applied to Figure 1 The following steps are used as an example to illustrate the client:
[0097] Step S301: Send a data access request message to the server.
[0098] In this embodiment, in response to the user's operation of accessing the server, the client sends a data access request message to the server that the user wants to access, wherein the data access request message includes information of the target operating network corresponding to the client.
[0099] Step S302: Receive a response message including multiple web page addresses sent by the server.
[0100] The web page address is generated by the server based on the single-stack domain name information corresponding to each network line included in the target operating network.
[0101] In this embodiment, the client receives a response message including multiple web page addresses sent by the server, wherein each web page address corresponds to a single stack domain name information. The web page address is used by the client to send a cross-domain access request information to the web page address.
[0102] Step S303: parse each web page address separately to obtain the single stack domain name information corresponding to each web page address.
[0103] In this embodiment, the client resolves each web address to obtain the corresponding single-stack domain name information for each web address. For example, if the web address is https: / / domain4-1.example.com / getremoteaddr, the client will first perform domain name resolution on the domain name domain4-1.example.com in the URL before accessing it, and obtain the single-stack domain name information for the web address: https: / / domain4-1.example.com.
[0104] Step S304: Send a cross-domain access request message to the webpage address corresponding to the single-stack domain name information through the network line corresponding to each single-stack domain name information.
[0105] The cross-domain access request message is used to instruct the server to obtain the full address of the client based on the source network address included in the cross-domain access request message.
[0106] In this embodiment, the client sends a cross-domain access request message to the webpage address corresponding to the single-stack domain name information through the network line corresponding to each single-stack domain name information.
[0107] Based on the above solution, the client sends a cross-domain access request message to the web page address corresponding to the single-stack domain name information through the network line corresponding to each single-stack domain name information, thereby improving the comprehensiveness of obtaining the source network address of the client corresponding to each network line.
[0108] In one embodiment, Figure 1 As shown, an address acquisition system is provided, characterized in that the system includes a server 101 and a client 102:
[0109] The client 102 is configured to send a data access request message to the server.
[0110] Server 101 is used to respond to the data access request message sent by the client, obtain the single-stack domain name information corresponding to each network line included in the target operating network; generate the web page address corresponding to each single-stack domain name information based on each single-stack domain name information, and send a response message containing each web page address to the client.
[0111] The client 102 is used to receive a response message containing multiple web page addresses sent by the server; parse each web page address separately to obtain the single stack domain name information corresponding to each web page address; and send a cross-domain access request message to the web page address corresponding to the single stack domain name information through the network line corresponding to each single stack domain name information.
[0112] The server 101 is configured to obtain the full address of the client based on the source network address included in each cross-domain access request message.
[0113] In this embodiment, a communication connection is established between the server 101 and the client 102. The client 102 is used to send a data access request message to the server. The server 101 is used to respond to the data access request message sent by the client, obtain the single-stack domain name information corresponding to each network line included in the target operating network; generate the web page address corresponding to each single-stack domain name information based on each single-stack domain name information, and send a response message containing each web page address to the client. The client 102 is used to receive a response message containing multiple web page addresses sent by the server; parse each web page address separately to obtain the single-stack domain name information corresponding to each web page address; and send a cross-domain access request message to the web page address corresponding to the single-stack domain name information through the network line corresponding to each single-stack domain name information. The server 101 is used to obtain the full address of the client based on the source network address contained in each cross-domain access request message.
[0114] This application also provides an example of address acquisition, such as Figure 4 As shown, the specific processing process includes the following steps:
[0115] Step S401: responding to a data access request message sent by a client.
[0116] Step S402: determining the target operating network of the client application according to the data access request message, and obtaining each network line included in the target operating network and identification information of each network line.
[0117] Step S403 : for each network line, based on the network line identification information corresponding to the network line, configure multiple single-stack domain name information corresponding to the network line.
[0118] Step S404 : For each webpage address, based on the single-stack domain name information corresponding to the webpage address, a response message including the webpage address is sent to the client via the network line corresponding to the single-stack domain name information.
[0119] Step S405 : determining a network line for sending the cross-domain access request message based on the single-stack domain name information corresponding to the webpage address accessed by the cross-domain access request message.
[0120] Step S406: Based on the network line for sending the cross-domain access request message, the source network address of the client in the cross-domain access request message is collected.
[0121] Step S407: Obtain the full address of the client based on the source network address included in each cross-domain access request message.
[0122] This application also provides an example of address acquisition interaction, such as Figure 5 As shown, the specific processing process includes the following steps:
[0123] Step S501: The client sends a data access request message to the server.
[0124] In step S502, the server sends a response message including the addresses of each web page to the client.
[0125] In step S503 , the client sends the cross-domain access request message to the server via the network line corresponding to the single-stack domain name information of each web page address.
[0126] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed 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 portion of steps or stages in other steps.
[0127] Based on the same inventive concept, the present application also provides an address acquisition device for implementing the aforementioned address acquisition method. The implementation solution provided by the device is similar to the implementation solution described in the aforementioned method. Therefore, the specific limitations of one or more address acquisition device embodiments provided below can be found in the above-mentioned limitations of the address acquisition method and will not be repeated here.
[0128] In one embodiment, Figure 6As shown, an address acquisition device is provided, including: a first receiving module 610, a first sending module 620 and an acquisition module 630, wherein:
[0129] The first receiving module 610 is configured to obtain, in response to a data access request message sent by a client, single-stack domain name information corresponding to each network line included in the target operating network;
[0130] The first sending module 620 is configured to generate a webpage address corresponding to each single-stack domain name information based on each single-stack domain name information, and send a response message including each webpage address to the client; the response message is used to indicate the cross-domain access request message sent by the client through each network line respectively;
[0131] The acquisition module 630 is configured to obtain the full address of the client based on the source network address included in each cross-domain access request message.
[0132] Optionally, the first receiving module 610 is specifically configured to:
[0133] Determine the target operating network of the client application according to the data access request message, and obtain each network line included in the target operating network and identification information of each network line;
[0134] For each network line, multiple single-stack domain name information corresponding to the network line is configured based on the network line identification information corresponding to the network line.
[0135] Optionally, the first sending module 620 is specifically configured to:
[0136] For each webpage address, based on the single-stack domain name information corresponding to the webpage address, a response message including the webpage address is sent to the client via the network line corresponding to the single-stack domain name information.
[0137] Optionally, the device further includes:
[0138] a determination module, configured to determine a network line for sending the cross-domain access request message based on single-stack domain name information corresponding to the webpage address accessed by the cross-domain access request message;
[0139] The collection module is used to collect the source network address of the client in the cross-domain access request message based on the network line for sending the cross-domain access request message.
[0140] Optionally, the device further includes:
[0141] a classification module, configured to classify each source network address according to an address type corresponding to the source network address, to obtain a plurality of source network address groups;
[0142] The deduplication module is used to perform deduplication processing on each source network address in each source network address group to obtain optimized source network addresses.
[0143] Optionally, the device further includes:
[0144] A first query module, configured to query an address database to determine whether the full address of the client is included;
[0145] a second query module, configured to determine, based on the data access request message, a target operating network applied by the client when the address database does not contain the full address of the client;
[0146] The third query module queries the full address of the client in the address database when the address database contains the full address of the client.
[0147] Based on the same inventive concept, the present application also provides an address acquisition device for implementing the aforementioned address acquisition method. The implementation solution provided by the device is similar to the implementation solution described in the aforementioned method. Therefore, the specific limitations of one or more address acquisition device embodiments provided below can be found in the above-mentioned limitations of the address acquisition method and will not be repeated here.
[0148] In one embodiment, Figure 7 As shown, an address acquisition device is provided, including: a second sending module 710, a second receiving module 720, a parsing module 730 and a third sending module 740, wherein:
[0149] The second sending module 710 is used to send a data access request message to the server;
[0150] The second receiving module 720 is configured to receive a response message including a plurality of web page addresses sent by the server; the web page addresses are generated by the server based on the single stack domain name information corresponding to each network line included in the target operating network;
[0151] The parsing module 730 is used to parse each web page address separately to obtain the single stack domain name information corresponding to each web page address;
[0152] The third sending module 740 is used to send a cross-domain access request message to the web page address corresponding to the single-stack domain name information through the network line corresponding to each single-stack domain name information; the cross-domain access request message is used to instruct the server to obtain the full address of the client based on the source network address contained in the cross-domain access request message.
[0153] Each module in the above-mentioned address acquisition device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0154] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, memory, a communication interface, a display screen, and an input device 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 internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external server via wired or wireless communication. The wireless communication can be achieved via Wi-Fi, a mobile cellular network, NFC (near-field communication), or other technologies. When executed by the processor, the computer program implements an address acquisition method. The display screen of the computer device can be a liquid crystal display or an electronic ink display. The input device of the computer device can be a touch layer covering the display screen, or keys, a trackball, or a touchpad provided on the computer device housing, or an external keyboard, touchpad, or mouse.
[0155] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the 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 component arrangement.
[0156] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the method described in any one of the first aspect or the second aspect are implemented.
[0157] 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 of the method according to any one of the first aspect or the second aspect are implemented.
[0158] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the steps of the method according to any one of the first aspect or the second aspect.
[0159] 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.
[0160] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. 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 above-mentioned embodiments. In particular, any reference to memory, database, or other media 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), magnetic 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. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), data processing logic devices based on quantum computing, and the like.
[0161] The technical features of the above embodiments can 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.
[0162] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. An address acquisition method, which is applied to a server and is characterized in that: The method comprises: In response to the data access request message sent by the client, obtain the single stack domain name information corresponding to each network line included in the target operating network; Generate a webpage address corresponding to each single-stack domain name information based on each single-stack domain name information, and send a response message containing each webpage address to the client; the response message is used to indicate the cross-domain access request message sent by the client through each network line respectively; Obtaining the full address of the client based on the source network address included in each cross-domain access request message; The obtaining of the single-stack domain name information corresponding to each network line included in the target operating network includes: Determine the target operating network of the client application according to the data access request message, and obtain network lines included in the target operating network and network line identification information corresponding to each network line; For each network line, multiple single-stack domain name information corresponding to the network line is configured based on the network line identification information corresponding to the network line.
2. The method according to claim 1, characterized in that The sending of a response message including each of the web page addresses to the client includes: For each webpage address, based on the single-stack domain name information corresponding to the webpage address, a response message including the webpage address is sent to the client via the network line corresponding to the single-stack domain name information.
3. The method according to claim 2, characterized in that Before the source network address included in each cross-domain access request message, the method further includes: Determining a network line for sending the cross-domain access request message based on single-stack domain name information corresponding to the webpage address accessed by the cross-domain access request message; Based on the network line for sending the cross-domain access request message, a source network address of the client in the cross-domain access request message is collected.
4. The method according to claim 3, characterized in that After collecting the source network address of the client in the cross-domain access request message based on the network line for sending the cross-domain access request message, the method further includes: Classifying each source network address according to the address type corresponding to the source network address to obtain multiple source network address groups; Deduplication processing is performed on each source network address in each source network address group to obtain optimized source network addresses.
5. The method according to claim 1, wherein After responding to the data access request message sent by the client, the method further includes: Querying the address database to determine whether the full address of the client is included; In a case where the address database does not contain the full address of the client, determining a target operating network applied by the client based on the data access request message; In a case where the address database contains the full address of the client, the full address of the client is queried in the address database.
6. A method for obtaining an address, the method being applied to a client, characterized in that: The method comprises: Sending a data access request message to the server; receiving a response message sent by the server including a plurality of web page addresses; the web page addresses are generated by the server determining a target operating network for the client application based on the data access request message, and obtaining network lines included in the target operating network and network line identification information corresponding to each network line; the server generating, for each network line, single stack domain name information corresponding to each network line configured based on the network line identification information corresponding to the network line; Parse each web page address separately to obtain the single stack domain name information corresponding to each web page address; A cross-domain access request message is sent to the web page address corresponding to the single-stack domain name information through the network line corresponding to each single-stack domain name information; the cross-domain access request message is used to instruct the server to obtain the full address of the client based on the source network address included in the cross-domain access request message.
7. An address acquisition system, characterized in that: The system includes a server and a client: The client is used to send a data access request message to the server; The server is configured to, in response to a data access request message sent by a client, obtain single-stack domain name information corresponding to each network line included in the target operating network; generate a webpage address corresponding to each single-stack domain name information based on each single-stack domain name information, and send a response message including each webpage address to the client; The client is configured to receive a response message including multiple web page addresses sent by the server; Parsing each web page address separately to obtain the single stack domain name information corresponding to each web page address; sending a cross-domain access request message to the web page address corresponding to the single stack domain name information through the network line corresponding to each single stack domain name information; The server is configured to obtain the full address of the client based on the source network address included in each cross-domain access request message; The obtaining of the single-stack domain name information corresponding to each network line included in the target operating network includes: Determine the target operating network of the client application according to the data access request message, and obtain network lines included in the target operating network and network line identification information corresponding to each network line; For each network line, multiple single-stack domain name information corresponding to the network line is configured based on the network line identification information corresponding to the network line.
8. An address acquisition device, applied to a server, characterized in that: The device comprises: The first receiving module is configured to obtain, in response to a data access request message sent by a client, single-stack domain name information corresponding to each network line included in the target operating network; A first sending module is configured to generate a webpage address corresponding to each single-stack domain name information based on each single-stack domain name information, and send a response message containing each webpage address to the client; the response message is used to indicate the cross-domain access request message sent by the client through each network line respectively; An acquisition module, configured to obtain the full address of the client based on the source network address included in each cross-domain access request message; The obtaining of the single-stack domain name information corresponding to each network line included in the target operating network includes: Determine the target operating network of the client application according to the data access request message, and obtain network lines included in the target operating network and network line identification information corresponding to each network line; For each network line, multiple single-stack domain name information corresponding to the network line is configured based on the network line identification information corresponding to the network line.
9. An address acquisition device, wherein the address acquisition method is applied to a client, characterized in that: The device comprises: A second sending module is used to send a data access request message to the server; a second receiving module, configured to receive a response message sent by the server comprising a plurality of web page addresses; the web page addresses are generated by the server determining a target operating network for the client application based on the data access request message, and obtaining network lines included in the target operating network and network line identification information corresponding to each network line; the server generating, for each network line, single stack domain name information corresponding to each network line configured based on the network line identification information corresponding to the network line; A parsing module is used to parse each web page address separately to obtain the single stack domain name information corresponding to each web page address; The third sending module is used to send a cross-domain access request message to the web page address corresponding to the single-stack domain name information through the network line corresponding to each single-stack domain name information; the cross-domain access request message is used to instruct the server to obtain the full address of the client based on the source network address contained in the cross-domain access request message.
10. 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 5 or claim 6 are implemented.
11. 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 5 or claim 6 are implemented.
12. 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 5 or claim 6 are implemented.
Citation Information
Patent Citations
Service platform address resolution method and system and related devices
CN106657431A
Remote identification of client and DNS proxy IP addresses
US6728767B1