Method, device and electronic device for blocking uniform resource locator URL information

By decoding and extracting URL information for precise blocking, the problem of large blocking in the existing technology is solved, and precise blocking of specific web pages is achieved to avoid affecting the normal access of other websites.

CN115277222BActive Publication Date: 2024-12-24CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210908433.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-29
Publication Date
2024-12-24
Estimated Expiration
2042-07-29

AI Technical Summary

Technical Problem

The existing technology of the web page blocking method based on IP or IP plus ports results in a large blocking area, affecting normal web page use, and the inability to accurately block specific web pages, affecting the normal access of other websites.

Method used

By determining the IP address of the client, decode the URL information after receiving the blocking request, extracting valid URL information, and sending it to the Information Security system for blocking, and accurately blocking specific web pages using preset character marking and storage methods.

Benefits of technology

It only blocks the problematic web pages without affecting the use of other websites, greatly reducing the technical effect of the blocking surface, and solving the problem of excessive blocking surface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115277222B_ABST
    Figure CN115277222B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, and electronic device for blocking uniform resource locator URL information. The method includes: determining the IP address corresponding to the client, and after the IP address is verified, receiving a blocking request from the client, wherein the blocking request carries at least the first URL information to be blocked; decoding the first URL information to obtain the decoded first URL information; extracting the second URL information from the decoded first URL information according to the page ending symbol; and sending the second URL information to the information security system to block the second URL information. The present application solves the technical problem that the blocking area is large due to the method based on IP or IP plus port in the related technology for blocking web pages, which may affect the normal use of web pages.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a method, device, and electronic device for blocking uniform resource locator (URL) information. Background Art

[0002] In the related art, the IP address or port number is blocked, and the principle is to use domain name resolution to block the resolved IP or IP port.

[0003] This technology has a weakness in its detection capability: blocking an IP or IP port will make all websites under this IP inaccessible, which has a relatively large impact.

[0004] Generally speaking, blocking IP or IP port has the following problems:

[0005] (1) Some users run multiple websites on one server, and only one web page on one website contains bad information, but it affects all websites under this server;

[0006] (2) For websites with multiple hosts, blocking only one IP address will not be effective due to load balancing.

[0007] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0008] The embodiments of the present application provide a method, device, and electronic device for blocking uniform resource locator URL information, so as to at least solve the technical problem that the blocking area is large due to the web page blocking method based on IP or IP plus port in the related technology, which may affect the normal use of the web page.

[0009] According to one aspect of an embodiment of the present application, a method for blocking uniform resource locator URL information is provided, comprising: determining an IP address corresponding to a client, and after the IP address is verified, receiving a blocking request from the client, wherein the blocking request carries at least first URL information to be blocked; decoding the first URL information to obtain decoded first URL information; extracting second URL information from the decoded first URL information according to a page end character; and sending the second URL information to a information security system to block the second URL information.

[0010] Optionally, before sending the second URL information to the information security system to block the second URL information, the method further includes: marking the second URL information with preset characters, and storing the first URL information and the second URL information in a predetermined storage manner.

[0011] Optionally, using a preset character to mark the second URL information includes: determining a path corresponding to the second URL information, and adding the preset character as a terminator of the path to the path corresponding to the second URL information.

[0012] Optionally, sending the second URL information to the information security system includes: using a preset character as the terminator of the path, and sending the second URL information carrying the terminator to the information security system, wherein the information security system is used to block the URL information with the preset character as the terminator.

[0013] Optionally, the first URL information and the second URL information are stored in a predetermined storage manner, including: determining the first URL information as a key and the second URL information as a value to construct a target key-value pair; and storing the target key-value pair in a hashMap manner.

[0014] Optionally, after sending the second URL information to the information security system, the method further includes: detecting whether feedback from the information security system is received at predetermined intervals, and determining that the second URL information blocking has failed if no feedback from the information security system is received within the predetermined time.

[0015] Optionally, after determining that the blocking of the second URL information fails, the method further includes: returning a blocking failure signal to the client, and sending a prompt message to the target communication account, wherein the prompt message is at least used to prompt that the URL information blocking has timed out.

