There should be a system for banning calls, either complete numbers or calls with particular prefixes.
For mobile phones the Samsung Android systems (probably common to all Android phones) have a method of banning certain numbers. I have never tried it but I imagine that your phone does not even ring when a banned number tries to call.