Access Blocked Facebook on Apple MacBook
Step 1: Open Terminal
We can open Terminal either by typing Terminal on the Spotlight, or by navigating to Applications – Utilities – Terminal.
Step 2: Edit Hosts File
The Hosts file is the text file mapping particular hostnames to certain IP addresses. When you type in a URL address on Safari, the system will check in the host files to see if there is a relevant entry. If there is, it will get the corresponding IP address, else it will move on to the DNS server to find the IP address.
Now we need to open the Hosts file to edit it. Type in the following command in the Terminal:
sudo nano /private/etc/hosts
Enter your administrator password when prompted.
The hosts file will be opened for editing.
Next, add following lines to the bottom of this file:
153.16.15.71 apps.facebook.com
125.252.224.88 facebook.com
125.252.224.88 www.facebook.com
153.16.15.71 login.facebook.com
153.16.15.71 graph.facebook.com
153.16.15.71 static.ak.connect.facebook.com
153.16.15.71 developers.facebook.com
153.16.15.71 error.facebook.com
153.16.15.71 upload.facebook.com
153.16.15.71 register.facebook.com
153.16.15.71 bigzipfiles.facebook.com
153.16.15.71 pixel.facebook.com
153.16.15.71 0.132.channel.facebook.com
153.16.15.71 1.132.channel.facebook.com
153.16.15.71 error.132.channel.facebook.com
Press control-O to save the file.
Step 3: Flush DNS Cache
To make the changes take effect, we then need to flush the DNS resolver cache. Enter the following command in the Terminal:
dscacheutil -flushcache
You now can exit Terminal and access Facebook like normal. Leave a comment below if you have any problem.
We can open Terminal either by typing Terminal on the Spotlight, or by navigating to Applications – Utilities – Terminal.
Step 2: Edit Hosts File
The Hosts file is the text file mapping particular hostnames to certain IP addresses. When you type in a URL address on Safari, the system will check in the host files to see if there is a relevant entry. If there is, it will get the corresponding IP address, else it will move on to the DNS server to find the IP address.
Now we need to open the Hosts file to edit it. Type in the following command in the Terminal:
Enter your administrator password when prompted.
The hosts file will be opened for editing.
Next, add following lines to the bottom of this file:
153.16.15.71 apps.facebook.com
125.252.224.88 facebook.com
125.252.224.88 www.facebook.com
153.16.15.71 login.facebook.com
153.16.15.71 graph.facebook.com
153.16.15.71 static.ak.connect.facebook.com
153.16.15.71 developers.facebook.com
153.16.15.71 error.facebook.com
153.16.15.71 upload.facebook.com
153.16.15.71 register.facebook.com
153.16.15.71 bigzipfiles.facebook.com
153.16.15.71 pixel.facebook.com
153.16.15.71 0.132.channel.facebook.com
153.16.15.71 1.132.channel.facebook.com
153.16.15.71 error.132.channel.facebook.com
Press control-O to save the file.
Step 3: Flush DNS Cache
To make the changes take effect, we then need to flush the DNS resolver cache. Enter the following command in the Terminal:
dscacheutil -flushcache
You now can exit Terminal and access Facebook like normal. Leave a comment below if you have any problem.






HI, i suddenly apply this, but then it became error. I mean it mentioned "Invalid URL
The requested URL "/", is invalid.
Reference #9.54e0fc7d.1347627630.d8fbf"
How to set this into it default?
Any solution