[0016] According to another aspect of an embodiment of the present application, a method for blocking uniform resource locator URL information is also provided, including: determining the first URL information to be blocked, encoding the first URL information, and obtaining the encoded first URL information; the client sends a blocking request to the server, wherein the blocking request carries at least the first URL information to be blocked; and receiving a response from the server, wherein the response is used to indicate whether the blocking of the first URL information is successful or failed.

[0017] According to another aspect of an embodiment of the present application, a device for blocking uniform resource locator URL information is also provided, including: a determination module, used to determine the IP address corresponding to the client, and after the IP address is verified, receive a blocking request from the client, wherein the blocking request carries at least the first URL information to be blocked; a decoding module, used to decode the first URL information to obtain the decoded first URL information; an extraction module, used to extract the second URL information from the decoded first URL information according to the page end character; and a sending module, used to send the second URL information to the information security system to block the second URL information.

[0018] According to another aspect of an embodiment of the present application, a non-volatile storage medium is further provided, the storage medium including a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute any method of blocking uniform resource locator URL information.

[0019] According to another aspect of an embodiment of the present application, an electronic device is also provided, including: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute instructions to implement any method of blocking uniform resource locator URL information.

[0020] In the embodiment of the present application, a method of extracting valid URL information for blocking is adopted. By determining the IP address corresponding to the client, after the IP address is verified, a blocking request is received from the client, wherein the blocking request carries at least the first URL information to be blocked; the first URL information is decoded to obtain the decoded first URL information; the second URL information is extracted from the decoded first URL information according to the page end symbol; the second URL information is sent to the information security system to block the second URL information, thereby achieving the purpose of accurately blocking a certain web page, thereby achieving the technical effect of only blocking the problematic web page without affecting the use of other websites, and greatly reducing the blocking surface, thereby solving the technical problem that the blocking surface is large and may affect the normal use of web pages due to the method of blocking web pages based on IP or IP plus port in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0022] Figure 1 It is a flowchart of an optional method for blocking uniform resource locator URL information according to an embodiment of the present application;

[0023] Figure 2 It is a schematic diagram of the main process in an exemplary embodiment of the present application;

[0024] Figure 3 This is a system structure diagram for accurately blocking URL information with one click in an example embodiment of the present application;

[0025] Figure 4 It is a logic diagram of one-click precise, fast, safe and accurate blocking of URL information in an exemplary embodiment of the present application;

[0026] Figure 5 This is a flowchart of one-click, fast, safe and accurate blocking of URL information in this application example;

[0027] Figure 6 It is a flowchart of another optional method for blocking uniform resource locator URL information according to an embodiment of the present application;

[0028] Figure 7 It is a structural schematic diagram of a device for blocking uniform resource locator URL information according to an embodiment of the present application;

[0029] Figure 8 A schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present application is shown. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

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

[0032] According to an embodiment of the present application, an embodiment of a method for blocking uniform resource locator URL information is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0033] Figure 1 A method for blocking uniform resource locator URL information according to an embodiment of the present application is as follows: Figure 1 As shown, the method comprises the following steps:

[0034] Step S102, determining the IP address corresponding to the client, and after the IP address passes the verification, receiving a blocking request from the client, wherein the blocking request carries at least the first URL information to be blocked;

[0035] Step S104, decoding the first URL information to obtain decoded first URL information;

[0036] Step S106, extracting the second URL information from the decoded first URL information according to the page ending character;

[0037] Step S108, sending the second URL information to the information security system to block the second URL information.

[0038] In the method for blocking URL information, first, the IP address corresponding to the client is determined, and after the IP address is verified, a blocking request is received from the client, wherein the blocking request carries at least the first URL information to be blocked; then, the first URL information is decoded to obtain the decoded first URL information; secondly, the second URL information can be extracted from the decoded first URL information according to the page ending symbol; finally, the second URL information is sent to the information security system to block the second URL information, thereby achieving the purpose of accurately blocking a certain web page, thereby achieving the technical effect of only blocking the problematic web page without affecting the use of other websites, and greatly reducing the blocking surface, thereby solving the technical problem that the blocking surface is large due to the method of blocking web pages based on IP or IP plus port in the related technology, which may affect the normal use of web pages.

