Transposing a Unix Command Line App to iOS

Hello iOS experts,

I really want to make something like this:

https://www.pluckyfilter.com/

For my iOS devices, an internet filter that can't be changed except after a delay and that can be finetuned(I.e. disallow some subdomains but not others). Obviously it would not work if you could simply delete the app or use any other easy bypass.

What is the best way to do this?

Thanks Tony

Replies

There’s many ways you can approach this. At a surface level I thought plucky was doing DNS & HTTP filtering by acting as a proxy. But on closer look, it looks to be implemented as a browser plugin. For subdomain/domain filtering, you can look at implementing content blocking in a safari extension: https://developer.apple.com/documentation/safariservices/creating_a_content_blocker

To implement the HTML content blocking stuff, you’d probably want to look into DOM rewriting within the safari extension. At least it all seems pretty straight forward to implement.