HACKER Q&A
📣 behnamoh

How to block all Medium-based websites in Kagi and uBlock?


I have blocked Medium in my Kagi search results but there are numerous other websites with custom domains that point to Medium under the hood. Is there a way to block all such things? How about in uBlock?


  👤 LinuxBender Accepted Answer ✓
in uBlock Origin preferences, -> My Filters -> add:

    ||medium.com^
That should block their site and all the sub-domain custom domains that point to it. [0]

As for blocking domains that point to it without using "medium.com" in the name, that would likely be a never-ending process of whack-a-mole, I think. They use CloudFlare and blocking CF's CIDR blocks [1] can certainly be done but then much of the websites on the internet would be blocked.

[0] - https://www.netify.ai/resources/domains/medium.com

[1] - https://bgp.he.net/AS13335#_prefixes


👤 stop50
From my tests with an random medium site it isn't possible. The site has set the A-record to the medium ip addresses. ublock origin uses the detection of cname records. For filtering my search records i use ublacklist.