A URL determination method and apparatus, electronic device, and storage medium

By determining the application's physical location and file name, and combining this with port and process information, the problem of incomplete URL determination in existing technologies is solved, achieving accurate and secure URL acquisition.

CN116842287BActive Publication Date: 2026-05-01CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA UNITED NETWORK COMM GRP CO LTD
Filing Date
2023-07-17
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Current technology cannot accurately and completely determine all URLs of a web application.

Method used

By determining the physical location of the application, obtaining the filename of the accessed file, determining the URL based on the location name and filename, determining the container type by combining the port identifier and process name, performing hash calculations and encryption processing, and sending encrypted data to the server.

Benefits of technology

It achieves accurate and comprehensive URL determination, improves the integrity of URL determination, and protects the security of URLs and accessed files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116842287B_ABST
    Figure CN116842287B_ABST
Patent Text Reader

Abstract

The application provides a URL determination method and device, electronic equipment and a storage medium, relates to the technical field of networks, and solves the technical problem that all URLs corresponding to a web application cannot be accurately and completely determined in the related art. The method comprises the following steps: determining a physical position corresponding to each application in at least one application; obtaining a file name of an accessed file corresponding to each application based on the physical position corresponding to each application; and determining a URL corresponding to each application based on a position name of the physical position corresponding to each application and the file name of the accessed file corresponding to each application.
Need to check novelty before this filing date? Find Prior Art

Description

A URL determination method, apparatus, electronic device, and storage medium Technical Field

[0001] This application relates to the field of network technology, and in particular to a URL determination method, apparatus, electronic device, and storage medium. Background Technology

[0002] Currently, the URL corresponding to a web application can be determined by traversing the URL dictionary of the web application.

[0003] However, the above method can only identify URLs that exist in the URL dictionary, and cannot accurately and completely identify all URLs corresponding to the web application. Summary of the Invention

[0004] This application provides a URL determination method, apparatus, electronic device, and storage medium, which solves the technical problem in related technologies that cannot accurately and completely determine all URLs corresponding to a web application.

[0005] In a first aspect, this application provides a URL determination method, comprising: determining the physical location corresponding to each application in at least one application; obtaining the file name of the access file corresponding to each application based on the physical location corresponding to each application; and determining the URL corresponding to each application based on the location name of the physical location corresponding to each application and the file name of the access file corresponding to each application.

[0006] Optionally, the port identifier of the port to be identified is obtained; the container type of the target container is determined based on the port identifier of the port to be identified; the target configuration information is parsed to obtain the physical location corresponding to each application, and the target configuration information is the configuration information of the target container.

[0007] In this application, the electronic device can obtain the port identifier of the port to be identified and determine the container type of the target container based on the port identifier. Since the type of the target configuration information is the same as the type of the target container, the electronic device can determine the target configuration information and parse it, thereby accurately and effectively obtaining the physical location of each application and thus accurately and effectively obtaining the file name of the access file corresponding to each application.

[0008] Optionally, based on the port identifier of the port to be identified, the process name of the target process is determined, and the target process is the process corresponding to the port to be identified; based on the process name of the target process, the container type of the target container is determined.

[0009] In this application, the electronic device can determine the process name of the target process based on the port identifier of the port to be identified, and determine the container type of the target container based on the process name of the target process. This allows for convenient and quick determination of the container type of the target container, and consequently, accurate determination of the type of target configuration information.

[0010] Optionally, the physical location of the access file corresponding to each application is determined based on the location name of the physical location corresponding to each application and the file name of the access file corresponding to each application; the URL corresponding to each application is determined based on the physical location of the access file corresponding to each application and the preset domain name.

[0011] In this application, the electronic device can accurately and effectively determine the physical location of the access file corresponding to each application based on the location name of the physical location corresponding to each application and the file name of the access file corresponding to each application. Therefore, the electronic device can accurately and comprehensively determine the URL corresponding to each application based on the physical location of the access file corresponding to each application and the preset domain name.

