Is there a way to edit the ADs out? reddit / selfhosted ---------------------------------------------------------------------- Grand-Pudding6040 · 2023-10-30 01:14 Is there a way that exists to decrypt HTTPS to edit the ADs out and encrypt it again to use the website as usual? ---------------------------------------------------------------------- fuck-fascism · 2023-10-30 01:22 Yeah it’s called a DNS sinkhole. Look up PiHole. ---------------------------------------------------------------------- Grand-Pudding6040 · 2023-10-30 01:24 Yea, I personally do use AGH. It does sink domains, but not all the ADs. There are some ADs out there that are crafted in some special way. How would I go about filtering those special ADs? ---------------------------------------------------------------------- fuck-fascism · 2023-10-30 01:25 An adblocking tool would be the other line of defense… i use both. Some ads you’re just stuck with… ---------------------------------------------------------------------- Grand-Pudding6040 · 2023-10-30 01:54 Yea, I am looking for a whole self-host solution. One that does not need a external solution. ---------------------------------------------------------------------- adamshand · 2023-10-30 03:55 Detecting ads is a massive effort. Whatever solution you end up with, if you want good results, you are going to require external block lists. ---------------------------------------------------------------------- thekrautboy · 2023-10-30 04:59 You need to combine a DNS sinkhole like Pihole or Adguard Home with a browser extension like uBlock Origin. Some ads can be blocked by DNS, some cannot. Thats when the extension helps. On some devices you cannot use extensions. Nothing blocks ALL ads, thats just how it is. Ask /r/Adguard and /r/Pihole for more info. ---------------------------------------------------------------------- hackcs · 2023-10-30 05:56 What you’ve described is basically man-in-the-middle attack, and HTTPS protocol is specifically designed to prevent that from happening. ---------------------------------------------------------------------- redoubt515 · 2023-10-30 05:59 The *Browser* is the best place to accomplish this. You can use a network wide self hosted solution like Adguard Home or Pi-Hole in additional to a Browser based content blocker, they work well in combination, they each make up for the others weakspots. ---------------------------------------------------------------------- zoredache · 2023-10-30 08:19 Well enterprise content filters are able to do something like this. I don't know of any set of tools that would give you a full setup, but you would probably need to start doing the same kind of setup as a squid+squidguard content filter. You have to run it in interception mode, which means generating and distributing your own CA. After you get all that configured, you swap out the squidguard with some magical tool that does content editing. ---------------------------------------------------------------------- arcadianarcadian · 2023-10-30 09:48 It's called MITM (Man In The Middle). Basically \- You must place your application/software/hardware between the client and the server. \- You have to sign your certificate and roll-out to the client. The client will trust your CA and send encrypted packets. \- Because you're in the middle and you're the CA, you can decrypt the packets. ​ Many enterprise proxies/web gateways work this way.