Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Internet & the Web (https://www.askmehelpdesk.com/forumdisplay.php?f=177)
-   -   How to block a website in all web browser (https://www.askmehelpdesk.com/showthread.php?t=356290)

  • May 21, 2009, 01:34 AM
    faye2209
    How to block a website in all web browser
    May I know how to block a website in all web browser? Any effective way?
  • May 21, 2009, 01:47 AM
    Libran

    Well you can do it by blocking host
    Browse C:\WINDOWS\system32\drivers\etc
    Find the file named “HOSTS”
    Open it in notepad
    Under “127.0.0.1 localhost” Add 127.0.0.2(just add one) sitename , and that site will no longer be accessible.

    This may not work in vista though. Let me know in that case..
  • May 21, 2009, 01:57 AM
    Libran

    If you are unable to save host file after editing (most likely to happen in case of windows vista), then you will need to edit using administrative privileges. For this, open Notepad with Administrative privileges by clicking Start, All Programs, Accessories, and then right-click Notepad and select to open as Administrator.
    Now browse to (C:\Windows\System32\drivers\etc) in Notepad and open the hosts file.
  • May 21, 2009, 03:10 AM
    faye2209

    Thanks Libran for answering my question~ :) when I type www.sitename.com or http://www.sitename.com the page is blocked but however if I type sitename.com , the page won't be blocked.. anyway to solve tis also? Thanks for your help very much~!
  • May 21, 2009, 04:56 AM
    chuckhole

    In your HOSTS file, you can add multiple entries for the same address. They are separated by spaces. Example:

    127.0.0.1 localhost www.sitename.com sitename.com
  • May 21, 2009, 06:28 PM
    faye2209
    Thanks chuckhole for answering my question~ :) really thanks to you guys to solve tis problem for me.. finally I can successfully blocked the page I want.. thanks to you all very much.. :D
  • May 21, 2009, 06:47 PM
    faye2209

    :o 1 more question to ask u guys.. I am confused with it.. Is it use the same method if I wan to block another difference website too? For example: 127.0.0.1 localhost www.sitename.com sitename.com www.sitename2.com sitename2.com or should be 127.0.0.2 localhost www.sitename2.com sitename2.com :confused:
  • May 21, 2009, 08:06 PM
    Libran

    You need to add one for another website (127.0.0.2 )
  • May 21, 2009, 08:30 PM
    faye2209
    :o what you mean need to add one for another website (127.0.0.2 ) :confused: tis is what I have in my host file now:

    127.0.0.1 localhost
    127.0.0.2 www.sitename.com sitename.com

    How to add another difference website that I wan to block too? Can you brief me more details.. thank you very much~~ :D
  • May 21, 2009, 08:32 PM
    Libran

    127.0.0.1 localhost
    127.0.0.2 www.sitename.com sitename.com
    127.0.0.3 www.2sitename.com 2sitename.com
    127.0.0.4 www.3sitename.com 3sitename.com
    An so on
  • May 21, 2009, 09:13 PM
    faye2209

    I get what you mean and tested oledi.. but it didn't work for other websites when I put the way like tis.. is it server problem?
  • May 21, 2009, 09:24 PM
    Libran

    Hi, I browsed net for more info on this problem. Please don't add 1
    Make it this way
    127.0.0.1 localhost
    127.0.0.1 www.sitename.com sitename.com
    127.0.0.1 www.2sitename.com 2sitename.com
    127.0.0.1 www.3sitename.com 3sitename.com
    And so on


    I found and example host file having list of some unwanted websites. You can also replace yours with this one. Have a look
    http://www.mvps.org/winhelp2002/hosts.txt
  • May 21, 2009, 09:33 PM
    Libran

    If you think, i helped you, then please support me by clicking my username and support. Not necessary though.
  • May 22, 2009, 02:50 AM
    faye2209
    Hey thanks for your help Libran~! It's work.. aprreciate it very much~~ :D

  • All times are GMT -7. The time now is 08:03 PM.