[0039] In some embodiments of the present application, before sending the second URL information to the information security system to block the second URL information, the second URL information can be marked with preset characters and the first URL information and the second URL information can be stored in a predetermined storage method.

[0040] Specifically, the second URL information is marked with a preset character. To determine the path corresponding to the second URL information, the preset character may be added as a path terminator to the path corresponding to the second URL information.

[0041] In some optional embodiments of the present application, sending the second URL information to the information security system can be achieved in the following manner. Specifically, a preset character can be used as the terminator of the path, and the second URL information carrying the terminator can be sent to the information security system, wherein the information security system is used to block the URL information with the preset character as the terminator.

[0042] In some embodiments of the present application, the first URL information and the second URL information are stored in a predetermined storage method, and a target key-value pair can be constructed by determining the first URL information as the key and the second URL information as the value; the target key-value pair is stored in a hashMap manner.

[0043] As an optional implementation, after sending the second URL information to the information security system, it is possible to detect whether feedback from the information security system is received at a predetermined interval. If no feedback from the information security system is received within the predetermined period, it is determined that the second URL information has failed to be blocked.

[0044] In some embodiments of the present application, after determining that the second URL information blocking fails, a blocking failure signal may be returned to the client, and a prompt message may be sent to the target communication account, wherein the prompt message is at least used to prompt that the URL information blocking has timed out.

[0045] Figure 2 It is a schematic diagram of the main process in an exemplary embodiment of the present application, such as Figure 2 As shown, the process mainly includes four parts. In the first part, the client can log in and send the URL information that needs to be blocked to the system server. In the second part, the system server sends the URL information that needs to be blocked to the information security system. In the third part, the information security system returns the blocking situation to the system server. In the fourth part, the system server returns the blocking situation to the client.

[0046] Figure 3 This is a system structure diagram for accurately blocking URL information with one click in an example embodiment of the present application, such as Figure 3 As shown, the system mainly includes: a client system and a server system; wherein the client system includes a login module, a data processing module and a message module; the server includes an authentication module and a disposal module.

[0047] Specifically, the login module connects to the server device through SSH and then logs in to the server; the data processing module base64 encodes the URL information to be blocked and sends it to the server. The base64 encoding is to prevent special characters in the URL information from being used as separators; the message module handles the display of blocking results and the display of blocked records.

[0048] Specifically, the server-side authentication module includes the firewall whitelist setting, which only allows whitelist IPs to pass through. Account management provides administrators with account addition, deletion, modification and query functions, as well as account password verification when logging in. Permission management is that the administrator sets permissions for the account and verifies permissions when the client makes a request. In the server-side disposal module, the client interface is responsible for accepting client access and connecting for authentication. Only after authentication is passed can the subsequent steps be performed. Decoding is responsible for BASE64 decoding, and URL information processing is responsible for extracting the URL information of the valid page (according to the page end character, extract the string between the URL information and the end of the page, add "#", and generate a key-value pair dictionary (or hashmap) with the original URL information as the key and the new URL information as the value); URL information blocking execution sends the value of the dictionary (or hashmap) to the information security system for blocking, and after success, the dictionary key-value pair is stored in the system.

[0049] The information security system interface is a RESTful interface for connecting the server to the information security system. It defines URL information ending with "#", which means that all URL information starting with the string before "#" will be blocked, so as to avoid circumventing the blockage by adding meaningless suffixes.

[0050] Figure 4 This is a logic diagram of one-click accurate, fast, safe and accurate blocking of URL information in an exemplary embodiment of the present application, such as Figure 4 As shown in the figure, the logic diagram mainly includes: the staff logs in from the client, enters the URL information to be blocked to the server, the server verifies that the IP is legal, the account password is legal, the URL information is correct, and it is not in the whitelist, then extracts the URL information of the valid page, and generates a dictionary (or hashmap) of key-value pairs, and then sends the URL information of the valid page to be blocked to the information security system for blocking. This method only affects access to the URL information, but does not affect other parts of the website, let alone other websites under the server where the website is located. It can also prevent bypassing the blocking by adding a suffix to the URL information, making the blocking more reliable.

[0051] Figure 5 This is a flow chart of one-click, fast, safe and accurate blocking of URL information in this application example. The process mainly includes:

[0052] A. The client logs in to the server and sends the URL information that needs to be blocked to the server.

[0053] B. After verifying the legitimacy, the server pre-processes the URL information;

[0054] C. The server forwards the message to the information security system for blocking.

[0055] Specifically, in step A, the function of logging in to the server from the client and sending the URL information to be blocked to the server may include the following steps:

[0056] A-1. The client connects to the server via SSH. It is understandable that if the key is incorrect or the IP is not in the firewall whitelist, the client will exit;

[0057] A-2. After the connection is successful, use the account and password to log in to the server (if the account and password are incorrect, log out);

[0058] A-3. After successful login, the blocked URL information will be displayed (you can select one to unblock it);

[0059] A-4. The client can encode the URL information that needs to be accurately blocked in base64 and send it to the server (the purpose is to avoid truncation by special characters contained in the URL information during transmission);

[0060] Specifically, in step B, the method in which the functional server performs preprocessing on the URL information after verifying the legitimacy may include the following steps:

[0061] B-1. The server firewall first verifies the client IP of the SSH connection. Only IPs in the whitelist can connect.

[0062] B-2. The server system verifies the access account and password. Only when the account and password are correct can you log in;

[0063] B-3. ​​The server authenticates the blocking request sent by the client. Only the account logged in by the client has the blocking authority will the server accept the blocking request.

[0064] B-4. If the client succeeds, it will first request to obtain the blocked data, and the server will return the dictionary key value storing the block (see the explanation of dictionary key B-8 for details);

[0065] B-5. After receiving the blocking request from the client (the blocking request carries at least the first URL), the server decodes the data by base64. After decoding, it first determines whether it is in the blocked data. If so, it returns a successful blocking. If not, it proceeds as follows;

[0066] B-6. Extract the string from the decoded URL information (i.e., the decoded first URL) to the end of the page according to the page end character (i.e., the second URL information), wherein the end of the page represents the URL information path to the page without the variables, and the end character of the path is generally a space or a question mark;

[0067] B-7. Then add the "#" terminator to the extracted URL information path to the page without the variables carried, as the real blocked URL information (ie, add the preset character as the end of the path to the path corresponding to the second URL);

[0068] B-8. Add the original URL information and the new URL information from the previous step to the dictionary (HASHMAP) in the key-value pair mode (the original URL information is used as the key, and the URL information path extracted to reach the page without the variables carried plus the string ending with the "#" as the value), and then send the URL information path extracted to reach the page without the variables carried plus the URL information ending with the "#" to the information security system for blocking;

[0069] B-9. After the Xinan system executes successfully, the dictionary key and value of the previous step are stored in the system, and the original URL information and execution results are returned to the client;

[0070] B-10. When the client clicks refresh, the client sends a request for the blocked list and returns the key values ​​of all stored dictionaries as a list.

[0071] Specifically, in step C, the function server forwards the message to the information security system for blocking, which includes the following steps:

[0072] C-1. The interface between the server and the information security system defines URL information ending with "#", which means that all URL information starting with the string before "#" will be blocked, so as to avoid circumventing the block by adding meaningless suffixes;

[0073] C-2. The information security system will return the result to the server when the blocking is completed or fails;

[0074] C-3. If the server sends a blocking message for more than 4 seconds without receiving any feedback, the server will default to processing failure and return to the client to process the timeout failure. At the same time, an email will be sent to the administrator to inform him of the specific URL information blocking timeout. The administrator will then contact the Xin Anxiong technical staff for improvement.

[0075] Figure 6 Another method for blocking uniform resource locator URL information according to an embodiment of the present application is as follows: Figure 6 As shown, the method includes:

[0076] S602, determining first URL information to be blocked, encoding the first URL information, and obtaining encoded first URL information;

[0077] S604, sending a blocking request to the server, wherein the blocking request carries at least information of the first URL to be blocked;

[0078] S606, receiving a response from the server, where the response is used to indicate whether the blocking of the first URL information is successful or failed.

