• On Android, open the Phone app, go to Settings > Call Blocking, and block callers from unknown numbers.
  • On iPhone, open Settings > Phone > Silence Unknown Callers and enable it.
  • You can also configure Do Not Disturb to alert you for calls from your contacts only.

Method 1: Block Unknown Numbers From Calling You

You can block calls from unidentified callers on Android. An active spam call filter can prevent suspended spam calls from disturbing you.

On Pixel Devices

Step 1: Launch the Phone app on Android. Tap the three vertical dots menu at the top-right corner and select Settings .

block all calls except contacts on Android and iPhone 10 - 1

Step 2: Tap Caller ID and spam, and enable Filter spam calls toggle.

Step 3: Go back and open Blocked numbers , and enable the Unknown toggle.

block all calls except contacts on Android and iPhone 13 - 2

On Samsung Galaxy Devices

Here’s how you can do it on Samsung devices.

Step 1: Launch the Phone app on your Samsung Galaxy phone. Tap the three vertical dots menu and go to Settings.

Step 2: Enable the Caller ID and spam protection toggle.

Step 3: Open the Blocked Numbers menu and toggle on the Block unknown/private numbers toggle.

block all calls except contacts on Android and iPhone 25 - 3

On iPhone

There is no way to block spam and unknown callers on iPhones directly. However, iOS offers an option to silence unknown callers.

Open the Settings app, go to Phone > Silence Unknown Callers > Enable the toggle for the same.

block all calls except contacts on Android and iPhone 1 - 4

Method 2: Enable Do Not Disturb

You can set your phone’s DND profile to allow calls from contacts only.

On Pixel Devices

Step 1: Open Settings > Notifications > Do Not Disturb .

block all calls except contacts on Android and iPhone 15 - 5

Step 2: Tap People . Select Calls , and tap the radio button beside Contacts .

block all calls except contacts on Android and iPhone 17 - 6

Return to the Do Not Disturb menu and enable the option. Your Android will only notify you about alerts about important people and apps.

On Samsung Galaxy Devices

Samsung Galaxy phone users can go through the steps below to enable DND and only let people in the contacts list reach you via calls.

Step 1: Launch Settings , select Notifications , and tap Do not disturb .

block all calls except contacts on Android and iPhone 28 - 7

Step 2: Select Calls , messages , and conversations under Exceptions . Tap Calls , and select Contacts only .

block all calls except contacts on Android and iPhone 30 - 8

If you receive calls during an active Do Not Disturb mode , check our dedicated guide to fix the problem.

On iPhone

Open Settings > Focus > Do Not Disturb > People . Tap Allow Calls From and select Contacts .

block all calls except contacts on Android and iPhone 6 - 9

Method 3: Use Third-Party Apps

If you want to dial up spam filters on your phone, use third-party apps. There is no shortage of these apps on the Play Store and the App Store, and among them, Truecaller is one of the most robust apps to get the job done. Let’s check it in action.

On Android

Step 1: Download and open Truecaller on Android , tap the three vertical dots menu at the top-right corner and open Settings .

Step 2: Select Block and enable the Block numbers not in the phonebook toggle.

block all calls except contacts on Android and iPhone 21 - 10

Truecaller on iPhone

Step 1: Download and install Truecaller on iPhone .

Step 2: Open the Truecaller app and give it the necessary permissions.

Step 3: Close the Truecaller app and open the Settings app. Scroll to Phone , and select Call Blocking & Identification . Enable Truecaller filters .

block all calls except contacts on Android and iPhone 1 1 - 11

Was this helpful?