adblock: update 1.1.17
* change winspy url again * various cosmetics left out in former release Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
parent
26fa1c5df0
commit
d0eceb6b25
6 changed files with 20 additions and 25 deletions
|
@ -7,8 +7,8 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=adblock
|
PKG_NAME:=adblock
|
||||||
PKG_VERSION:=1.1.16
|
PKG_VERSION:=1.1.17
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=1
|
||||||
PKG_LICENSE:=GPL-3.0+
|
PKG_LICENSE:=GPL-3.0+
|
||||||
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ A lot of people already use adblocker plugins within their desktop browsers, but
|
||||||
* => weekly updates, approx. 12.000 entries
|
* => weekly updates, approx. 12.000 entries
|
||||||
* [winhelp](http://winhelp2002.mvps.org)
|
* [winhelp](http://winhelp2002.mvps.org)
|
||||||
* => infrequent updates, approx. 15.000 entries
|
* => infrequent updates, approx. 15.000 entries
|
||||||
* [winspy](https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/hosts/windows10_spy.txt)
|
* [winspy](https://github.com/crazy-max/WindowsSpyBlocker)
|
||||||
* => infrequent updates, approx. 120 entries
|
* => infrequent updates, approx. 120 entries
|
||||||
* [yoyo](http://pgl.yoyo.org/adservers)
|
* [yoyo](http://pgl.yoyo.org/adservers)
|
||||||
* => weekly updates, approx. 2.500 entries (enabled by default)
|
* => weekly updates, approx. 2.500 entries (enabled by default)
|
||||||
|
@ -102,8 +102,9 @@ A lot of people already use adblocker plugins within their desktop browsers, but
|
||||||
* **list updates:** for a scheduled call of the adblock service add an appropriate crontab entry (see example below)
|
* **list updates:** for a scheduled call of the adblock service add an appropriate crontab entry (see example below)
|
||||||
* **new list sources:** you could add new blocklist sources on your own via uci config, all you need is a source url and an awk one-liner (see example below)
|
* **new list sources:** you could add new blocklist sources on your own via uci config, all you need is a source url and an awk one-liner (see example below)
|
||||||
* **AP mode:** in AP mode adblock uses automatically the local router ip as nullip address. To make sure that your LuCI interface will be still accessible, please change the local uhttpd instance to ports <> 80/443 (see example below)
|
* **AP mode:** in AP mode adblock uses automatically the local router ip as nullip address. To make sure that your LuCI interface will be still accessible, please change the local uhttpd instance to ports <> 80/443 (see example below)
|
||||||
|
* **Restricted mode:** to disable flash writes with adblock status information to the adblock config file (used by LuCI frontend), please set 'adb\_restricted' to '1'
|
||||||
* **adblock toggle:** to quickly switch adblocking 'on' or 'off', simply use _/etc/init.d/adblock toggle_
|
* **adblock toggle:** to quickly switch adblocking 'on' or 'off', simply use _/etc/init.d/adblock toggle_
|
||||||
* **outdated configuration:** to update an outdated adblock config file, please use _/etc/init.d/adblock cfgup_, make your individual changes and restart the adblock service
|
* **configuration update:** to update an outdated adblock config file with the current default version, please run _/etc/init.d/adblock cfgup_, make your individual changes and start the adblock service again
|
||||||
* **debugging:** for script debugging please set the 'adb\_debug' variable in the header of _/etc/init.d/adblock_ to '1'
|
* **debugging:** for script debugging please set the 'adb\_debug' variable in the header of _/etc/init.d/adblock_ to '1'
|
||||||
* **disable active dns probing in windows:** to prevent a possible yellow exclamation mark on your internet connection icon (which wrongly means connected, but no internet), please change the following registry key/value from "1" to "0" _HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet\EnableActiveProbing_
|
* **disable active dns probing in windows:** to prevent a possible yellow exclamation mark on your internet connection icon (which wrongly means connected, but no internet), please change the following registry key/value from "1" to "0" _HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet\EnableActiveProbing_
|
||||||
|
|
||||||
|
@ -115,7 +116,7 @@ A lot of people already use adblocker plugins within their desktop browsers, but
|
||||||
* adb\_nullport => port of the adblock uhttpd instance (default: '65535')
|
* adb\_nullport => port of the adblock uhttpd instance (default: '65535')
|
||||||
* adb\_nullipv4 => IPv4 blackhole ip address (default: '192.0.2.1', in AP mode: local router ip)
|
* adb\_nullipv4 => IPv4 blackhole ip address (default: '192.0.2.1', in AP mode: local router ip)
|
||||||
* adb\_nullipv6 => IPv6 blackhole ip address (default: '::ffff:c000:0201', in AP mode: local router ip)
|
* adb\_nullipv6 => IPv6 blackhole ip address (default: '::ffff:c000:0201', in AP mode: local router ip)
|
||||||
* adb\_forcedns => redirect all DNS queries to local dnsmasq resolver (default: '1', enabled)
|
* adb\_forcedns => redirect all local DNS queries to the local dnsmasq resolver (default: '1', enabled)
|
||||||
* adb\_fetchttl => set the timeout for list downloads (default: '5' seconds)
|
* adb\_fetchttl => set the timeout for list downloads (default: '5' seconds)
|
||||||
* adb\_restricted => disable updates of the adblock config file (no flash writes) during runtime (default: '0', disabled)
|
* adb\_restricted => disable updates of the adblock config file (no flash writes) during runtime (default: '0', disabled)
|
||||||
|
|
||||||
|
|
|
@ -142,7 +142,7 @@ f_envload()
|
||||||
|
|
||||||
# check running dnsmasq instance
|
# check running dnsmasq instance
|
||||||
#
|
#
|
||||||
check="$(ps | pgrep -f "dnsmasq")"
|
check="$(pgrep -f "dnsmasq")"
|
||||||
if [ -z "${check}" ]
|
if [ -z "${check}" ]
|
||||||
then
|
then
|
||||||
rc=-1
|
rc=-1
|
||||||
|
@ -389,7 +389,7 @@ f_envcheck()
|
||||||
|
|
||||||
# check volatile adblock uhttpd instance configuration
|
# check volatile adblock uhttpd instance configuration
|
||||||
#
|
#
|
||||||
check="$(ps | pgrep -f "uhttpd -h /www/adblock")"
|
check="$(pgrep -f "uhttpd -h /www/adblock")"
|
||||||
if [ -z "${check}" ]
|
if [ -z "${check}" ]
|
||||||
then
|
then
|
||||||
if [ -n "${adb_wanif4}" ] && [ -n "${adb_wanif6}" ]
|
if [ -n "${adb_wanif4}" ] && [ -n "${adb_wanif6}" ]
|
||||||
|
@ -617,7 +617,7 @@ f_restore()
|
||||||
then
|
then
|
||||||
/etc/init.d/dnsmasq restart
|
/etc/init.d/dnsmasq restart
|
||||||
sleep 1
|
sleep 1
|
||||||
check="$(ps | pgrep -f "dnsmasq")"
|
check="$(pgrep -f "dnsmasq")"
|
||||||
if [ -n "${check}" ]
|
if [ -n "${check}" ]
|
||||||
then
|
then
|
||||||
rc=0
|
rc=0
|
||||||
|
|
|
@ -10,13 +10,6 @@
|
||||||
#
|
#
|
||||||
LC_ALL=C
|
LC_ALL=C
|
||||||
|
|
||||||
# quiet output if 'adb_debug' not set
|
|
||||||
#
|
|
||||||
if [ -z "${adb_debug}" ]
|
|
||||||
then
|
|
||||||
exec 2>/dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
# set pid & logger
|
# set pid & logger
|
||||||
#
|
#
|
||||||
adb_pid="${$}"
|
adb_pid="${$}"
|
||||||
|
@ -35,8 +28,8 @@ fi
|
||||||
# get current directory and set script/config version
|
# get current directory and set script/config version
|
||||||
#
|
#
|
||||||
adb_scriptdir="${0%/*}"
|
adb_scriptdir="${0%/*}"
|
||||||
adb_scriptver="1.1.16"
|
adb_scriptver="1.1.17"
|
||||||
adb_mincfgver="2.0"
|
adb_mincfgver="2.1"
|
||||||
|
|
||||||
# source in adblock function library
|
# source in adblock function library
|
||||||
#
|
#
|
||||||
|
@ -301,7 +294,7 @@ then
|
||||||
"${adb_uci}" -q set "adblock.global.adb_dnstoggle=on"
|
"${adb_uci}" -q set "adblock.global.adb_dnstoggle=on"
|
||||||
/etc/init.d/dnsmasq restart
|
/etc/init.d/dnsmasq restart
|
||||||
sleep 1
|
sleep 1
|
||||||
check="$(ps | pgrep -f "dnsmasq")"
|
check="$(pgrep -f "dnsmasq")"
|
||||||
if [ -n "${check}" ]
|
if [ -n "${check}" ]
|
||||||
then
|
then
|
||||||
f_log "adblock lists with overall ${adb_count} domains loaded"
|
f_log "adblock lists with overall ${adb_count} domains loaded"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
config adblock 'global'
|
config adblock 'global'
|
||||||
option adb_enabled '1'
|
option adb_enabled '1'
|
||||||
option adb_cfgver '2.0'
|
option adb_cfgver '2.1'
|
||||||
option adb_whitelist '/etc/adblock/adblock.whitelist'
|
option adb_whitelist '/etc/adblock/adblock.whitelist'
|
||||||
option adb_whitelist_rset '\$1 ~/^([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$1)}'
|
option adb_whitelist_rset '\$1 ~/^([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$1)}'
|
||||||
option adb_forcedns '1'
|
option adb_forcedns '1'
|
||||||
|
@ -115,7 +115,7 @@ config source 'whocares'
|
||||||
|
|
||||||
config source 'winspy'
|
config source 'winspy'
|
||||||
option enabled '0'
|
option enabled '0'
|
||||||
option adb_src 'https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/hosts/windows10_spy.txt'
|
option adb_src 'https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/win10/spy.txt'
|
||||||
option adb_src_rset '\$0 ~/^0\.0\.0\.0[ \t]+([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$2)}'
|
option adb_src_rset '\$0 ~/^0\.0\.0\.0[ \t]+([A-Za-z0-9_-]+\.){1,}[A-Za-z]+/{print tolower(\$2)}'
|
||||||
option adb_src_desc 'focus on windows spy & telemetry domains, infrequent updates, approx. 120 entries'
|
option adb_src_desc 'focus on windows spy & telemetry domains, infrequent updates, approx. 120 entries'
|
||||||
|
|
||||||
|
|
|
@ -21,10 +21,6 @@ adb_dnsprefix="adb_list"
|
||||||
adb_pidfile="/var/run/adblock.pid"
|
adb_pidfile="/var/run/adblock.pid"
|
||||||
adb_log="$(which logger)"
|
adb_log="$(which logger)"
|
||||||
adb_uci="$(which uci)"
|
adb_uci="$(which uci)"
|
||||||
if [ "$(${adb_uci} -q get "adblock.global.adb_restricted")" = "1" ]
|
|
||||||
then
|
|
||||||
adb_uci="$(which true)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -t 1 ]
|
if [ -t 1 ]
|
||||||
then
|
then
|
||||||
|
@ -96,7 +92,7 @@ stop()
|
||||||
/etc/init.d/dnsmasq restart
|
/etc/init.d/dnsmasq restart
|
||||||
/etc/init.d/firewall restart
|
/etc/init.d/firewall restart
|
||||||
fi
|
fi
|
||||||
uhttpd_pid="$(ps | pgrep -f "uhttpd -h /www/adblock")"
|
uhttpd_pid="$(pgrep -f "uhttpd -h /www/adblock")"
|
||||||
if [ -n "${uhttpd_pid}" ]
|
if [ -n "${uhttpd_pid}" ]
|
||||||
then
|
then
|
||||||
kill -9 "${uhttpd_pid}"
|
kill -9 "${uhttpd_pid}"
|
||||||
|
@ -110,6 +106,10 @@ stop()
|
||||||
|
|
||||||
toggle()
|
toggle()
|
||||||
{
|
{
|
||||||
|
if [ "$(${adb_uci} -q get "adblock.global.adb_restricted")" = "1" ]
|
||||||
|
then
|
||||||
|
adb_uci="$(which true)"
|
||||||
|
fi
|
||||||
if [ -d "${adb_dnshidedir}" ]
|
if [ -d "${adb_dnshidedir}" ]
|
||||||
then
|
then
|
||||||
list_dns="$(find "${adb_dnsdir}" -maxdepth 1 -type f -name "${adb_dnsprefix}*" -print)"
|
list_dns="$(find "${adb_dnsdir}" -maxdepth 1 -type f -name "${adb_dnsprefix}*" -print)"
|
||||||
|
@ -130,6 +130,7 @@ toggle()
|
||||||
"${adb_log}" ${log_parm} -t "adblock[${adb_pid}] info " "toggle for adblocking switched 'on'" 2>&1
|
"${adb_log}" ${log_parm} -t "adblock[${adb_pid}] info " "toggle for adblocking switched 'on'" 2>&1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
cfgup()
|
cfgup()
|
||||||
|
|
Loading…
Reference in a new issue