Facebook DNS Block Fix

Hi All,

If you have Facebook blocked at work, it could just be a simple cheap DNS block, where the administrator has replaced the DNS entry for facebook.com on your local DNS server.

Unfortunately, changing the DNS server that your local machine uses, may not always be the easiest way around it, as the local DNS server might have entries that are required for local access to intranet etc to work.

Below is a host file modification that will override the modified DNS server, and allow facebook to work:

#Valid 22/06/10
#START COPY localhost
# FACEBOOK facebook.com www.facebook.com login.facebook.com register.facebook.com en-gb.facebook.com es-la.facebook.com pt-br.facebook.com fr-fr.facebook.com de-de.facebook.com it-it.facebook.com ar-ar.facebook.com hi-in.facebook.com zh-cn.facebook.com developer.facebook.com developers.facebook.com apps.facebook.com www-college.facebook.com platform.ak.facebook.com creative.ak.facebook.com new.facebook.com tr-tr.facebook.com es-es.facebook.com el-gr.facebook.com sv-se.facebook.com da-dk.facebook.com zh-hk.facebook.com zh-tw.facebook.com fi-fi.facebook.com hs.facebook.com id-id.facebook.com ru-ru.facebook.com hr-hr.facebook.com m.facebook.com nl-nl.facebook.com nb-no.facebook.com ja-jp.facebook.com ko-kr.facebook.com ms-my.facebook.com sl-si.facebook.com connect.facebook.com cs-cz.facebook.com pl-pl.facebook.com secure.facebook.com iphone.facebook.com blog.facebook.com 0.channel24.facebook.com s-static.ak.facebook.com creativeupload.facebook.com creativeupload-sf2p.facebook.com upload.facebook.com

*** Re-made to allow live up date on page refresh. Please go to http://www.armabloggin.com/facehost.php

Click Start/Run then type in “notepad c:\windows\system32\drivers\etc\hosts” (without the quotes) and press enter.

Copy and paste the above text between the start copy and end copy lines into the notepad file, and save.

Let me know if you have any problems with the above, and I might be able to fix them. Also if you want, I could make a myspace/youtube/or whatever else they may have blocked one for you by request.


