4:53 pm - Thursday February 9, 2012

Block Websites using DNS

  • Share
  • Share

Do you want to know how to block a website without using any software or without using Browser inbuilt security. Well here is a much secure and hard to find out way of blocking websites.

How does DNS Website Blocking Work ?

The TCP/IP protocol in Windows contains a file called “hosts“  that contains the mapping of the website to a particular IP address. Whatever DNS address you may use in your router or modem or your TCP/IP properties in Network Connection, they will be overridden by the IP mapping done in this “host” file. So by simply mapping any website to a dummy IP we can block the particular website from loading in the browser.

How to block a website using DNS

  1. Open the folder “C:WindowsSystem32Driversetc
  2. In that folder you can find a file by the name “hosts“, right click on the file and open it with notepad or any other text editor.

    dns Block Websites using DNS

    IP Mapping

  3. As in the above show image, the last lines represents the IP mapping, so add the IP address “127.0.0.1″ followed by the website that you want to block.
  4. The address “127.0.0.1″ is the localhost address, (you can specify any other dummy IP in that place if you want to )
  5. Save the File
  6. Restart your Browser and now you can find that the website you have added will fail to load.

How to check if a website is blocked by DNS

There are many ways by which you can find whether a website has been blocked to you or not. Following are some of the methods by which you can find out.

Direct Host File Lookup

Nothing can be much easier than this method, to check the website is blocked by DNS or not, just open the host file specified in the folder “C:WindowsSystem32Driversetc” , However administrators are smart enough, they would have already restricted you from viewing the System Files, In those cases you got to try the following methods.

Down for Everyone Or Just Me

This is one of the mostly viewed website to detect if a website is not available just to you or to everyone. Enter the website that you want to check and there you can find out if the site has been blocked. However this method cannot precisely determine if its blocked because of the DNS. There may be several ways by which ca website can be blocked ,DNS is one such way.

IP Lookup

Since DNS methods maps the website to some dummy address, whenever you ping the website, it in return pings the IP that has been mapped to it. Open Command Prompt and type  “ping“  followed by the website name. This will show the IP that been associated with it. Comparing it to the original IP you can find if the site has been blocked by DNS or not.

Open a Blocked website

If you cannot get a chance to edit the IP mapping table, you can still open the blocked website using proxy websites. HideMyAss is one such proxy website viewer, that can help you in this case.

hide my ass Block Websites using DNS

HideMyAss

pixel Block Websites using DNS

Loading
Filed in: Tutorials

49 Responses to “Block Websites using DNS”

  1. April 4, 2010 at 5:02 pm #

    I can not hold back until the actual apple company ipad is otherwise engaged in britain, i have seen some reviews online from All of us consumers and yes it appears brilliant. I’ve come across some incredible add-ons ^ just about to happen too! ipad PWNS!

  2. yoni
    April 6, 2010 at 6:22 am #

    Thank you so much, i just searched the web for two hours trying to figure out why i cant open new websites suddenly, turns out some porn blocker i installed a day before used their “uniqe” way to block sites, and even after i remved the porn blocker software, there were still alot of sites with markes as 127.0.0.1 blocked.
    Weird that i find the solution here. tyvm

    • April 13, 2010 at 9:16 am #

      Wow, I cured your problem :D . My pleasure mate, do contact me at rkdperil@gmail.com for any further queries :)

  3. April 7, 2010 at 2:03 pm #

    thanks for this solution. this is very easy way to block websites.I tired, it’s working perfectly.

  4. April 13, 2010 at 3:46 am #

    Wow, I cured your problem :D . My pleasure mate, do contact me at rkdperil@gmail.com for any further queries :)

  5. May 29, 2010 at 11:34 am #

    Had configure SQUID for Windows. I was a linux guru back in the old days until such time when SQUID was released to support Windows and an office consult me of setting up their web proxy cache I tried using this and it’s awesome. In my page I’ve put step by step configuration on Windows with scripting on squid.conf on how to block sites like streaming,porn sites and block port.

  6. June 1, 2010 at 4:37 pm #

    Using DNS is a simple way to block sites. Good tips for Parents to control child addicting from browsing porn sites/social networks/games.

  7. June 15, 2010 at 8:24 pm #

    Beneficial luck on your web site, and feel totally free to go to and comment on my blog as well! :)

  8. September 21, 2010 at 2:24 pm #

    Hi that were some big information. Despite im from poland and my english isnt that hot i was able to understand everything, so i enjoy your english style, because its so well organized and pleasing to interpret. Go on like that!

  9. September 28, 2010 at 6:51 am #

    For reasons unknown i’m receiving a blank page whenever i make an attempt to post a comment,do you recognize the reasons its heading?i’m employing oprea web-browser

  10. November 18, 2010 at 1:44 pm #

    Hi there i am so happy I discovered your website, I actually uncovered you through error, when I had been searching Aol with regard to another thing, Anyways I am here now and would certainly like to say thanks for the superb blog posting and a general absorbing blog (I additionally love the theme/design), I do not have time to read it all right now but I have you bookmarked and also added your RSS feeds, so after i have time I’ll return to browse more

  11. November 28, 2010 at 7:14 pm #

    I’ve had some issues accessing your website on Chrome, just thought you should know!

  12. December 5, 2010 at 9:47 pm #

    To the point and impressively written, thank you for this post

  13. Krishna Wethington
    January 10, 2011 at 5:38 am #

    This page called Unblock Websites also has got some decent information on the topic.

  14. February 11, 2011 at 10:04 pm #

    I have to point out my respect for your generosity giving support to those people that really want help with this particular topic. Your very own dedication to passing the message all-around has been definitely functional and have helped guys and women like me to reach their goals. Your own valuable help indicates a great deal to me and further more to my office workers. With thanks; from all of us.

  15. February 15, 2011 at 3:28 am #

    Good post, but it doesn’t always seem to work with my router ip, any helpful hints?

Leave a Reply