Unfortunately, the only reliable way to do that is through your network carrier. You should call your provider and see if they offer any options to block unwanted calls like that.
Alternatively, there are some apps that claim to be able to be able to do this, but I've never used any myself so I can't offer any recommendations on that end.