A method and device for obtaining an external link address

The server-side allocates and controls the external link address of the terminal-developed product, which solves the problem that the external link address acquisition process cannot be controlled in the prior art and improves the security of the product.

CN114745357BActive Publication Date: 2025-04-18BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210372963.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-08
Publication Date
2025-04-18
Estimated Expiration
2042-04-08

AI Technical Summary

Technical Problem

In the prior art, the designated party cannot control the acquisition process of external link addresses, resulting in a low security level of developed products.

Method used

The server allocates and controls the external link addresses required for terminal development products, ensuring that the acquisition process of the target link address is reviewed and avoids embedding of problematic external link addresses.

Benefits of technology

It improves the security of the products to be developed, ensures that the acquisition process of external link addresses is controlled, and reduces the risk of products being embedded in illegal link addresses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114745357B_ABST
    Figure CN114745357B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of mobile interconnection technology, and in particular to a method and device for obtaining an external link address. The method includes receiving an external link address acquisition request sent by a terminal, the external link address acquisition request corresponding to a functional module of a product to be developed of the terminal; determining a target link address according to the external link address acquisition request; and sending the target link address to the terminal so that the terminal embeds the target link address into the functional module of the product to be developed. Compared with the solution in the prior art that the terminal directly obtains the required external link address according to the functional module of the product to be developed, the method avoids embedding problematic external link addresses in the functional module of the product to be developed, thereby improving the security of the product to be developed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of mobile internet technology, and in particular to a method and device for acquiring an external link address. Background Art

