A method and device for accessing control of mini-programs

By receiving access requests in the applet and performing granular access control based on the control information, the problem of insufficient control of existing small and medium-sized applets in the applet is solved, and real-time and efficient management of illegal content is achieved.

CN110750761BActive Publication Date: 2025-07-29ADVANCED NEW TECHNOLOGIES CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201910892114.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-20
Publication Date
2025-07-29
Estimated Expiration
2039-09-20

AI Technical Summary

Technical Problem

The control methods of existing technology small and medium-sized programs are mainly based on the granularity of APP ID, and it is difficult to achieve fine-grained and real-time control of illegal content, resulting in insufficient penalties on merchants.

Method used

By receiving access requests from target content objects in the applet, determine whether access control is required based on the applet control information, and obtain corresponding control information for fine-grained access control, including page dimensions and overall applet granularity control.

Benefits of technology

It realizes refined control of mini program content objects, improves control efficiency, and can conduct real-time risk management during user access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110750761B_ABST
    Figure CN110750761B_ABST
Patent Text Reader

Abstract

An embodiment of this specification provides a method and device for accessing and controlling applets. Among them, the method includes: receiving an object access request for a target content object in the applet, where the target content object is part of the content in the applet; determining, according to applet control information, that the target content object belongs to an object to be controlled, and the applet control information is used to define the applet content objects to be controlled; obtaining, from the applet control information, the control information corresponding to the target content object, and performing access control on the target content object according to the control information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of network technologies, and particularly to a method and device for accessing and controlling applets. Background Art

[0002] An applet is an independent program that runs in a container of an application (APP) installed on an intelligent device. It can be conveniently obtained and spread, providing a better user experience for end users. On the basis of the continuous development of applets, it is also necessary to prevent and control the quality risks of applets to ensure that the content of applets complies with regulations.

[0003] In related technologies, for the control means of applets, the current applet control scheme of major Internet companies is at the granularity of APP IDs. When it is detected that an applet contains illegal content, operations such as sending a warning message to the developer within the station, hiding the applet, taking down the applet, and terminating the business of the merchant corresponding to the applet are performed depending on the severity of the situation. Summary of the Invention

[0004] In view of this, one or more embodiments of this specification provide a method and device for accessing and controlling applets.

[0005] Specifically, one or more embodiments of this specification are implemented through the following technical solutions:

[0006] In a first aspect, a method for accessing and controlling an applet is provided. The method includes:

[0007] Receiving an object access request for a target content object in the applet, where the target content object is a part of the content in the applet;

[0008] Determining, according to applet control information, that the target content object belongs to an object to be controlled, where the applet control information is used to define the applet content objects to be controlled;

[0009] Obtaining, from the applet control information, control information corresponding to the target content object, and performing access control on the target content object according to the control information.

[0010] In a second aspect, an apparatus for accessing and controlling an applet is provided. The apparatus includes:

[0011] A request receiving module, configured to receive an object access request for a target content object in the applet, where the target content object is a part of the content in the applet;

[0012] An object detection module, configured to determine, according to applet control information, that the target content object belongs to an object to be controlled, where the applet control information is used to define the applet content objects to be controlled;

[0013] An object control module is used to obtain control information corresponding to the target content object according to the applet control information, and perform access control on the target content object according to the control information.

[0014] In a third aspect, there is provided an applet access control device, which includes a memory, a processor, and computer instructions stored on the memory and executable on the processor. When the processor executes the instructions, the applet access control method described in any embodiment of this specification is implemented.

[0015] The applet access control method and device according to one or more embodiments of this specification determine whether a certain target content object in the applet needs to be controlled according to the applet control information when the user accesses the target content object in the applet, and perform access control on the target content object according to the control information, thereby realizing access control on the specific content object in the applet. The control granularity is finer, and it can meet more diversified and refined applet management and control. Moreover, this method can achieve real-time management and control during the process of the user accessing the applet, resulting in higher management and control efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in one or more embodiments of this specification or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments described in one or more embodiments of this specification. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0017] Figure 1 A method for applet access control provided by one or more embodiments of this specification;

[0018] Figure 2 A method for obtaining applet control information provided by one or more embodiments of this specification;

[0019] Figure 3 A method for applet access control provided by one or more embodiments of this specification;

[0020] Figures 4 to 6 The display of several access control pages provided by one or more embodiments of this specification;

[0021] Figure 7 An applet access control device provided by one or more embodiments of this specification. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0022] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the drawings in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this disclosure.

