Issues with blocking ads

Expected Behaviour:

I expect the links I give it to block the sites

Actual Behaviour:

I have given my pi-hole about 5 million domains to block to try it out. It seems that it either ignores the gravity or it could be a configuration issue on my part. Below is my compose.yml

# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
  pihole:
    container_name: pihole
    image: pihole/pihole:latest
    ports:
      - "53:53/tcp"
      - "53:53/udp"
      - "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
      - "9080:80/tcp"
    environment:
      TZ: 'Europe/Stockholm'
    volumes:
      - './etc-pihole:/etc/pihole'
      - './etc-dnsmasq.d:/etc/dnsmasq.d'
    dns:
      - '127.0.0.1'
      - '1.1.1.1'
    cap_add:
      - NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
    restart: unless-stopped

Any and all help is appreciated. Thank you

Debug Token:

https://tricorder.pi-hole.net/1pkrbgY7/

here are some screenshot of what i am referring to:


The culprit is this regex whitelist entry

||urbandictionary.com^

You have a similar blacklist entry (which is disabled) for

||ea.com^

Although the intent was to whitelist this domain, using AdBlock Plus style syntax, as a regex this actually matches everything and anything. And since whitelists always have priority, this single rule is whitelisting all domains.

Delete these two rules and test again. You should find the 1717... domain is now blocked.

To add those two domains back correctly, go to Domains > Domain, enter urbandictionary.com and tick the box Add domain as wildcard. Click Add to Whitelist. Repeat for ea.com and click Add to Blacklist.

oh wow. thank you. i will test this immediately

Thank you so much. this had been driving me crazy for days

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.