[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section.

[0003] With the rapid development of digital technology, the cooperation between major Internet platforms is becoming closer and closer. In the process of product development, it is often necessary to embed functional modules of other Internet platforms into the product. For this kind of situation, most of the products under development currently embed hyperlinks of functional modules that have been developed by other Internet platforms into the developed products, thereby realizing the use of functions of other Internet platforms by accessing hyperlinks.

[0004] As the Internet industry grows, many Internet platforms have the same functions, but the source code of their functions or the security coefficient of the Internet platforms may be different. Therefore, when obtaining a hyperlink to a certain functional module, if the acquisition process is not controlled, it is likely to cause some illegal link addresses (such as phishing websites) to be embedded, which will cause serious losses.

[0005] There is an urgent need for a method for obtaining an external link address, so as to solve the problem in the prior art that the external link address obtaining process cannot be controlled by a designated party, resulting in a low security level of the developed product. Summary of the invention

[0006] In order to solve the problem in the prior art that the designated party cannot review the process of obtaining the external link address, resulting in a low security level of the developed product, the embodiment of the present invention provides a method and device for obtaining the external link address, which realizes the allocation of the external link address required by the terminal when developing the product through the server, controls the process of obtaining the external link address, avoids embedding problematic external link addresses in the functional modules of the product to be developed, and improves the security of the product to be developed.

[0007] In order to solve the above technical problems, the specific technical solutions of this article are as follows:

[0008] On the one hand, an embodiment of the present invention provides a method for obtaining an external link address, the method comprising:

[0009] Receiving an external link address acquisition request sent by a terminal, wherein the external link address acquisition request corresponds to a functional module of a product to be developed of the terminal;

[0010] Determine the target link address according to the external link address acquisition request;

[0011] The target link address is sent to the terminal, so that the terminal embeds the target link address into the functional module of the product to be developed.

[0012] Furthermore, the external link address acquisition request includes link subject properties, link structure properties, and link functions;

[0013] According to the external link address acquisition request, determining the target link address further includes:

[0014] In the link address list stored in the server, a link address corresponding to the link subject property, link structure property, and link function is determined as the target link address, and the link address list includes the correspondence between the link subject property, link structure property, link function and link address.

[0015] Furthermore, before determining the target link address according to the external link address acquisition request, the method further includes:

[0016] Get the link address in the network;

[0017] The link subject property, link structure property and link function of the obtained link address are analyzed, and the correspondence between the obtained link address and the link subject property, link structure property and link function obtained by analyzing the link address is recorded in the link address list.

[0018] Furthermore, after determining the target link address, the method further includes:

[0019] The target link address is verified, and after the verification passes, the target link address is sent to the terminal.

[0020] Furthermore, verifying the target link address further includes:

[0021] The availability, security and / or compliance of the target link address is verified.

[0022] Furthermore, verifying the availability, security and / or compliance of the target link address further includes:

[0023] Sending an access request to the target link address, determining whether a response from the link address can be received, and if so, determining whether the content of the received response corresponds to the link function of the link address recorded in the link address list, and if so, the target link address is available; and / or,

[0024] Determining the security of the target link address by verifying the signature certificate of the target link address; and / or,

[0025] The relationship between the operator of the target link address and the operator of the terminal is determined, and whether there is a risk in embedding the target link address in the functional module of the product to be developed of the terminal according to the relationship. If not, the target link address is compliant.

[0026] Furthermore, if the verification result of the target link address is failure, the target link address that fails the verification is deleted from the link address list.

[0027] Furthermore, sending the target link address to the terminal further includes:

[0028] The target link address is encrypted according to an encryption algorithm pre-negotiated with the terminal, and the encrypted target link address is sent to the terminal, so that the terminal decrypts the encrypted target link address according to the encryption algorithm to obtain the target link address.

[0029] Furthermore, after sending the target link address to the terminal, the method further includes:

[0030] receiving a link address replacement request sent by the terminal when a verification result of the target link address by the terminal is not passed, wherein the link address replacement request includes the link address that the terminal has not passed the verification;

[0031] According to the external link address acquisition request, a target link address different from the link address in the link address change request is obtained again, and the obtained target link address is sent to the terminal until the terminal verifies that the obtained target link address is passed.

[0032] On the other hand, an embodiment of the present invention further provides a method for obtaining an external link address, which is executed by a terminal, and the method includes:

[0033] Sending an external link address acquisition request to a server, wherein the external link address acquisition request corresponds to a functional module of the product to be developed of the terminal;

[0034] Receiving the target link address determined and sent by the server according to the external link address acquisition request;

[0035] The target link address is embedded into the functional module of the product to be developed.

[0036] Further, after receiving the target link address determined and sent by the server according to the external link address acquisition request, the method further includes:

[0037] Verifying the target link address;

[0038] If the verification result is not passed, a link address change request is sent to the server, so that the server again obtains and sends a target link address different from the link address in the link address change request according to the external link address acquisition request.

[0039] Furthermore, the step of verifying the target link address includes:

[0040] Determine whether the target link address corresponds to the link subject property, link structure property, and link function in the external link address acquisition request, and if so, the verification is passed; and / or;

[0041] It is determined whether the target link address is in the link address blacklist stored in the terminal. If not, the verification is successful.

[0042] Furthermore, before verifying the target link address, the method further includes:

[0043] The encrypted target link address sent by the server is decrypted according to an encryption algorithm pre-negotiated with the server to obtain the target link address.

[0044] On the other hand, an embodiment of the present invention further provides a dynamic access device, including:

[0045] An external link address acquisition request receiving unit, configured to receive an external link address acquisition request sent by a terminal, wherein the external link address acquisition request corresponds to a functional module of a product to be developed of the terminal;

[0046] A target link address determining unit, configured to determine a target link address according to the external link address obtaining request;

[0047] The target link address sending unit is used to send the target link address to the terminal, so that the terminal embeds the target link address into the functional module of the product to be developed.

[0048] On the other hand, an embodiment of the present invention further provides a dynamic access device, including:

[0049] An external link address acquisition request sending unit, used to send an external link address acquisition request to the server, wherein the external link address acquisition request corresponds to a functional module of the product to be developed of the terminal;

[0050] A target link address receiving unit, used for receiving the target link address determined and sent by the server according to the external link address acquisition request;

[0051] The target link address embedding unit is used to embed the target link address into the functional module of the product to be developed.

[0052] On the other hand, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned dynamic access method when executing the computer program.

[0053] On the other hand, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned dynamic access method is implemented.

[0054] Finally, an embodiment of the present invention further 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 above-mentioned dynamic access method is implemented.

[0055] In the embodiment of the present invention, when the terminal is developing a functional module of a product, it first generates an external link address acquisition request corresponding to the functional module of the product to be developed, and then sends the external link address acquisition request to the server. The server then determines the target link address according to the external link address acquisition request, and then the server sends the target link address to the terminal. The terminal embeds the target link address into the functional module of the product to be developed, and completes the acquisition of the external link address. The server allocates the external link address required by the terminal when developing the product, and controls the acquisition process of the external link address. Compared with the solution in the prior art that the terminal directly obtains the required external link address according to the functional module of the product to be developed, it avoids embedding problematic external link addresses in the functional module of the product to be developed, and improves the security of the product to be developed. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0057] Figure 1 A schematic diagram of an implementation system of a method for obtaining an external link address in an embodiment of the present invention;

[0058] Figure 2A schematic diagram of a flow chart of a method for obtaining an external link address in an embodiment of the present invention;

[0059] Figure 3 A schematic diagram of a flow chart of a method for obtaining an external link address in an embodiment of the present invention;

[0060] Figure 4 The process of constructing a link address list by the server in the embodiment of the present invention;

[0061] Figure 5 It is a structural schematic diagram of a device for obtaining an external link address in an embodiment of the present invention;

[0062] Figure 6 It is a structural schematic diagram of a device for obtaining an external link address in an embodiment of the present invention;

[0063] Figure 7 A data flow diagram of a system for acquiring an external link address in an embodiment of the present invention;

[0064] Figure 8 The figure is a schematic diagram of the structure of a computer device according to an embodiment of the present invention.

[0065] Description of the accompanying symbols:

[0066] 101. Terminal;

[0067] 102. Server;

[0068] 501, external link address acquisition request receiving unit;

[0069] 502, target link address determination unit;

[0070] 503, target link address sending unit;

[0071] 601, external link address acquisition request sending unit;

[0072] 602, target link address receiving unit;

[0073] 603, target link address embedding unit;

[0074] 802. Computer equipment;

[0075] 804. Processing equipment;

[0076] 806. Storage resources;

[0077] 808, driving mechanism;

[0078] 810, input / output module;

[0079] 812. Input device;

[0080] 814. Output device;

[0081] 816. Presentation equipment;

[0082] 818. Graphical user interface;

[0083] 820, network interface;

[0084] 822, communication link;

[0085] 824. Communication bus. DETAILED DESCRIPTION

[0086] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0087] It should be noted that the terms "first", "second", etc. in the specification and claims of this article and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of this article described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0088] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0089] like Figure 1The diagram is a schematic diagram of an implementation system of a method for obtaining an external link address according to an embodiment of the present invention, which may include: a terminal 101 and a server 102, wherein the terminal 101 and the server 102 communicate with each other through a network, wherein the network may include a local area network (LAN), a wide area network (WAN), the Internet or a combination thereof, and is connected to a website, a user device (such as a computing device) and a back-end system. When developing a functional module of a product, the terminal 101 may send an external link address acquisition request to the server 102, and the server 102 determines a target link address corresponding to the external link address acquisition request and sends the determined target link address to the terminal 101, and the terminal 101 embeds the received target link address into the functional module of the product to be developed. Among them, the server of the server 102 may respond to the external link address acquisition request of the terminal 101 and determine the target link address, and a processing system with multiple target functions is deployed on the server. Optionally, the server may be a node of a cloud computing system (not shown in the figure), or each server may be a separate cloud computing system, including multiple computers interconnected by a network and working as a distributed processing system.

[0090] In addition, it should be noted that Figure 1 What is shown is only an application environment provided by the present disclosure. In actual application, multiple terminals 101 may be included, and this specification does not limit this.

[0091] At present, when different platforms use functional modules, the product developer (terminal 101) may need to embed the functions of other platforms in the functional modules of the products developed by itself. Specifically, the link addresses corresponding to the functions of other platforms can be embedded in the functional modules of the products developed by itself. However, due to the diversity of external link addresses, the external link addresses obtained by the product developer (terminal 101) on their own for the functional modules of the products to be developed may have certain problems, which increases the security risks of the products to be developed.

[0092] In response to the problems existing in the prior art, an embodiment of the present invention provides a method for obtaining an external link address, which abandons the method in which the product developer (terminal 101) obtains the required external link address by itself. The server 102 allocates the external link address to the product developer (terminal 101), thereby avoiding embedding problematic external link addresses in the functional modules of the product to be developed, and improving the security of the product to be developed. Figure 2The figure shows a flow chart of a method for obtaining an external link address according to an embodiment of the present invention. The process of obtaining an external link address is described in this figure, but more or fewer operation steps may be included based on conventional or non-creative work. The order of steps listed in the embodiment is only one way of executing the steps among many orders, and does not represent the only order of execution. When the system or device product is executed in practice, it can be executed in the order or in parallel according to the method shown in the embodiment or the accompanying drawings. Specifically, Figure 2 As shown, the method is executed by the server and may include:

[0093] Step 201: receiving an external link address acquisition request sent by a terminal, wherein the external link address acquisition request corresponds to a functional module of a product to be developed of the terminal;

[0094] Step 202: determining a target link address according to the external link address acquisition request;

[0095] Step 203: Send the target link address to the terminal, so that the terminal embeds the target link address into the functional module of the product to be developed.

[0096] Correspondingly, an embodiment of the present invention further provides a method for obtaining an external link address, which is executed by a terminal, such as Figure 3 As shown, including

[0097] Step 301: Sending an external link address acquisition request to a server, wherein the external link address acquisition request corresponds to a functional module of the terminal product to be developed;

[0098] Step 302: receiving the target link address determined and sent by the server according to the external link address acquisition request;

[0099] Step 303: embed the target link address into the functional module of the product to be developed.

[0100] Through the method of the embodiment of the present invention, when the terminal develops the functional module of the product, it first generates an external link address acquisition request corresponding to the functional module of the product to be developed, and then sends the external link address acquisition request to the server. The server then determines the target link address according to the external link address acquisition request, and then the server sends the target link address to the terminal. The terminal embeds the target link address into the functional module of the product to be developed to complete the acquisition of the external link address. The server allocates the external link address required by the terminal when developing the product and controls the acquisition process of the external link address. Compared with the solution in the prior art that the terminal directly obtains the required external link address according to the functional module of the product to be developed, it avoids embedding problematic external link addresses in the functional module of the product to be developed, and improves the security of the product to be developed.