[0023] In terms of content control of mini programs, there may be many reasons why illegal content appears on the mini program page, and sometimes the illegal content may not be provided by the merchant. For example, the mini program contains illegal products, illegal comments, illegal pictures, etc., and the content has a small impact and has not reached the level where punishment is required for the mini program. At this time, if access control at the APPID granularity is still performed, such as removing or hiding the mini program, this punishment for the mini program merchant is not appropriate. Based on this, the embodiment of this specification provides a mini program access control method to support more fine-grained mini program content control.

[0024] Figure 1 This is a method for controlling access to a mini-program provided by at least one embodiment of this specification. This method can be executed by a container for running a mini-program. For example, an application (APP) can be installed on a smart device as a container to run the mini-program. Figure 1 As shown, the method may include the following processing:

[0025] In step 100, an object access request for a target content object in a mini-program is received, where the target content object is part of the content in the mini-program.

[0026] In this step, the target content object may be an object accessed by the user alone. For example, the target content object includes but is not limited to: a mini-program page in the mini-program; or a control object in the mini-program page.

[0027] When a user uses a mini program, the container can detect that the user wants to access a target content object in the mini program, for example, the user wants to access a mini program page.

[0028] In step 102, it is determined that the target content object belongs to an object to be controlled based on the mini-program control information, where the mini-program control information is used to limit the mini-program content object to be controlled.

[0029] For example, the applet control information may be obtained by the container from other places and stored locally.

[0030] A small program can include multiple content objects. For example, a small program can include many small program pages. Users can view one of the pages or jump from one page to another; users can click on one of the controls on a certain page to view the control object corresponding to the control, or click on another control to view the control object.

[0031] The small program control information can be used to specify which small program content objects need to be controlled. For example, which page needs to be controlled. These content objects that need to be controlled can be objects including violation information, so access control is required. For example, a certain small program page can be controlled to prohibit users from accessing it to prevent users from seeing the violation content on the page.

[0032] In this step, the container can determine, based on the small program control information, whether the target content object that the user wants to access in step 100 belongs to the object that needs to be controlled. If the judgment result is that the target content object does not require access control, that is, the target content object does not belong to the object to be controlled, then the target content object can be obtained and normally displayed to the user for access based on the object access request; if the judgment result is that the target content object belongs to the object that needs to be controlled, step 104 can be continued.

[0033] In step 104, the control information corresponding to the target content object is obtained from the small program control information, and access control is performed on the target content object according to the control information.

[0034] In this step, the small program control information can not only include information for specifying which content objects need to be controlled, but also include how to control these content objects. That is, the small program control information can include the object information of the small program content objects to be controlled and the control information corresponding to the target content object. Access control can be performed on the target content object according to the control information.

[0035] The small program access control method of this embodiment determines whether an object needs to be controlled according to the small program control information when the user accesses a certain target content object in the small program, and performs access control on the target content object according to the control information, realizing access control of specific content objects in the small program. The control granularity is finer, and it can meet more diverse and refined small program management and control; moreover, this method can achieve real-time management and control during the process of the user accessing the small program, resulting in higher management and control efficiency.

[0036] Taking the small program content object as a small program page, that is, taking the management and control of the small program at the page dimension as an example, the process of managing and controlling the page is described below. It can be understood that this method can also be applied to the management and control of other small program content objects.

[0037] The container obtains the applet control information

[0038] First, the applet control information can be generated by the applet inspection platform.

[0039] The applet inspection platform is a platform for risk monitoring of applets. This platform can conduct a full-scale inspection of applets and can also inspect certain applets specified by other business departments, etc. If a risk is found in a certain applet, the risk event can be further characterized. If the risk level is relatively low, only a warning can be issued; if the risk level is higher, decision-making processes including but not limited to: taking the applet off the shelves, terminating the business, etc. can be carried out for the applet.

[0040] One of the decision-making processes is "conducting page control over the applet". When the applet inspection platform detects that a certain page of the applet has a risk, corresponding control information can be generated according to the pre-set control methods. For example, the pre-set control methods can include:

[0041] For different problems detected on the applet page, different interception pages can be specified to be presented by the applet client on the container side:

[0042] Case 1: When the page is unavailable, the opening speed is very slow, etc., the applet client displays an interception page of "The page is temporarily unavailable".

[0043] This interception page can be called an access control page. When the applet inspection platform detects that there is a problem with the opening speed of a certain applet page, it can record the page address of this applet page and record the access control page parameters of the access control page corresponding to this applet page. The access control page parameters are parameters used to define what kind of interception page to display.

