How do I add a list of NAME.tld URLs as wildcards to regex.list without manually entering every URL?

Pretty sure this will finally solve all my problems. This is the list:
https://raw.githubusercontent.com/chadmayfield/pihole-blocklists/master/lists/pi_blocklist_porn_all.list
I managed to download it, but I don't know how to get every seperate URL, make it a wildcard one and add it to regex.list.

Has someone attempted this before and still has the command lieng around? I have been reading stuff about grep and think it has to do with it but the man page looks like kantonese to me

Why do you not want to just use the blocklist as written? Pi-Hole will add all these domains to gravity, with no extra work on your part.

Because I can access the websites inside the list. PiHole is working. It blocks some things. It arrives at my pc. I flashed all dns things I deactivated all rouge browser dns shenanigans. I'm sick of it I rather block a bunch of wrong websites than none at all. I almost only use imgur,reddit,lydia,skillshare,mega,steam,igg-games and some streamingwebsites anyways.

If this is true, then this

cannot be true.

So in order to proof my point I tried to make a video/gif but it failed whiel encoding. However here is what I did:
Close Firefox -> ipconfig /all -> ipconfig /flashdns -> ccleaner clear all cache of firefox and chrome -> manually clear cache of firefox -> clear history cache thing -> enter 3 websites that should be blocked -> all are unreachable -> go to google -> search porn -> click first website -> www.fuq.com -> go back to pihole settings -> query fuq.com -> entry found but not with www. > add www.fuq.com as wildcard and exact entry manually -> redo all the cache flushing -> www.fuq.com is still accessible -> other sites like pornhub.com are not.

This works with multiple sites. 3movs.com would also be accesable if I didn't add a wildcard fo rit.

This is Why I want to add every site as wildcard.

The referenced block list in your OP has about 1.76 million domains listed. Of that number, less than 100 have the "www." version of a domain. Perhaps that's not a very good list to use.

If you were to convert each of the 1.76 million domains to a regex, it would take your Pi about a week to compile them all and they would likely slow your Pi to a crawl after compiling.

A better approach would be to look at patterns in the domain names. The list you reference has 1.3 million domains that contain the word blogspot - example: -porno-sample-vids-.blogspot.tw

Write a single regex that blocks all domains containing the word blogspot, and that takes the place of all 1.3 million domains on that list.

Similarly you can do this with other key words, like porn or fuq, etc.

From the 400,000 you start with, how many regex lines result?

The OP was proposing to create a regex for each domain, which is a different algorithm than you are using.

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