Results 1 to 6 of 6

Thread: Block a Website of your choice

  1. #1
    Silver Member
    Join Date
    Jul 2009
    Liked
    1 times
    Posts
    345

    Default Block a Website of your choice

    Some times it becomes necessary to block a website on our Computers for one or other reason. You can easily and effectivily block access to a website by adding it to your Windows HOSTS file. Once the website is blocked in the HOSTS file, it will not appear in any of the browsers. That is, the website becomes completely unavailable.

    1. Go to your HOSTS file which is located at:

    C:\WINDOWS\SYSTEM32\DRIVERS\ETC for Vista and XP
    C:\WINNT\SYSTEM32\DRIVERS\ETC for Win 2000
    C:\WINDOWS for Windows 98 and ME

    2. Open HOSTS with Notepad.

    The default Windows HOSTS looks like this:
    ______________________

    # Copyright © 1993-2009 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a “#” symbol.
    #
    # For example:
    #
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host
    #
    127.0.0.1 localhost
    _____________________________

    3. Directly under the line that says 127.0.0.1 Localhost, you will want to type:

    127.0.0.1 name of the URL you want to block

    For example to block the website google.com, simply type:

    127.0.0.1 google.com
    127.0.0.1 Google
    Other parts of google could be blocked in a similar way:

    127.0.0.1 search.google.com
    127.0.0.1 profile.google.com
    etc etc etc…
    It is necessary to add a website with and without the “www.”. You can add any number of websites to this list.

    4. Close Notepad and answer “Yes” when prompted.

    5. After blocking the website, test it in any of the browser. If every thing is done as said above,the website must not appear in any of the web browsers. You should see a Cannot find server or DNS Error saying: “The page cannot be displayed”.

    Some people suggest that your add a website to the Internet Explorer ‘Privacy’ settings. This does not block a site. It only stops that site from using cookies.

  2. #2
    Gold Member
    Join Date
    Feb 2009
    Liked
    0 times
    Posts
    571

    Default

    Good post.
    However one thing to note is not to save the edited file as a text file.
    Choose Save as Type as "All files"....

  3. #3
    Platinum Member
    Join Date
    Aug 2009
    Liked
    0 times
    Posts
    8,555

    Default

    Good one Naren.

  4. #4
    Platinum Member
    Join Date
    Nov 2009
    Liked
    0 times
    Posts
    2,041

    Default

    Great post..........

  5. #5
    Junior Member
    Join Date
    Mar 2009
    Age
    37
    Liked
    0 times
    Posts
    13

    Default

    Thanks for the useful information.

  6. #6
    Silver Member
    Join Date
    Jul 2009
    Liked
    1 times
    Posts
    345

    Default

    Welcome all. Thanks dilip

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Website do not appear in google
    By niraj8241 in forum Web hosting
    Replies: 3
    Last Post: 05-18-10, 03:55 PM
  2. How to find the hosting company of a website?
    By pankajadv in forum Web hosting
    Replies: 7
    Last Post: 04-25-10, 01:38 PM
  3. Replies: 0
    Last Post: 04-15-10, 05:44 PM
  4. Pump traffic from Google to your Website
    By gaggan4392 in forum Web hosting
    Replies: 1
    Last Post: 02-25-10, 09:08 PM
  5. Micorsoft’s automated trouble shooting website
    By meetdilip in forum Software News, Previews and Reviews
    Replies: 0
    Last Post: 02-03-10, 03:08 PM