[0044] All kinds of interception pages can be stored in the control server, and different interception pages can have their own access control page parameters. The control server can determine the content of the interception page to be obtained according to the access control page parameters.

[0045] Case 2: When the page contains suspected illegal elements, such as guiding fraud, malicious advertisements, or business compliance issues and the situation of excessive single-page traffic, the applet client displays an interception page of "About to access a third-party page. Do you want to continue?", and the potential hazards existing on the page can be noted in the interception page.

[0046] Similarly, when the applet inspection platform detects problems such as malicious advertisements on a certain applet page, it can record the page address of this applet page and record the access control page parameters of the access control page (i.e., the above-mentioned interception page) corresponding to this applet page.

[0047] Case 3: When the page contains problems such as bottom line issues, such as pornographic content, content involving violence, terrorism, politics, and the spread of gambling information, the mini-program client displays an intercepted page of "Access to this page has been stopped". The mini-program inspection platform also records the mini-program page address and the corresponding access control page parameters.

[0048] The above-mentioned mini-program page address and the access control page parameters corresponding to the mini-program page address can be referred to as mini-program control information. The mini-program control information can be predefined and set, and during the process of risk detection of the mini-program by the mini-program inspection platform, when a risk problem is found on a certain mini-program page, the mini-program control information is automatically recorded, such as recording the current mini-program page address where the risk is found and the corresponding access control page parameters.

[0049] The mini-program inspection platform can send the generated mini-program control information to the mini-program server, and the mini-program server can interact with the mini-program container used to run the mini-program to transmit the mini-program control information to the container side. The container can manage and control the mini-program according to the mini-program control information.

[0050] The mini-program control information can be stored both in the database and in the CDN (Content Delivery Network) on the mini-program server. The container side can directly request the mini-program control information from the CDN, enabling users to obtain the required content nearby, reducing network congestion, and improving the user access response speed. In addition, in other implementation manners, if a particularly serious risk problem is found in the mini-program, the mini-program server can directly send the mini-program control information to the container side without the container side actively downloading from the CDN, so that the mini-program control information takes effect faster.

[0051] The following are several ways for the container side to obtain the mini-program control information, including but not limited to the following:

[0052] In one way, Figure 2 An example of a way to obtain the mini-program control information can include:

[0053] In step 200, a control information request is sent to the mini-program server, and the control information request carries the mini-program identifier of the mini-program.

[0054] In this step, the mini-program configuration information can include the address of the mini-program server, such as the download address of the CDN. When the user starts the mini-program from the container side, the container can send a control information request to the mini-program server according to the mini-program server address therein to request to obtain the mini-program control information.

[0055] Since there may be mini-program control information of multiple mini-programs stored on the mini-program server side, when the container requests mini-program control information, it can carry the mini-program identification ID of the currently launched mini-program in the control information request. In this way, the mini-program server can obtain the mini-program control information corresponding to the mini-program identification according to the mini-program identification.

[0056] In step 202, receive the mini-program control information returned by the mini-program server.

[0057] In this step, after the container side obtains the mini-program control information returned by the mini-program server, it can cache the control information locally. For example, the mini-program control information may include multiple page addresses to be controlled in the currently launched mini-program, and access control page parameters corresponding to each page address respectively.

[0058] In step 204, update the mini-program control information regularly according to a predetermined update mechanism.

[0059] In this step, the mini-program control information cached on the container side can adopt a mechanism of regular update.

[0060] For example, a 5-minute timeout can be set. When the timeout occurs, the container can obtain the latest mini-program control information from the mini-program server again according to the CDN download address. Of course, this is just an example, and other measures can also be taken in actual implementation to ensure the validity of the mini-program control information on the container side.

[0061] For another example, it can also be set that when the mini-program control information cached locally on the container side has not been updated for a certain period of time, it is necessary to obtain the latest control information from the mini-program server again according to the CDN address.

[0062] In another way, in an emergency, such as when the inspection platform detects that the mini-program has very serious risk problems, the mini-program server can directly send the mini-program control information to the container side.

[0063] This method belongs to the active push of the mini-program server. It can be pushed to the container side when the container side is connected to the server, saving the process of storing the mini-program control information in the CDN and the container downloading from the CDN, and improving the efficiency of mini-program management and control. Using the mini-program control information cached locally in this way, it can also be updated regularly according to the mechanism mentioned above, and obtain the latest mini-program control information from the CDN regularly in the future.

[0064] The container uses the obtained mini-program control information for management and control

