Pihole should block URL's that are listed inside the Blocklists.
Actual Behaviour:
Websites that are supposed to be blocked by the Blocklist entrys of lists I added to the Blocklists are still reachable. However, if I add them manually to the Blocklist menue where I can do things with regex and wildcard, I sometimes cannot access them. All in all I can still acess them. I have tried adding xvideos.com and it is BOTH the most permitted and most blocked website https://i.imgur.com/M1py1Tp.png.
Debug Token:
uuejqdvzlw newer one: sy4c3oqrbf
I don't know what to do It's working on my Android device. It does not work on laptop and notebook. It seems to be blocking advertisements on windows but it isn't blocking me from visiting websites I blocked.
Did these things so far:
Have enabled the DHCP thing
DHCP IPv6 thing is also enabled
DCHP is disabled on my fritzbox
It is listed as DNS server in all fritzbox settings
I have rebooted all devices dozens of times
It does work for an URL I have added to the blacklist manually even on windows but it doesn't for the others I added manually
It did reinstall pihole
I added some URL's manually with the Blocklist menue where you can use wildcards. One of them is now being blocked. Others are not
Cleared Browsercaches and Sessions (everything but history)
xvideos.com is different from www.xvideos.com. Solution: In the Pi-hole Admin Console go to Blacklist, enter xvideos.com and click the "Add (wildcard)" button.
How can I automate that process? I'd have to insert more than a million URLs from hand for this to work. I have tried editing the wildcard list but there is noe. The URLs I have added to the wildcards are not listed at /etc/dnsmasq.d/03-pihole-wildcard.conf , Someone has mentioned that there is a script for this process. Do you know it's name? Where it is or even how it works. I can't find it.
I strongly doubt that. The blocklists/hosts files normally contain the domains/subdomains that should be blocked (barring exceptions, errors, omissions). If you add all domains in those lists as wildcards the probable outcome would be that far too much would be blocked.
EDIT: Sorry, I forgot to mention that the wildcards can be found in /etc/pihole/regex.list
What do you mean by too much? It's not like I browse websites with URLs of advertisements. Maingoal is to block all pornsites,if it starts blocking some clickbait website like top 10 funny pornconversations or something I wouldn't mind that.
Eitherway though? How do I add a whole list as wildcard? I found the regex.list but I don't know how to make a program write (^|.) infront of all of them.
Okay, it really depends what exactly you want to add as wildcard. If you want to add pornsites that's okay. What I meant: Adding a rule like, e.g., (^|.)spiegel.de$ just to block c.spiegel.de or count.spiegel.de would only cause problems.
That said, on https://firebog.net/ you'll find comprehensive lists that block pornsites.
You would have to write a little script using sed or awk. There are scripts by @anon55913113 and @mmotti in this forum which might be useful as a template.
I added all of those lists but they don't save pornsites like pornhub.com as www.pornhub.com making the website still accesible with www.pornhub.com and once I have reached them that way reachable without the www.
Also what is a modified regex? Do you mean adding regex commands? Do they even apply to my list-blocked-entries? Don't I have to add every website that is supposed to be affected by the regex commands per hand? I did add some regex commands I found in a list already however.
Be careful, because this site uses more permissive rules than Pi-Hole. Pi-Hole uses POSIX ERE, and we have seen instances of regex that "pass" on regex101 and don't work in Pi-Hole.
So, even if the regex passes on regex101, you should enable regex debug mode in FTL and test a case on your Pi and see if it is blocked (each time a regex blocks, it becomes an entry in pihole-FTL log with debug enabled).