-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.blt.yaml
75 lines (71 loc) · 2.13 KB
/
.blt.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/loozhengyuan/blt/main/schema/v1/schema.json
version: 1
kind: dnsbl
policy:
deny:
items:
# Hikvision
- dev.ys7.com
- litedev.ys7.com
- dev1.sq.ys7.com
- dev2.xy.ys7.com
includes:
# - name: OISD Basic List
# url: https://dbl.oisd.nl/basic/
- name: Adguard DNS Filter
url: https://v.firebog.net/hosts/AdguardDNS.txt
- name: EasyList
url: https://v.firebog.net/hosts/Easylist.txt
- name: Admiral List
url: https://v.firebog.net/hosts/Admiral.txt
output:
destinations:
- filePath: dist/dnsbl-simple.txt
customTemplate: |
# DNS Blocklist - Simple Format
#
# Generated using the blt tool.
# https://github.com/loozhengyuan/blt
{{ range .Items -}}
{{ . }}
{{ end -}}
- filePath: dist/dnsbl-hosts.txt
customTemplate: |
# DNS Blocklist - HOSTS Format
#
# Generated using the blt tool.
# https://github.com/loozhengyuan/blt
{{ range .Items -}}
127.0.0.1 {{ . }}
::1 {{ . }}
{{ end -}}
- filePath: dist/dnsbl-dnsmasq.txt
customTemplate: |
# DNS Blocklist - DNSMASQ Format
#
# Generated using the blt tool.
# https://github.com/loozhengyuan/blt
{{ range .Items -}}
address=/{{ . }}/#
{{ end -}}
- filePath: dist/dnsbl-adblockplus.txt
customTemplate: |
! DNS Blocklist - AdBlock Plus Format
!
! Generated using the blt tool.
! https://github.com/loozhengyuan/blt
{{ range .Items -}}
||{{ . }}^
{{ end -}}
- filePath: dist/dnsbl-lsrules.json
customTemplate: |
{
"name": "DNS Blocklist - Little Snitch LSRULES Format",
"description": "Generated using the blt tool: https://github.com/loozhengyuan/blt",
"process": "any",
"denied-remote-domains": [
{{ range $i, $v := .Items }}{{ if $i }},
{{ end }}"{{ $v }}"{{ end }}
]
}