It already exists. It is called an ad blocker, or content blocker, whatever you want to call it.
And we don't need a law for that, it is already working. We may need a law to protect that freedom, and for most part, it is on that side as we already have rulings saying that ad blocking is not illegal, and enforcement of browser choice, some of them having built-in blockers.
replies(2):