Well then, pass a law that makes it illegal to solicit any building which has put up a “no solicitors” or “no trespassing” sign.
That would be fine with me. I suspect, though, that most homeowners do not want solicitations and this is one of those instances where a general ban saves both the public and the salesman the trouble of posting/looking for a sign.