[0101] In an embodiment of the present invention, the external link address acquisition request corresponds to the functional module of the product to be developed of the terminal. The type of the external link address can be a POST request or a GET request. The external link address can also include parameter information required when using the external link address. The parameter information corresponds to the link field of the external link address. It can be understood that after the terminal obtains the target link address determined by the server, the terminal embeds the target link address (such as a GET request or a POST request) into the source code of the functional module of the product to be developed, and adapts the link field of the external link address, so that when applying the function corresponding to the functional module, the external link address is called to use the relevant services or functions provided by the operator of the external link address.

[0102] In an embodiment of the present invention, the external link address acquisition request may include the service or function name required by the functional module of the product to be developed. The server stores the correspondence between the names of multiple services or functions and multiple link addresses. When the server receives the external link address acquisition request, it determines the link address corresponding to the name of the service or function in the external link address acquisition request based on the correspondence to obtain the target link address.

[0103] Further, according to an embodiment of the present invention, the external link address acquisition request includes link subject properties, link structure properties, and link functions;

[0104] Step 202 determines the target link address according to the external link address acquisition request, further comprising:

[0105] In the link address list stored in the server, a link address corresponding to the link subject property, link structure property, and link function is determined as the target link address, and the link address list includes the correspondence between the link subject property, link structure property, link function and link address.

[0106] In an embodiment of the present invention, the link subject property may indicate the property of the operator to which the link address belongs, such as a corporate website, a government website, an educational and scientific research institution website, etc. The link structure property may indicate the architecture, programming language, etc. used by the link address, such as an asp website, a php website, a jsp website, an asp.net website, etc. The link function may indicate the function implemented by the link address, such as obtaining information, algorithm calculation, etc. In the function module of the product to be developed of the terminal, the link subject property of the required external link address may be determined according to the property of the function module, the link structure property of the required external link address may be determined according to the source code architecture, programming language, etc. of the function module, the link function of the external link address may be determined according to the function implemented by the function module, and the specified link subject property, link structure property, and link function may be constructed into an external link address acquisition request and sent to the server.

[0107] It can be understood that the link address list of the server includes multiple link addresses and the link subject properties, link structure properties and link functions of each link address. When the server receives an external link address acquisition request including the link subject properties, link structure properties and link functions, the server determines the link address corresponding to the link subject properties, link structure properties and link functions in the external link address acquisition request in the stored link address list as the target link address.

[0108] In the embodiment of the present invention, the link address list stored in the server can be the link address registered by the operator of the link address in the server, or it can be the link address crawled by the server through web crawlers and other technologies after obtaining the authorization of the operator of the link address. It should be noted that the acquisition, storage, use, and processing of the link address of the link address operator in the technical solution described in the embodiment of this specification are in compliance with the relevant provisions of national laws and regulations. Specifically, according to an embodiment of this invention, Figure 4 As shown, before step 202 determines the target link address according to the external link address acquisition request, the method further includes:

[0109] Step 401: Obtain a link address in the network;

[0110] Step 402: Analyze the link subject property, link structure property and function of the acquired link address, and record the correspondence between the acquired link address and the link subject property, link structure property and link function obtained by analyzing the link address in the link address list.

[0111] In the embodiment of the present invention, the operator of the link address may send a registration request for the link address to the server, and the registration request includes the link address; or the server may crawl the link address through a web crawler or other technology after obtaining authorization from the operator of the link address. After the server obtains the link address, it analyzes the link address to determine the link subject property, link structure property, and link function of the link address, and then stores the corresponding relationship between the link subject property, link structure property, link function, and link address in the link address list.

[0112] In an embodiment of the present invention, since the link address in the link address list may be pre-recorded, before the terminal uses the link address, the operator of the link address may modify the link address, or the link address may have security risks due to the operator of the link address being attacked. Therefore, in order to avoid problems with the target link address sent to the terminal, according to an embodiment of the present invention, after step 202 determines the target link address, the method further includes:

[0113] The target link address is verified, and after the verification passes, the target link address is sent to the terminal.

[0114] In an embodiment of the present invention, after determining the target link address, the server verifies the target link address. If there is a problem with the target link address, the verification fails. If there is no problem with the target link address, the verification passes. After the verification passes, the target link address is sent to the terminal, thereby avoiding sending a problematic target link address to the terminal, thereby improving the security of the terminal's product to be developed.

[0115] According to one embodiment of the present invention, verifying the target link address further includes:

[0116] The availability, security and / or compliance of the target link address is verified.

[0117] It can be understood that the server can verify any one of the availability, security or compliance of the target link address. In order to further improve security, the server can also perform a combined verification of multiple items of the availability, security or compliance of the target link address, which is not limited in the embodiments of this specification.

[0118] According to one embodiment of the present invention, verifying the availability, security and / or compliance of the target link address further includes:

[0119] Sending an access request to the target link address, determining whether a response from the link address can be received, and if so, determining whether the content of the received response corresponds to the link function of the link address recorded in the link address list, and if so, the target link address is available; and / or,

