For the longest time, to access Facebook, just changing my dns to use either google or opendns worked for me. However that trick doesn’t work anymore because all the IP Addresses that facebook.com normally resolves to have been blocked by the ISPs in Vietnam. I had resorted to using sshuttle – which creates a tunnel between my laptop and my server in the US. It worked, but it was slow. However yesterday one of my friends gave me a list of IP Addresses for Facebook which haven’t been blocked yet. These can be added to your
hosts file and you should be able to access Facebook again!
18.104.22.168 facebook.com 22.214.171.124 apps.facebook.com 126.96.36.199 login.facebook.com 188.8.131.52 graph.facebook.com 184.108.40.206 static.ak.connect.facebook.com 220.127.116.11 developers.facebook.com 18.104.22.168 error.facebook.com 22.214.171.124 fbcdn-profile-a.akamaihd.net 126.96.36.199 fbcdn-sphotos-a.akamaihd.net 188.8.131.52 fbcdn-photos-a.akamaihd.net 184.108.40.206 facebook.com 220.127.116.11 www.facebook.com 18.104.22.168 apps.facebook.com 22.214.171.124 facebook.com 126.96.36.199 www.facebook.com 188.8.131.52 apps.facebook.com 184.108.40.206 login.facebook.com 220.127.116.11 graph.facebook.com 18.104.22.168 static.ak.connect.facebook.com 22.214.171.124 developers.facebook.com 126.96.36.199 error.facebook.com 188.8.131.52 upload.facebook.com 184.108.40.206 register.facebook.com 220.127.116.11 bigzipfiles.facebook.com 18.104.22.168 pixel.facebook.com 22.214.171.124 apps.facebook.com 126.96.36.199 facebook.com 188.8.131.52 www.facebook.com 184.108.40.206 login.facebook.com 220.127.116.11 photos-a.ak.fbcdn.net 18.104.22.168 photos-b.ak.fbcdn.net 22.214.171.124 photos-c.ak.fbcdn.net 126.96.36.199 photos-d.ak.fbcdn.net 188.8.131.52 photos-e.ak.fbcdn.net 184.108.40.206 photos-f.ak.fbcdn.net 220.127.116.11 photos-g.ak.fbcdn.net 18.104.22.168 photos-h.ak.fbcdn.net
If you’re on Linux, add the above entries to
/etc/hosts. For Windows, I think the path is =>
c:\WINDOWS\system32\drivers\etc\hosts. This Wikipedia Article should help in case you need to figure out where your hosts file is.
Hope this helps.