I posted how to redirect web pages for Windows and thought I’d show you how to do it on a Mac.
You will need to edit /private/etc/hosts.
$ ls -l /private/etc/hosts
-rw-r--r-- 1 root wheel 746 Oct 4 18:59 /private/etc/hosts
$ cat /private/etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
$ sudo vi /private/etc/hosts
Add the following to the end of the file
68.71.208.75 google.com
68.71.208.75 www.google.com
68.71.208.75 facebook.com
68.71.208.75 www.facebook.com
Then flush the DNS cache.
$ dscacheutil -flushcache