[0065] Figure 3The small program access control method provided by at least one embodiment of this specification. In this method, the container can use the obtained small program control information to perform access control on the small program. This embodiment still takes the access control at the page dimension as an example. As Figure 3 shown, this method may include the following processes:

[0066] In step 300, receive a page access request in the small program.

[0067] In this step, the page access request may be an access request for a certain small program page when the small program is first started, or a page jump request for a certain small program page during the intermediate process of the small program access, and this page jump request is used to request to jump to a certain small program page. A certain small program page to be accessed above can be called the target content object in the requested small program, and this target content object is a part of the content in the small program. Or it can also be that the page access request may be the situation of re - invoking a certain small program page after closing it.

[0068] In step 302, read the locally cached small program control information.

[0069] In this step, the container can read the small program control information obtained by the small program server and cached locally, and this small program control information is the information corresponding to the small program currently undergoing risk prevention and control.

[0070] For example, this small program control information may be a page list including multiple small program page addresses, and the page list includes the page addresses of multiple small program pages that need to be controlled.

[0071] In step 304, determine whether the small program control information includes the small program page address;

[0072] In this step, it can be determined whether the above - mentioned page list includes the page address to be accessed in the page access request in step 300.

[0073] If the judgment result is no, it means that according to the small program control information, the small program page of the page access request does not belong to the object to be controlled, and step 306 can be continued.

[0074] If the judgment result is yes, and the small program control information contains the page address of the small program page to be accessed, it means that the small program page belongs to the object to be controlled, and steps 308 to 312 are continued.

[0075] In step 306, continue with the normal business logic.

[0076] In this step, the container can obtain the page content of the mini-program page to be accessed based on the page access request and display the mini-program page normally.

[0077] In step 308, the access control page parameters are obtained from the mini-program control information, and the access control page parameters correspond to the mini-program page.

[0078] In this step, different access control pages correspond to different access control page parameters, and the container can obtain the access control page parameters corresponding to the mini-program page to be controlled from the mini-program control information.

[0079] In step 310, the control server obtains the access control page corresponding to the access control page parameters.

[0080] In this step, the container can obtain the page content of the access control page from the control server. The container can pass the access control page parameters to the control server, and the control server can return the corresponding access control page accordingly for display on the container side.

[0081] In step 312, the access control page is displayed.

[0082] Figures 4 to 6 Illustrated several access control pages that can be displayed:

[0083] For example, Figure 4 It can be an interception page that displays "The page is temporarily unavailable" for situations such as the page being unavailable or having a very slow opening speed.

[0084] For example, Figure 5 It can be an interception page that displays "About to access a third-party page. Do you want to continue?" for situations such as the page containing guiding scams, malicious advertisements, etc.

[0085] For example, Figure 6 It can be an interception page that displays "Access to this page has been stopped" for situations such as the page containing bottom-line issues, such as pornographic content, involving violence and terrorism, etc.

[0086] In the mini-program access control method of this embodiment, when a user accesses a certain target content object in the mini-program, it is determined whether the object needs to be controlled according to the mini-program control information, and access control is performed on the target content object according to the control information, realizing access control of specific content objects in the mini-program. The control granularity is finer, and it can meet more diverse and refined mini-program management and control; moreover, this method can achieve real-time management and control during the user's access to the mini-program, resulting in higher management and control efficiency.

[0087] In addition, the page access control method provided in any embodiment of this specification can be applied not only to the control of applets at a finer granularity such as the page dimension, but also to the control at the applet granularity.

[0088] For example, when the applet inspection platform detects that a certain applet has risks, it can determine to perform control at the APP ID granularity for this applet and generate "overall applet control information". This overall applet control information is intended to be distinguished from the fine-grained control information mentioned above in terms of name. In other embodiments, part of the content in the applet is controlled, corresponding to applet control information; here, the overall applet control information is used to represent the control information at the applet granularity. This overall applet control information is used to define the applets to be controlled. For example, it can be a list of applets including multiple applet IDs, used to define the applets to be controlled.

[0089] When the container side detects an applet, if it finds that a certain applet is in the above-mentioned applet list, it can determine that this applet needs to be controlled. This applet that needs to be controlled can be called the target applet. And perform control on the target applet according to the overall applet control information. The control method is not limited. For example, it can also display a certain interception page.

[0090] Through the applet access control method provided in at least one embodiment of this specification, control at the applet granularity is realized, enabling the container side to automatically perform risk control on the applet according to the overall applet control information, and improving the control efficiency at the applet granularity.

