Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Problem editing HOSTS file

  • 06-09-2006 05:40PM
    #1
    Closed Accounts Posts: 279 ✭✭


    I'm trying to add a website to the HOSTS file (C:\WINDOWS\SYSTEM32\DRIVERS\ETC\) so that it will block access to the site.

    The problem is that when I try to save the edited file, it says
    Cannot create the C:\WINDOWS\SYSTEM32\DRIVERS\ETC\HOSTS file
    
    Make sure that the path and filename are correct
    



    Help!


Comments

  • Registered Users, Registered Users 2 Posts: 19,396 ✭✭✭✭Karoma


    Browse to C:\WINDOWS\SYSTEM32\DRIVERS\ETC\
    Right-click on HOSTS
    Open With... Notepad.
    Edit. Save. Close. Change to Read-only.


  • Registered Users, Registered Users 2 Posts: 12,311 ✭✭✭✭Bard


    Or you could do what I did...

    create a shortcut on your start menu pointing at:
    "C:\WINDOWS\system32\notepad.exe C:\WINDOWS\system32\drivers\etc\hosts"
    (leave in the quote-marks)

    Call it "Edit local hosts file" or something.

    Then again, perhaps you're getting that error for another reason. In Windows XP, the hosts file is located in this folder, but in other versions of Windows it's located elsewhere. What version of Windows are you running?

    Incidentally, why would the file need to be read only, Karoma?


  • Closed Accounts Posts: 279 ✭✭adam_ccfc


    Karoma wrote:
    Browse to C:\WINDOWS\SYSTEM32\DRIVERS\ETC\
    Right-click on HOSTS
    Open With... Notepad.
    Edit. Save. Close. Change to Read-only.
    I cannot save the file (see above). It is not currently marked Read Only so that is not the problem and I am using Windows XP. I have Admin rights.



    :confused:


Advertisement