Announcement

Collapse
No announcement yet.

HOST File Redirect

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • HOST File Redirect

    If you need to block a user from visiting certain websites i.e. Social Networking, eBay etc, what is the proper way of doing it?

    I tried to edit host file in system32\drivers\etc, to be redirected to the local host 127.0.0.1, but it doesn't work. User can still go to those websites. I restarted the PC after this change, still no luck. We use proxy server to get to the internet. Does proxy based surfing still checks the host file? What would be the proper way to get this task accomplished?
    Thanks


    Actual file contents are as follows:

    *************
    # 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 www.facebook.com
    127.0.0.1 www.youtube.com
    127.0.0.1 www.twitter.com
    127.0.0.1 www.ebay.com

    ***************

  • #2
    Re: HOST File Redirect

    hosts file is not really an efficient way of doing it - there are too many ways around it.

    Using your proxy that's already in place is the best suggestion. This may mean blocking it for everyone as well that.

    What is your proxy software?
    Please do show your appreciation to those who assist you by leaving Rep Point https://www.petri.com/forums/core/im.../icon_beer.gif

    Comment


    • #3
      Re: HOST File Redirect

      Originally posted by samdazz View Post
      Does proxy based surfing still checks the host file? What would be the proper way to get this task accomplished?
      What proxy are you using? can you set any user based, or host based rules in there to control http traffic?
      Caesar's cipher - 3

      ZKHQ BRX HYHQWXDOOB GHFLSKHU WKLV BRX ZLOO UHDOLVH LW ZDV D ZDVWH RI WLPH!

      SFX JNRS FC U6 MNGR

      Comment


      • #4
        Re: HOST File Redirect

        As a small addition, a local host file won't work if you are using a proxy. The proxy will do the name resolving for the website and not the client computer.
        So either block it on the proxy, or use a good third party application like messagelabs or so, or use something like a third party forward dns server like OpenDNS. Of course there are many other options but I just wanted to name a few.
        Marcel
        Technical Consultant
        Netherlands
        http://www.phetios.com
        http://blog.nessus.nl

        MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
        "No matter how secure, there is always the human factor."

        "Enjoy life today, tomorrow may never come."
        "If you're going through hell, keep going. ~Winston Churchill"

        Comment


        • #5
          Re: HOST File Redirect

          We've a big organization with 75k+ users and 100s of small IT groups that handle local IT support. So I don't know what proxy software is being used. Is there any free certified tool 'no spyware threat tool' you can recommend that will block those website on the PC without touching any proxy settings? Are Messagelabs or Opendns certified free of spyware?
          Thanks

          Comment


          • #6
            Re: HOST File Redirect

            Message Labs works by directing all of your web traffic through a proxy server on the internet, so is no good for you.

            This should be handled by your internal proxy, and you should also have an acceptable use policy mandating what is and is not allowed. Repeating myself again, but using technical solutions to correct behavioural issues is like clapping with one hand. If you have the policies in place then anyone caught breaking the rules knows the consequences.
            BSc, MCSA: Server 2008, MCSE, MCSA: Messaging, MCTS
            sigpic
            Cruachan's Blog

            Comment


            • #7
              Re: HOST File Redirect

              Well than I think you should contact the IT department who is in control of the proxy server.
              Marcel
              Technical Consultant
              Netherlands
              http://www.phetios.com
              http://blog.nessus.nl

              MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
              "No matter how secure, there is always the human factor."

              "Enjoy life today, tomorrow may never come."
              "If you're going through hell, keep going. ~Winston Churchill"

              Comment

              Working...
              X