Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. Windows7 hosts file is ignored

Windows7 hosts file is ignored

Scheduled Pinned Locked Moved Windows Forms
comquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Muammar
    wrote on last edited by
    #1

    Hi, I'm trying to block some websites using the hosts file located on C:\Windows\System32\drivers\etc\ contents are: 127.0.0.1 www.facebook.com Any idea why Windows7 ignores it?? Many thanks

    L D 2 Replies Last reply
    0
    • M Muammar

      Hi, I'm trying to block some websites using the hosts file located on C:\Windows\System32\drivers\etc\ contents are: 127.0.0.1 www.facebook.com Any idea why Windows7 ignores it?? Many thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I copy/pasted your entry, and it works for me (also on Win7) Ran notepad as an administrator, added the entry, opened IE, and can't find FB. Did it add a ".txt" extension to your file? It might be that Windows is hiding the file-extension.

      Bastard Programmer from Hell :suss:

      1 Reply Last reply
      0
      • M Muammar

        Hi, I'm trying to block some websites using the hosts file located on C:\Windows\System32\drivers\etc\ contents are: 127.0.0.1 www.facebook.com Any idea why Windows7 ignores it?? Many thanks

        D Offline
        D Offline
        DaveAuld
        wrote on last edited by
        #3

        Any changes should be seen immediately, however, you may have to flush any caches and reload the tables ipconfig /flushdns nbtstat -r from the command prompt.

        Dave Find Me On: Web|Facebook|Twitter|LinkedIn


        Folding Stats: Team CodeProject

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups