How to Block Hexadecimal URLs?

Is there a way to block websites that use dynamic hexadecimal URLs.

I've thought of using a rainbow table of a range of addresses however that got way too big way too quickly.

Does anyone have any ideas on how to do this?

edit

Is it possible to block urls if all characters match a defined character set?

Please explain in more detail what is special about the hexadecimal IPs. Also, please keep in mind that Pi-hole operates as a DNS server, i.e. we can only block requests to domain names, not IP addresses.

No, the underlying DNS server dnsmasq does not support Regex evaluation. You can either exactly block domains (e.g. something.else.com) or wildcard block domains (incl. all of their subdomains).

Are you talking about IPv6 addresses. Post a screenshot of what you mean.

I suspect that might be the case... let's see what @DTM450 comes back with...

No I mean urls like this 8baf7ae42000024 .com and 8777446132e88e1f3 .com, these will show up as unreachable or some other error unless they have /afu= or some other subdomain after the domain name. They come from an anonymizer site called www.pananames.com and domains-anonymizer.com, got it from using https://dig.whois.com.au/whois/8777446132e88e1f3.com

They change usually within a day or two and there are a couple of sites that offer this kind of anonymizing. Some sites use these to load scripts that bounce you around before landing you on a fake malware warning page or some other ad page

edit Looking back I realised that url is correct and not IP

2nd edit These Domains show up in uMatrix

Wow I don't know how you would be able to block that.They could generate hundreds of thousands of domains every minute if they wanted to.

There must be a way but i'm not sure if Pihole can do this, Probably easier to change your browsing or download habits.