This is a perl script I'd created for personal usage to block annoying ads and malicious sites, use at your own risk.
- Linux/Windows with perl, wget, bind9 installed. Refer lin or win to learn how-to.
- Know how to read/modify perl scripts in case installation differences.
- optional crontab edits if you want to run this script periodically.
bind9 installed to /etc/bind
or C:\named
, or else modifications to the script is needed.
modify named.conf
if you know how/like.
windows note:
- privileged command line :
- find
rndc-confgen.exe
from existing installer, runrndc-confgen -a
, a rndc.key will auto-generated toC:\named\etc
- rndc-confgen > C:\named\etc\rndc.conf
- copy blockads/config/only4win/* to
C:\named\etc
is needed. Not needed for linux.
perl ./blockads.pl
in linux, or perl blockads.pl
in windows.
/etc/init.d/bind9 restart
or WIN+R > services.msc
, find "ISC BIND" and restart.