There are several steps you can take to block a number on a landline phone and reduce the amount of spam calls you receive.
You can block a phone number or existing contact on your iPhone from the Phone app or your Contact list.