Allow URLs to be blocked
Allow a "blacklist" of URLs that shouldn't be loaded.
@nerdbeere, this is sourced from the list of issues in #1.
What content should the consumer get? Maybe a simple response with code 502? Maybe 451 :wink:?
I think the initial idea was to emulate the behavior of adblockers. They use an extension api to block requests which we can't do as we don't have access to the browser. It doesn't really matter which code we send, everything could lead to an unexpected result here. Depending on the application catching the error.
Hmm, we could just cancel the connection, I believe that that's how Ad-blockers "do". At least Ublock Origin causes a net::ERR_BLOCKED_BY_CLIENT error in the console:
