5 points
*
If you’re on Android, you can automate that with this app (available on F-Droid):
https://github.com/x13a/Silence
It also includes options to allow numbers you’ve contacted by phone or text, even if they’re not in your contacts, e.g. the doctor’s office.