[0120] Determining the security of the target link address by verifying the signature certificate of the target link address; and / or,

[0121] The relationship between the operator of the target link address and the operator of the terminal is determined, and whether there is a risk in embedding the target link address in the functional module of the product to be developed of the terminal according to the relationship. If not, the target link address is compliant.

[0122] In an embodiment of the present invention, the server can send an access request to the target link address. If the target link address does not exist or is reported by multiple people and is inaccessible, the server cannot receive a response from the target link address, which means that the target link address is unavailable. If the target link address runs normally, the server can receive a response from the target link address (for example, obtain a function page corresponding to the target link address, etc.). Then, it is determined whether the content of the received response corresponds to the link function of the link address recorded in the link address list. If the function of the link address has not been modified, the content of the response corresponds to the link function recorded in the link address list, and the link address is available. If the link address has been modified, the content of the response does not correspond to the link function recorded in the link address list, and the link address is unavailable.

[0123] In addition, the security of the target link address can be determined by verifying the signature certificate of the target link address, that is, calculating the signature value through the signature certificate. If the calculated signature value is consistent with the signature value returned by the target link address, the data returned by the target link address has not been tampered with, and the target link address is safe. If the calculated signature value is inconsistent with the signature value returned by the target link address, the data returned by the target link address has been tampered with, and the target link address is not safe.

[0124] In addition, the relationship between the operator of the target link address and the operator of the terminal (such as a cooperative relationship, a commercial competition relationship, etc.) can also be determined, and based on the relationship between the operator of the target link address and the operator of the terminal, it can be judged whether there is a risk in embedding the target link address in the functional module of the product to be developed (such as the risk of unfair competition, the risk of data leakage, etc.). If there is no risk, the target link address is compliant. For example, if there is a competitive relationship between the operator of the target link address and the operator of the terminal, in order to avoid unfair competition, the target link address that is in a competitive relationship with the operator of the terminal cannot be embedded in the functional module of the product to be developed of the terminal. It should be noted that multiple public judgment information can be analyzed to determine the relationship between the operator of the target link address and the operator of the terminal to determine whether there is a risk in embedding the target link address in the functional module of the product to be developed.

[0125] In an embodiment of the present invention, if the verification result of the target link address is failed, it may indicate that the target link address is unavailable, unsafe or non-compliant. In order to avoid obtaining the link address that fails the verification again based on the external link address acquisition request sent by the same terminal or other terminals, therefore, according to an embodiment of the present invention, if the verification result of the target link address is failed, the target link address that fails the verification is deleted from the link address list.

[0126] In an embodiment of the present invention, after the terminal receives the target link address sent by the server, it is possible that the target link address is not the optimal link address required by the terminal. Therefore, according to an embodiment of the present invention, after step 302 receives the target link address determined and sent by the server according to the external link address acquisition request, the method further includes:

[0127] Verifying the target link address;

[0128] If the verification result is not passed, a link address change request is sent to the server, so that the server again obtains and sends a target link address different from the link address in the link address change request according to the external link address acquisition request.

[0129] Correspondingly, after step 203 sends the target link address to the terminal, the method further includes:

[0130] receiving a link address replacement request sent by the terminal when a verification result of the target link address by the terminal is not passed, wherein the link address replacement request includes the link address that the terminal has not passed the verification;

[0131] According to the external link address acquisition request, a target link address different from the link address in the link address change request is obtained again, and the obtained target link address is sent to the terminal until the terminal verifies that the obtained target link address is passed.

[0132] It can be understood that when the terminal fails to verify the target link address, it means that the target link address is not the optimal link address required by the terminal. The terminal can send a link address change request to the server, thereby requesting the server to change other link addresses corresponding to the external link address acquisition request.

[0133] In an embodiment of the present invention, the link address change request sent by the terminal to the server may include the link address that failed the terminal verification, so that the server again obtains the target link address different from the link address in the link address change request based on the external link address acquisition request sent by the terminal.

[0134] According to one embodiment of the present invention, the step of the terminal verifying the target link address includes:

[0135] Determine whether the target link address corresponds to the link subject property, link structure property, and link function in the external link address acquisition request, and if so, the verification is passed; and / or;

[0136] It is determined whether the target link address is in the link address blacklist stored in the terminal. If not, the verification is successful.

[0137] It can be understood that the terminal can verify whether the target link address corresponds to the external link address request sent by the terminal. Specifically, it verifies whether the link subject properties, link structure properties and link functions of the target link address correspond to the link subject properties, link structure properties and link functions in the external link address acquisition request. If so, the terminal's verification result for the target link address is passed.

