You will be able to do this kind of filtering only on systems where you'll be allowed to run arbitrary code. This capability will be exclusive from running mainstream apps, because of device attestation.