config

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigLists = []*types.Filter{
	{
		Description: "CPBL Filters for ABP & uBO",
		FilterID:    "cpbl-abp",
		Categories:  []string{"adblock"},
		Types:       []parsers.ListType{parsers.Domain},
		URL:         "https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/cpbl-abp-list.txt",
		Parser:      lists.CblAbpParser,
	},
	{
		Description: "CPBL Filters for uBO",
		FilterID:    "cpbl-ctld",
		Categories:  []string{"adblock"},
		Types:       []parsers.ListType{parsers.Domain},
		URL:         "https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/NoFormatting/cpbl-ctld.txt",
		Parser:      lists.CblCtldParser,
	},
	{
		Description: "A merged hosts file from a variety of other lists.",
		FilterID:    "1hosts-pro",
		Categories:  []string{"ads", "crypto", "malware", "privacy"},
		Types:       []parsers.ListType{parsers.Domain},
		URL:         "https://raw.githubusercontent.com/badmojr/1Hosts/master/Pro/hosts.txt",
		Parser:      lists.OneHostsProParser,
	},
	{
		Description: "URLhaus is a project from abuse.ch with the goal of sharing malicious URLs that are being used for malware distribution.",
		FilterID:    "urlhaus-abuse-ch",
		Categories:  []string{"malware"},
		Types:       []parsers.ListType{parsers.Domain},
		URL:         "https://urlhaus.abuse.ch/downloads/text/",
		Parser:      lists.URLHausParser,
	},
	{
		Description: "IPsum is a threat intelligence feed based on 30+ different publicly available lists of suspicious and/or malicious IP addresses.",
		FilterID:    "ipsum",
		Categories:  []string{"malware"},
		Types:       []parsers.ListType{parsers.IPv4},
		URL:         "https://raw.githubusercontent.com/stamparm/ipsum/master/ipsum.txt",
		Parser:      lists.IPSumParser,
	},
}
View Source
var ConfigRules = []*types.Rule{}/* 181 elements not displayed */

Functions

This section is empty.

Types

type Config

type Config struct {
	Rules map[string]types.Rule
	Lists map[string]types.Filter
}

type ViperConfig

type ViperConfig struct {
	Description string

	Rules []struct {
		ID          string
		Description string
		Regex       string
		Keywords    []string
	}

	Lists []types.Filter
}

func (*ViperConfig) OrderRules

func (vc *ViperConfig) OrderRules() []types.Rule

Order the rules based on alphabetical order of the ID

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL