To block all area codes except one or two:
Open your phone settings.
Find "Call Blocking" or "Blocked Numbers."
Add the area codes you want to allow to the "Allowed" or "Whitelist" section.
Block all other area codes in the "Blocked" or "Blacklist" section.
This way only calls from the allowed...