Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wildcard Root Domain (www, etc?) #41

Open
x86txt opened this issue Oct 18, 2021 · 1 comment
Open

Wildcard Root Domain (www, etc?) #41

x86txt opened this issue Oct 18, 2021 · 1 comment

Comments

@x86txt
Copy link

x86txt commented Oct 18, 2021

None of these blocklists have root wildcard domain blocking. So for example, www tiktok.com still works, but tiktok.com doesn't. Same for youtube, facebook, etc. I've verified this with the latest Pi-Hole and pfBlockerNG.

I'm not sure if this is intentional, but for those of us using these blocklists, adding a .rootdomain.com to the blocklist will accomplish root domain blocking. e.g. .tiktok.com or .youtube.com.

You can do this in Pi-Hole via Group Management -> Domains -> RegEx filter:

2021-10-18_11-33-36

In pfBlockerNG you can add custom domains under the DNSBL List. Just make sure to add it as a regular expression (RegEx) like .tiktok.com or .youtube.com. The "." is a wildcard and the most important.

Note: If this is in fact an oversight, I'd be happy to submit a PR to fix it. Please just let me know @d43m0nhLInt3r and thank you for your hard work compiling these lists.

@d43m0nhLInt3r
Copy link
Owner

So, I checked it out. The fact that not everything is written in Regex format is because some programs had problems with Regex, which is why, for example, the Tiktok block list was divided into 2 lists.

with regex: https://github.com/d43m0nhLInt3r/socialblocklists/blob/master/TikTok/tiktokblocklist.txt

without regex: https://github.com/d43m0nhLInt3r/socialblocklists/blob/master/TikTok/tiktokblocklistWithoutRegex.txt

If you want to create a pull request, you are welcome to do so. Surely there will be others who will benefit from. Thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants