CN116920414A - Access method, apparatus, device, readable storage medium and program product - Google Patents
Access method, apparatus, device, readable storage medium and program product Download PDFInfo
- Publication number
- CN116920414A CN116920414A CN202210335735.4A CN202210335735A CN116920414A CN 116920414 A CN116920414 A CN 116920414A CN 202210335735 A CN202210335735 A CN 202210335735A CN 116920414 A CN116920414 A CN 116920414A
- Authority
- CN
- China
- Prior art keywords
- link
- browser
- target link
- target
- interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 254
- 238000003860 storage Methods 0.000 title claims abstract description 31
- 230000001960 triggered effect Effects 0.000 claims abstract description 15
- 230000008569 process Effects 0.000 claims description 171
- 230000006854 communication Effects 0.000 claims description 15
- 238000004891 communication Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 12
- 230000009191 jumping Effects 0.000 claims description 9
- 230000004044 response Effects 0.000 claims description 9
- 238000005516 engineering process Methods 0.000 abstract description 28
- 238000013473 artificial intelligence Methods 0.000 abstract description 4
- 230000006870 function Effects 0.000 description 52
- 238000010586 diagram Methods 0.000 description 10
- 230000003993 interaction Effects 0.000 description 8
- 230000005540 biological transmission Effects 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- FFBHFFJDDLITSX-UHFFFAOYSA-N benzyl N-[2-hydroxy-4-(3-oxomorpholin-4-yl)phenyl]carbamate Chemical compound OC1=C(NC(=O)OCC2=CC=CC=C2)C=CC(=C1)N1CCOCC1=O FFBHFFJDDLITSX-UHFFFAOYSA-N 0.000 description 3
- 230000002457 bidirectional effect Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000018109 developmental process Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/70—Game security or game management aspects
- A63F13/71—Game security or game management aspects using secure communication between game devices and game servers, e.g. by encrypting game data or authenticating players
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Computer Security & Cryptography (AREA)
- General Business, Economics & Management (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the application provides an access method, an access device, access equipment, a readable storage medium and a program product, which can be applied to fields or scenes such as cloud technology, artificial intelligence, vehicle-mounted, cloud games and the like, and the access method comprises the following steps: acquiring a target link to be accessed, and calling a browser interface, wherein the browser interface is used for opening a browser on a server, and the target link is an external link triggered on a client; when the browser interface is detected to be called, acquiring a link parameter of a target link; and generating indication information comprising the link parameters, and sending the indication information to the client, wherein the indication information is used for indicating the client to access the target link based on the link parameters. According to the embodiment of the application, the security of the server can be improved on the basis of ensuring that the client can access the target link.
Description
Technical Field
The present application relates to the field of computer technology, and in particular to an access method, an access device, a computer apparatus, a computer readable storage medium and a computer program product.
Background
Cloud gaming, which may also be referred to as game on demand, is an online gaming technology based on cloud computing technology. Cloud gaming technology enables high quality games to be run on clients with relatively limited graphics processing and data computing capabilities. In a cloud game scenario, the game is not run on a client, but rather in a cloud server.
At present, when the cloud game process opens an external link, the external link is opened through a system browser on the cloud server, then a content picture is rendered by the system browser, and the rendered content picture and game picture are sent to the client. Because the security of the external link cannot be determined, the method not only can cause potential safety hazards to the cloud server, but also can cause potential safety hazards to the whole system behind the cloud server, such as an attacker accessing the intranet of the server through a system browser on the cloud server, and for example, using a system browser vulnerability on the cloud server to execute an attack operation to control the cloud server.
Disclosure of Invention
The application provides an access method, an access device, access equipment, a readable storage medium and a program product, which can improve the security of a server on the basis of ensuring that a client can access a target link.
In a first aspect, the present application provides an access method, the method comprising:
acquiring a target link to be accessed, and calling a browser interface, wherein the browser interface is used for opening a browser on a server, and the target link is an external link triggered on a client;
when the browser interface is detected to be called, acquiring the link parameters of the target link;
and generating indication information comprising the link parameters, and sending the indication information to the client, wherein the indication information is used for indicating the client to access the target link based on the link parameters.
The application provides another access method, which comprises the following steps:
receiving indication information sent by a server; the indication information comprises link parameters of a target link, wherein the link parameters are obtained when the server obtains the target link to be accessed, a browser interface is called, and the browser interface is obtained when the browser interface is detected to be called, and is used for opening a browser on the server, and the target link is an external link triggered on a client;
and responding to the indication information, and accessing the target link according to the link parameter.
In a second aspect, the present application provides an access device, which is applied to an embodiment, and includes:
the receiving module is used for acquiring a target link to be accessed and calling a browser interface, wherein the browser interface is used for opening a browser on a server, and the target link is a triggered external link on a client;
the processing module is used for acquiring the link parameters of the target link when detecting that the browser interface is called;
the processing module is further configured to generate indication information including the link parameter, and send the indication information to the client, where the indication information is used to instruct the client to access the target link based on the link parameter.
In another embodiment, the apparatus comprises:
the receiving module is used for receiving the indication information sent by the server; the indication information comprises link parameters of a target link, wherein the link parameters are obtained when the server obtains the target link to be accessed, a browser interface is called, and the browser interface is obtained when the browser interface is detected to be called, and is used for opening a browser on the server, and the target link is an external link triggered on a client;
And the processing module is used for responding to the indication information and accessing the target link according to the link parameter.
In a third aspect, the present application provides a computer device comprising: the access method comprises the steps of a processor, a storage device and a communication interface, wherein the processor, the communication interface and the storage device are connected with each other, the storage device stores executable program codes, and the processor is used for calling the executable program codes to realize the access method.
In a fourth aspect, the present application provides a computer readable storage medium storing a computer program comprising program instructions for execution by a processor for performing an access method as described above.
In a fifth aspect, the present application provides a computer program product comprising a computer program or computer instructions for execution by a processor for performing the above-described access method.
The server responds to the triggering operation aiming at the external link on the client side, and acquires the target link to be accessed corresponding to the triggering operation so as to acquire the link parameters from the target link to be accessed; the server wants to open a browser on the server by calling a browser interface, and when detecting that the browser interface is called, the server executes the operation of acquiring the link parameters of the target link; the server generates indication information including the link parameters and transmits the indication information to the client so that the client accesses the target link based on the link parameters in the indication information. By the method, the server can acquire the link parameters of the target link indicated by the triggering operation on the client, then transmit the link parameters of the target link to the operation of the client, access the target link on the client through the local browser, thoroughly solve the potential safety hazard of opening the external link through the server, and improve the safety of the server while ensuring that the client can access the target link.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1A is a flow chart of a process for opening a target link for a cloud game provided in an exemplary embodiment of the present application;
FIG. 1B is a schematic diagram of an access system architecture provided by an exemplary embodiment of the present application;
FIG. 2 is a flow chart of an access method provided by an exemplary embodiment of the present application;
FIG. 3A is a flowchart of a process for accessing a target link in accordance with an exemplary embodiment of the present application;
FIG. 3B is a schematic block diagram of an access interaction provided by an exemplary embodiment of the present application;
FIG. 4 is a flow chart of another access method provided by an exemplary embodiment of the present application;
FIG. 5A is a schematic illustration of an interface for access provided by an exemplary embodiment of the present application;
FIG. 5B is a schematic illustration of another access interface provided by an exemplary embodiment of the present application;
FIG. 6 is a schematic block diagram of an access device provided in an exemplary embodiment of the present application;
fig. 7 is a schematic block diagram of a computer device provided in an exemplary embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that the descriptions of "first," "second," and the like in the embodiments of the present application are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a technical feature defining "first", "second" may include at least one such feature, either explicitly or implicitly.
The embodiment of the application can be applied to various scenes or technologies such as cloud technology, cloud games, artificial intelligence, vehicle-mounted, intelligent traffic, auxiliary driving and the like, and a few typical application scenes or technologies are described below.
Cloud computing (closed computing) refers to the delivery and usage mode of an IT infrastructure, meaning that required resources are obtained in an on-demand, easily scalable manner through a network; generalized cloud computing refers to the delivery and usage patterns of services, meaning that the required services are obtained in an on-demand, easily scalable manner over a network. Such services may be IT, software, internet related, or other services. Cloud Computing is a product of fusion of traditional computer and network technology developments such as Grid Computing (Grid Computing), distributed Computing (distributed Computing), parallel Computing (Parallel Computing), utility Computing (Utility Computing), network storage (Network Storage Technologies), virtualization (Virtualization), load balancing (Load balancing), and the like. With the development of the internet, real-time data flow and diversification of connected devices, and the promotion of demands of search services, social networks, mobile commerce, open collaboration and the like, cloud computing is rapidly developed. Unlike the previous parallel distributed computing, the generation of cloud computing will promote the revolutionary transformation of the whole internet mode and enterprise management mode in concept. According to the method and the device, the data such as the link parameters and the path of the system browser can be stored on the cloud server, and when the different data are needed to be used, the data can be directly acquired on the cloud server, so that the data acquisition speed is greatly improved.
Cloud gaming (Cloud gaming), which may also be referred to as game on demand, is an online gaming technology based on Cloud computing technology. Cloud gaming technology enables lightweight devices (thin clients) with relatively limited graphics processing and data computing capabilities to run high quality games. In a cloud game scene, the game is not run in a player game terminal, but is run in a cloud server, the cloud server renders the game scene into a video and audio stream, and the video and audio stream is transmitted to the player game terminal through a network. The player game terminal does not need to have strong graphic operation and data processing capability, and only needs to have basic streaming media playing capability and the capability of acquiring player input instructions and sending the player input instructions to the cloud server. The method and the device are applied to the cloud game, and the target links to be accessed are processed on the cloud server, and then the link parameters of the target links are sent to the client, so that the client opens the website corresponding to the link parameters through the local browser, the situation that the system browser is directly opened on the cloud server is avoided, the potential safety hazard of opening external links in the cloud game is thoroughly solved, and the safety of the cloud server is ensured.
The intelligent transportation system (Intelligent Traffic System, ITS), also called intelligent transportation system (Intelligent Transportation System), is a comprehensive transportation system which uses advanced scientific technology (information technology, computer technology, data communication technology, sensor technology, electronic control technology, automatic control theory, operation study, artificial intelligence, etc.) effectively and comprehensively for transportation, service control and vehicle manufacturing, and enhances the connection among vehicles, roads and users, thereby forming a comprehensive transportation system for guaranteeing safety, improving efficiency, improving environment and saving energy. The method is applied to the intelligent transportation system, can synchronize the intelligent transportation system to the terminal equipment of different supervision objects through the cloud service, and realizes the access operation of the target link address on different terminal equipment, thereby ensuring the safety and stability of the cloud server and the whole intelligent transportation system behind the cloud server.
In a cloud game scenario, a cloud server uses virtual machine technology to directly open a browser in a virtual machine to access an external link. The game program is not processed, the game is run in the virtual machine, the browser is also run in the virtual machine, and finally the picture seen by the player is the picture after the game picture and the browser picture are synthesized in the virtual machine.
Referring to fig. 1A, fig. 1A is a flowchart of a process for opening an external link of a cloud game, where when a cloud game process accesses a target link (corresponding to step 1 in fig. 1A), a cloud server invokes a browser interface (Application Programming Interface, API) (corresponding to step 2 in fig. 1A) and transmits a link parameter to be opened; after receiving the message, the cloud server system creates a system browser process, and causes the system browser process to open a link indicated by the link parameter (corresponding to step 3 in fig. 1A); then, the cloud server system browser renders the link screen and displays the content screen (corresponding to step 4 in fig. 1A); the content pictures are synthesized into the game pictures, then the content pictures and the game pictures are sent to the local client side together, and the receiving object finally sees the content pictures transmitted by the cloud server at the client side (corresponding to step 5 in fig. 1A).
The method can realize that the client side obtains the content picture generated and sent by the cloud server, but because the security of the target link cannot be determined, the cloud server directly opens the system browser, so that potential safety hazards exist in the cloud server and the whole system behind the server (for example, an attacker can access the intranet link of the cloud server through the system browser of the cloud server, in extreme cases, the aim of operating the intranet of the cloud server can be achieved, and for example, the attacker can use the browser vulnerability to execute operations such as reverse shell and the like, so as to achieve the aim of controlling the whole cloud server).
Based on the above situation, the method is optimized and improved, a hook (hook) technology (similar to an interrupt mechanism, a pre-defined hook routine is triggered when a code triggers a hook process, and the hook routine returns to an original code position to continue execution after the execution is completed) is adopted, when a cloud game process needs to access a target link, link parameters are obtained by accessing the cloud server, and then the link parameters are sent to a client, so that the client opens a website corresponding to the link parameters through a local browser, the system browser is prevented from being directly opened by the cloud server, the potential safety hazard of opening external links in a cloud game is thoroughly solved, and the security of the cloud server is ensured.
It will be appreciated that in the specific embodiments of the present application, where data relating to linking parameters and the like is referred to, when the above embodiments of the present application are applied to specific products or technologies, the collection, use and processing of the relevant data is required to comply with relevant laws and regulations and standards of the relevant countries and regions.
The application will be illustrated by the following examples:
referring to fig. 1B, fig. 1B is a schematic architecture diagram of an access system according to an exemplary embodiment of the present application. As shown in fig. 1B, the access system may specifically include a terminal device 101 and a server 102. Wherein the terminal device 101 and the server 102 are connected through a network, for example, a local area network, a wide area network, a mobile internet, etc. The operation object operates on a browser or a client application of the terminal apparatus 101, and accesses various data. The server 102 may provide various data access services for the operation object in response to the operation.
Specifically, the server 102 may acquire a target link to be accessed (the target link may be operation data generated by the terminal device 101 through a triggering operation of the operation object, and send the operation data to the server 102, where the server 102 acquires the operation data from the received operation data); the server 102 invokes a browser interface; when the server 102 detects that the browser interface is called, the link parameter of the target link is acquired, and instruction information including the link parameter (the instruction information is used for instructing the client 101 to access the target link based on the link parameter) is generated, and then the instruction information is transmitted to the client 101. The client 101 receives the indication information sent by the server 102, and accesses the target link according to the link parameter in response to the indication information; and finally, displaying the content picture corresponding to the target link at the client 101.
The Terminal equipment 101 is also referred to as a Terminal, user Equipment (UE), access Terminal, subscriber unit, mobile device, user Terminal, wireless communication device, user agent, or user equipment. The terminal device may be, but is not limited to, a smart home appliance, a handheld device (e.g., a smart phone, a tablet computer) with wireless communication function, a computing device (e.g., a personal computer (personal computer, PC), a vehicle-mounted terminal, a smart voice interaction device, a wearable device or other smart apparatus, etc.
The server 102 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, a content delivery network (Content Delivery Network, CDN), basic cloud computing services such as big data and an artificial intelligence platform.
It will be understood that the architecture schematic diagram of the system described in the embodiment of the present application is for more clearly describing the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided by the embodiment of the present application. For example, the access method provided by the embodiment of the present application may be performed by a server 102, but may also be performed by another server or a server cluster that is different from the server 102 and is capable of communicating with the terminal device 101 and/or the server 102. Those of ordinary skill in the art will recognize that the number of terminal devices and servers in fig. 1B is merely illustrative. Any number of terminal devices and servers may be configured according to service implementation needs. Moreover, with the evolution of the system architecture and the appearance of new service scenarios, the technical scheme provided by the embodiment of the application is also applicable to similar technical problems. In the subsequent embodiments, the terminal device 101 will be referred to by a client, and the server 102 will be referred to by a server, which will not be described in detail in the subsequent embodiments.
Referring to fig. 2, fig. 2 is a flowchart of an access method according to an exemplary embodiment of the present application, and the method is applied to a server (refer to the server 102 in fig. 1B), and the method may include the following steps:
s201, acquiring a target link to be accessed, and calling a browser interface, wherein the browser interface is used for opening a browser on a server, and the target link is an external link triggered on a client.
In the embodiment of the application, the target link is an external link triggered on the client, that is, an object to be accessed by the client. The server obtains the target link to be accessed, and obtains the link parameter from the target link, where the link parameter may be used for the client (or the server) to access the object (e.g., website) indicated by the link parameter. The server invokes a browser interface that the server uses to open a browser on the server. Through the steps, the server can take whether the browser interface is called as a judging condition, and if the browser interface is called, the step of obtaining the link parameters of the target link later is executed; if the browser interface is not called, continuing to wait for the call of the browser interface.
In an embodiment, the server may refer to a cloud server. When the server is a cloud server, the client and the cloud server perform bidirectional communication, the client and the cloud server respectively comprise the same synchronous picture, the synchronous picture is generated on the cloud server by the cloud server based on the service requirement (such as cloud game service requirement) of the client, the service process and the content picture corresponding to the service process, and then the content picture on the cloud server is sent to the client, so that the client can view the content picture (namely the synchronous picture) identical to the content picture of the cloud server. The client can operate the synchronous picture, generate operation data and send the operation data to the cloud server (or the cloud server can acquire input instruction information of the client in real time). Among the above-described operation data, a target link, and data (e.g., link parameters) related to the target link may be included.
In an embodiment, the step of the cloud server obtaining the target link to be accessed may be that the client determines the target link from information carried by a synchronization picture sent by the cloud server based on input instruction information, and then sends the target link to the cloud server; the client may send the input instruction information to the cloud server, and the cloud server may parse the input instruction information according to the synchronization screen to obtain the target link indicated by the input instruction information (for example, the cloud server parses the trigger area indicated by the input instruction information, determines the link included in the trigger area from the synchronization screen, and uses the link as the target link).
In an embodiment, the browser interface is used to open a browser on a server, and the types of browser interfaces may include an in-process interface and an out-of-process interface. Based on this, opening a browser on a server using a browser interface includes two methods, the first is opening the browser through an in-process interface (i.e., calling a process creation function to create a browser process on the server through a process creation interface); the second is to open the browser through the out-of-process interface (i.e., call the system messaging function through the system messaging interface to send a message to the target system service so that the target system service creates a browser process on the server based on the received message). The specific implementation of the above method will be described in detail in the following embodiments, and will not be described herein.
S202, when the browser interface is detected to be called, obtaining the link parameters of the target link.
In the embodiment of the application, when the server detects that the browser interface is called, the step of acquiring the link parameter of the target link can be executed. The specific execution step can adopt a method corresponding to the type based on the type of the browser interface, so that the success rate of acquiring the link parameters of the target link is improved. By acquiring the link parameters of the target link, the client can access the target link on the local browser based on the link parameters, and the success rate of successfully receiving the link parameters by the client is improved.
In an embodiment, the browser interface is a process creation interface, and when the process creation interface is called, a browser process is created on the server through a process creation function, and when the browser interface is detected to be called, the link parameters of the target link are obtained, which can be achieved according to the following steps.
a1, when the process creation interface is detected to be called, jumping to a first hooking routine.
In the embodiment of the application, the process creation interface is an interface for calling a process creation function, and the server can create a browser process on the server through the process creation function. When the process creation interface is detected to be called, namely, the process creation function is called to create the browser process, and when the process creation function is detected to be called, the first hook routine is skipped. When the cloud server detects that the process creation function is called, the process creation function does not create a browser process. And when the first hook routine is executed subsequently, the original program before the jump is executed is paused, and after the first hook routine is executed, the original program is executed continuously (the first hook example is similar to an interrupt mechanism, that is, when the original program triggers the first hook routine, the first hook routine is entered into a predefined first hook routine, and after the first hook routine is executed, the original program is returned to be executed continuously).
In one embodiment, the first hooking routine may employ hook technology. In the Android operating system, an event distribution mechanism exists in the system, such as application triggering events and background logic processing are all executed downwards step by step according to an event flow, and the hook technology can intercept and check the transmission of the event before the event is transmitted to the endpoint, and process some custom events through the hook operation. In particular, the hook technique uses a technical means to dynamically attach additional code (which may refer to a first hook routine or a second hook routine) to the original process at runtime, thereby achieving the objective of replacing existing processing logic or inserting additional functionality. According to the method and the device, based on the types of different browser interfaces, the hook routines (such as the first hook routine and the second hook routine) corresponding to the different browser interface types are created, so that the acquisition operation of the link parameters based on the target links under different service environments is realized.
A2, acquiring a process starting parameter by executing a first hook routine, wherein the process starting parameter is a starting parameter of a browser process to be created, the browser process to be created calls a browser process required to be created by a process creation function for a process creation interface, and the process starting parameter comprises a link parameter of a target link.
In the embodiment of the application, the cloud server acquires the process starting parameters by executing the first hooking routine, the process starting parameters are starting parameters of a browser process to be created by the cloud server, the browser process to be created calls the browser process to be created by the process creation function for the process creation interface (namely, when the cloud server calls the process creation function to create the browser process, and when the process creation function is detected to be called, the cloud server jumps to the first hooking routine, and the first hooking routine acquires the process starting parameters of the browser process to be created by the cloud server.
In an embodiment, the process starting parameter may be obtained by the first hooking routine from a browser process to be created by the cloud server; or the first hooking routine may be imported from a process creation interface corresponding to the called process creation function. The specific acquisition form of the process starting parameters can be determined according to the actual service condition, and the application is not limited to this.
In one embodiment, the process creation function may be a key dynamic link library and related key functions of the hook technology. For example, a create process function in the ntdll module: ntCreateUserProcess. ntdll is an important windows NT kernel level file that describes the windows local NTAPI (new technology interface), when the windows start up, ntdll resides in a specific write protected region in memory so that other programs cannot occupy this memory region.
a3, acquiring the link parameters of the target link from the process starting parameters.
In the embodiment of the application, the process starting parameters comprise the link parameters of the target link, and when the first hook routine acquires the process starting parameters, the link parameters of the target link can be acquired from the process starting parameters.
In an embodiment, the link parameter of the target link may be a parameter such as a website IP address corresponding to the target link.
In an embodiment, in the steps a1 to a3, the following steps may be further included.
(1) The path of the browser process to be created is obtained by executing the first hooking routine.
In the embodiment of the application, the to-be-created browser process comprises a path of the to-be-created browser process, and the path can be a browser starting path of the to-be-created browser process. When the server detects that the process creation interface is called, the first hook routine is skipped, and the process creation interface is called in various situations (for example, the process of creating a non-designated browser by calling the process creation interface or creating other non-browser processes), therefore, the starting path of the browser needs to be judged, when the path of the browser process to be created is detected to be matched with the path of the system browser, the step of acquiring the link parameter of the target link is executed, invalid data processing operation is avoided, the efficiency of acquiring the link parameter is ensured, and meanwhile, the calculation amount is reduced.
(2) And when the path of the browser process to be created is matched with the path of the system browser, executing the steps of acquiring the process starting parameters by executing the first hooking routine and acquiring the link parameters of the target link from the process starting parameters.
In an embodiment, the system browser is a designated browser (for example, a target browser in a browser white list), and the system browser may be preconfigured, and then the configured startup path of the system browser is used as the path of the system browser. When the first hooking routine detects that the path of the browser process to be created matches the path of the system browser, the subsequent operation steps are executed.
(3) When the link parameters of the target link are acquired, the creation of the browser process to be created is terminated.
In the embodiment of the application, in order to avoid the security risk generated by opening the target link on the server through the browser, the server acquires the link parameter of the target link and then sends the link parameter of the target link to the client so that the client opens the target link in the local browser. The process is executed when the server detects that the process creation function is called, at the moment, the process creation function does not create the browser process, but the purpose that the client accesses the target link through the received link parameter is achieved, and if the creation of the browser process to be created is not stopped, a system browser is opened on the server. Therefore, when the link parameters of the target link are acquired, the creation of the browser process to be created is terminated, so that the safety of the cloud server is ensured.
In an embodiment, the browser interface is a system message sending interface, and when the system message sending interface is called, a message is sent to the target system service through a system message sending function, and when the browser interface is detected to be called, the link parameter of the target link is obtained, which can also be implemented according to the following steps.
b1, when the system message sending interface is detected to be called, jumping to a second hooking routine.
In the embodiment of the application, the system message sending interface is an interface for calling a system message sending function, and the server can send a message to the target system service through the system message sending function, so that the target system service creates a browser process on the server according to the received message, and creates the browser process on the server. When it is detected that the system message sending interface is called, i.e. the system message sending function is called for sending a message, and when it is detected that the system message sending function is called, the second hooking routine is skipped. It should be noted that, when the second hooking routine is skipped, the method is performed immediately when the cloud server detects that the system message sending function is called, and the system message sending function does not create a message (or the message is not yet sent). And when the second hooking routine is executed subsequently, the original program before the jump is executed is paused, and after the second hooking routine is executed, the original program is executed continuously (the second hooking example is similar to an interrupt mechanism, that is, when the original program triggers the second hooking routine, the predefined second hooking routine is entered, and after the second hooking routine is executed, the original program is returned to execute continuously).
It can be understood that the execution principle and function of the second hooking routine are similar to those of the first hooking routine, and the specific execution method and function thereof refer to the related description in the first hooking routine, which is not repeated in this embodiment.
b2, acquiring a message to be sent by executing a second hooking routine; the message to be sent is a message to be sent to the target system service, and the message to be sent comprises a link parameter of the target link.
In the embodiment of the application, the cloud server acquires the message to be transmitted by executing the second hooking routine, wherein the message to be transmitted is the message to be transmitted to the target system service by the cloud server (that is, when the cloud server wants to transmit the message to the target system service by calling the system message transmitting function, and when the system message transmitting function is detected to be called, the cloud server jumps to the second hooking routine, and the second hooking routine acquires the message to be transmitted by the cloud server).
In one embodiment, the system messaging function may be a key dynamic link library and related key functions of the hook technology. For example, the system messaging function may be a messaging function in the ntdll module that sends a message to a system service: ntAlpcSendWaitReceivePort.
b3, acquiring the link parameters of the target link from the message to be sent.
In the embodiment of the application, the message to be sent comprises the link parameter of the target link, and when the second hooking routine obtains the message to be sent, the link parameter of the target link can be obtained from the message to be sent.
In an embodiment, the link parameter of the target link may be obtained by the second hooking routine from a message to be sent by the cloud server; the first hooking routine may also be obtained by parsing a configuration file of the message to be sent in the cloud server. The specific acquisition form of the link parameters of the target link may be determined according to the actual service situation, which is not limited by the present application.
In an embodiment, in the steps b1 to b3, the following steps may be further included.
(1) And acquiring the message type of the message to be sent.
In the embodiment of the application, the message to be sent carries the message type of the message to be sent (for example, the message type can be that a system browser is opened, a notepad is opened, a log file is obtained, etc.). Because the cloud server jumps to the second hooking routine when detecting that the system message sending interface is called, and the system message sending interface is called can include various conditions (for example, the notepad is opened by calling the system message sending interface or the log file is acquired), the message type of the message to be sent needs to be judged, when detecting that the message type of the message to be sent is the type of the open system browser, the step of acquiring the link parameter of the target link is executed, invalid data processing operation is avoided, the efficiency of acquiring the link parameter is ensured, and meanwhile, the calculation amount is reduced.
(2) And when the message type is the open system browser type, executing the step of acquiring the link parameters of the target link from the message to be sent.
In an embodiment, the system browser is a designated browser (for example, a target browser in a browser white list), and the system browser may be preconfigured, and then the system browser that is configured is opened as the type of the opened system browser. When the second hooking routine detects that the message type is the open system browser type, the subsequent operation steps are performed.
(3) And when the link parameters of the target link are acquired, terminating sending the message to be sent.
In the embodiment of the application, in order to avoid the security risk generated by opening the target link on the server through the browser, the server acquires the link parameter of the target link and then sends the link parameter of the target link to the client so that the client opens the target link in the local browser. The above-mentioned process is executed when the server detects that the system message sending function is called, at this time, the system message sending function does not send the message, but the purpose that the client accesses the target link through the received link parameter has been achieved, if the sending of the message to be sent is not terminated, the system browser is opened on the server. Therefore, when the link parameters of the target link are acquired, the sending of the message to be sent is stopped, so that the safety of the cloud server is ensured.
In summary, the present application proposes the above-mentioned different methods for obtaining the link parameters of the target link based on different browser interface types, and in the practical application environment of the present application, the corresponding method should be selected from the above-mentioned methods according to the browser interface types for execution, so that the application range of obtaining the target link is enlarged, so that the method can be applied to various service environments, and the success rate of obtaining the link parameters is improved.
S203, generating indication information comprising the link parameters, and sending the indication information to the client, wherein the indication information is used for indicating the client to access the target link based on the link parameters.
In the embodiment of the application, the cloud server generates the indication information including the link parameter through the first hook routine (or the second hook routine), and sends the indication information to the client, where the indication information is used to instruct the client to access the target link based on the link parameter (the indication information can be understood as an execution command carrying the link parameter). The client automatically executes the operation of accessing the target link through the acquired indication information, so that the client is prevented from accessing the target link by receiving the link parameter of the target link and then inputting the link parameter by the operation object through the local browser, the processing efficiency is improved, and the use experience of the operation object is ensured.
In an embodiment, the step of generating the indication information including the link parameter may be generated by the server according to the link parameter acquired by the first hooking routine (or the second hooking routine), or may be generated by the first hooking routine (or the second hooking routine) according to the acquired link parameter. Similarly, the step of sending the instruction information to the client may be that the server sends the instruction information to the client according to the generated instruction information, or that the first hooking routine (or the second hooking routine) sends the instruction information to the client according to the generated instruction information.
Referring to fig. 3A, fig. 3A is a flowchart illustrating a process for accessing a target link according to an exemplary embodiment of the present application. Firstly, a server acquires a target link to be accessed (corresponding to step 1 in fig. 3A); the server calls a browser interface to open a system browser (corresponding to step 2 in fig. 3A); since the browser interface is hooked by the function routine, when the server detects that the browser interface is called, entering a preset function routine (corresponding to step 3 in fig. 3A, the preset function routine may be a first hooking routine or a second hooking routine); the function routine obtains the link parameters of the target link (corresponding to step 4 in fig. 3A); when the link parameter of the target link is obtained, the function routine (or the server) sends the link parameter to the client (corresponding to step 5 in fig. 3A, where the client may be a terminal such as pc, mac, web, android, apple, etc.); the client opens a local browser (corresponding to step 6 in fig. 3A) after acquiring the link parameters, and accesses the target link based on the link parameters; the client displays a content picture corresponding to the target link in a local browser (corresponding to step 7 in fig. 3A); finally, the receiving object can see the content screen corresponding to the target link in the local browser of the client (corresponding to step 8 in fig. 3A).
Referring to fig. 3B, fig. 3B is a schematic block diagram of an access interaction provided by an exemplary embodiment of the present application in a cloud game scenario. A cloud game service includes a plurality of game application processes (e.g., a game application process 1 and a game application process 2), a plurality of game application servers (e.g., a game application server 1 and a game application server 2), a hook process (e.g., a process corresponding to a process creation interface or a process corresponding to a system information transmission interface) is configured in the game application processes, and a server hook process (a server hook process may refer to a first hook routine or a second hook routine in the present application) is configured in the game application servers; the figure further includes a plurality of clients (e.g., client 1 and client 2), each game application corresponding to a game application server, and the game application server corresponds to at least one client.
Specifically, the game application process 1 performs bidirectional data interaction with the game application server 1 (for example, transmission of game server data, call of cache data, etc.); the hooking process performs bidirectional data interaction (such as process synchronization and the like) with the server hooking process; the game application server 1 performs bidirectional data interaction (e.g., transmission of screen synchronization data, etc.) with the client 1 via a network connection. Based on the data interaction architecture, the server hooking process of the game application server 1 can acquire the link parameters of the target link from the game application process 1, the game application server 1 acquires the link parameters of the target link from the server hooking process, and the link parameters of the target link are sent to the client 1, so that the client 1 accesses the target link on the local browser based on the link parameters.
It should be noted that the hooking processes in the game application processes may be the same or different; the server hooking processes in the game application servers can be the same or different, and the specific configuration is determined according to the actual service condition, which is not limited by the present application.
The method has the advantages that the server responds to the triggering operation aiming at the external link on the client side, and the target link to be accessed corresponding to the triggering operation is acquired, so that the link parameters are acquired from the target link to be accessed later; the server wants to open a browser on the server by calling a browser interface, and when detecting that the browser interface is called, the server executes the operation of acquiring the link parameters of the target link; the server generates indication information including the link parameters and transmits the indication information to the client so that the client accesses the target link based on the link parameters in the indication information. By the method, the server can acquire the link parameters of the target link indicated by the triggering operation on the client, then transmit the link parameters of the target link to the operation of the client, access the target link on the client through the local browser, thoroughly solve the potential safety hazard of opening the external link through the server, and improve the safety of the server while ensuring that the client can access the target link.
The application also provides different methods for acquiring the link parameters of the target link based on different browser interface types, and the target link is sent to the client through the corresponding methods, so that the target system service establishes a browser process on the server according to the received information, and in the practical application environment, the corresponding methods are selected from the methods according to the types of the browser interfaces to execute, thereby expanding the application range of acquiring the target link, enabling the method to be applied to various service environments, and improving the success rate of acquiring the link parameters and the success rate of successfully receiving the link parameters by the client. When the hook technology is utilized, namely when the browser interface is detected to be called, namely when the server wants to create the browser process, the target function is detected to be called, namely the corresponding hook routine is jumped to, the original program is interrupted, and the original program is returned to continue to be executed after the hook routine is executed, so that the original program is ensured not to create the browser process on the server, and the safety of the cloud server is ensured.
The application also provides that when the browser interface creates an interface for the process, the browser jumps to a first hooking routine, and the server acquires the link parameters in the process starting parameters by executing the first hooking routine; when the browser interface is a system information sending interface, jumping to a second hooking routine, and determining a link parameter from a message to be sent by the server through executing the second hooking routine; based on the situation, the hook routine corresponding to different browser interface types is created, so that the link parameter obtaining operation based on the target links under different service environments is realized.
The application also provides that under the condition of the process creation interface, the starting path of the browser is judged, when the path of the browser process to be created is detected to be matched with the path of the system browser, the step of acquiring the link parameter of the target link is executed, and when the link parameter of the target link is acquired, the process of creating the browser to be created is terminated; and judging the message type of the message to be sent under the condition of the system message sending interface, executing the step of acquiring the link parameter of the target link when the message type of the message to be sent is detected to be the open system browser type, and stopping sending the message to be sent when the link parameter of the target link is acquired, so that invalid data processing operation is avoided, the efficiency of acquiring the link parameter is ensured, and meanwhile, the calculation amount is reduced. The application also provides that the cloud server or the hook routine sends the indication information comprising the link parameters to the client so that the client can automatically access the target link based on the indication information, the client is prevented from accessing the target link by receiving the link parameters of the target link and the operating object inputs the link parameters through the local browser, the processing efficiency is improved, and the use experience of the operating object is ensured.
Referring to fig. 4, fig. 4 is a flowchart of an access method according to an exemplary embodiment of the present application, and the method is applied to a client (referring to the terminal device 101 in fig. 1B) for illustration, and the method may include the following steps:
s401, receiving indication information sent by a server; the indication information comprises link parameters of a target link, wherein the link parameters are obtained by a server when the server obtains the target link to be accessed, a browser interface is called, the browser interface is obtained when the browser interface is detected to be called, the browser interface is used for opening a browser on the server, and the target link is an external link triggered on a client.
In the embodiment of the application, the client receives the indication information sent by the server, the indication information comprises the link parameters of the target link, and the client can automatically access the target link based on the indication information, so that the client is prevented from accessing the target link by receiving the link parameters of the target link and inputting the link parameters by the operation object through the local browser, the processing efficiency is improved, and the use experience of the operation object is ensured.
The link parameter is obtained when the server obtains the target link to be accessed, invokes the browser interface, and obtains when the browser interface is detected to be invoked, and the specific implementation manner of the server generating the indication information is described in the foregoing embodiments with reference to the related descriptions of steps S201 to S203, which are not repeated in this embodiment.
S402, in response to the indication information, accessing the target link according to the link parameter.
In the embodiment of the application, the indication information comprises the link parameter of the target link, the indication information can be understood as an execution command carrying the link parameter, and when the client receives the indication information, the target link can be automatically accessed.
In an embodiment, the accessing the target link according to the link parameter in response to the indication information may be implemented according to the following steps.
(1) And responding to the indication information, and calling the local browser to access the target link according to the link parameters.
In the embodiment of the present application, the local browser is a target browser on the client, the target browser is a designated browser (for example, a target browser in a browser installed on the client), and the local browser can be preconfigured. The client can access the target link according to the link parameters by calling the local browser.
(2) And displaying the content picture corresponding to the target link on the client.
In an embodiment, a content frame corresponding to the target link may be shown on top of the original frame of the client.
Referring to fig. 5A and 5B, fig. 5A and 5B are schematic views of an interface of a cloud game for opening an external link at a client according to an embodiment of the present application. Fig. 5A is a schematic diagram of an interface of a cloud game on a client, where the interface includes a plurality of cloud game functionality controls, such as functionality controls for starting a game (corresponding to control 501 in the figure), homepage, career, knapsack, friend list, and active interface (corresponding to control 502 in the figure). In addition to text (e.g., 2022 new season), the active interface includes a plurality of links, such as learning more about, 2022 game publication, 2022 new hero list (corresponding to 503 control in the drawing) and hero attack, when the operator actively clicks any link, the client opens the link to jump to the corresponding content screen.
As shown in fig. 5B, after receiving the link parameters of the target link sent by the cloud server, fig. 5B is an interface schematic of the content screen opened by the local browser, where the content screen (corresponding to the control 504 in the figure, the content screen is a web page screen of the local browser) includes web site information (e.g. www.yingxionggonglue.com), hyperlinks (e.g. learn more controls), and web page content (e.g. 2022 event publishing … …).
It should be noted that, in this embodiment, all operation steps and implementation principles of the server may be referred to the related descriptions of steps S201 to S203 in the foregoing embodiment, and the embodiments of the present application are not repeated.
The method has the advantages that the client can receive the indication information sent by the server, and the indication information is that the server responds to the triggering operation of the client for the external link to acquire the target link to be accessed corresponding to the triggering operation; the browser interface is called to open a browser on the server, and when the browser interface is detected to be called, the operation of obtaining the link parameters of the target link is executed; and generating according to the link parameters. The client can respond to the indication information and access the target link according to the link parameters, namely, the target link is accessed on the client through the local browser, so that the operation of opening the target link on the server and transmitting data corresponding to the target link to the client is avoided, the potential safety hazard of opening the external link through the server is thoroughly solved, the client can access the target link, and meanwhile, the safety of the server is improved. According to the method, the client side automatically accesses the target link according to the indication information sent by the server, and displays the content picture corresponding to the target link on the client side, so that the client side is prevented from accessing the target link by receiving the link parameter of the target link and inputting the link parameter by the operation object through the local browser, the generation of the content picture is improved, and the use experience of the operation object is ensured.
Referring to fig. 6, fig. 6 is a schematic block diagram of an access device according to an embodiment of the present application. The access device is applied to an embodiment, and specifically may include:
the receiving module 601 is configured to obtain a target link to be accessed, and call a browser interface, where the browser interface is configured to open a browser on a server, and the target link is a triggered external link on a client;
a processing module 602, configured to obtain a link parameter of the target link when it is detected that the browser interface is called;
the processing module 602 is further configured to generate indication information including the link parameter, and send the indication information to the client, where the indication information is used to instruct the client to access the target link based on the link parameter.
Optionally, the browser interface is a process creation interface, and when the process creation interface is called, a browser process is created on the server through a process creation function; when the processing module 602 is configured to obtain the link parameter of the target link when it detects that the browser interface is called, the processing module is specifically configured to:
when the process creation interface is detected to be called, jumping to a first hooking routine;
Acquiring a process starting parameter by executing the first hook routine, wherein the process starting parameter is a starting parameter of a browser process to be created, the browser process to be created is a browser process required to be created by calling the process creation function for the process creation interface, and the process starting parameter comprises a link parameter of the target link;
and acquiring the link parameters of the target link from the process starting parameters.
Optionally, the processing module 602 is further configured to:
acquiring a path of the browser process to be created by executing the first hooking routine;
when the path of the browser process to be created is matched with the path of the system browser, executing the steps of acquiring a process starting parameter by executing the first hooking routine and acquiring a link parameter of the target link from the process starting parameter;
and when the link parameters of the target links are acquired, terminating the creation of the browser process to be created.
Optionally, the browser interface is a system message sending interface, and when the system message sending interface is called, a message is sent to a target system service through a system message sending function; when the processing module 602 is configured to obtain the link parameter of the target link when it detects that the browser interface is called, the processing module is specifically configured to:
When the system message sending interface is detected to be called, jumping to a second hooking routine;
acquiring a message to be transmitted by executing the second hooking routine; the message to be sent is a message to be sent to the target system service, and the message to be sent comprises a link parameter of the target link;
and acquiring the link parameters of the target link from the message to be sent.
Optionally, the processing module 602 is further configured to:
acquiring the message type of the message to be sent;
when the message type is an open system browser type, executing the step of acquiring the link parameter of the target link from the message to be sent;
and when the link parameters of the target link are acquired, terminating the sending of the message to be sent.
In another embodiment, the access device may specifically include:
a receiving module 601, configured to receive indication information sent by a server; the indication information comprises link parameters of a target link, wherein the link parameters are obtained when the server obtains the target link to be accessed, a browser interface is called, and the browser interface is obtained when the browser interface is detected to be called, and is used for opening a browser on the server, and the target link is an external link triggered on a client;
And a processing module 602, configured to access the target link according to the link parameter in response to the indication information.
Optionally, the processing module 602 is configured to, in response to the indication information, access the target link according to the link parameter, specifically configured to:
responding to the indication information, and calling a local browser to access the target link according to the link parameter;
and displaying the content picture corresponding to the target link on the client.
It should be noted that, the functions of each functional module of the access device in the embodiment of the present application may be specifically implemented according to the method in the embodiment of the method, and the specific implementation process may refer to the related description of the embodiment of the method, which is not repeated herein.
Referring to fig. 7, fig. 7 is a schematic block diagram of a computer device according to an embodiment of the present application. The intelligent terminal in this embodiment as shown in the figure may include: a processor 701, a storage device 702, and a communication interface 703. Data interaction may take place between the processor 701, the storage device 702 and the communication interface 703.
The storage 702 may include volatile memory (RAM), such as random-access memory (RAM); the storage 702 may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a Solid State Drive (SSD), etc.; the storage 702 may also include a combination of the types of memory described above.
The processor 701 may be a central processing unit (central processing unit, CPU). In one embodiment, the processor 701 may also be a graphics processor (Graphics Processing Unit, GPU). The processor 701 described above may also be a combination of a CPU and a GPU. In one embodiment, the storage device 702 is configured to store program instructions, and the processor 701 may call the program instructions to perform the following operations:
the processor 701 is configured to obtain a target link to be accessed, and call a browser interface, where the browser interface is configured to open a browser on a server, and the target link is a triggered external link on a client;
the processor 701 is further configured to obtain a link parameter of the target link when it is detected that the browser interface is called;
the processor 701 is further configured to generate indication information including the link parameter, and send the indication information to the client, where the indication information is used to instruct the client to access the target link based on the link parameter.
Optionally, the browser interface is a process creation interface, and when the process creation interface is called, a browser process is created on the server through a process creation function; when the processor 701 is configured to obtain the link parameter of the target link when it detects that the browser interface is called, the processor is specifically configured to:
When the process creation interface is detected to be called, jumping to a first hooking routine;
acquiring a process starting parameter by executing the first hook routine, wherein the process starting parameter is a starting parameter of a browser process to be created, the browser process to be created is a browser process required to be created by calling the process creation function for the process creation interface, and the process starting parameter comprises a link parameter of the target link;
and acquiring the link parameters of the target link from the process starting parameters.
Optionally, the processor 701 is further configured to:
acquiring a path of the browser process to be created by executing the first hooking routine;
when the path of the browser process to be created is matched with the path of the system browser, executing the steps of acquiring a process starting parameter by executing the first hooking routine and acquiring a link parameter of the target link from the process starting parameter;
and when the link parameters of the target links are acquired, terminating the creation of the browser process to be created.
Optionally, the browser interface is a system message sending interface, and when the system message sending interface is called, a message is sent to a target system service through a system message sending function; when the processor 701 is configured to obtain the link parameter of the target link when it detects that the browser interface is called, the processor is specifically configured to:
When the system message sending interface is detected to be called, jumping to a second hooking routine;
acquiring a message to be transmitted by executing the second hooking routine; the message to be sent is a message to be sent to the target system service, and the message to be sent comprises a link parameter of the target link;
and acquiring the link parameters of the target link from the message to be sent.
Optionally, the processor 701 is further configured to:
acquiring the message type of the message to be sent;
when the message type is an open system browser type, executing the step of acquiring the link parameter of the target link from the message to be sent;
and when the link parameters of the target link are acquired, terminating the sending of the message to be sent.
In another embodiment, the storage device 702 is configured to store program instructions, and the processor 701 may call the program instructions to perform the following operations:
the processor 701 is configured to receive indication information sent by a server; the indication information comprises link parameters of a target link, wherein the link parameters are obtained when the server obtains the target link to be accessed, a browser interface is called, and the browser interface is obtained when the browser interface is detected to be called, and is used for opening a browser on the server, and the target link is an external link triggered on a client;
The processor 701 is further configured to access the target link according to the link parameter in response to the indication information.
Optionally, the processor 701 is configured to, in response to the indication information, access the target link according to the link parameter, specifically:
responding to the indication information, and calling a local browser to access the target link according to the link parameter;
and displaying the content picture corresponding to the target link on the client.
In a specific implementation, the processor 701, the storage 702 and the communication interface 703 described in the embodiment of the present application may perform the implementation described in the related embodiment of the access method provided in fig. 2 or fig. 4, or may perform the implementation described in the related embodiment of the access device provided in fig. 6, which is not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed method, apparatus and system may be implemented in other manners. For example, the device embodiments described above are merely illustrative; for example, the division of the units is only one logic function division, and other division modes can be adopted in actual implementation; for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
Furthermore, it should be noted here that: the embodiment of the present application further provides a computer readable storage medium, in which a computer program executed by the aforementioned access device is stored, and the computer program includes program instructions, when executed by a processor, can execute the method in the embodiment corresponding to fig. 2 and fig. 4, and therefore, a detailed description will not be given here. In addition, the description of the beneficial effects of the same method is omitted. For technical details not disclosed in the embodiments of the computer-readable storage medium according to the present application, please refer to the description of the method embodiments of the present application. As an example, the program instructions may be deployed on one computer device or executed on multiple computer devices at one site or, alternatively, distributed across multiple sites and interconnected by a communication network, where the multiple computer devices distributed across multiple sites and interconnected by the communication network may constitute a blockchain system.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device can execute the method in the embodiment corresponding to fig. 2 and fig. 4, and therefore, a detailed description will not be given here.
Those skilled in the art will appreciate that implementing all or part of the above-described embodiment methods may be accomplished by way of a computer program for instructing relevant hardware, where the program may be stored on a computer readable storage medium, and where the program, when executed, may comprise the embodiment flow of the above-described methods. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random-access Memory (Random Access Memory, RAM), or the like.
The above disclosure is only a few examples of the present application, and it is not intended to limit the scope of the present application, but it is understood by those skilled in the art that all or a part of the above embodiments may be implemented and equivalents thereof may be modified according to the scope of the present application.
Claims (11)
1. An access method, the method comprising:
acquiring a target link to be accessed, and calling a browser interface, wherein the browser interface is used for opening a browser on a server, and the target link is an external link triggered on a client;
when the browser interface is detected to be called, acquiring a link parameter of the target link;
And generating indication information comprising the link parameters, and sending the indication information to the client, wherein the indication information is used for indicating the client to access the target link based on the link parameters.
2. The method of claim 1, wherein the browser interface is a process creation interface that when invoked creates a browser process on the server via a process creation function;
and when the browser interface is detected to be called, acquiring the link parameters of the target link, wherein the link parameters comprise:
when the process creation interface is detected to be called, jumping to a first hooking routine;
acquiring a process starting parameter by executing the first hook routine, wherein the process starting parameter is a starting parameter of a browser process to be created, the browser process to be created calls the browser process required to be created by the process creation function for the process creation interface, and the process starting parameter comprises a link parameter of the target link;
and acquiring the link parameters of the target link from the process starting parameters.
3. The method according to claim 2, wherein the method further comprises:
Acquiring a path of the browser process to be created by executing the first hooking routine;
when the path of the browser process to be created is matched with the path of the system browser, executing the steps of acquiring a process starting parameter by executing the first hooking routine and acquiring a link parameter of the target link from the process starting parameter;
and when the link parameters of the target link are acquired, terminating the creation of the browser process to be created.
4. The method of claim 1, wherein the browser interface is a system messaging interface that, when invoked, sends a message to a target system service via a system messaging function;
and when the browser interface is detected to be called, acquiring the link parameters of the target link, wherein the link parameters comprise:
when the system message sending interface is detected to be called, jumping to a second hooking routine;
acquiring a message to be sent by executing the second hooking routine; the message to be sent is a message to be sent to the target system service, and the message to be sent comprises a link parameter of the target link;
And acquiring the link parameters of the target link from the message to be sent.
5. The method according to claim 4, wherein the method further comprises:
acquiring the message type of the message to be sent;
when the message type is an open system browser type, executing the step of acquiring the link parameters of the target link from the message to be sent;
and when the link parameters of the target link are acquired, terminating sending the message to be sent.
6. An access method, the method comprising:
receiving indication information sent by a server; the indication information comprises link parameters of a target link, wherein the link parameters are obtained when the server obtains the target link to be accessed, a browser interface is called, and the browser interface is obtained when the browser interface is detected to be called, the browser interface is used for opening a browser on the server, and the target link is an external link triggered on a client;
and responding to the indication information, and accessing the target link according to the link parameter.
7. The method of claim 6, wherein said accessing said target link according to said link parameters in response to said indication information comprises:
Responding to the indication information, and calling a local browser to access the target link according to the link parameter;
and displaying the content picture corresponding to the target link on the client.
8. An access device, characterized in that the device comprises means for implementing the access method according to any of claims 1-5 or means for implementing the access method according to any of claims 6-7.
9. A computer device, comprising: a processor, a storage device and a communication interface, the processor, the communication interface and the storage device being connected to each other, wherein the storage device stores executable program code, the processor being configured to invoke the executable program code to implement the access method according to any of claims 1-5 or to implement the access method according to any of claims 6-7.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions for execution by a processor for implementing the access method according to any one of claims 1 to 5 or for implementing the access method according to any one of claims 6 to 7.
11. A computer program product, characterized in that it comprises a computer program or computer instructions for implementing the access method according to any one of claims 1 to 5 or for implementing the access method according to any one of claims 6 to 7 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210335735.4A CN116920414A (en) | 2022-03-31 | 2022-03-31 | Access method, apparatus, device, readable storage medium and program product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210335735.4A CN116920414A (en) | 2022-03-31 | 2022-03-31 | Access method, apparatus, device, readable storage medium and program product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116920414A true CN116920414A (en) | 2023-10-24 |
Family
ID=88375972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210335735.4A Pending CN116920414A (en) | 2022-03-31 | 2022-03-31 | Access method, apparatus, device, readable storage medium and program product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116920414A (en) |
-
2022
- 2022-03-31 CN CN202210335735.4A patent/CN116920414A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2019233201B2 (en) | Resource configuration method and apparatus, terminal, and storage medium | |
US20230096900A1 (en) | Cloud gaming processing method, apparatus, and device, and storage medium | |
US9208316B1 (en) | Selective disabling of content portions | |
CN109068153B (en) | Video playing method and device and computer readable storage medium | |
EP4429205A1 (en) | Data processing method and apparatus, and device and medium | |
WO2014048323A1 (en) | Method and system for cross-terminal cloud browsing | |
US11890540B2 (en) | User interface processing method and device | |
US8549069B1 (en) | Validation of device activity via logic sharing | |
EP4210053A1 (en) | Application program control method and apparatus, electronic device, and storage medium | |
KR20220065856A (en) | Information processing methods, systems, devices, devices and storage media | |
WO2014004928A1 (en) | System and method for transparent in-network adaptation of rich internet applications | |
JP2023523242A (en) | DATA PROCESSING METHOD, DATA PROCESSING APPARATUS, COMPUTER DEVICE, AND COMPUTER PROGRAM | |
US20230046042A1 (en) | Picture display method and apparatus, terminal device, and storage medium | |
CN112023402B (en) | Game data processing method, device, equipment and medium | |
CN111580988B (en) | Method and device for realizing open platform, storage medium and computer equipment | |
CN115794139A (en) | Mirror image data processing method, device, equipment and medium | |
CN115955590A (en) | Video processing method, video processing device, computer equipment and medium | |
CN112295234B (en) | Method and device for obtaining game props | |
CN116920414A (en) | Access method, apparatus, device, readable storage medium and program product | |
CN114338830B (en) | Data transmission method, device, computer readable storage medium and computer equipment | |
CN115671711B (en) | Cloud game-based device control method and device, electronic device and readable medium | |
CN112399240B (en) | Data processing method | |
CN105224573B (en) | A kind of regular data configuration method and device, system | |
CN114064165A (en) | Application page processing method and device | |
CN112882710B (en) | Rendering method, device, equipment and storage medium based on client |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |