Hey, I just met you and this is crazy. I make helpful tutorials, so buy me a beer maybe? https://www.paypal.me/punchsalad
In this video I'll take you through how to edit hosts file in mac. You might need to have admin password for this to work.
path to hosts file: /private/etc/hosts
Terminal command: sudo killall -HUP mDNSResponder
Steps to modify your hosts file on mac:
1. In Finder click on "Go"
2. Select "Go to Folder"
3. Enter /private/etc/hosts
4. Enter password if required
5. Drag the hosts file to your desktop
6. Update the file with format for example: 0.0.0.0 www.yourwebsite.com to block any website
7. Save the file
8. Drag the hosts file back to the etc folder
If above didn't work, then continue
9. Open terminal (you can search for it with spotlight search)
10. Add a this command: sudo killall -HUP mDNSResponder (for some this will work better: dscacheutil -flushcache)
11. Enter password if required
12. Hosts file updated
You'll find more tutorials here: http://punchsalad.com
If you have any questions, leave me a comment below, I will be glad to help. I hope you liked this tutorial!