[0012] Optionally, the URL determination method further includes: performing a hash operation on the access file corresponding to each application to obtain the hash value of the access file corresponding to each application; encrypting the URL corresponding to each application and the hash value of the access file corresponding to each application to obtain target encrypted data; and sending the target encrypted data to the server.

[0013] In this application, the electronic device performs a hash operation on the access file corresponding to each application to obtain the hash value of the access file corresponding to each application. The electronic device encrypts the URL corresponding to each application and the hash value of the access file corresponding to each application to obtain target encrypted data. Then, the electronic device sends the target encrypted data to the server, which can prevent the leakage of the URL corresponding to each application and the access file corresponding to each application, and enable the server to manage the target encrypted data.

[0014] Secondly, this application provides a URL determination device, comprising: a determination module and an acquisition module; the determination module is configured to determine the physical location corresponding to each application in at least one application; the acquisition module is configured to acquire the file name of the access file corresponding to each application based on the physical location corresponding to each application; the determination module is further configured to determine the URL corresponding to each application based on the location name of the physical location corresponding to each application and the file name of the access file corresponding to each application.

[0015] Optionally, the URL determination device further includes a processing module; the acquisition module is further configured to acquire the port identifier of the port to be identified; the determination module is specifically configured to determine the container type of the target container based on the port identifier of the port to be identified; the processing module is configured to parse the target configuration information to obtain the physical location corresponding to each application, wherein the target configuration information is the configuration information of the target container.

[0016] Optionally, the determining module is specifically used to determine the process name of the target process based on the port identifier of the port to be identified, wherein the target process is the process corresponding to the port to be identified; the determining module is also specifically used to determine the container type of the target container based on the process name of the target process.

[0017] Optionally, the determining module is specifically used to determine the physical location of the access file corresponding to each application based on the location name of the physical location corresponding to each application and the file name of the access file corresponding to each application; the determining module is also specifically used to determine the URL corresponding to each application based on the physical location of the access file corresponding to each application and a preset domain name.

[0018] Optionally, the URL determination device includes a sending module; the processing module is further configured to perform a hash operation on the access file corresponding to each application to obtain the hash value of the access file corresponding to each application; the processing module is further configured to encrypt the URL corresponding to each application and the hash value of the access file corresponding to each application to obtain target encrypted data; the sending module is configured to send the target encrypted data to the server.

[0019] Thirdly, this application provides an electronic device, including: a processor and a memory configured to store processor-executable instructions; wherein the processor is configured to execute the instructions to implement any of the optional URL determination methods in the first aspect described above.

[0020] Fourthly, this application provides a computer-readable storage medium storing instructions that, when executed by an electronic device, enable the electronic device to perform any of the optional URL determination methods described in the first aspect above.

[0021] The URL determination method, apparatus, electronic device, and storage medium provided in this application involve an electronic device determining the physical location corresponding to each application in at least one application; then, the electronic device obtains the filename of the access file corresponding to each application based on the physical location of each application; and finally, the electronic device determines the URL corresponding to each application based on the location name of the physical location of each application and the filename of the access file corresponding to each application. In this application, the electronic device can determine the physical location corresponding to each application in at least one application and obtain the filename of the access file corresponding to each application based on the physical location of each application; subsequently, the electronic device can accurately and effectively determine the URL corresponding to each application based on the location name of the physical location of each application and the filename of the access file corresponding to each application, thereby improving the completeness of URL determination. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below.

[0023] Figure 1 is a flowchart illustrating a URL determination method provided in an embodiment of this application;

[0024] Figure 2 is a flowchart illustrating another URL determination method provided in an embodiment of this application;

[0025] Figure 3 is a flowchart illustrating another URL determination method provided in an embodiment of this application;

[0026] Figure 4 is a flowchart illustrating another URL determination method provided in an embodiment of this application;

[0027] Figure 5 is a flowchart illustrating another URL determination method provided in an embodiment of this application;

[0028] Figure 6 is a schematic diagram of the internal structure of an electronic device provided in an embodiment of this application;

