In my country, landlines starts with certain code. So I simply ignore and block any number that starts with those code. I hate robocalls. I wish there was a way to reject all calls coming from numbers who aren't on my contact list.
What kind of phone do you have? There are definitely Android apps that do this. This is the one I happen to use, there are many others: https://play.google.com/store/apps/details?id=com.grus.callb...
Just go to: Settings > Phone > Silence Unknown Callers
(Calls from unknown numbers will be silenced, sent to voicemail, and displayed in the Recents list.
Incoming calls will continue to ring from people in your contacts, recent outgoing calls, and Siri Suggestions)