[0091] Figure 7 The structural schematic diagram of the applet access control device according to at least one embodiment of this specification is provided, as Figure 7 shown. This device may include: a request receiving module 71, an object detection module 72, and an object control module 73.

[0092] The request receiving module 71 is used to receive an object access request for a target content object in the applet, and the target content object is part of the content in the applet;

[0093] The object detection module 72 is used to determine, according to the applet control information, that the target content object belongs to the object to be controlled, and the applet control information is used to define the applet content objects to be controlled;

[0094] The object control module 73 is used to obtain the control information corresponding to the target content object from the applet control information and perform access control on the target content object according to the control information.

[0095] In an example, the target content object includes: an applet page, or a control object in the applet page.

[0096] In one example, the request receiving module 71 is specifically configured to receive a page jump request in a mini program, and the page jump request is used to request a jump to a mini program page that is the target content object.

[0097] The object detection module 72 is specifically configured to determine that the mini program page belongs to an object to be controlled when the page address of the mini program page is included in the mini program control information.

[0098] In one example, the object control module 73 is specifically configured to: obtain an access control page parameter from the mini program control information, where the access control page parameter corresponds to the mini program page; obtain an access control page corresponding to the access control page parameter from a control server; and display the access control page.

[0099] In one example, the object detection module 72 is further configured to, when receiving an access request for a target mini program, determine that the target mini program belongs to a mini program to be controlled according to the overall mini program control information, where the overall mini program control information is used to define the mini programs to be controlled.

[0100] The object control module 73 is further configured to obtain the mini program control information corresponding to the target mini program from the overall mini program control information, and perform access control on the target mini program according to the overall mini program control information.

[0101] The device or module illustrated in the above embodiments can be specifically implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, and the specific form of the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email receiving and sending device, a game console, a tablet computer, a wearable device, or a combination of any several of these devices.

[0102] For the convenience of description, the above device is described by dividing it into various modules according to functions. Of course, when implementing one or more embodiments of this specification, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0103] The execution order of each step in the flow shown in the above figure is not limited to the order in the flow chart. In addition, the description of each step can be implemented in the form of software, hardware, or a combination thereof. For example, those skilled in the art can implement it in the form of software code, which can be computer executable instructions capable of implementing the corresponding logical functions of the steps. When it is implemented in software, the executable instructions can be stored in a memory and executed by a processor in the device.

[0104] For example, corresponding to the above method, one or more embodiments of this specification simultaneously provide a mini-program access control device. The device may include a processor, a memory, and computer instructions stored on the memory and executable on the processor. By executing the instructions, the processor is configured to implement the steps of the mini-program access control method according to any embodiment of this specification.

[0105] It should also be noted that the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, commodity or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, commodity or device. Without further limitation, an element defined by the statement "comprising a..." does not exclude the presence of additional identical elements in the process, method, commodity or device comprising the element.

[0106] Those skilled in the art should understand that one or more embodiments of this specification may be provided as a method, a system or a computer program product. Therefore, one or more embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, one or more embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0107] One or more embodiments of this specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of this specification may also be practiced in a distributed computing environment where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media including storage devices.

[0108] The various embodiments in this specification are described in a progressive manner. For the parts that are the same or similar among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the embodiment of the data processing device, since it is basically similar to the method embodiment, the description is relatively simple, and reference can be made to the corresponding part of the method embodiment for the relevant content.

[0109] The above description has been directed to specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the acts or steps recited in the claims may be performed in a different order than in the embodiments and still achieve the desired result. Additionally, the processes depicted in the figures do not necessarily require the particular order shown or sequential order to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0110] The foregoing is only a preferred embodiment of one or more embodiments of this specification and is not intended to limit one or more embodiments of this specification. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of one or more embodiments of this specification shall be included within the scope of protection of one or more embodiments of this specification.

Claims

1. A method for accessing control of applets, the method comprising: Receiving an object access request for a target content object in an applet, where the target content object is part of the content in the applet; Determining, according to applet control information, that the target content object belongs to an object to be controlled, where the applet control information includes: object information of applet content objects to be controlled and corresponding control information; Obtaining, from the applet control information, control information corresponding to the target content object, and performing access control on the target content object according to the control information; When the target content object is an applet page, the performing access control on the target content object according to the control information includes: Obtaining, from the applet control information, access control page parameters corresponding to the applet page; Obtaining, by a control server, an access control page corresponding to the access control page parameters; Displaying the access control page; The displaying the access control page includes: When the applet page is unavailable or the access times out, displaying an access control page that prompts that the page cannot be accessed temporarily; When the applet page contains at least one of leading fraud information and malicious advertisement information, displaying an access control page that prompts whether to continue accessing a third-party page; When the applet page contains at least one of pornographic information, violent information, and terrorist information, displaying an access control page that prompts that the access to the applet page has been stopped.

