I'm currently using hblock with Arch Linux on my laptop:
and now I'm wondering what the recommended approach for something like this could be when using FreeBSD.
What comes to mind:
This POSIX-compliant shell script, designed for Unix-like systems, gets a list of domains that serve ads, tracking scripts and malware from multiple sources and creates a hosts file (alternative formats are also supported) that prevents your system from connecting to them.
and now I'm wondering what the recommended approach for something like this could be when using FreeBSD.
What comes to mind:
- Simply stick to using a hosts file
- Use a DNS resolver like unbound with a blocklist
- Use a DNS proxy like dns/dnscrypt-proxy2 with a blocklist
- Use a firewall setup with a blocklist
- Or maybe something else?