[0138] In addition, the target link address may have been embedded in the functional modules of multiple developed products of the terminal, so the embedding effect of the target link address (such as the performance of the target link address, the degree of compatibility between the developed product and the target link address, etc.) can be obtained. If the embedding effect of the target link address is not good, the terminal can store the target link address in the link address blacklist stored in the terminal. When the terminal receives the target link address, it can determine whether the target link address is in the link address blacklist. If so, it means that the embedding effect of the target link address in the functional modules of multiple developed products of the terminal is not good. The terminal can send a link address replacement request to the server, thereby requesting to replace other link addresses corresponding to the external link address acquisition request. It should be noted that the terminal can determine whether to store the link address with poor embedding effect in the blacklist according to the actual business situation or the test effect of the developed product, and the embodiments of this specification are not limited.

[0139] According to an embodiment of the present invention, in order to improve the security of the process in which the server sends the target link address to the terminal, sending the target link address to the terminal further includes:

[0140] The target link address is encrypted according to an encryption algorithm pre-negotiated with the terminal, and the encrypted target link address is sent to the terminal, so that the terminal decrypts the encrypted target link address according to the encryption algorithm to obtain the target link address.

[0141] Correspondingly, before the terminal verifies the target link address, the method further includes:

[0142] The encrypted target link address sent by the server is decrypted according to an encryption algorithm pre-negotiated with the server to obtain the target link address.

[0143] In the embodiment of the present invention, the encryption algorithm is pre-negotiated between the terminal and the server, and will not be sent together with the data interacting with the terminal and the server, thereby ensuring that the encryption algorithm will not be eavesdropped, and further ensuring that the encrypted target link address will not be cracked by other parties, thereby improving the security of the target link address sending process.

[0144] The embodiment of the present invention also provides a device for obtaining an external link address, such as Figure 5 As shown, including

[0145] The external link address acquisition request receiving unit 501 is used to receive an external link address acquisition request sent by a terminal, wherein the external link address acquisition request corresponds to a functional module of a product to be developed of the terminal;

[0146] A target link address determining unit 502 is used to determine a target link address according to the external link address obtaining request;

[0147] The target link address sending unit 503 is used to send the target link address to the terminal, so that the terminal embeds the target link address into the functional module of the product to be developed.

[0148] Correspondingly, an embodiment of the present invention also provides a device for obtaining an external link address, such as Figure 6 As shown, including:

[0149] The external link address acquisition request sending unit 601 is used to send an external link address acquisition request to the server, wherein the external link address acquisition request corresponds to a functional module of the product to be developed of the terminal;

[0150] A target link address receiving unit 602 is used to receive the target link address determined and sent by the server according to the external link address acquisition request;

[0151] The target link address embedding unit 603 is used to embed the target link address into the functional module of the product to be developed.

[0152] Since the principle of solving the problem by the above device is similar to that of the above method, the implementation of the above device can refer to the implementation of the above method, and the repeated parts will not be repeated.

[0153] The embodiment of the present invention also provides a system for obtaining an external link address, including a target terminal and a server. Figure 7 The figure shows a data flow diagram of the external link address acquisition system provided by an embodiment of the present invention. The figure describes the acquisition process of the external link address between the terminal and the server, specifically, including the following steps:

[0154] Step 701: The terminal sends a request to obtain an external link address to the server;

[0155] In this step, the external link address acquisition request corresponds to the functional module of the product to be developed of the terminal, and the external link address acquisition request includes the link subject property, link structure property, and link function.

[0156] Step 702: The server obtains the request based on the external link address and determines the target link address;

[0157] In this step, the server determines a link address corresponding to the link subject property, link structure property, and link function in the stored link address list as the target link address. The link address list includes the correspondence between the link subject property, link structure property, link function and link address.

[0158] In addition, before this step, the server may also obtain a link address in the network, and analyze the link subject properties, link structure properties and link functions of the obtained link address, and record the correspondence between the obtained link address and the link subject properties, link structure properties and link functions obtained by analyzing the link address in a link address list.

[0159] Step 703: The server verifies the target link address;

[0160] In this step, the server can verify the availability, security and / or compliance of the target link address. Specifically, the server sends an access request to the target link address to determine whether it can receive a response from the link address. If so, it determines whether the content of the received response corresponds to the link function of the link address recorded in the link address list. If so, the target link address is available; in addition, the server can also determine the security of the target link address by verifying the signature certificate of the target link address; in addition, the server can also determine the relationship between the operator of the target link address and the operator of the terminal, and determine whether there is a risk in embedding the target link address in the functional module of the terminal's product to be developed based on the relationship. If not, the target link address is compliant.

[0161] Step 704: The service encrypts the target link address according to the encryption algorithm pre-negotiated with the terminal;

[0162] Step 705: The server sends the encrypted target link address to the terminal;

[0163] Step 706: The terminal decrypts the encrypted target link address sent by the server according to the encryption algorithm pre-negotiated with the server to obtain the target link address;

[0164] Step 707: The terminal verifies the target link address;

[0165] In this step, if the verification result is not passed, the terminal sends a link address change request to the server, so that the server again obtains and sends a target link address different from the link address in the link address change request according to the external link address acquisition request. If the verification result is passed, step 708 is executed.

