feat: DNS Response Policy Zone (RPZ)
- syntax based on https://rpz.oisd.nl/basic/
This commit is contained in:
		
							parent
							
								
									cf3a820b24
								
							
						
					
					
						commit
						22c10b4018
					
				
							
								
								
									
										20
									
								
								README.md
								
								
								
								
							
							
						
						
									
										20
									
								
								README.md
								
								
								
								
							|  | @ -11,7 +11,7 @@ There are multiple formats available, refer to the appropriate section according | |||
| - Vivaldi -> [URL-based (Vivaldi)](#url-based-vivaldi) | ||||
| - [Hosts](#hosts-based) | ||||
| - [Dnsmasq](#dnsmasq) | ||||
| - [BIND](#bind) | ||||
| - BIND -> BIND [zone](#bind) or [RPZ](#response-policy-zone) | ||||
| - [Unbound](#unbound) | ||||
| - Internet Explorer -> [Tracking Protection List (IE)](#tracking-protection-list-ie) | ||||
| - [Snort2](#snort2) | ||||
|  | @ -220,6 +220,24 @@ Zone file is derived from [here](https://github.com/tomzuu/blacklist-named/blob/ | |||
| 
 | ||||
| </details> | ||||
| 
 | ||||
| ## Response Policy Zone | ||||
| 
 | ||||
| This blocklist includes domains only. | ||||
| 
 | ||||
| - https://curben.gitlab.io/malware-filter/phishing-filter-rpz.conf | ||||
| 
 | ||||
| <details> | ||||
| <summary>Mirrors</summary> | ||||
| 
 | ||||
| - https://cdn.statically.io/gl/curben/phishing-filter/master/dist/phishing-filter-rpz.conf | ||||
| - https://glcdn.githack.com/curben/phishing-filter/raw/master/dist/phishing-filter-rpz.conf | ||||
| - https://raw.githubusercontent.com/curbengh/phishing-filter/master/dist/phishing-filter-rpz.conf | ||||
| - https://cdn.statically.io/gh/curbengh/phishing-filter/master/dist/phishing-filter-rpz.conf | ||||
| - https://gitcdn.xyz/repo/curbengh/phishing-filter/master/dist/phishing-filter-rpz.conf | ||||
| - https://cdn.jsdelivr.net/gh/curbengh/phishing-filter/dist/phishing-filter-rpz.conf | ||||
| 
 | ||||
| </details> | ||||
| 
 | ||||
| ## Unbound | ||||
| 
 | ||||
| This blocklist includes domains only. | ||||
|  |  | |||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							|  | @ -211,6 +211,18 @@ sed '1 i\'"$COMMENT"'' | \ | |||
| sed "1s/Blocklist/BIND Blocklist/" > "../dist/phishing-filter-bind.conf" | ||||
| 
 | ||||
| 
 | ||||
| ## DNS Response Policy Zone (RPZ) | ||||
| CURRENT_UNIX_TIME="$(date +%s)" | ||||
| RPZ_SYNTAX="\n\$TTL 30\n@ IN SOA rpz.curben.gitlab.io. hostmaster.rpz.curben.gitlab.io. $CURRENT_UNIX_TIME 86400 3600 604800 30\n NS localhost.\n" | ||||
| 
 | ||||
| cat "phishing-notop-hosts.txt" | \ | ||||
| sed "s/$/ CNAME ./g" | \ | ||||
| sed '1 i\'"$RPZ_SYNTAX"'' | \ | ||||
| sed '1 i\'"$COMMENT"'' | \ | ||||
| sed "s/^#/;/g" | \ | ||||
| sed "1s/Blocklist/RPZ Blocklist/" > "../dist/phishing-filter-rpz.conf" | ||||
| 
 | ||||
| 
 | ||||
| ## Unbound-compatible blocklist | ||||
| cat "phishing-notop-hosts.txt" | \ | ||||
| sed 's/^/local-zone: "/g' | \ | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue