To block unknown callers on an iPhone, you can enable the "Silence Unknown Callers" feature. Here's how to do it:
Open the "Settings" app on your iPhone.
Scroll down and tap on "Phone."
Look for the "Silence Unknown Callers" option and toggle the switch to enable it.
Find out other methods to block unknown callers in this article.