1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

How to block a site in client pc

Discussion in 'Windows XP' started by kuzhanthaivelu, Oct 29, 2010.

Thread Status:
Not open for further replies.
Advertisement
  1. kuzhanthaivelu

    kuzhanthaivelu Thread Starter

    Joined:
    Oct 9, 2008
    Messages:
    123
    hi
    Pl. giv an suggestion for above title.
     
  2. cwwozniak

    cwwozniak Trusted Advisor Spam Fighter

    Joined:
    Nov 28, 2005
    Messages:
    62,021
    First Name:
    Chuck
    One possible method is to edit the computer's HOSTS file so that the blocked site's URL resolves to 127.0.0.1 (local host). This method does not use any special software but can easily be bypassed or removed by a computer savvy user.
     
  3. Phantom010

    Phantom010 Trusted Advisor

    Joined:
    Mar 9, 2009
    Messages:
    34,796
    In Windows XP or Vista, the HOSTS file is found here:

    C:\Windows\System32\Drivers\etc\hosts

    Double-click the 'Hosts' file and select "Notepad" from the list of programs to open it with.

    Once you have the hosts file open in Notepad, you will see an entry such as:

    127.0.0.1 localhost (or ::1 localhost)

    To block a certain webpage from loading, add the following:

    127.0.0.1 www.webpage.com

    Your Hosts file will now look like this:

    127.0.0.1 localhost
    127.0.0.1 www.webpage.com

    Add as many Web addresses as you like in the same fashion.

    Once you are finished, go up to 'File' and click 'Save'.

    If using Notepad to edit the file, make sure to change the Save as Type: box to All files. Otherwise, Notepad may add a .txt extension to the file which will keep it from working. If you don't have your system set to show extensions, it's easy to miss that.

    The web pages listed in your 'Hosts' file should be blocked from access. It may be necessary for you to reboot your computer for these changes to take effect.
     
  4. kuzhanthaivelu

    kuzhanthaivelu Thread Starter

    Joined:
    Oct 9, 2008
    Messages:
    123
    Thanks for the given instructions.

    I need an alternative way for by edit a host file on every client.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Similar Threads - block site client
  1. Coco767
    Replies:
    3
    Views:
    345
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/959249

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice