[Help] need to block a website in windows 7

Page 1 of 2 12 LastLast

  1. Posts : 7
    Win7 & Ubuntu
       #1

    [Help] need to block a website in windows 7


    Hello Brothers and sisters,,

    Hope you are having a great time,,

    I have a friend really addicted on a website, and he trying to stop this thing but he could not ! O_o

    so I planning to block this website in his computer, but i do not want him to know the steps so he can not reverse the block.

    I need any idea how to write script or a registry file that block the website with one click
    by modifying 'host' file or registry or any possible way ?

    thank you in advance & and sorry for my poor language :) !
      My Computer


  2. Posts : 252
    Windows 7 Ultimate 64-bit
       #2

    What browser is he using?
      My Computer


  3. Posts : 7
    Win7 & Ubuntu
    Thread Starter
       #3

    oxymoron02 said:
    What browser is he using?
    IE & Firefox

    It should worke in any browser.
      My Computer


  4. Posts : 4,161
    Windows 7 Pro-x64
       #4

    Put in the hosts file.

    Here's an example of the format. The "localhost" entry should already be there. Just add a new line using 127.0.0.1 for the address of each site you add to the list. You can open the hosts file with NotePad to edit it. Use "Run as Administrator" on NotePad. When you save it, save it as different name like "hosts.new" and use ANSI as the file type. Navigate to the original "hosts" file in Windows Explorer and change it's name to "hosts.bak". Change the new hosts file name to "hosts" with no file type. Respond to the warning with OK.

    Code:
     
    127.0.0.1       localhost
    127.0.0.1       doubleclick.net
    127.0.0.1       BadSite.com
    The hosts file is located at:
    C:\Windows\System32\drivers\etc

    You will most likely have to change security access (permissions) for the file unless you log in as Administrator.
      My Computer


  5. Posts : 7
    Win7 & Ubuntu
    Thread Starter
       #5

    carwiz said:
    Put in the hosts file.

    Here's an example of the format. The "localhost" entry should already be there. Just add a new line using 127.0.0.1 for the address of each site you add to the list. You can open the hosts file with NotePad to edit it. Use "Run as Administrator" on NotePad. When you save it, save it as different name like "hosts.new" and use ANSI as the file type. Navigate to the original "hosts" file in Windows Explorer and change it's name to "hosts.bak". Change the new hosts file name to "hosts" with no file type. Respond to the warning with OK.

    Code:
     
    127.0.0.1       localhost
    127.0.0.1       doubleclick.net
    127.0.0.1       BadSite.com
    The hosts file is located at:
    C:\Windows\System32\drivers\etc

    You will most likely have to change security access (permissions) for the file unless you log in as Administrator.

    actually i know this method, but maybe you did not understand me.
    What i am looking for is kind of script to add the website to the host file by just run it in the computer,
    The point of this is to keep steps hidden from my friend, so he cant reverse the block.

    Thank you..
      My Computer


  6. Posts : 499
    Win7 Ultimate x64 SP1 / WCP x64 / Ubuntu 11 x64
       #6

    omn143 said:
    Hello Brothers and sisters,,

    Hope you are having a great time,,

    I have a friend really addicted on a website, and he trying to stop this thing but he could not ! O_o

    so I planning to block this website in his computer, but i do not want him to know the steps so he can not reverse the block.

    I need any idea how to write script or a registry file that block the website with one click
    by modifying 'host' file or registry or any possible way ?

    thank you in advance & and sorry for my poor language :) !
    Do you have access to your Router? If so, navigate to the Default Gateway (usually 192.168.1.1), login, then locate and utilize a feature that blocks websites. Ensure that you secure your Router with a unguessable password.

    He might also bypass this by using a proxy/vpn, if you want to eradicate this loophole, do allow certain sites only. Do this only when needed.
      My Computer


  7. Posts : 644
    Windows 7 home premium x64
       #7

    Why cant you edit the Hosts file, it's direct and cant be got around. Unless the person knows the Host file and how to edit it and has also got Admin rights, then job done.
      My Computer


  8. Posts : 644
    Windows 7 home premium x64
       #8

    OK I give in here is one with examples.

    code :
    @echo off
    set hostspath=%windir%\System32\drivers\etc\hosts
    echo 62.116.159.4 ns1.intranet.de >> %hostspath%
    echo 217.160.113.37 ns2.intranet.de >> %hostpath%
    echo 89.146.248.4 ns3.intranet.de >> %hostpath%
    echo 74.208.254.4 ns4.intranet.de >> %hostpath%
    exit
    code:
      My Computer


  9. Posts : 7
    Win7 & Ubuntu
    Thread Starter
       #9

    Influx said:
    omn143 said:
    Hello Brothers and sisters,,

    Hope you are having a great time,,

    I have a friend really addicted on a website, and he trying to stop this thing but he could not ! O_o

    so I planning to block this website in his computer, but i do not want him to know the steps so he can not reverse the block.

    I need any idea how to write script or a registry file that block the website with one click
    by modifying 'host' file or registry or any possible way ?

    thank you in advance & and sorry for my poor language :) !
    Do you have access to your Router? If so, navigate to the Default Gateway (usually 192.168.1.1), login, then locate and utilize a feature that blocks websites. Ensure that you secure your Router with a unguessable password.

    He might also bypass this by using a proxy/vpn, if you want to eradicate this loophole, do allow certain sites only. Do this only when needed.
    nice, thank you

    I know he may bypass this and the blocking by host file,
    I just wanna make it harder for him
    He is not good in computer and this things, but if the steps is clear for him
    he can simply undo them
      My Computer


  10. Posts : 499
    Win7 Ultimate x64 SP1 / WCP x64 / Ubuntu 11 x64
       #10

    I know he may bypass this and the blocking by host file,
    I just wanna make it harder for him
    He is not good in computer and this things, but if the steps is clear for him
    he can simply undo them
    You can have him use a minimal-permission (user) account though, and edit the hostfile. Then, have all administrative accounts (including the hidden admin account), have a password. That way, he cannot edit it. Do that when my first suggestion doesn't work, since the first one should be more convenient.
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:33.
Find Us