[0029] Figure 7 is a flowchart illustrating another URL determination method provided in an embodiment of this application;

[0030] Figure 8 is a schematic diagram of a URL determination device provided in an embodiment of this application;

[0031] Figure 9 is a schematic diagram of another URL determination device provided in an embodiment of this application. Detailed Implementation

[0032] The URL determination method, apparatus, electronic device, and storage medium provided in the embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0033] The terms "first" and "second," etc., used in the specification and drawings of this application are used to distinguish different objects, rather than to describe a specific order of objects.

[0034] Furthermore, the terms “comprising” and “having”, and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such processes, methods, products, or apparatus.

[0035] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0036] The term "and / or" as used in this application includes using either one of two methods or using both methods simultaneously.

[0037] In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0038] As described in the background art, related technologies can only determine URLs existing in the URL dictionary, and cannot accurately and comprehensively determine all URLs corresponding to a web application. Therefore, embodiments of this application provide a URL determination method, apparatus, electronic device, and storage medium. The electronic device can determine the physical location corresponding to each application in at least one application. The physical location corresponding to each application is used to indicate the physical location of the access file corresponding to each application. Based on the physical location corresponding to each application, the electronic device can obtain the access file, and further, the electronic device can obtain the file name of the access file. Based on the location name of the physical location corresponding to each application and the file name of the access file corresponding to each application, the electronic device accurately and comprehensively determines all URLs corresponding to each application.

[0039] For example, the electronic device executing the URL determination method provided in this application embodiment can be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) / virtual reality (VR) device. This application embodiment does not impose special limitations on the specific form of the electronic device. It can interact with the user through one or more methods such as keyboard, touchpad, touch screen, remote control, voice interaction, or handwriting devices.

[0040] Optionally, the aforementioned server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network (CDN) acceleration services, as well as big data and artificial intelligence platforms.

[0041] As shown in Figure 1, the URL determination method provided in this application embodiment may include S101-S103.

[0042] S101, The electronic device determines the physical location corresponding to each application in at least one application.

[0043] It should be understood that the at least one application is an application (or application program) installed (or included) in the electronic device.

[0044] Alternatively, the application can be a computer network technology application (web application).

[0045] Referring to Figure 1 and as shown in Figure 2, in one implementation of this application embodiment, the above-mentioned electronic device determines the physical location corresponding to each application in at least one application, specifically including: S1011-S1013.

[0046] S1011. The electronic device obtains the port identifier of the port to be identified.

[0047] It should be understood that each of the above applications (specifically, each application on an electronic device) exchanges data with an external device (e.g., a network device) through the port to be identified.

[0048] S1012. The electronic device determines the container type of the target container based on the port identifier of the port to be identified.

[0049] It should be understood that each of the above applications runs in the target container, and when each application exchanges data with an external device (exemplarily a network device) through the port to be identified, the electronic device can determine the container type of the target container based on the port identifier of the port to be identified.

[0050] For example, a container type can be an Nginx container, a Tomcat container, or an IIS container.

[0051] In one optional implementation, the electronic device may store a first correspondence, which includes multiple port identifiers and the container type corresponding to each of the multiple port identifiers. After obtaining the port identifier of the port to be identified, the electronic device can determine the container type of the target container based on the port identifier of the port to be identified and the first correspondence.

[0052] S1013. The electronic device parses and processes the target configuration information to obtain the physical location corresponding to each application.

[0053] The target configuration information refers to the configuration information of the target container mentioned above.

[0054] It is worth noting that the type of the target configuration information is the same as the container type of the target container.

[0055] In one alternative implementation, the electronic device parses the target configuration information and can also obtain the application name of each of the at least one of the above applications.

[0056] It should be understood that each application can only run in the target container if the physical location corresponding to each application is stored in the target configuration information. Therefore, the electronic device can obtain the physical location corresponding to each application based on the target configuration information.

