Blocking spam numbers is usually ineffective. The best way to stop them on your iPhone is to enable Apple’s Silence Unknown Callers feature or invest in a call blocking app.