Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Domain filter list storing and matching method and device

A domain name filtering and filtering list technology, applied in the network field, can solve the problems of resource consumption, difficult debugging of regular expressions, and inconvenient maintenance, and achieve the effects of saving storage space, shortening the average time, and good debuggability

Active Publication Date: 2013-01-16
ALIBABA GRP HLDG LTD
View PDF4 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Next, although the above-mentioned filter list configuration method implemented by regular expressions can ensure the accuracy of the inspection, it also has certain defects.
On the one hand, the filter list stored by items is not easy to maintain, and it also takes up storage space; on the other hand, the matching process of regular expressions consumes a lot of resources, and when encountering some greedy matching symbols such as ".", "*", etc. It is easy to cause a lot of backtracking, which reduces the inspection efficiency by a million times; on the other hand, the regular expression uses a rule-by-rule matching method, which is often unable to cope with the billions of checks in the current website. It may even cause a sharp decrease in server hardware performance in a short period of time; in addition, the regular expression itself is difficult to debug and difficult to write.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Domain filter list storing and matching method and device
  • Domain filter list storing and matching method and device
  • Domain filter list storing and matching method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] Specific embodiments of the present application will be described in detail below. It should be noted that the embodiments described here are for illustration only, and are not intended to limit the present application.

[0055] figure 1 It is a flow chart of Embodiment 1 of the computer-implemented domain name filtering list storage method of this application. As shown in the figure, the domain name filtering list storage method of this embodiment includes the following steps S101-S102.

[0056] S101. Converting the domain names configured in the filtering list into character strings in a predetermined order;

[0057] There may be multiple domain names configured in the filtering list, and this step S101 is to perform character string conversion for each configured domain name.

[0058] S102. Using a tree to generate a list tree according to the character string;

[0059] In the name list tree, the characters in the character string are used as tree nodes at all le...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a domain filter list storing method, which comprises the following steps of: converting domain names configured in a filter list to be a character string in a preset order; generating a list tree in a tree manner based on the character string; in the list tree, taking the characters in the character string as tree nodes in sequence, wherein each tree node has a first attribute and a second attribute, the first attribute is used for indicating a next level tree node corresponding to a character behind the current character, and the second attribute is used for indicating whether the character string is finished. The invention also discloses a domain filter list matching method, a domain filter list storing device and a domain filter list matching device. According to the embodiment of the invention, a tree structure is adopted to store the domain filter list, so that the time required by the domain matching can be effectively shortened, and the performance of the server can be improved; and meanwhile, the domain filter list mechanism in the tree structure can be suitable for any platform, the accuracy and good debugging performance can be ensured.

Description

technical field [0001] The present application relates to the field of network technology, in particular to a method and device for storing and matching tree-based domain name filtering lists (black / white lists). Background technique [0002] A domain name refers to a string of signs consisting of certain characters, numbers and symbols. A specific domain name can usually point to a specific site on the Internet. Institutions, organizations and companies usually apply for their own first-level domain name ownership and With the right to use, the subdomains corresponding to each first-level domain name are automatically owned by it, and network users can access the portal sites of these institutions and companies through these domain names. With the rapid development of the Internet in today's era, countless sites are increasingly gathered on the Internet, and some websites that profit by harming the interests of users have inevitably emerged. Often, the domain names of some ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L29/12
Inventor 邓旻辉罗坤莉
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products