[0057] It is understandable that, given different container types of the target container, the physical location of each application will be stored in different locations within the target configuration information. Therefore, the electronic device needs to obtain the storage location based on the container type of the target container in order to determine the physical location of each application.

[0058] In this embodiment, the electronic device can obtain the port identifier of the port to be identified and determine the container type of the target container based on the port identifier. Since the type of the target configuration information is the same as the type of the target container, the electronic device can determine the target configuration information and parse the target configuration information to accurately and effectively obtain the physical location corresponding to each application, and thus accurately and effectively obtain the file name of the access file corresponding to each application.

[0059] Referring to Figure 2 and as shown in Figure 3, the above-mentioned electronic device determines the container type of the target container based on the port identifier of the port to be identified, specifically including: S1012a-S1012b.

[0060] S1012a The electronic device determines the process name of the target process based on the port identifier of the port to be identified.

[0061] The target process is the process corresponding to the port to be identified.

[0062] In one alternative implementation, the electronic device may store a second mapping relationship, which includes multiple port identifiers and the process name corresponding to each of the multiple port identifiers. The electronic device can determine the process name of the target process from the second mapping relationship based on the port identifier of the port to be identified.

[0063] Optionally, the electronic device can invoke a process name query command to obtain the process name of the target process.

[0064] For example, if the application is running on a Linux operating system, the process name lookup command can be the netstat command.

[0065] S1012b: The electronic device determines the container type of the target container based on the process name of the target process.

[0066] It should be understood that the target process is the process running within the target container.

[0067] Optionally, the electronic device may also store a third mapping relationship, which includes multiple process names and the container types corresponding to each of the multiple process names. The electronic device can determine the container type of the target container from the third mapping relationship based on the process name of the target process.

[0068] In this embodiment, the electronic device can determine the process name of the target process based on the port identifier of the port to be identified, and determine the container type of the target container based on the process name of the target process. This allows for convenient and quick determination of the container type of the target container, and consequently, accurate determination of the type of the target configuration information.

[0069] S102. The electronic device obtains the file name of the access file corresponding to each application based on the physical location corresponding to each application.

[0070] It should be understood that the physical location corresponding to each application stores the access file corresponding to each application. The electronic device can obtain the access file corresponding to each application and the file name of the access file corresponding to each application based on the physical location corresponding to each application.

[0071] S103. The electronic device determines the URL corresponding to each application based on the location name of the physical location corresponding to each application and the file name of the access file corresponding to each application.

[0072] The technical solution provided by the above embodiments can bring at least the following beneficial effects: As can be seen from S101-S103, the electronic device can determine the physical location corresponding to each application in at least one application, and obtain the file name of the access file corresponding to each application based on the physical location corresponding to each application; then the electronic device can accurately and effectively determine the URL corresponding to each application based on the location name of the physical location corresponding to each application and the file name of the access file corresponding to each application, which can improve the completeness of URL determination.

[0073] Referring to Figure 1 and as shown in Figure 4, the electronic device determines the URL corresponding to each application based on the location name of the physical location corresponding to each application and the file name of the access file corresponding to each application, specifically including: S1031-S1032.

[0074] S1031. The electronic device determines the physical location of the access file corresponding to each application based on the location name of the physical location corresponding to each application and the file name of the access file corresponding to each application.

[0075] In one alternative implementation, the physical location (and / or the location name of the physical location corresponding to each application) can be presented as a string.

[0076] S1032. The electronic device determines the URL corresponding to each application based on the physical location of the access file corresponding to each application and the preset domain name.

[0077] Optionally, the preset domain name is the domain name corresponding to each application.

[0078] In one implementation of this application, for an application, the electronic device can arrange and combine the physical location of the access file corresponding to the application with the preset domain name in a certain order to obtain the URL corresponding to the application.

[0079] Optionally, an application can have one or more access files. When an application has multiple access files, the combination of the physical location of one access file and the preset domain name yields a URL for that application.

