28
vane
5y

Trying to learn some golang after a break.

Made http / https transparent proxy for personal project.

Mind: You need to add configuration file with domains you allow traffic and block everything else using list of regex.

Me: Ok I can do it, 4 hours later ok done

Mind: Why not make it differently by making list of url you can block and test this shit on fucking ads and stop using adblock that downloads content.

Me: ok that will be handy I can watch websites faster and drop traffic I don’t want to.

Funny fact, it works I broke analytics, logging, quantum shit fucks and even youtube plays ok.

Go is awesome for networking stuff lol.

Comments
  • 3
    I think I’m gonna uninstall adblock.
  • 2
    That sounds really cool.
  • 2
    @powerfulparadox thanks you can check it out on github I have same nick there, code is shit but it works.

    Not in safari somehow.

    Anyway navigating trough some web now and it never been faster.
  • 3
    @vane I'll certainly do that. It sounds like a nice medium between adlock and pi-hole.
  • 1
    "adblock downloads content" can you expand on that?
  • 1
    @jesustricks I made a shortcut in my mind but what I meant is that there are websites that detect that you run adblock by just running javascript.

    But if you cut traffic before browser gets it any reasonable software developer will assume there is network problem but it isn’t.

    You don’t deal with browser problems like different / changing / blocked api.

    You don’t traverse dom by looking for elements. You just cut requests.

    Funny fact is most of gdpr popups are delivered by third party so you can cut them too.
  • 1
    @vane that is interesting and now makes sense to me why solutions like pihole and yours can be way more effective than the blocking being done in the browser.

    Like, a browser extension can do so much. It's basically browser userland.
  • 0
    @jesustricks yeah there is hook in browser plugin api to load script before page load and all adblock plugins work like that.

    On the other hand pihole use dnsmasq that points unwanted website / ip to localhost.

    Dnsmasq don’t support regex by default so block lists are very long.
  • 0
    @powerfulparadox I might make new project and add dns and tcp/udp traffic filters but don’t know where my mind will lead me to 😂
  • 0
    What proxies can't, but good adblockers can, is remove first party ads and analytics.
    Anyway, well done.
  • 1
    Tried it out, did not work yet, will try @ home soon
  • 1
    @localjoost yeah I have some problems with corporate networks too.
Add Comment