[0166] Specifically, the terminal can determine whether the target link address corresponds to the link subject properties, link structure properties, and link functions in the external link address acquisition request. If so, the verification is successful. In addition, the terminal can also determine whether the target link address is in the link address blacklist stored in the terminal. If not, the verification is successful.

[0167] Step 708: The terminal embeds the target link address into the functional module of the product to be developed.

[0168] It should be noted that Figure 7 Only the process of obtaining the external link address between a terminal and a server is described in Figure 7 From the disclosed content, it is not difficult to imagine the process of obtaining multiple external link addresses between multiple terminals and the server, which will not be repeated here.

[0169] like Figure 8 The structure diagram of the computer device of the embodiment of the present invention is shown. The apparatus in this article can be the computer device in this embodiment, and executes the method of the above article. The computer device 802 may include one or more processing devices 804, such as one or more central processing units (CPUs), and each processing unit may implement one or more hardware threads. The computer device 802 may also include any storage resource 806, which is used to store any kind of information such as code, settings, data, etc. Non-limiting, for example, the storage resource 806 may include any one or more combinations of the following: any type of RAM, any type of ROM, flash memory device, hard disk, optical disk, etc. More generally, any storage resource can use any technology to store information. Further, any storage resource can provide volatile or non-volatile retention of information. Further, any storage resource can represent a fixed or removable component of the computer device 802. In one case, when the processing device 804 executes an associated instruction stored in any storage resource or a combination of storage resources, the computer device 802 can perform any operation of the associated instruction. The computer device 802 also includes one or more drive mechanisms 808 for interacting with any storage resources, such as a hard disk drive mechanism, an optical disk drive mechanism, and the like.

[0170] The computer device 802 may also include an input / output module 810 (I / O) for receiving various inputs (via input devices 812) and for providing various outputs (via output devices 814). A specific output mechanism may include a presentation device 816 and an associated graphical user interface (GUI) 818. In other embodiments, the input / output module 810 (I / O), the input device 812, and the output device 814 may not be included, and the computer device 802 may be used as a computer device in a network. The computer device 802 may also include one or more network interfaces 820 for exchanging data with other devices via one or more communication links 822. One or more communication buses 824 couple the components described above together.

[0171] The communication link 822 may be implemented in any manner, for example, through a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication link 822 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc. governed by any protocol or combination of protocols.

[0172] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the dynamic access method described above is implemented.

[0173] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the dynamic access method is implemented.

[0174] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0175] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0176] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0177] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0178] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for obtaining an external link address, characterized in that: Executed by the server, the method includes: Receiving an external link address acquisition request sent by a terminal, wherein the external link address acquisition request corresponds to a functional module of a product to be developed of the terminal; Determine the target link address according to the external link address acquisition request, the link address stored in the server is the link address registered in the server by the operator of the link address; after determining the target link address, verify the target link address; After the verification is passed, the target link address is sent to the terminal, so that the terminal embeds the target link address into the functional module of the product to be developed; The external link address acquisition request includes the link subject property, link structure property, and link function; According to the external link address acquisition request, determining the target link address further includes: Determine a link address corresponding to the link subject property, link structure property, and link function in a link address list stored in the server as the target link address, wherein the link address list includes a correspondence between the link subject property, link structure property, link function, and link address; Before determining the target link address according to the external link address acquisition request, the method further includes: Get the link address in the network; Analyzing the link subject property, link structure property and link function of the obtained link address, and recording the corresponding relationship between the obtained link address and the link subject property, link structure property and link function obtained by analyzing the link address in the link address list; Verifying the target link address further includes: The availability, security and / or compliance of the target link address is verified.

2. The method for obtaining an external link address according to claim 1, characterized in that: Verifying the availability, security and / or compliance of the target link address further includes: Sending an access request to the target link address, determining whether a response from the link address can be received, and if so, determining whether the content of the received response corresponds to the link function of the link address recorded in the link address list, and if so, the target link address is available; and / or, Determining the security of the target link address by verifying the signature certificate of the target link address; and / or, The relationship between the operator of the target link address and the operator of the terminal is determined, and whether there is a risk in embedding the target link address in the functional module of the product to be developed of the terminal according to the relationship. If not, the target link address is compliant.

3. The method for obtaining an external link address according to claim 1, characterized in that: If the verification result of the target link address is failure, the target link address that fails the verification is deleted from the link address list.

4. The method for obtaining an external link address according to claim 1, characterized in that: Sending the target link address to the terminal further comprises: The target link address is encrypted according to an encryption algorithm pre-negotiated with the terminal, and the encrypted target link address is sent to the terminal, so that the terminal decrypts the encrypted target link address according to the encryption algorithm to obtain the target link address.