[0080] In this embodiment, the electronic device can accurately and effectively determine the physical location of the access file corresponding to each application based on the location name of the physical location corresponding to each application and the file name of the access file corresponding to each application. Thus, the electronic device can accurately and comprehensively determine the URL corresponding to each application based on the physical location of the access file corresponding to each application and the preset domain name.

[0081] Referring to Figure 1 and as shown in Figure 5, the URL determination method provided in this application embodiment further includes: S104-S106.

[0082] S104. The electronic device performs a hash operation on the access file corresponding to each application to obtain the hash value of the access file corresponding to each application.

[0083] S105. The electronic device encrypts the URL corresponding to each application and the hash value of the access file corresponding to each application to obtain the target encrypted data.

[0084] It should be understood that by encrypting the URL of each application and the hash value of the access file corresponding to each application, electronic devices can prevent the leakage of the URL of each application and the access file corresponding to each application.

[0085] S106. The electronic device sends the target encrypted data to the server.

[0086] It should be understood that after receiving the target encrypted data, the server can perform corresponding management operations on the target encrypted data, which may include decryption, sending, and deletion.

[0087] Optionally, the hash value of the access file corresponding to each application is unique. If the hash value of the access file corresponding to each application changes, the server can determine that the access file corresponding to each application has changed. Therefore, the server can perform special processing on the changed access file, which may include security scanning, logical verification, and penetration testing.

[0088] Optionally, if there are multiple access files corresponding to each application and each application is updated, the electronic device performs a hash operation on each access file corresponding to each updated application to obtain a hash value for each access file. If the hash value of an access file corresponding to each updated application differs from the hash value of the access file corresponding to each application, the electronic device determines that the access file has been changed, and then the electronic device can send a prompt message to the server. This prompt message is used to indicate to the server that the access file requires special processing.

[0089] In this embodiment, the electronic device performs a hash operation on the access file corresponding to each application to obtain the hash value of the access file corresponding to each application. The electronic device encrypts the URL corresponding to each application and the hash value of the access file corresponding to each application to obtain target encrypted data. Then, the electronic device sends the target encrypted data to the server, which can prevent the leakage of the URL corresponding to each application and the access file corresponding to each application, and enable the server to manage the target encrypted data.

[0090] As shown in Figure 6, in one optional implementation, the electronic device in this application embodiment may include a main control module, a timing module, an execution module, a storage module, a calculation module, an analysis module, an interaction module, and a log module.

[0091] The main control module is used to call, execute, store, interact with, and log the modules and to receive instructions from the aforementioned servers.

[0092] The timing module is used to send execution instructions (specifically, the execution commands for the corresponding operations in the execution module) at regular intervals.

[0093] The execution module is used to perform the operations mentioned above, such as determining the URL corresponding to each application.

[0094] The storage module is used to store the server's instructions, the URLs corresponding to each of the above applications, and the hash values ​​of the access files corresponding to each application.

[0095] The calculation module is used to perform hash operations on the access files corresponding to each of the above applications.

[0096] The analysis module is used to parse and process the target configuration information mentioned above.

[0097] The interaction module is used to send the aforementioned target encrypted data to the server.

[0098] The log module is used to record logs for various aspects of the electronic device, and these logs are used to maintain the electronic device.

[0099] The following is a complete example illustrating the URL determination method provided in the embodiments of this application.

[0100] For example, as shown in Figure 7, the process involves determining whether the target container is a web container or a virtualization container; if the target container is a virtualization container, entering the virtualization container (which can be understood as including a web container inside, allowing the electronic device to perform operations on the web container); if the target container is a web container, determining its container type (specifically, container types include Nginx containers, Tomcat containers, and IIS containers); obtaining the target configuration information for the corresponding container type (specifically, the target configuration information can include Nginx configuration information, Tomcat configuration information, and IIS configuration information); parsing and processing the target configuration information; determining the URL; calculating the hash value of the accessed file; and sending the URL and hash value to the server.

[0101] For example, the following are examples of the steps of a URL determination method provided in this application embodiment, specifically including steps A, B, C, D, E, F, G, H, I, J and K.