[0079] In the method for blocking URL information, first, the first URL information to be blocked can be determined, and the first URL information can be encoded to obtain the encoded first URL information; secondly, a blocking request can be sent to the server, wherein the blocking request carries at least the first URL information to be blocked; finally, a response from the server can be received, and the response is used to indicate whether the blocking of the first URL information is successful or failed, thereby achieving the purpose of accurately blocking a certain web page, thereby achieving the technical effect of only blocking the problematic web page without affecting the use of other websites, and greatly reducing the blocking surface, thereby solving the technical problem that the blocking surface is large and may affect the use of normal web pages due to the method of blocking web pages based on IP or IP plus port in the related technology.

[0080] Figure 7 A device for blocking uniform resource locator URL information according to an embodiment of the present application, such as Figure 7 As shown, the device comprises:

[0081] The determination module 70 is used to determine the IP address corresponding to the client, and after the IP address is verified, receive a blocking request from the client, wherein the blocking request carries at least the first URL information to be blocked;

[0082] A decoding module 72, configured to decode the first URL information to obtain decoded first URL information;

[0083] An extraction module 74, configured to extract the second URL information from the decoded first URL information according to the page ending character;

[0084] The sending module 76 is used to send the second URL information to the information security system to block the second URL information.

[0085] In the device for blocking URL information, a determination module 70 is used to determine the IP address corresponding to the client, and after the IP address is verified, a blocking request is received from the client, wherein the blocking request carries at least the first URL information to be blocked; a decoding module 72 is used to decode the first URL information to obtain the decoded first URL information; an extraction module 74 is used to extract the second URL information from the decoded first URL information according to the page end symbol; a sending module 76 is used to send the second URL information to the information security system to block the second URL information, thereby achieving the purpose of accurately blocking a certain web page, thereby realizing the technical effect of only blocking the problematic web page without affecting the use of other websites, and greatly reducing the blocking surface, thereby solving the technical problem that the blocking surface is large due to the method of blocking web pages based on IP or IP plus port in the related technology, which may affect the normal use of web pages.

[0086] According to another aspect of an embodiment of the present application, a non-volatile storage medium is further provided, the storage medium including a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute any method of blocking uniform resource locator URL information.

[0087] Specifically, the above-mentioned storage medium is used to store program instructions for the following functions to implement the following functions: determine the IP address corresponding to the client, and after the IP address is verified, receive a blocking request from the client, wherein the blocking request carries at least the first URL information to be blocked; decode the first URL information to obtain the decoded first URL information; extract the second URL information from the decoded first URL information according to the page end character; send the second URL information to the information security system to block the second URL information.

[0088] Optionally, in this embodiment, the above-mentioned storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the above-mentioned contents. More specific examples of the above-mentioned storage medium may include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above-mentioned contents.

[0089] In an exemplary embodiment of the present application, a computer program product is further provided, including a computer program, and when the computer program is executed by a processor, the computer program implements any of the above methods for blocking uniform resource locator URL information.

[0090] Optionally, the computer program may implement the following steps when executed by a processor:

[0091] Determine the IP address corresponding to the client, and after the IP address is verified, receive a blocking request from the client, wherein the blocking request carries at least the first URL information to be blocked; decode the first URL information to obtain the decoded first URL information; extract the second URL information from the decoded first URL information according to the page ending character; send the second URL information to the information security system to block the second URL information.

[0092] According to an embodiment of the present application, an electronic device is provided, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any of the above-mentioned methods for blocking uniform resource locator URL information.

[0093] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0094] Figure 8 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0095] like Figure 8 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0096] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0097] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as a method for blocking uniform resource locator URL information. For example, in some embodiments, the method for blocking uniform resource locator URL information may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the method for blocking uniform resource locator URL information described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to execute the method of blocking the uniform resource locator URL information in any other appropriate manner (for example, by means of firmware).

