Results 1 to 28 of 28

Thread: Prevent Internet Explorer access to specified site

Hybrid View

  1. #1

    Thread Starter
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536

    Re: Prevent Internet Explorer access to specified site

    I'm not finding that it's working for me. I assume I'm editing the correct file? It says in the comments at the top that it's a sample file, so I'm thinking maybe its the wrong one?

    What I was really looking for was a way to block certain sites for a particular user, although the approach that's been suggested would be fine if it worked.

    Any more comments?
    This world is not my home. I'm just passing through.

  2. #2
    Frenzied Member thegreatone's Avatar
    Join Date
    Aug 2003
    Location
    Oslo, Norway. Mhz:4800 x12
    Posts
    1,333

    Re: Prevent Internet Explorer access to specified site

    Quote Originally Posted by trisuglow
    I'm not finding that it's working for me. I assume I'm editing the correct file? It says in the comments at the top that it's a sample file, so I'm thinking maybe its the wrong one?

    What I was really looking for was a way to block certain sites for a particular user, although the approach that's been suggested would be fine if it worked.

    Any more comments?
    Post the conyents of the file, i find it works fine for me.
    Zeegnahtuer?

  3. #3

    Thread Starter
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536

    Re: Prevent Internet Explorer access to specified site

    Code:
    # Copyright (c) 1993-1999 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
    127.0.0.1       66.218.71.230
    127.0.0.1       http://uk.games.yahoo.com/
    This world is not my home. I'm just passing through.

  4. #4
    Frenzied Member thegreatone's Avatar
    Join Date
    Aug 2003
    Location
    Oslo, Norway. Mhz:4800 x12
    Posts
    1,333

    Re: Prevent Internet Explorer access to specified site

    Quote Originally Posted by trisuglow
    Code:
    # Copyright (c) 1993-1999 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
    127.0.0.1       66.218.71.230
    127.0.0.1       http://uk.games.yahoo.com/
    Gotcha, restart your PC, see if it takes effect then, i forgot to mention that part, sorry !
    Zeegnahtuer?

  5. #5
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Prevent Internet Explorer access to specified site

    Quote Originally Posted by trisuglow
    Code:
    # Copyright (c) 1993-1999 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
    127.0.0.1       66.218.71.230
    127.0.0.1       http://uk.games.yahoo.com/
    The line needs to be:
    127.0.0.1 uk.games.yahoo.com

    Also, like mentioned above, this doesn't stop people from connecting directly by using the IP address. If you want to block the IP address then you need to use a router, proxy server or firewall software installed on the PC.

    You can also use the content advisor to block both individual domains and IP addresses. Again though, this is easy to circumnavigate, just use another browser.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  6. #6
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    Re: Prevent Internet Explorer access to specified site

    Quote Originally Posted by trisuglow
    I'm not finding that it's working for me. I assume I'm editing the correct file? It says in the comments at the top that it's a sample file, so I'm thinking maybe its the wrong one?

    What I was really looking for was a way to block certain sites for a particular user, although the approach that's been suggested would be fine if it worked.

    Any more comments?
    If it's a home computer and you don't have a router you can block with, I'd suggest using something like netnanny.
    TPM

    Add yourself to the VBForums Frappr Map!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width