This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
networking:router:mikrotik_blocklist [2022/01/06 12:32] gcooper |
networking:router:mikrotik_blocklist [2024/02/24 14:44] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Mikrotik Block Lists ====== | ====== Mikrotik Block Lists ====== | ||
+ | |||
+ | FIXME **New Method**: https:// | ||
**Another way to block ads**: https:// | **Another way to block ads**: https:// | ||
+ | |||
+ | **Block by Country**: https:// | ||
===== Sources ===== | ===== Sources ===== | ||
Line 48: | Line 52: | ||
echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | ||
echo "/ip firewall address-list" | echo "/ip firewall address-list" | ||
- | wget -q -O - http:// | + | wget -q -O - https:// |
echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | ||
echo "/ip firewall address-list" | echo "/ip firewall address-list" | ||
- | wget -q -O - http:// | + | wget -q -O - https:// |
wget -q -O - http:// | wget -q -O - http:// | ||
Line 61: | Line 65: | ||
echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | ||
echo "/ip firewall address-list" | echo "/ip firewall address-list" | ||
- | wget -q -O - http://www.voipbl.org/ | + | wget -q -O - https:// |
+ | |||
+ | # dshield, bde, spamhaus and voipbl lists | ||
+ | |||
+ | #echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | ||
+ | #echo "# This is a combined blocklist created from unique entries in the" >> $saveTo/ | ||
+ | #echo "# DShield, SpamHaus, BDE and VoIPBL blocklists." | ||
+ | #echo "/ip firewall address-list" | ||
+ | #cat $saveTo/ | ||
+ | |||
+ | # dshield, bde and spamhaus lists | ||
+ | |||
+ | #echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | ||
+ | #echo "# This is a combined blocklist created from unique entries in the" >> $saveTo/ | ||
+ | #echo "# DShield, SpamHaus and BDE blocklists." | ||
+ | #echo "/ip firewall address-list" | ||
+ | #cat $saveTo/ | ||
+ | |||
+ | # dshield, voipbl and spamhaus lists | ||
echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | ||
echo "# This is a combined blocklist created from unique entries in the" >> $saveTo/ | echo "# This is a combined blocklist created from unique entries in the" >> $saveTo/ | ||
- | echo "# DShield, SpamHaus, BDE and VoIPBL blocklists." | + | echo "# DShield, SpamHaus and VoIPBL blocklists." |
echo "/ip firewall address-list" | echo "/ip firewall address-list" | ||
- | cat $saveTo/ | + | cat $saveTo/ |
- | </ | + | |
- | ==== Run the Script Daily ==== | + | # dshield and spamhaus lists |
- | Here is one way to configure '' | + | #echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ |
- | + | #echo "# This is a combined blocklist created from unique entries in the" >> $saveTo/ | |
- | <file> | + | #echo "# DShield and SpamHaus blocklists." |
- | chown root.root blocklists4mt.sh | + | #echo "/ip firewall address-list" |
- | chmod +x blocklists4mt.sh | + | #cat $saveTo/ |
- | cp -a blocklists4mt.sh /etc/cron.daily/ | + | |
</ | </ | ||