[0098] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0099] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0100] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0101] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0102] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0103] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0104] In the relevant embodiments of the present application, a method of extracting valid URL information for blocking is adopted, by determining the IP address corresponding to the client, and after the IP address is verified, receiving a blocking request from the client, wherein the blocking request carries at least the first URL information to be blocked; decoding the first URL information to obtain the decoded first URL information; extracting the second URL information from the decoded first URL information according to the page end symbol; sending the second URL information to the information security system to block the second URL information, thereby achieving the purpose of accurately blocking a certain web page, thereby achieving the technical effect of only blocking the problematic web page without affecting the use of other websites, and greatly reducing the blocking surface, thereby solving the technical problem that the blocking surface is large and may affect the normal use of web pages due to the method of blocking web pages based on IP or IP plus port in the related technology.

[0105] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0106] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0107] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0108] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0109] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0110] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0111] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for blocking uniform resource locator URL information, characterized in that: include: Determine an IP address corresponding to the client, and after the IP address passes verification, receive a blocking request from the client, wherein the blocking request carries at least first URL information to be blocked; Decoding the first URL information to obtain the decoded first URL information; Extracting the second URL information from the decoded first URL information according to the page ending symbol, wherein the extraction process of the second URL information includes: extracting the character string between the decoded first URL information and the page ending symbol according to the page ending symbol, and determining the character string as the second URL information; The second URL information is sent to the information security system to block the second URL information.

2. The method according to claim 1, characterized in that: Before sending the second URL information to the information security system to block the second URL information, the method further includes: The second URL information is marked with a preset character, and the first URL information and the second URL information are stored in a predetermined storage manner.

3. The method according to claim 2, characterized in that The second URL information is marked with preset characters, including: Determine a path corresponding to the second URL information, and add the preset character as a terminator of the path to the path corresponding to the second URL information.

4. The method according to claim 3, characterized in that Sending the second URL information to the information security system includes: The preset character is used as the terminator of the path, and the second URL information carrying the terminator is sent to the information security system, wherein the information security system is used to block the URL information with the preset character as the terminator.

5. The method according to claim 2, characterized in that: Storing the first URL information and the second URL information in a predetermined storage manner includes: Determine the first URL information as a key, and determine the second URL information as a value to construct a target key-value pair; The target key-value pair is stored in a hashMap manner.

6. The method according to claim 1, characterized in that After sending the second URL information to the information security system, the method further includes: Checking whether feedback from the information security system is received at predetermined time intervals, and determining that blocking of the second URL information fails when no feedback from the information security system is received within the predetermined time interval.

7. The method according to claim 6, characterized in that After determining that the blocking of the second URL information fails, the method further includes: A blocking failure signal is returned to the client, and a prompt message is sent to the target communication account, wherein the prompt message is at least used to prompt that a timeout has occurred in URL information blocking.

8. A method for blocking uniform resource locator URL information, characterized in that: include: Determine first URL information to be blocked, encode the first URL information, and obtain the encoded first URL information; The client sends a blocking request to the server, wherein the blocking request carries at least the first URL information to be blocked; receiving a response from the server, the response being used to indicate whether the blocking of the first URL information is successful or failed, wherein the first URL information is decoded to obtain the decoded first URL information; extracting the second URL information from the decoded first URL information according to the page ending symbol, wherein the extraction process of the second URL information includes: extracting a character string between the decoded first URL information and the page ending symbol according to the page ending symbol, and determining the character string as the second URL information; The second URL information is sent to the information security system to block the second URL information.

9. A device for blocking uniform resource locator URL information, characterized in that: include: A determination module, used to determine the IP address corresponding to the client, and after the IP address passes the verification, receive a blocking request from the client, wherein the blocking request carries at least the first URL information to be blocked; A decoding module, used for decoding the first URL information to obtain the decoded first URL information; an extraction module, configured to extract second URL information from the decoded first URL information according to a page ending symbol, wherein the extraction process of the second URL information comprises: extracting a character string between the decoded first URL information and the page ending symbol according to the page ending symbol, and determining the character string as the second URL information; The sending module is used to send the second URL information to the information security system to block the second URL information.

10. A non-volatile storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the method for blocking uniform resource locator URL information as described in any one of claims 1 to 8.

11. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method for blocking uniform resource locator (URL) information as claimed in any one of claims 1 to 8.