[0102] Step A: Determine that the deployment environment for the web application is a CentOS 1.1 operating system and an Nginx 1.1 web server.

[0103] Step B: Call the netstat command to obtain the container (or process) and its port identifier. Specifically, obtain the nginx container's ports 8111, 8080, 80, 8114, and 443, and the Java process's ports 8115, 8989, 8222, 8001, 8899, and 8200.

[0104] Step C: Obtain the process ID corresponding to each of the above ports, and determine the physical location of nginx and Java based on the process ID.

[0105] Step D: Parse the nginx configuration file (optionally, the configuration file can be a config file) to obtain the physical location of the web application corresponding to the nginx container.

[0106] Step E: Based on the physical location of the web application corresponding to the nginx container and the first preset domain name (specifically, the preset domain name of the web application in the nginx container), determine the URL corresponding to the web application in the nginx container (specifically, the URL of the access file corresponding to the web application in the nginx container).

[0107] Step F: Calculate the hash value of the access file corresponding to the web application in the nginx container.

[0108] Step G: Parse the Java configuration file (optionally, the configuration file can be a JAR file corresponding to the Java process) to obtain the physical location of the web application in the Java process.

[0109] Step H: Based on the physical location of the web application in the Java process and the second preset domain name (specifically, the preset domain name of the web application in the Java process), determine the URL corresponding to the web application in the Java process (specifically, the URL of the access file corresponding to the web application in the Java process).

[0110] Step 1: Calculate the hash value of the access file (optionally, the access file can be a Java file after unzipping the JAR package) corresponding to the web application in the Java process.

[0111] Step J: Send all URLs and all hash values ​​to the server.

[0112] Step K: Generate a log file based on the above steps and upload the log file to the server.

[0113] This application embodiment can divide electronic devices and servers into functional modules based on the above method examples. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0114] With each functional module divided according to its corresponding function, Figure 8 shows a possible structural schematic diagram of the URL determination device involved in the above embodiments. As shown in Figure 8, the URL determination device 10 may include: a determination module 101 and an acquisition module 102.

[0115] The determination module 101 is used to determine the physical location corresponding to each application in at least one application.

[0116] The acquisition module 102 is used to obtain the file name of the access file corresponding to each application based on the physical location of each application.

[0117] The determination module 101 is also used to determine the URL corresponding to each application based on the location name of the physical location corresponding to each application and the file name of the access file corresponding to each application.

[0118] Optionally, the URL determination device 10 further includes a processing module 103.

[0119] The acquisition module 102 is also used to acquire the port identifier of the port to be identified.

[0120] The determination module 101 is specifically used to determine the container type of the target container based on the port identifier of the port to be identified.

[0121] The processing module 103 is used to parse and process the target configuration information to obtain the physical location corresponding to each application. The target configuration information is the configuration information of the target container.

[0122] Optionally, the determining module 101 is specifically used to determine the process name of the target process based on the port identifier of the port to be identified, wherein the target process is the process corresponding to the port to be identified.

[0123] The determination module 101 is further used to determine the container type of the target container based on the process name of the target process.

[0124] Optionally, the determining module 101 is specifically used to determine the physical location of the access file corresponding to each application based on the location name of the physical location corresponding to each application and the file name of the access file corresponding to each application.

[0125] The determination module 101 is further used to determine the URL corresponding to each application based on the physical location of the access file corresponding to each application and the preset domain name.

[0126] Optionally, the URL determination device 10 mentioned above includes a sending module 104.

[0127] The processing module 103 is also used to perform a hash operation on the access file corresponding to each application to obtain the hash value of the access file corresponding to each application.

[0128] The processing module 103 is also used to encrypt the URL corresponding to each application and the hash value of the access file corresponding to each application to obtain the target encrypted data.

[0129] The sending module 104 is used to send the target encrypted data to the server.

