Browser control method and device, equipment and medium
By implementing policy configuration management in the browser, the customized needs of enterprise users in browser control are solved, and the unified control of shortcut key functions and default search engine functions are achieved, reducing operation and maintenance costs and improving office efficiency.
Patent Information
- Application Number
- CN202311757552.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-19
- Publication Date
- 2025-06-20
AI Technical Summary
The existing technology is difficult to effectively solve the customized needs of enterprise users in browser control, resulting in repeated development and high operation and maintenance costs.
By implementing policy configuration management in the browser, the management platform allows the unified sending of policy configuration information to control the use of shortcut key functions and default search engine functions, without the need for manual configuration by users.
It reduces the cost of enterprise users to configure default search engines, unified control of the use of shortcut key functions, reduces enterprise operation and maintenance costs, and improves office efficiency.
Smart Images

Figure CN120179324A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular, to a browser control method, device, equipment, and medium. Background Art
[0002] With the personalization of enterprise users and the diversity of customization requirements, there will inevitably be customization requirements for browser control. Since different enterprises have different usage requirements and management requirements, there are also different management methods for the use of browsers. For example, some enterprises may hope that employees use the same default search engine, and some enterprises may hope that employees cannot use shortcut keys on specific pages during the use of browsers. All of these require repeated development and customization for browsers, which will obviously waste a lot of manpower and material resources, increase the operation and maintenance costs of enterprises, and affect the office efficiency. Summary of the Invention
[0003] Embodiments of this application provide a browser control method, device, equipment, and medium. Without manual configuration by the user, the browser can perform corresponding control on target functions such as shortcut key functions and / or default search engine functions during operation according to the target control policies corresponding to the target functions in the policy configuration information uniformly sent by the management platform, reducing the cost for enterprise users to configure the default search engine and / or effectively uniformly controlling the use of shortcut key functions, facilitating operation and maintenance management by enterprise administrators, reducing enterprise operation and maintenance costs, and improving office efficiency. The above technical solutions are as follows:
[0004] In a first aspect, embodiments of this application provide a browser control method, and the method includes:
[0005] When receiving a browser startup instruction, obtain policy configuration information related to the browser from a preset management platform according to the browser startup instruction;
[0006] Determine the target control policy corresponding to the target function of the browser according to the policy configuration information; the target function includes a shortcut key function and / or a default search engine function;
[0007] Control the target function according to the target control policy.
[0008] In a possible implementation manner, the target function includes a shortcut key function, and the target control policy includes the global available state of the shortcut key function;
[0009] The controlling the target function according to the target control policy includes:
[0010] When the global available state is a disabled state, control the browser to prohibit starting the shortcut key function.
[0011] In a possible implementation, the above-mentioned target function includes a shortcut key function, and the above-mentioned target control policy includes a specific available state of the above-mentioned shortcut key function;
[0012] Controlling the above-mentioned target function according to the above-mentioned target control policy includes:
[0013] In the case where the above-mentioned specific available state is a disabled state, controlling the above-mentioned browser to prohibit the activation of the above-mentioned shortcut key function in a specific website and / or specific web page corresponding to the above-mentioned specific available state, and / or controlling the above-mentioned browser to prohibit the activation of the shortcut key function of a specific shortcut key corresponding to the above-mentioned specific available state.
[0014] In a possible implementation, the above-mentioned target function includes a default search engine function, and the above-mentioned target control policy includes target default search engine information corresponding to the above-mentioned default search engine function;
[0015] Controlling the above-mentioned target function according to the above-mentioned target control policy includes:
[0016] Configuring a corresponding target default search engine for the search component of the above-mentioned browser according to the above-mentioned target default search engine information.
[0017] In a possible implementation, the above-mentioned target default search engine information includes target meta-information corresponding to each of multiple target default search engines;
[0018] After configuring a corresponding target default search engine for the search component of the above-mentioned browser according to the above-mentioned target default search engine information, the method further includes:
[0019] When a trigger instruction for the above-mentioned search component is received, pulling the above-mentioned multiple target default search engines configured for the above-mentioned search component according to the above-mentioned trigger instruction;
[0020] Controlling the above-mentioned search component to perform a search based on a specified target default search engine; the specified target default search engine is a target default search engine selected and used by the user from the above-mentioned multiple target default search engines.
[0021] In a possible implementation, after obtaining policy configuration information related to the browser from a preset management platform according to the above-mentioned browser startup instruction, the method further includes:
[0022] Switching the configuration modification state corresponding to the above-mentioned target function from a modifiable state to a non-modifiable state.
[0023] In a possible implementation, after switching the configuration modification state corresponding to the above-mentioned target function from a modifiable state to a non-modifiable state, the method further includes:
[0024] When receiving a configuration modification operation for the above-mentioned target function, send a corresponding configuration modification request to the above-mentioned preset management platform based on the above-mentioned configuration modification operation, so that the above-mentioned preset management platform determines corresponding configuration modification response information based on the above-mentioned configuration modification request;
[0025] Update the above-mentioned target control policy according to the above-mentioned configuration modification response information returned by the above-mentioned preset management platform.
[0026] In a second aspect, an embodiment of the present application provides a browser control device, and the above-mentioned browser control device includes:
[0027] An acquisition module, configured to obtain policy configuration information related to the browser from a preset management platform according to the above-mentioned browser startup instruction when receiving the browser startup instruction;
[0028] A determination module, configured to determine a target control policy corresponding to the target function of the above-mentioned browser according to the above-mentioned policy configuration information; the above-mentioned target function includes a shortcut key function and / or a default search engine function;
[0029] A first control module, configured to control the above-mentioned target function according to the above-mentioned target control policy.
[0030] In a possible implementation manner, the above-mentioned target function includes a shortcut key function, and the above-mentioned target control policy includes the global available state of the above-mentioned shortcut key function;
[0031] The above-mentioned first control module is specifically configured to:
[0032] When the above-mentioned global available state is a disabled state, control the above-mentioned browser to prohibit starting the above-mentioned shortcut key function.
[0033] In a possible implementation manner, the above-mentioned target function includes a shortcut key function, and the above-mentioned target control policy includes the specific available state of the above-mentioned shortcut key function;
[0034] The above-mentioned first control module is specifically configured to:
[0035] When the above-mentioned specific available state is a disabled state, control the above-mentioned browser to prohibit starting the above-mentioned shortcut key function in the specific website and / or specific web page corresponding to the above-mentioned specific available state, and / or control the above-mentioned browser to prohibit starting the shortcut key function of the specific shortcut key corresponding to the above-mentioned specific available state.
[0036] In a possible implementation manner, the above-mentioned target function includes a default search engine function, and the above-mentioned target control policy includes target default search engine information corresponding to the above-mentioned default search engine function;
[0037] The above-mentioned first control module is specifically configured to:
[0038] Configure the corresponding target default search engine for the search component of the browser according to the above target default search engine information.
[0039] In a possible implementation, the above target default search engine information includes target meta-information corresponding to each of multiple target default search engines;
[0040] The above browser control device further includes:
[0041] An engine pulling module, configured to pull the multiple target default search engines configured corresponding to the search component according to the trigger instruction when receiving a trigger instruction for the search component;
[0042] A second control module, configured to control the search component to perform a search based on a specified target default search engine; the specified target default search engine is a target default search engine selected and used by a user from the multiple target default search engines.
[0043] In a possible implementation, the above browser control device further includes:
[0044] A status modification module, configured to switch the configuration modification status corresponding to the above target function from a modifiable status to a non-modifiable status.
[0045] In a possible implementation, the above browser control device further includes:
[0046] A sending module, configured to, when receiving a configuration modification operation for the above target function, send a corresponding configuration modification request to the above preset management platform based on the configuration modification operation, so that the above preset management platform determines corresponding configuration modification response information based on the configuration modification request;
[0047] A policy update module, configured to update the above target control policy according to the configuration modification response information returned by the above preset management platform.
[0048] In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory;
[0049] The above processor is connected to the above memory;
[0050] The above memory is used to store executable program code;
[0051] The above processor runs a program corresponding to the executable program code by reading the executable program code stored in the above memory, so as to execute the method provided in the first aspect or any possible implementation manner of the first aspect of the embodiments of the present specification.
[0052] Fourthly, an embodiment of this specification provides a computer storage medium. The computer storage medium stores multiple instructions, and the instructions are adapted to be loaded and executed by a processor to perform the method provided by the first aspect or any possible implementation manner of the first aspect of the embodiments of this specification.
[0053] In one or more embodiments of this application, when a browser startup instruction is received, obtain policy configuration information related to the browser from a preset management platform according to the browser startup instruction; determine a target control policy corresponding to the target function of the browser according to the policy configuration information, where the target function includes a shortcut key function and / or a default search engine function; control the target function according to the target control policy, so that there is no need for users to manually configure, nor is there a need for repeated development and customization for the browser. Instead, the control policy can be configured and uniformly distributed with the help of the management platform. All browsers that receive this policy configuration information will perform corresponding control on the shortcut key function and / or the default search engine function during operation according to the corresponding target control policy, reducing the cost for enterprise users to configure the default search engine and / or effectively uniformly controlling the use of the shortcut key function, facilitating operation and maintenance management by enterprise administrators, reducing enterprise operation and maintenance costs, and improving office efficiency.
[0054] The above description is only an overview of the technical solutions of this application. In order to be able to understand the technical means of this application more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features, and advantages of the present invention more obvious and understandable, the specific embodiments of the present invention are specifically exemplified below. Brief Description of the Drawings
[0055] In order to more clearly illustrate the technical solutions in the embodiments of this application, the following will briefly introduce the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of this application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0056] Figure 1 Schematic diagram of the architecture of a browser control system provided for an exemplary embodiment of this application;
[0057] Figure 2 Schematic diagram of the flow of a browser control method provided for an exemplary embodiment of this application;
[0058] Figure 3 Schematic diagram of the implementation process of browser shortcut key control provided for an exemplary embodiment of this application;
[0059] Figure 4 Schematic diagram of the implementation process of browser default search engine control provided for an exemplary embodiment of this application;
[0060] Figure 5 A schematic diagram of the effect of controlling the default search engine of a browser provided by an exemplary embodiment of the present application;
[0061] Figure 6 A schematic flowchart of another browser control method provided by an exemplary embodiment of the present application;
[0062] Figure 7 A schematic structural diagram of a browser control device provided by an exemplary embodiment of the present application;
[0063] Figure 8 A schematic structural diagram of an electronic device provided by an exemplary embodiment of the present application. Detailed implementation manners
[0064] To make the features and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present application.
[0065] The terms "first", "second", "third", etc. in the specification and claims of the present application and the above accompanying drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products or devices.
[0066] Next, please refer to Figure 1 , which is a schematic architecture diagram of a browser control system provided by an exemplary embodiment of this specification. As Figure 1 shown, the browser control system may include: a terminal 110 and a server 120. Among them:
[0067] The terminal 110 can interact with the server 120 via a network to receive messages from or send messages to the server 120. The terminal 110 can be either hardware or software. When the terminal 120 is hardware, it can be various electronic devices (computer devices), including but not limited to smart watches, smart phones, tablet computers, laptop portable computers, and desktop computers, etc. When the terminal 110 is software, it can be installed in the above-listed electronic devices, and it can be implemented as multiple software or software modules (e.g., for providing distributed services), or it can be implemented as a single software or software module, which is not specifically limited herein.
[0068] In an embodiment of this specification, a browser or a browser control device is installed on the terminal 110. When the terminal 110 receives a browser start instruction, it can obtain policy configuration information related to the browser from the server 120 where the preset management platform is located according to the browser start instruction; determine a target control policy corresponding to the target function of the browser according to the policy configuration information, where the target function includes a shortcut key function and / or a default search engine function; and control the target function according to the target control policy.
[0069] The server 120 can be a server corresponding to the preset management platform and can provide various browser control management services. It should be noted that the server 120 can be either hardware or software. When the server 120 is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or it can be implemented as a single server. When the server 120 is software, it can be implemented as multiple software or software modules (e.g., for providing distributed services), or it can be implemented as a single software or software module, which is not specifically limited herein. The server 120 can be, but is not limited to, a hardware server, a virtual server, a cloud server, etc.
[0070] Specifically, an administrator can manage the preset management platform in the server 120 and configure control policies related to the browser in the preset management platform. After receiving a browser policy configuration request sent by the terminal 110, the server 120 can also respond to the browser policy configuration request and send the corresponding policy configuration information related to the browser to the terminal 110.
[0071] It should be noted that the execution subject of the embodiments of this application can be a control device of the browser, such as a computer device with data processing capabilities, or other devices with the same or similar functions installed with a browser, such as the above terminal 110, which is not limited in the embodiments of this application.
[0072] The network can be a medium that provides a communication link between the terminal 110 and the server 120, or it can be the Internet that includes network devices and transmission media, and is not limited thereto. The transmission medium can be a wired link, such as but not limited to, coaxial cable, optical fiber, and digital subscriber line (DSL), etc., or a wireless link, such as but not limited to, wireless fidelity (WIFI), Hypertext Transfer Protocol (HTTP), Bluetooth, and mobile device network, etc.
[0073] Understandably, Figure 1 The number of the terminal 110 and the server 120 in the shown browser control system is only for example. In a specific implementation, the browser control system can include any number of the terminal 110 and the server 120. For example but not limited to, the above terminal 110 can be a terminal cluster composed of multiple terminals 110. For example, the enterprise management personnel can realize the unified control of the browsers installed in multiple employee terminals 110 of the enterprise through the server 120 corresponding to the management platform.
[0074] Next, in combination with Figure 1 , taking a computer device installed with a browser to execute browser control as an example, the browser control method provided by an exemplary embodiment of the present application will be introduced. Specifically, please refer to Figure 2 , which exemplarily shows a flowchart of a browser control method provided by an embodiment of the present application. As Figure 2 shown, the browser control method includes the following steps:
[0075] S201, when receiving a browser start instruction, obtain policy configuration information related to the browser from a preset management platform according to the browser start instruction.
[0076] Specifically, in order to facilitate the operation and maintenance management of enterprise administrators, a preset management platform can be set up. The administrator manages the preset management platform. The administrator can configure control policies related to the browser on the preset management platform and issue policy configuration information related to the browser. When a user needs to use the browser on the computer device, the user can open the browser on the computer device to trigger a browser start instruction. When the computer device detects the browser start instruction, it can communicate with the preset management platform and pull the corresponding policy configuration information from the preset management platform. For example, send a policy configuration request carrying information such as the identification information, version information, and user identification information (such as account identification, identity identification, etc.) corresponding to the browser to the preset management platform, and receive the policy configuration information returned by the preset management platform corresponding to the query according to the above policy configuration request.
[0077] Understandably, if the identification information and / or version information of the browser is different, and / or the user identification information (such as account identification, identity identification, etc.) logged in to the browser is different, the policy configuration information obtained from the preset management platform according to the startup instruction of the browser is different. That is to say, the administrator can, but is not limited to, configure different control policies for different browsers, different versions of browsers, or browsers used by different users on the preset management platform.
[0078] S202. Determine the target control policy corresponding to the target function of the browser according to the policy configuration information, where the target function includes the shortcut key function and / or the default search engine function.
[0079] It should be understood that the embodiments of the present application can control the shortcut key function and / or the default search engine function of the browser. Taking the browser as a carrier, it runs in the browser to help enterprise users perform personalized customization.
[0080] It should be noted that since the browser may include multiple function modules such as a download management function, a multimedia playback function, and a privacy and security function in addition to the shortcut key function and the default search engine function, in addition to being able to control the shortcut key function and the default search engine function, other function modules can also be controlled. Therefore, the policy configuration information related to the browser obtained from the preset management platform may include control policies for multiple functions in the browser. In order to control the shortcut key function and / or the default search engine function more conveniently and efficiently, the target control policy corresponding to the shortcut key function and / or the default search engine function of the browser can be selected from the policy configuration information related to the browser first.
[0081] It can be understood that the shortcut key function is a function that can quickly complete specific operations through certain specific keys, key sequences, or key combinations (shortcut keys). In the browser, using shortcut keys can replace the mouse to complete some operations, such as opening, closing, and navigating menus, desktops, dialog boxes, and web pages. A search engine is a retrieval technology that retrieves specified information from the Internet according to user needs and a certain algorithm and feedbacks it to the user using a specific strategy. Some popular search engines, such as Baidu, can use various technologies to provide users with fast and highly relevant information services. The default search engine function of the browser means that when the user searches for information in the browser, the browser will use the default search engine to help the user find information.
[0082] Optionally, the policy configuration information related to the browser may include control policies for multiple functions in the browser. The object information corresponding to these control policies can be matched with the identity information of the target function, and the control policy corresponding to the successfully matched object information is used as the target control policy corresponding to the target function of the browser.
[0083] S203, Control the target function according to the target control policy.
[0084] Specifically, after determining the target control policy corresponding to the target function (shortcut key function and / or default search engine function) of the browser, during the process of the user using the browser, the use of the browser shortcut keys can be controlled according to the target control policy corresponding to the shortcut key function, and / or, the browser can be controlled to use the default search engine for searching according to the target control policy corresponding to the default search engine function.
[0085] In the embodiment of the present application, when a browser startup instruction is received, obtain the policy configuration information related to the browser from a preset management platform according to the browser startup instruction; determine the target control policy corresponding to the target function of the browser according to the policy configuration information, where the target functions include the shortcut key function and / or the default search engine function; control the target function according to the target control policy, so that there is no need for the user to manually configure, nor for repeated development and customization for the browser. Instead, the control policy can be configured and uniformly distributed by means of the management platform. All browsers that receive this policy configuration information will perform corresponding control on the shortcut key function and / or the default search engine function during operation according to the corresponding target control policy, reducing the cost for enterprise users to configure the default search engine and / or effectively and uniformly controlling the use of the shortcut key function, facilitating the operation and maintenance management of enterprise administrators, reducing the enterprise operation and maintenance cost, and improving the office efficiency.
[0086] Optionally, the above target function includes the shortcut key function, the above target control policy includes the global availability status of the shortcut key function, and the global availability status is used to represent the availability status of the shortcut key function in the entire browser. The above S203, controlling the target function according to the target control policy may include: when the global availability status is the disabled state, control the browser to prohibit the startup of the shortcut key function, that is, prohibit the user from using the shortcut keys in the browser, preventing problems such as the business being closed by the system due to the user's incorrect operation, and facilitating the operation and maintenance management of enterprise administrators.
[0087] Exemplarily, as Figure 3 shown, after the user starts the browser, the browser can first determine whether the corresponding shortcut key configuration is obtained from a pre-set management platform. If the global availability status of the configured shortcut key function is obtained and the global availability status is the disabled state, the browser can be controlled to disable the shortcut key function, that is, the shortcut key function of the browser is closed and the user cannot use the shortcut keys in the browser; if the global availability status of the configured shortcut key function is obtained and the global availability status is the enabled state, the browser can be controlled to enable the shortcut key function, that is, the shortcut key function of the browser is turned on and the user can use the shortcut keys in the browser.
[0088] Optionally, the above-mentioned target function includes a shortcut key function, and the above-mentioned target control policy includes specific available states of the shortcut key function. The specific available states are used to characterize the availability state of the shortcut key function in a specific website or a specific web page of the browser, or the availability state of a specific shortcut key. In step S203, controlling the target function according to the target control policy may include: when the specific available state is a disabled state, controlling the browser to prohibit the activation of the shortcut key function in the specific website and / or the specific web page corresponding to the specific available state, that is, prohibiting the user from using the shortcut key in the specific website and / or the specific web page of the browser, and / or, controlling the browser to prohibit the activation of the shortcut key function of the specific shortcut key corresponding to the specific available state, that is, prohibiting the user from using the specific shortcut key in the browser, so as to effectively control operations such as the specific shortcut key triggering the business system logic or closing the browser tab, preventing problems such as the business being shut down due to the user's misoperation, and facilitating the operation and maintenance management of enterprise administrators.
[0089] Exemplarily, as Figure 3 shown, after the user starts the browser, the browser can first determine whether it has obtained the corresponding shortcut key configuration from a pre-set management platform. If it has obtained the specific available state of the configured shortcut key function and the specific available state is a disabled state, it can control the browser to disable the shortcut key function in the corresponding specific website and / or specific web page, that is, the shortcut key function of the browser corresponding to the specific website and / or specific web page is turned off, and the user cannot use the shortcut key in the specific website and / or specific web page of the browser; if it has obtained the specific available state of the configured shortcut key function and the specific available state is an enabled state, it can control the browser to activate the shortcut key function in the corresponding specific website and / or specific web page, that is, the shortcut key function of the browser corresponding to the specific website and / or specific web page is turned on, and the user can use the shortcut key in the specific website and / or specific web page of the browser. If the corresponding shortcut key configuration is not obtained from the pre-set management platform, it can be determined that the browser has no disabled shortcut key configuration, and the browser is controlled not to disable the shortcut key by default.
[0090] Optionally, the above-mentioned target function includes the default search engine function, the above-mentioned target control policy includes the target default search engine information corresponding to the default search engine function, and the above-mentioned target default search engine information may but is not limited to include information such as the URL and search bar of the target default search engine configured by the administrator for the browser on the preset management platform. In step S203, controlling the target function according to the target control policy may include: configuring the corresponding target default search engine for the search component of the browser according to the target default search engine information, that is, modifying the default search engine used by the browser search component to the target default search engine indicated in the target default search engine information, thereby reducing the complex learning cost of the enterprise in configuring the default search engine during the use of the browser, realizing a quick response to the user's customized default search engine, and facilitating the simple and effective unified management of the default search engine by the enterprise. The above-mentioned search component may but is not limited to include the address bar, search bar, right-click menu, selected text search, etc.
[0091] Exemplarily, as Figure 4 shown, after the user starts the browser, the browser can first determine whether it has obtained the corresponding default search engine configuration from the pre-set management platform. If the default search engine configuration is obtained, it can further parse out the target default search engine information corresponding to the default search engine function and configure the corresponding target default search engine for the search component of the browser, that is, the user can use the target default search engine issued by the management platform in the search component for searching. If the corresponding default search engine configuration is not obtained from the pre-set management platform, it can be determined that the browser has no default search engine configuration, and the search component of the browser is controlled to use the initial search engine configuration of the browser, that is, the user can use the initial search engine of the browser in the search component for searching.
[0092] It can be understood that in the embodiments of the present application, the corresponding target default search engine can be directly configured for all search components of the browser according to the default search engine configuration information issued by the management platform, or only for specific search components of the browser according to management requirements and the default search engine configuration information issued by the management platform, or different target default search engines can be configured for different search components in the browser, etc. The embodiments of the present application do not limit this.
[0093] Further, the above-mentioned target default search engine information includes target meta-information corresponding to each of the multiple target default search engines. The above-mentioned target meta-information provides other information about the source or resources of the target default search engine. For example, but not limited to, it includes the website address, search bar, etc. of the target default search engine, which can help users understand how to use the target default search engine to obtain the required information. After configuring the corresponding target default search engine for the search component of the browser according to the target default search engine information, when receiving a trigger instruction for the search component, that is, when the user needs to use the search component to perform a search, the multiple target default search engines configured corresponding to the search component can be pulled according to the trigger instruction, and then the search component can be controlled to perform a search based on the specified target default search engine. The above-mentioned specified target default search engine is the target default search engine selected by the user from the multiple target default search engines. Thus, not only can the unified configuration of multiple target default search engines be achieved through the management platform, but also when the user needs to use the browser to perform a search, the user can select a specified target default search engine that they want to use from the multiple target default search engines, which not only facilitates the enterprise to uniformly manage the default search engine, but also improves the selectivity and flexibility of browser control to a certain extent, and improves the user experience.
[0094] Exemplarily, as Figure 5 shown, when the administrator configures three target default search engines, namely target default search engine A, target default search engine B, and target default search engine C, for the browser through the management platform, the user can select the text 510 to be searched on the browser page and click the right mouse button to trigger the word selection search component of the browser. Then, the browser can receive the trigger instruction for the word selection search component and pull the three target default search engines 520 (target default search engine A, target default search engine B, and target default search engine C) configured corresponding to the search component according to the trigger instruction, and then the user can select a specified target default search engine from the above three target default search engines 520 to perform a search.
[0095] Next, please refer to Figure 6 , which exemplarily shows a flowchart of another browser control method provided by an embodiment of the present application. As Figure 6 shown, this browser control method includes the following steps:
[0096] S601, when receiving a browser startup instruction, obtain policy configuration information related to the browser from a preset management platform according to the browser startup instruction.
[0097] Specifically, S601 is the same as S201, and will not be elaborated here.
[0098] S602. Determine the target control policy corresponding to the target function of the browser according to the policy configuration information, where the target function includes the shortcut key function and / or the default search engine function.
[0099] Specifically, S602 is the same as S202 and will not be elaborated here.
[0100] S603. Control the target function according to the target control policy.
[0101] Specifically, S603 is the same as S203 and will not be elaborated here.
[0102] S604. Switch the configuration modification status corresponding to the target function from the modifiable status to the non-modifiable status.
[0103] Specifically, after the browser obtains the policy configuration information related to the browser from the preset management platform according to the browser startup instruction, it can further switch the configuration modification status corresponding to the target function from the modifiable status to the non-modifiable status. That is, after the browser synchronizes the policy configuration information issued by the management platform, the user using the browser cannot modify the configuration of the target function without manual operation, thereby enhancing the security and controllability of the enterprise's unified configuration management and reducing the enterprise's operation and maintenance costs.
[0104] S605. When receiving a configuration modification operation for the target function, send a corresponding configuration modification request to the preset management platform based on the configuration modification operation, so that the preset management platform determines the corresponding configuration modification response information based on the configuration modification request.
[0105] Specifically, after the browser obtains the policy configuration information related to the browser from the preset management platform according to the browser startup instruction, if the user wants to modify the configuration (target control policy) of the target function, the browser can also send a corresponding configuration modification request to the preset management platform based on the configuration modification operation input by the user. The above configuration modification request can carry, but is not limited to, information such as the user's identification and the policy configuration modification information that the user wants to modify, so that the preset management platform receives the configuration modification response information feedback by the administrator after reviewing and confirming according to the information carried in the above configuration modification request, and returns it to the browser.
[0106] S606. Update the target control policy according to the configuration modification response information returned by the preset management platform.
[0107] Specifically, the above configuration modification response information may, but is not limited to, include whether the configuration modification request is approved or not. If the configuration modification request is approved, the target control policy of the target function is updated according to the policy configuration modification information of the approved target function in the configuration modification response information returned by the preset management platform, so as to ensure that the enterprise can achieve unified control of the target function of the enterprise employees' browsers through the policy configuration information issued by the management platform, and at the same time, further achieve personalized and differentiated browser control for enterprise employees, and further improve the flexibility and security of browser control.
[0108] Next, please refer to Figure 7 , which is a schematic structural diagram of a browser control device provided by an exemplary embodiment of the present application. As Figure 7 shown, the browser control device 700 includes:
[0109] An obtaining module 710, configured to obtain policy configuration information related to the browser from a preset management platform according to the browser start instruction when receiving the browser start instruction;
[0110] A determining module 720, configured to determine a target control policy corresponding to the target function of the browser according to the policy configuration information; the target function includes a shortcut key function and / or a default search engine function;
[0111] A first control module 730, configured to control the target function according to the target control policy.
[0112] In a possible implementation manner, the target function includes a shortcut key function, and the target control policy includes the global available state of the shortcut key function;
[0113] The first control module 730 is specifically configured to:
[0114] When the global available state is a disabled state, control the browser to prohibit starting the shortcut key function.
[0115] In a possible implementation manner, the target function includes a shortcut key function, and the target control policy includes the specific available state of the shortcut key function;
[0116] The first control module 730 is specifically configured to:
[0117] When the specific available state is a disabled state, control the browser to prohibit starting the shortcut key function in a specific website and / or a specific web page corresponding to the specific available state, and / or control the browser to prohibit starting the shortcut key function of a specific shortcut key corresponding to the specific available state.
[0118] In a possible implementation, the above-mentioned target function includes a default search engine function, and the above-mentioned target control policy includes target default search engine information corresponding to the above-mentioned default search engine function;
[0119] Specifically, the first control module 730 is configured to:
[0120] Configure a corresponding target default search engine for the search component of the above-mentioned browser according to the above-mentioned target default search engine information.
[0121] In a possible implementation, the above-mentioned target default search engine information includes target meta-information corresponding to each of multiple target default search engines;
[0122] The above-mentioned browser control device 700 further includes:
[0123] An engine pulling module, configured to pull the above-mentioned multiple target default search engines configured corresponding to the above-mentioned search component according to the above-mentioned trigger instruction when receiving a trigger instruction for the above-mentioned search component;
[0124] A second control module, configured to control the above-mentioned search component to perform a search based on a specified target default search engine; the above-mentioned specified target default search engine is a target default search engine selected and used by a user from the above-mentioned multiple target default search engines.
[0125] In a possible implementation, the above-mentioned browser control device 700 further includes:
[0126] A status modification module, configured to switch the configuration modification status corresponding to the above-mentioned target function from a modifiable status to a non-modifiable status.
[0127] In a possible implementation, the above-mentioned browser control device 700 further includes:
[0128] A sending module, configured to, when receiving a configuration modification operation for the above-mentioned target function, send a corresponding configuration modification request to the above-mentioned preset management platform based on the above-mentioned configuration modification operation, so that the above-mentioned preset management platform determines corresponding configuration modification response information based on the above-mentioned configuration modification request;
[0129] A policy update module, configured to update the above-mentioned target control policy according to the above-mentioned configuration modification response information returned by the above-mentioned preset management platform.
[0130] The division of each module in the above browser control device is only for illustrative purposes. In other embodiments, the browser control device may be divided into different modules as needed to complete all or part of the functions of the above browser control device. In the embodiments of this specification, the implementation of each module in the browser control device may be in the form of a computer program. This computer program can run on a terminal, a server, a browser, or a functional module of a browser. The program module constituted by this computer program can be stored in the memory of a terminal, a server, a browser, or a functional module of a browser. When this computer program is executed by a processor, all or part of the steps of the browser control method described in the embodiments of this specification are implemented.
[0131] Next, please refer to Figure 8 , which is a schematic structural diagram of an electronic device provided by an exemplary embodiment of this specification. As Figure 8 shown, the electronic device 800 may include: at least one processor 810, at least one communication bus 820, a user interface 830, at least one network interface 840, and a memory 850.
[0132] Among them, the communication bus 820 can be used to realize the connection and communication of the above-mentioned various components.
[0133] Among them, the user interface 830 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 830 may further include a standard wired interface and a wireless interface.
[0134] Among them, the network interface 840 may optionally include a Bluetooth module, a Near Field Communication (NFC) module, a Wireless Fidelity (Wi-Fi) module, etc.
[0135] Among them, the processor 810 may include one or more processing cores. The processor 810 connects various parts within the entire electronic device 800 through various interfaces and lines. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 850, and by calling the data stored in the memory 850, it executes various functions of the routing electronic device 800 and processes data. Optionally, the processor 810 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 810 may integrate a combination of one or several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for the rendering and drawing of the content to be displayed on the display screen; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 810 and may be implemented separately by a single chip.
[0136] Among them, the memory 850 may include random access memory (RAM) and may also include read-only memory (ROM). Optionally, the memory 850 includes a non-transitory computer-readable medium. The memory 850 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 850 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing the operating system, instructions for at least one function (such as a status modification function, a policy update function, a browser control function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store the data involved in the above-mentioned various method embodiments. The memory 850 may optionally also be at least one storage device located far from the aforementioned processor 810. As Figure 8 shown, the memory 850, as a computer storage medium, may include an operating system, a network communication module, a user interface module, and program instructions.
[0137] In some possible embodiments, the electronic device 800 may be the aforementioned Figure 7 shown browser control device 700. The processor 810 may be used to call the program instructions stored in the memory 850 and specifically perform the following operations:
[0138] When receiving a browser startup instruction, obtain policy configuration information related to the browser from a preset management platform according to the browser startup instruction; determine a target control policy corresponding to a target function of the browser according to the policy configuration information; the target function includes a shortcut key function and / or a default search engine function; control the target function according to the target control policy.
[0139] In some possible embodiments, the target function includes a shortcut key function, and the target control policy includes the global available status of the shortcut key function;
[0140] When the processor 810 executes controlling the target function according to the target control policy, it is specifically used to execute:
[0141] In the case where the global available status is a disabled status, control the browser to prohibit starting the shortcut key function.
[0142] In some possible embodiments, the target function includes a shortcut key function, and the target control policy includes the specific available status of the shortcut key function;
[0143] When the processor 810 executes controlling the target function according to the target control policy, it is specifically used to execute:
[0144] In the case where the specific available status is a disabled status, control the browser to prohibit starting the shortcut key function in a specific website and / or a specific web page corresponding to the specific available status, and / or control the browser to prohibit starting the shortcut key function of a specific shortcut key corresponding to the specific available status.
[0145] In some possible embodiments, the target function includes a default search engine function, and the target control policy includes target default search engine information corresponding to the default search engine function;
[0146] When the processor 810 executes controlling the target function according to the target control policy, it is specifically used to execute:
[0147] Configure a corresponding target default search engine for the search component of the browser according to the target default search engine information.
[0148] In some possible embodiments, the target default search engine information includes target meta-information corresponding to each of a plurality of target default search engines;
[0149] After the processor 810 executes configuring a corresponding target default search engine for the search component of the browser according to the target default search engine information, it is further used to execute:
[0150] When receiving a trigger instruction for the above search component, pull the above-mentioned multiple target default search engines configured corresponding to the above search component according to the above trigger instruction; control the above search component to perform a search based on a specified target default search engine; the above specified target default search engine is the target default search engine selected and used by the user from the above multiple target default search engines.
[0151] In some possible embodiments, after the above processor 810 executes the above operation of obtaining policy configuration information related to the browser from the preset management platform according to the above browser startup instruction, it is further configured to execute:
[0152] Switch the configuration modification status corresponding to the above target function from a modifiable status to a non-modifiable status.
[0153] In some possible embodiments, after the above processor 810 executes the above operation of switching the configuration modification status corresponding to the above target function from a modifiable status to a non-modifiable status, it is further configured to execute:
[0154] When receiving a configuration modification operation for the above target function, send a corresponding configuration modification request to the above preset management platform based on the above configuration modification operation, so that the above preset management platform determines corresponding configuration modification response information based on the above configuration modification request; update the above target control policy according to the above configuration modification response information returned by the above preset management platform.
[0155] The embodiments of the present application further provide a computer storage medium. Instructions are stored in the computer storage medium. When they run on a computer or a processor, the computer or the processor is enabled to execute one or more steps in any of the above methods. If each component module of the above browser control device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in the above storage medium.
[0156] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The above computer program product includes one or more computer instructions. When the above computer program instructions are loaded and executed on a computer, the processes or functions described above in the embodiments of the present application are generated in whole or in part. The above computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The above computer instructions can be stored in a computer-readable storage medium or transmitted through the above computer-readable storage medium. The above computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired manner (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wirelessly (such as infrared, wireless, microwave, etc.). The above computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more integrated available media. The above available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.
[0157] Those of ordinary skill in the art can understand that all or part of the processes in the above embodiments of the method can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above embodiments of the various methods. The foregoing storage media include: ROM, RAM, magnetic disks, or optical disks and other media that can store program codes. Without conflict, the technical features in this embodiment and the implementation solutions can be combined arbitrarily.
[0158] The above-described embodiments are merely described as preferred implementation manners of the present application and do not limit the scope of the present application. Without departing from the design spirit of the present application, various deformations and improvements made by those of ordinary skill in the art to the technical solutions of the present application shall fall within the protection scope determined by the claims of the present application.
Claims
1. A browser control method, characterized in that, The method includes: When receiving a browser startup instruction, obtaining policy configuration information related to the browser from a preset management platform according to the browser startup instruction; Determining a target control policy corresponding to a target function of the browser according to the policy configuration information; the target function includes a shortcut key function and / or a default search engine function; Controlling the target function according to the target control policy.
2. The method according to claim 1, characterized in that, The target function includes a shortcut key function, and the target control policy includes the global available state of the shortcut key function; The controlling the target function according to the target control policy includes: When the global available state is a disabled state, controlling the browser to prohibit starting the shortcut key function.
3. The method according to claim 1, characterized in that, The target function includes a shortcut key function, and the target control policy includes a specific available state of the shortcut key function; The controlling the target function according to the target control policy includes: When the specific available state is a disabled state, controlling the browser to prohibit starting the shortcut key function in a specific website and / or a specific web page corresponding to the specific available state, and / or controlling the browser to prohibit starting the shortcut key function of a specific shortcut key corresponding to the specific available state.
4. The method according to claim 1, characterized in that, The target function includes a default search engine function, and the target control policy includes target default search engine information corresponding to the default search engine function; The controlling the target function according to the target control policy includes: Configuring a corresponding target default search engine for a search component of the browser according to the target default search engine information.
5. The method according to claim 4, characterized in that, The target default search engine information includes target meta-information corresponding to each of a plurality of target default search engines; After configuring the corresponding target default search engine for the search component of the browser according to the target default search engine information, the method further includes: When receiving a trigger instruction for the search component, pulling the plurality of target default search engines configured corresponding to the search component according to the trigger instruction; Controlling the search component to perform a search based on a specified target default search engine; the specified target default search engine is a target default search engine selected and used by a user from the plurality of target default search engines.
6. The method according to claim 1, characterized in that, After obtaining the policy configuration information related to the browser from the preset management platform according to the browser startup instruction, the method further includes: Switching the configuration modification state corresponding to the target function from a modifiable state to a non-modifiable state.
7. The method according to claim 6, characterized in that, After switching the configuration modification state corresponding to the target function from a modifiable state to a non-modifiable state, the method further includes: When receiving a configuration modification operation for the target function, sending a corresponding configuration modification request to the preset management platform based on the configuration modification operation, so that the preset management platform determines corresponding configuration modification response information based on the configuration modification request; Updating the target control policy according to the configuration modification response information returned by the preset management platform.
8. A browser control device, characterized in that, The browser control device includes: An acquisition module, configured to obtain policy configuration information related to a browser from a preset management platform according to the browser startup instruction when receiving the browser startup instruction; A determination module, configured to determine a target control policy corresponding to a target function of the browser according to the policy configuration information; the target function includes a shortcut key function and / or a default search engine function; A first control module, configured to control the target function according to the target control policy.
9. An electronic device, characterized in that, Comprising: A processor and a memory; wherein, The processor is connected to the memory; the memory is used for storing executable program codes; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method steps of any one of claims 1-7.
10. A computer storage medium, characterized in that, The computer storage medium stores multiple instructions, and the instructions are adapted to be loaded and executed by the processor to execute the method steps of any one of claims 1-7.