2. The method according to claim 1, wherein the target content object includes: An applet page, or a control object in the applet page.

3. The method according to claim 2, when the target content object is an applet page, the receiving an object access request for a target content object in an applet includes: Receiving a page jump request in the applet, where the page jump request is used to request a jump to an applet page that is the target content object.

4. The method according to claim 2, when the target content object is an applet page, the determining, according to applet control information, that the target content object belongs to an object to be controlled includes: If the page address of the applet page is included in the applet control information, determining that the applet page belongs to an object to be controlled.

5. The method according to any one of claims 1 to 4, before the receiving an object access request for a target content object in an applet, further comprising: Obtaining the applet control information and caching the applet control information locally; Regularly updating the applet control information according to a predetermined update mechanism.

6. The method according to claim 5, the obtaining the applet control information and caching the applet control information locally includes: Sending a control information request to an applet server, where the control information request carries an applet identifier of the applet, so that the applet server obtains the applet control information corresponding to the applet according to the applet identifier; Receiving the applet control information returned by the applet server.

7. The method according to claim 6, wherein the sending a control information request to the applet server comprises: When the mini-program is started, a control information request is sent to the mini-program server according to the mini-program server address in the mini-program configuration information.

8. The method according to claim 5, wherein the obtaining the mini-program control information and caching the mini-program control information locally includes: Receiving the mini-program control information actively sent by the mini-program server.

9. The method according to claim 1, after receiving the object access request for the target content object in the mini-program, the method further includes: Determining, according to the mini-program control information, that the target content object does not belong to the object to be controlled; Based on the object access request, obtaining the target content object and displaying it normally.

10. The method according to claim 1, the method further includes: Receiving an access request for a target mini-program; Determining, according to the overall mini-program control information for defining the mini-programs to be controlled, that the target mini-program belongs to the mini-programs to be controlled; Obtaining the mini-program control information corresponding to the target mini-program from the overall mini-program control information, and performing access control on the target mini-program according to the overall mini-program control information.

11. A mini-program access control device, the device includes: A request receiving module, configured to receive an object access request for a target content object in the mini-program, where the target content object is a part of the content in the mini-program; An object detection module, configured to determine, according to the mini-program control information, that the target content object belongs to the object to be controlled, where the mini-program control information includes: object information of the mini-program content object to be controlled and corresponding control information; An object control module, configured to obtain the control information corresponding to the target content object from the mini-program control information, and perform access control on the target content object according to the control information; The object control module is specifically configured to: obtain access control page parameters from the mini-program control information, where the access control page parameters correspond to the mini-program page; obtain an access control page corresponding to the access control page parameters from a control server; display the access control page; The displaying the access control page includes: When the mini-program page is unavailable or the access times out, displaying an access control page that prompts that the page cannot be accessed temporarily; When the mini-program page includes at least one of guiding fraud information and malicious advertisement information, displaying an access control page that prompts whether to continue accessing a third-party page; When the mini-program page includes at least one of pornographic information, violent information, and terrorist information, displaying an access control page that prompts that the access to the mini-program page has been stopped.

12. The apparatus according to claim 11, wherein the target content object includes: The mini-program page, or a control object in the mini-program page.

13. The device according to claim 12, The request receiving module is specifically configured to receive a page jump request in the mini-program, where the page jump request is used to request to jump to the mini-program page that is the target content object. The object detection module is specifically configured to determine that the applet page belongs to the object to be controlled when the page address of the applet page is included in the applet control information.

14. The apparatus according to claim 11, The object detection module is further configured to, when receiving an access request for a target applet, determine that the target applet belongs to the applet to be controlled according to the overall applet control information, where the overall applet control information is used to define the applets to be controlled; The object control module is further configured to obtain the applet control information corresponding to the target applet from the overall applet control information, and perform access control on the target applet according to the overall applet control information.

15. An applet access control device, the device includes a memory, a processor, and computer instructions stored on the memory and executable on the processor, and when the processor executes the instructions, the applet access control method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Access filtering device and access filtering method

    CN102438001A

  • Fine-grained access control method for hybrid Android applications

    CN106850545A

  • Webpage data masking method, device and mobile terminal

    CN108881608A