Skip to content
Discussion options

You must be logged in to vote

It's possible to do this, but not with a hosts file, which the custom blocklist modifies.

If you want to block entire domains including subdomains, eg. *.facebook.com do the following:

  1. edit RaspAP's adblock config sudo nano /etc/dnsmasq.d/090_adblock.conf
  2. specify your own domain list by adding conf-file=/etc/raspap/adblock/my-domains.txt
  3. edit this file sudo nano /etc/raspap/adblock/my-domains.txt
  4. add the line address=/facebook.com/0.0.0.0
  5. save, exit and restart Ad blocking

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LeroxHD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants