If you're talking about a land line then there are three possibilities: 1) Your service provider may offer call blocking but it's usually at a premium. 2) You can purchase a phone that has call blocking capabilities built in. If you google "call blocking phones" you'll find a lot of different kinds. 3) You can purchase a stand-alone call blocking device. I have #3. There are a variety of types but they are really easy to use. Google "call blockers" and you'll see all sorts of them. Mine blocks up to 5000 numbers. It cost just under $100. There are less expensive ones as well. If you're using a cell phone, some of the providers include call blocking. How you do it depends on the kind of phone you have. You can also download, call blocking apps from your app store. Most are free. Take a look at the 800 notes forum on call blockers. Maybe users posts will help you decide.
http://800notes.com/nb/search.aspx?q=call+blockers
If you reply with the kind of phone you have, I'll try to help you further.