# This is an example unbound-adblock configuration file.
# It is strongly recommended to configure unbound-adblock from the commandline rather than from a config file \
#   as a config file essentially amounts to arbitrary code injection into the pf-badhost process.
#
# If you know what you're doing, the possibilities here are endless.
#
# USE WITH CARE!

# ------------------------------------------------------------------------------
# User Configuration Area -- BEGIN
# ------------------------------------------------------------------------------

# ###########################################################################
# To override a default value, uncomment the value and:
# Set to '1' to enable
# Set to '0' to disable

# Rememeber, this config file essentially executes arbitrary code -- use with care!

# HTTP user agent override (Pretend to be Firefox on Win10 by default)
#_AGENT='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0'

# Enable Logging to /var/log/unbound-adblock/
#_LOG=1

# Enable Strict Mode
# (This option will cause unbound-adblock to abort if it exceeds maximum specified retrys)
#_STRICT=1

# Max Retry Count (How many times we'll attempt to download a file before giving up)
#_RETRY=3

###################################################################
# Custom Lists
#
# Add any lists here that require pre-formatting or special treatment
#
CUSTOM_LISTS() {
	: # Examples:

	# Fabrice Prigent's Blocklists [tar.gz]:
	# URL_FETCH_STDOUT 'https://dsi.ut-capitole.fr/blacklists/download/malware.tar.gz' | tar -xzf - -C "$tmpdir_fetch"
	# URL_FETCH_STDOUT 'https://dsi.ut-capitole.fr/blacklists/download/ads.tar.gz' | tar -xzf - -C "$tmpdir_fetch"


}
###################################################################

###################################################################
# Preprocessor Functions
# Add any list formating/preprocessing logic you like here
#
EXAMPLE_PROC() {
	awk '{print $1}'
}
###################################################################

###################################################################
# Custom Filtering
#
# NOTE: Use of '-r' or '-w' to whitelist URLs is prefered.
#
# This function can be used to perform arbitrary blocklist filtering.
# Use at your own risk.
#
# Blocklist data will be received by the function on stdin.
# Data processed within the function must be exported to stdout.
# 
 #_CUSTOM_FILTER=0	# Set to '1' to enable
CUSTOM_FILTER() {
	: # Examples:
	mygrep -v -e 'example\.com' -e 'example\.org'
}
# ###########################################################################

# ------------------------------------------------------------------------------
# User Configuration Area -- END
# ------------------------------------------------------------------------------