56 Responses to “Facebook DNS Block Fix”

  • Izzy:

    Due to the way DNS works, there is the possibility for the above to stop working at some point. If you have any issues, just let me know, and I can fix it.

  • Jez:

    I can’t upload pictures with this setup? Anyone else having the same issue?

  • Izzy:

    Jez I’ve updated the above with a modification to the upload.facebook.com dns entry.

    The old one must have had an incorrect IP address, as it wouldn’t let you upload photos.

    Let me know if any other issues.


  • [...] are some example entries for IP addresses for Facebook, but replace with the newer [...]

  • takis:

    please help!hi i want to trace facebooks real ip how can i do that i ll be happy if you help me thanks

  • bob:

    Any tips for Mac please

  • Izzy:

    Hi Bob,

    For info on adding hosts to Mac check out this link: http://support.apple.com/kb/TA27291

    I am not very familiar with Mac, but looks like it’s very similar to Linux in that you just need to edit the host file in the /etc directory.

    Let me know if you have any luck with the above.



  • Izzy:

    Hi Takis,

    If you have Facebook DNS blocked, but you don’t have: http://dns-tools.domaintools.com/ blocked, then you can go there to resolve facebook.com according to their name server.

    As they won’t have facebook blocked, you will get the current real IP.

    To use their website, just type the host you want resolved into the Tools text box on the right, select ping, and click go.

    You will see the results of a ping test, which will show you the resolved IP address.


    Host IP Address Ping Time
    1. facebook.com 19.56ms
    2. facebook.com 19.85ms
    3. facebook.com 19.47ms
    4. facebook.com 19.91ms
    5. facebook.com 19.97ms
    6. facebook.com 19.85ms
    7. facebook.com 19.43ms

    Now I will update my list above to suit the new IP ;)

  • [...] Xem cách ?i?u ch?nh hosts file. – ?ây là m?t s? thí d? ??a s? IP, tuy nhiên thay s? b?ng s? m?i h?n. C?n th?n coi ch?ng [...]

  • bluezer:

    thankz,, it’s work,,
    unblocked youtube please????

  • Izzy:

    Hey bluezer,

    I rekon I’ll be able to nut that one out for you… give me a bit though, and I will post it once i’ve worked out all the IPs and potential dns entries.



  • Izzy:

    Hey bluezer,

    Had a bit of a look around.. should be pretty straight forward for unblocking a youtube DNS block, as there seem to be only 2 entries that are necessary. http://www.youtube.com youtube.com

    Let me know how it goes.


  • Izzy:

    If someone can tell me how to stop that auto link making above where it has http://www.youtube.com with the http:// in front of it, that would be appreciated.

    bluezer keep that in mind when you add that to the hosts file. It’s not supposed to have http:// in front of it.



  • hey i am putting and when i put my name and passport it wont work what shall i do

  • Izzy:

    Hi Farah,

    Does everything else work?

    Change the IP to

    I will update the info above.

    I only checked this one entry, it is possible more has changed, so let me know if any more issues.



  • farah:

    hey lzzy,

    gain same problem

  • bluezer:

    hi izzy,,
    i ussually use http://kwang.blogdns.com/webproxy in front of youtube link,, but it doesnt work so well,, the video streaming can’t play,,,

  • bluezer:

    sorry izzy,,,
    what should i do about this http://www.youtube.com youtube.com

  • TM:

    hi Izzy

    I can not upload picture. What should i do now?

  • Sindy:

    HI. I’ve copy and paste the whole entire entry to the notepad but it still wouldn’t work. please help! please type the whole entry down for me.. thank you very much. your help is much appreciated.

  • tokaut:

    Hi izzy,

    Everytime i get http://block.opendns.com/?url=888888159080868586677015688078&ablock, while trying to access http://www.youtube.com
    Is anyway to bypass this OpenDNS?

  • Winna Pham:

    Since I’m in Vietnam, I’m using an older version of microsoft. It doesn’t have the type in search section! How would I get to the notepad?

  • Izzy:

    Hey Mate,

    Do you have Start->Run? Just type in there.

    Alternatively you can get into the command prompt and type it? Or you can use edit from within a command prompt if it is Win95/98?

    You can probably even find notepad through the Start button under All Programs->Accessories.

  • Izzy:

    I think I have to update the list to include the new IP addresses. I am currently working on some code to automatically update it each time you refresh.

    This will apply to the pictures issue also.

  • Izzy:

    This could be a tricky one…

    Try setting your DNS to in your network properties…

    It probably won’t work because your ISP has some sort of port forward setup, but see how you go.

    Maybe there is a way to use a DNS server with a different port… I will investigate and let you know if I find anything.

    If I’ve led you down the right path, please post back with your results!


  • zee:

    i cannot access to fb since today at 7pm.. VN time… it was ok before and now keep on popping Error 101 (net::ERR_CONNECTION_RESET): Unknown error.

  • Jo:

    Hi, Lizzy! Any suggestions to getting onto Facebook in Vietnam?
    Thanks in advance!

  • Hi!

    Can somebody give me an instruction how i can unlock facebook?
    I am not good in IT! So please can somebody help me.

    I live in Vietnam. And until now i could use it with open DNS. i just had to change the DNS but now it is not working anymore.


  • [...] Updating your /etc/hosts file as documented here [...]

  • Izzy:

    Hi All!

    As mentioned above in the block quote I have made a php script that automatically grabs the correct IPs for a facebook host file each time you refresh the page.

    This should save you waiting for me to update it every once in a while that it changes.

    Let me know how you go.



  • Sorry, these are the websites that I want to have access to


    But I do not have authority (i am not the administrator) to modify the folder c:\windows\system32\drivers\etc\hosts

  • Izzy:

    Hi Jimmy,

    It is going to be extremely difficult to unblock these sites without administrative access to your machine unfortunately. What is your situation? Is this at a workplace or uni/school or something? Are you even able to install third party software on the machine?


  • Izzy:

    You need to add these to your host file as well, and it should give you access to those sites providing it is just blocked via dns.

  • Yes it is for my PC at work, and no I am not able to install third party software. So, I take it that without the administrative access, I will not be able to unblock these sites, correct?

  • Truong:

    Hi Izzy,

    I am currently in Hue, Vietnam. I am having trouble accessing Facebook, which I greatly require since I teach English over here. All my contacts and advisers are on FB , and proxy sites will not work. How can I fix this so that I can access FB, free?

    If possible, can you type out the command I would need to use.

    My system is WINDOWS VISTA.

    Please let me know, ASAP.

  • Lan:

    Iam having a problem with saving the hosts file. It won’t let me replace the hosts file in etc. It said it “cannot create the c:\windows\system32\drivers\etc\hosts file. Make sure that the path and file name are correct”
    Any idea?
    Thanks guys!!

  • Denis:

    hi thanx for this it realy wprks well but i cant chat with oline friends and also i cant upload photos

  • Izzy:

    Hi Denis,

    I had a look at the DNS entries again, and found a whole range of new ones which I will add.

    They look like this: 0.38.channel.facebook.com.

    If anyone knows how to add a wildcard to the hosts file that would be great… something like *.38.channel.facebook.com

    Will update the list shortly, and hopefully this will fix the upload and chat…

  • Denis:

    hi thanx. i can upload photos now but i cant chat with my friend. is there any help

  • josh:

    plss unblock zynga poker on facebook..

  • Denis:

    i have a machine that i dont have admin rights. how can i access facebook on it

  • [...] are some example entries for IP addresses for
    Facebook, but replace with the newer [...]

  • Dozza:

    Hi guys… All sounds rather technical.. I live in Ho Chi Minh and have been able to access FB for the passed year or so by using an alternative DNS. This DNS does not work now and I have tried the ; address which still doesnt work!

    Does anybody have an idiots guide to getting FB up and running for me again??

    Thanks – and happy new year!


  • Mikasa:

    When I input my login details and click the login button it always redirects me back again to the login page. What’s going on?

  • Really helpful post.I may try your DNS technique when my subscription runs out.I first started using a proxy when I traveled to Vietnam and have been using it since because it worked so well.

  • DM:

    Hello, I cannot access my facebook because it keeps saying that my internet is not connected. But only for the facebook site. So I heard that it was because of the DNS problem.

    I followed your steps and pasted everything in the notepad… but Im afraid I have no Idea what steps to do after that? Can you please give me a detailed instruction?

    Thanks so much!

  • leon:

    i tried the above..now i cant get my travelblog photos to upload at all!
    how do i reset the host note pad back to original settings….please help asap.

  • Izzy:

    Hi Leon,

    Should be able to just delete all the entries you pasted in.

    Off the top of my head the only entry by default is: localhost

    Hope that helps.

  • Izzy:

    After that you should be good to go.

    It is possible whoever has blocked facebook using other means like a proxy server etc. So it may not work at all :(

  • gravito:

    we want chat….plz :(

Leave a Reply

Easily create a Wordpress template like mine. Click here to find out how.

  • European, US Data In The Spotlight On Wednesday August 15, 2018
    Economic data is back in the spotlight on Wednesday, with market-moving reports from both sides of the Atlantic scheduled for release. Currency traders are keeping close tabs on the US dollar, which rose on Tuesday to fresh yearly highs. The United Kingdom will headline the European economic calendar on Wednesday. At 08:30 GMT, the Office […] The post Europe […]
  • GBPUSD Strongly Bearish Below 1.2722 Level August 15, 2018
    The British pound has tumbled below the 1.2700 level against the greenback, as Brexit concerns and US dollar strength weigh on sterling. The GBP/USD has also fallen to a fresh 2018 trading low and retains a strong bearish bias while trading below the 1.2722 level. Sellers will likely target the 1.2650 support level while buyers […] The post GBPUSD Strongly B […]
  • EURUSD Medium Term Seller Back In Control August 15, 2018
    The corrective move higher in the EURUSD pair now appears over and sellers are targeting the 1.1300 level as the US dollar index soars towards to new 2018 trading highs. A bearish double-top price pattern is also putting further selling pressure on the EURUSD on Wednesday. If price breaks below the 1.1300 support level, heavy […] The post EURUSD Medium Term […]
  • Ethereum Price Falls As Traders Abandon ICO Projects August 15, 2018
    It has been a difficult month for Ether, the currency of the Ethereum network. Month-to-date, the price of Ether has dropped by more than 40%. It is now trading at $277, which is slightly higher than yesterday’s low of $240. This was the lowest level since November last year. Price drops have also been experienced […] The post Ethereum Price Falls As Traders […]
  • South Korea Moon: Relationship with North the driving force for denuclearization August 15, 2018
    South Korean President Moon Jae-in said today that the agreed summit with North Korea in September will be a further step towards denuclearization of the peninsula. The advancement in the relationship between the Koreas is the “driving force”. Moon pledged to take “take an audacious step to proceed toward the declaration of an end to […] The post South Korea […]
  • China PBoC Continues To Not Drain Liquidity August 15, 2018
    General Trend: Asian equity markets trade mostly lower Shanghai and Hang Seng decline in early trade Tencent drops ahead of expected earnings report Metals and commodity currencies trade generally weaker US dollar trades generally firmer Chinese Yuan (CNY) fixed at the weakest level since May 2017 China PBoC offers medium-term lending facility (MLF), skips d […]
    Trade The News
  • GBP/JPY Daily Outlook August 15, 2018
    Daily Pivots: (S1) 140.77; (P) 141.58; (R1) 142.17; More… GBP/JPY is staying in consolidation from 140.23 and intraday bias remains neutral at this point. Stronger recovery cannot be ruled out. But outlook will remain bearish as long as 143.48 minor resistance holds. On the downside, break of 140.23 will extend the down trend from 156.59 […] The post GBP/JPY […]
  • EUR/JPY Daily Outlook August 15, 2018
    Daily Pivots: (S1) 125.58; (P) 126.29; (R1) 126.76; More…. EUR/JPY is staying in consolidation from 125.13 and intraday bias remains neutral first. More corrective trading could be seen and stronger recovery cannot be ruled out. But upside should be limited well below 128.49 support turned resistance to bring fall resumption. On the downside, break of […] Th […]
  • EUR/USD Continues Downtrend After Wave-3 Breaks Bear Flag August 15, 2018
    The EUR/USD downtrend is continuing lower as expected. The strong bearish momentum is confirming a wave 3 pattern, which could aim for the Fibonacci targets of wave 3 vs 1 at 1.1280 and 1.12. The EUR/USD seems to be in a wave 3 (blue) of wave 3 (purple) at the moment. Eventually a wave 4 […] The post EUR/USD Continues Downtrend After Wave-3 Breaks Bear Flag […]
    Admiral Markets
  • EUR/GBP Daily Outlook August 15, 2018
    Daily Pivots: (S1) 0.8894; (P) 0.8922; (R1) 0.8946; More… EUR/GBP is staying in corrective pattern from 0.9030 and intraday bias remains neutral first. In case of deeper pull back, downside should contained by 0.8854 support to bring rebound. On the upside, firm break of 61.8% retracement of 0.9305 to 0.8620 at 0.9043 will pave the […] The post EUR/GBP Daily […]