5. The method for obtaining an external link address according to claim 1, characterized in that: After sending the target link address to the terminal, the method further includes: receiving a link address replacement request sent by the terminal when a verification result of the target link address by the terminal is not passed, wherein the link address replacement request includes the link address that the terminal has not passed the verification; According to the external link address acquisition request, a target link address different from the link address in the link address change request is obtained again, and the obtained target link address is sent to the terminal until the terminal verifies that the obtained target link address is passed.

6. A method for obtaining an external link address, characterized in that: Executed by a terminal, the method includes: Sending an external link address acquisition request to the server, wherein the external link address acquisition request corresponds to the functional module of the product to be developed of the terminal, and the external link address acquisition request includes the link subject property, the link structure property, and the link function; Receiving a target link address determined and sent by the server according to the external link address acquisition request, the link address stored in the server is a link address registered in the server by an operator of the link address; after the server determines the target link address, the server verifies the target link address; after the verification passes, the target link address is sent to the terminal, the server determines the target link address according to the external link address acquisition request, further comprising determining a link address corresponding to the link subject property, link structure property, and link function in a link address list stored in the server as the target link address, the link address list The server obtains the link address in the network before determining the target link address according to the external link address acquisition request; analyzes the link address of the acquired link subject, link structure and link function, and records the acquired link address and the link subject, link structure and link function obtained by analyzing the link address in the link address list; the server verifies the target link address further including verifying the availability, security and / or compliance of the target link address; The target link address is embedded into the functional module of the product to be developed.

7. The method for obtaining an external link address according to claim 6, characterized in that: After receiving the target link address determined and sent by the server according to the external link address acquisition request, the method further includes: Verifying the target link address; If the verification result is not passed, a link address change request is sent to the server, so that the server again obtains and sends a target link address different from the link address in the link address change request according to the external link address acquisition request.

8. The method for obtaining an external link address according to claim 7, characterized in that: The step of verifying the target link address includes: Determine whether the target link address corresponds to the link subject property, link structure property, and link function in the external link address acquisition request, and if so, the verification is passed; and / or; It is determined whether the target link address is in the link address blacklist of the terminal. If not, the verification is successful.

9. The method for obtaining an external link address according to claim 7, characterized in that: Before verifying the target link address, the method further includes: The encrypted target link address sent by the server is decrypted according to an encryption algorithm pre-negotiated with the server to obtain the target link address.

10. A device for acquiring an external link address, characterized in that: include: An external link address acquisition request receiving unit, configured to receive an external link address acquisition request sent by a terminal, wherein the external link address acquisition request corresponds to a functional module of a product to be developed of the terminal; a target link address determination unit, configured to determine the target link address according to the external link address acquisition request, wherein the link address stored in the server is the link address registered in the server by the operator of the link address; after determining the target link address, verifying the target link address; A target link address sending unit, used to send the target link address to the terminal after verification, so that the terminal embeds the target link address into the functional module of the product to be developed; The external link address acquisition request includes the link subject property, link structure property, and link function; According to the external link address acquisition request, determining the target link address further includes: Determine a link address corresponding to the link subject property, link structure property, and link function in a link address list stored in the server as the target link address, wherein the link address list includes a correspondence between the link subject property, link structure property, link function, and link address; According to the external link address acquisition request, before determining the target link address, the external link address acquisition device is further used to: acquire a link address in the network; analyze the link subject property, link structure property and link function of the acquired link address, and record the corresponding relationship between the acquired link address and the link subject property, link structure property and link function obtained by analyzing the link address in the link address list; Verifying the target link address further includes: The availability, security and / or compliance of the target link address is verified.

11. A device for acquiring an external link address, characterized in that: include: An external link address acquisition request sending unit is used to send an external link address acquisition request to the server, wherein the external link address acquisition request corresponds to the functional module of the product to be developed of the terminal, and the external link address acquisition request includes the link subject property, the link structure property, and the link function; a target link address receiving unit, for receiving the target link address determined and sent by the server according to the external link address acquisition request, wherein the link address stored in the server is the link address registered in the server by the operator of the link address; after the server determines the target link address, it verifies the target link address; after the verification passes, the target link address is sent to the terminal, wherein the server determines the target link address according to the external link address acquisition request, further comprising: determining a link address corresponding to the link subject property, link structure property, and link function in a link address list stored in the server as the target link address, wherein the link address list includes a correspondence between the link subject property, link structure property, link function, and link address; before determining the target link address according to the external link address acquisition request, the server further obtains a link address in the network; analyzes the link subject property, link structure property, and link function of the obtained link address, and records the correspondence between the obtained link address and the link subject property, link structure property, and link function obtained by analyzing the link address in the link address list; The server verifying the target link address further includes verifying the availability, security and / or compliance of the target link address; The target link address embedding unit is used to embed the target link address into the functional module of the product to be developed.

12. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 9 is implemented.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.

14. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Acquisition method and device of software packet

    CN108366127A

  • Function menu access method and device for hybrid application

    CN113971257A