You can do this pretty simply through iOS settings.
1. Launch Settings > Phone > Blocked
2. You will see all currently blocked numbers. If you have not blocked any numbers yet, it will be blank.
3. To block a number simply click “Add New” and enter the number
You can also block numbers from within the recent calls. Just select the number, scroll down and select “Block this Caller”.