[0130] In the case of using an integrated unit, FIG9 shows a possible structural schematic diagram of the URL determination device involved in the above embodiments. As shown in FIG9, the URL determination device 20 may include a processing module 201 and a communication module 202. The processing module 201 can be used to control and manage the operation of the URL determination device 20. The communication module 202 can be used to support communication between the URL determination device 20 and other entities. Optionally, as shown in FIG9, the URL determination device 20 may further include a storage module 203 for storing the program code and data of the URL determination device 20.

[0131] The processing module 201 can be a processor or a controller. The communication module 202 can be a transceiver, transceiver circuit, or communication interface, etc. The storage module 203 can be a memory.

[0132] In this configuration, when the processing module 201 is a processor, the communication module 202 is a transceiver, and the storage module 203 is a memory, the processor, transceiver, and memory can be connected via a bus. The bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc.

[0133] It should be understood that in the various embodiments of this application, the order of the above-mentioned processes does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0134] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0135] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0136] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0137] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software programs, implementation can be, in whole or in part, in the form of a computer program product. This computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device containing one or more servers, data centers, etc., that can be integrated with the medium. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).

[0138] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for determining a URL, characterized in that, The method includes: obtaining the port identifier of the port to be identified; determining the container type of the target container based on the port identifier of the port to be identified; parsing the target configuration information to obtain the physical location corresponding to each application in at least one application, wherein the target configuration information is the configuration information of the target container; obtaining the file name of the access file corresponding to each application based on the physical location corresponding to each application; determining the physical location of the access file corresponding to each application based on the location name of the physical location corresponding to each application and the file name of the access file corresponding to each application; and determining the URL corresponding to each application based on the physical location of the access file corresponding to each application and a preset domain name.

2. The URL determination method according to claim 1, characterized in that, The step of determining the container type of the target container based on the port identifier of the port to be identified includes: determining the process name of the target process based on the port identifier of the port to be identified, wherein the target process is the process corresponding to the port to be identified; and determining the container type of the target container based on the process name of the target process.

3. The URL determination method according to claim 1 or 2, characterized in that, The method further includes: performing a hash operation on the access file corresponding to each application to obtain the hash value of the access file corresponding to each application; encrypting the URL corresponding to each application and the hash value of the access file corresponding to each application to obtain target encrypted data; and sending the target encrypted data to the server.

4. A URL determination device, characterized in that, include: The module is defined as a determination module, a processing module, and an acquisition module. The acquisition module is used to acquire the port identifier of the port to be identified; The determining module is used to determine the container type of the target container based on the port identifier of the port to be identified; The processing module is used to parse the target configuration information to obtain the physical location of each application in at least one application, wherein the target configuration information is the configuration information of the target container; The acquisition module is used to acquire the file name of the access file corresponding to each application based on the physical location corresponding to each application. The determining module is further configured to determine the physical location of the access file corresponding to each application based on the location name of the physical location corresponding to each application and the file name of the access file corresponding to each application. The determining module is further configured to determine the URL corresponding to each application based on the physical location of the access file corresponding to each application and the preset domain name.

5. The URL determination device according to claim 4, characterized in that, The determining module is specifically used to determine the process name of the target process based on the port identifier of the port to be identified, wherein the target process is the process corresponding to the port to be identified; the determining module is also specifically used to determine the container type of the target container based on the process name of the target process.

6. The URL determination device according to claim 4 or 5, characterized in that, The URL determination device includes a sending module; the processing module is further configured to perform a hash operation on the access file corresponding to each application to obtain the hash value of the access file corresponding to each application; the processing module is further configured to encrypt the URL corresponding to each application and the hash value of the access file corresponding to each application to obtain target encrypted data; the sending module is configured to send the target encrypted data to the server.

7. An electronic device, characterized in that, The electronic device includes: a processor; a memory configured to store processor-executable instructions; wherein the processor is configured to execute the instructions to implement the URL determination method as described in any one of claims 1-3.

8. A computer-readable storage medium storing instructions thereon, characterized in that, When the instructions in the computer-readable storage medium are executed by an electronic device, the electronic device is able to perform the URL determination method as described in any one of claims 1-3.