I need something to block URLS


  1. Posts : 605
    W7 Ultimate
       #1

    I need something to block URLS


    The computer I maintain has one user account without a PW. This is to allow residents of the facility to use the computer occasionally. I have had to remove some virus's from the computer. I suspect that the playing games ( which I have seen them do) might be the source of those virus's. I have decided and convinced management to put in a blocker so that the users cannot get to suspect sites. I guess I need two items a blocker and a list or lists that can be imported. Does anybody have any good ideas?

    Bill
      My Computer


  2. Posts : 3
    Modified Windows 7, Windows Professional, 32bit
       #2

    Use localhost to block a website

    Example: 127.0.0.1 www.facebook.com
    that blocks it from any browser on your computer

    Hosts File : Use in Windows 7 / Vista
      My Computer


  3. Posts : 373
    Win 7 Ultimate 64-bit
       #3

    Most firewalls have an option to enter URLs you want to block. Many AVs do too, like AVAST for instance, and settings can be protected by enabling the option to require a password to change them.

    Another option is to edit the hosts file so that any undesired URL maps back to 127.0.0.1 (the local computer).

    The browser checks the HOSTS file before querying your ISP's DNS server for the matching IP of any website you visit (or that a program requests). So if you list "www.yahoo.com" in the hosts file along with their IP address, you will get to Yahoo! much faster b/c the browser won't have to query a server for the IP. If, OTOH, you map your own localhost IP of 127.0.0.1 to www.yahoo.com, you won't reach the site at all b/c your browser will redirect you to your own computer. So to block a website, you can list it in the HOSTS file, mapped to the localhost 127.0.0.1 address.

    To Edit HOSTS file:

    1. Navigate to c:\windows\system32\drivers\etc\

    2. Select HOSTS file, and CTRL+C to copy.

    3. Click on Desktop, CTRL+V to paste

    4. Go back to the /etc folder and rename HOSTS to Hostsbackup

    5. On Desktop, dbl click HOSTS file and open with notepad.

    6. Text following the "#" hashtag are comments. Edit the file as necessary by adding website names mapped to the address of choice. Follow the examples already contained there.

    7. Save and close. Then Drag/Drop back into the original .../etc directory.
      My Computer


  4. Posts : 92
    Windows 8
       #4

    Parental Controls which is a feature already built in Windows gives various options to limit what users can do : what programs they can launch, which types of games they can start, etc..

    Some tutorials exist on these forums explaining how to set it all up :
    What can I control with Parental Controls? - Windows Help
    Parental Controls - Setup and Use
    Parental Controls - Set Time Limits
    Parental Controls - Set Game Restrictions
    Parental Controls - Allow or Block Specific Programs

    To restrict Internet access you can either use the Content Advisor but afaik it will only affect Internet Explorer or use the Hosts file.
    Internet Explorer Content Advisor - Allow or Block Specific Websites
    Hosts File : Use in Windows 7 / Vista
    Limit the content that children can view on the web

    Another good option might be to use OpenDNS which can filter what your PCs can access from the Internet. You'll have to change your DNS in Windows or in your router settings.
    DNS Addressing - How to Change in Windows 7
    Home Parental Controls | OpenDNS
      My Computer


  5. Posts : 4,049
    W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, W10 Pro 1703 VM, #All 64 bit
       #5

    Here is a Host file picture showing a redirected URL (as mentioned in earlier posts).
    The highlighted section is "blocked".
      My Computer


  6. Posts : 4,776
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #6

    Games site blocking


    Hosts file: It doesn't prevent connection if a user types the website's ip address.

    Example:

    Blocked domain in my HOSTS file:

    I need something to block URLS-hosts-emeditor.jpg

    Can still visit site if ip address is used:

    I need something to block URLS-hosts-ip-address.jpg

    So that's fine on a home computer with a sole user.

    Blocking games sites - could take a fair amount of work but you'd need some sort of monitoring tool to see what sites are being visited as well as the ability to block them.

    Take a look at this software - free and paid versions:

    WFilter deployment, online user manual and guide, WFilter documents.

    Take a look at how to block games sites:

    Block online games of network computers - WFilter Enterprise

    User Manual: WFilter Enterprise Manual 4.1

    Take a look at deployment examples and see if it makes any sense to you. If not - ask for help. It's not something I know much about so other members might know more.

    If you don't decide to use it at least it should give some idea of the kind of measures neeeded.
      My Computer


  7. Posts : 10,485
    W7 Pro SP1 64bit
       #7

    blockie said:
    The computer I maintain....
    It might be less work for you if you learn/use a tool like:
    ToolWiz Time Freeze « ToolWiz Software

    Or pick an alternative tool.

    Toolwiz Time Freeze has been around for a while. (I've not used it - yet.) Here is a thread from 2011 that is still being posted to in 2014. The authors of this tool are mostly in China and South Korea - if that matters to you.
      My Computer


  8. Posts : 373
    Win 7 Ultimate 64-bit
       #8

    Callender said:
    Hosts file: It doesn't prevent connection if a user types the website's ip address.
    Great to know and now that you say that, it makes perfect sense. Thanks for that.
      My Computer


  9. Posts : 92
    Windows 8
       #9

    remm said:
    Callender said:
    Hosts file: It doesn't prevent connection if a user types the website's ip address.
    Great to know and now that you say that, it makes perfect sense. Thanks for that.
    But that's because there's already a tool in Windows to block directly IP adresses. The Hosts files takes care of redirecting hostnames to manually configured IP, Windows Firewall blocks/allow specific IP adresses.

    Via the Advanced Security feature, you can create outbound rules and block some IP, and apply it to all programs, all ports.

    Add or Edit Firewall Rule
    Windows Firewall with Advanced Security
    How to Create Advanced Firewall Rules in the Windows Firewall

    Since some websites use pools of IP (sometimes changing all the time), this can be a pain (ex: Windows Update).
    The easiest solution would be to allow only few IP adresses and block the rest (some schools do that), but you severely limit the usefulness of Internet with such a policy.

    If think you're better off blocking hostnames via Host file, Content Advisor/Parental Controls or OpenDNS, and log your users Internet activity (Parental Controls can also help in that with the detailed report feature : http://windows.microsoft.com/en-us/w...ental-controls). If some users bypass your security with direct IP then use Windows Firewall or your router's firewall.
    Last edited by oneeyed; 10 Oct 2014 at 14:56.
      My Computer


  10. Posts : 605
    W7 Ultimate
    Thread Starter
       #10

    I thin I have enough info to decide what to do. Let's call it SOLVED. Thanks guys.
      My Computer


 

  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 11:06.
Find Us