How do I save changes to the host file?

Discussion in 'Software' started by grrarrrgh, Jun 17, 2025 at 12:36 AM.

  1. grrarrrgh

    grrarrrgh Member

    Joined:
    Mar 6, 2024
    Messages:
    96
    Likes Received:
    9
    How do you save changes to the host file after adding entries to block? Notepad just wants to save as a text file but it won’t save to the original directory, can there be multiple so that one in a writable folder can be used too? Or do I just need a different text edit for it?
     
  2.  
  3. realitybytez

    realitybytez Audiosexual

    Joined:
    May 29, 2013
    Messages:
    1,491
    Likes Received:
    641
    in my limited experience, you need to open the original host file as an administrator in order to save over it.

     
  4. GluBloB

    GluBloB Kapellmeister

    Joined:
    Nov 23, 2011
    Messages:
    119
    Likes Received:
    41
    Try to copy the Host file to somewhere. Rename the original file. Then copy the modified file back.
     
  5. shinjiya

    shinjiya Platinum Record

    Joined:
    Dec 25, 2018
    Messages:
    460
    Likes Received:
    267
    Here's a protip that I could gatekeep: get PowerToys for Windows. It has a hosts editor that is super easy to use and manage your hosts.
     
  6. grrarrrgh

    grrarrrgh Member

    Joined:
    Mar 6, 2024
    Messages:
    96
    Likes Received:
    9
    Will check it, I already have it installed so I just have to check the editor that way
     
  7. rob1234

    rob1234 Ultrasonic

    Joined:
    Dec 30, 2015
    Messages:
    55
    Likes Received:
    30
    Just copy it to the Desktop, make your changes, save it, and copy it back to its original location.
     
    • Agree Agree x 2
    • Like Like x 1
    • List
  8. `Rideonbeat

    `Rideonbeat Noisemaker

    Joined:
    Oct 17, 2023
    Messages:
    4
    Likes Received:
    3
    Just run notepad as admin.
     
    • Like Like x 2
    • Agree Agree x 1
    • List
  9. Usr4321

    Usr4321 Ultrasonic

    Joined:
    Mar 27, 2025
    Messages:
    68
    Likes Received:
    21
    That won't allow you to save the file if the permissions don't also align. Microsoft isn't big on automatically assigning full privileges to the system folders. There are extra measures their not present elsewhere. If you don't already have access to it you might also need to claim ownership of the file (the owner isn't guaranteed to be your admin). After that you still might need to enable write access with elevated command to get the target unlocked, as being the admin and the owner doesn't guarantee write access to a file that was locked prior to privilege changes.
     
  10. Sylenth.Will.Fall

    Sylenth.Will.Fall Audiosexual

    Joined:
    Aug 21, 2015
    Messages:
    2,744
    Likes Received:
    1,908
    1) If you are using a firewall such as Tinywall, Make sure you uncheck 'prevent modifications to hosts file' and remember to put it back afterwards

    2) go here https://notepad-plus-plus.org/ (it is a free programme - no viruses I've used it for years)

    3) Once installed, run and then go to C:\Windows\System32\drivers\etc open up the hosts file in Notepadd ++

    4) Make your changes- when it comes to saving, it''ll say you cannot save in this mode, do you want to open/save in Admin mode.

    5) choose yes and then save

    6) Confirm your changes
     
    • Like Like x 1
    • Useful Useful x 1
    • List
  11. Mechanix604

    Mechanix604 Kapellmeister

    Joined:
    Apr 26, 2013
    Messages:
    156
    Likes Received:
    70
  12. Backtired

    Backtired Audiosexual

    Joined:
    Jan 15, 2016
    Messages:
    1,061
    Likes Received:
    740
    like others have said, there are multiple tools to achieve this. i would suggest not touching hosts and use tinywall with some common sense, you don't need anything else.
    at any rate, if you can't overwrite it by saving it with notepad, you can just save it to desktop and THEN move it in the folder.
     
  13. Stevie Dude

    Stevie Dude Audiosexual

    Joined:
    Dec 29, 2020
    Messages:
    2,509
    Likes Received:
    2,274
    Location:
    Near Nyquist
    host file editor all the way
     
  14. SineWave

    SineWave Audiosexual

    Joined:
    Sep 4, 2011
    Messages:
    4,597
    Likes Received:
    3,756
    Location:
    Where the sun doesn't shine.
    lol need a tool to edit a hosts file...

    try sudo nano /etc/hosts, edit and save it.

    That's how hard it is in a certain OS other than Windows that everyone claims is so hard to manage it will drive you bonkers. :wink: That thing happened to me with Windows actually. :yes:

    It used to be as simple as opening Notepad with admin privileges, opening system32/drivers/etc/hosts, editing it and saving it. That's not possible anymore?? TBH Nothing can surprise me anymore when it comes to MS. :sad:

    What Windows are we talking about anyway? 10, 11, 12? It is possible to do it with Notepad in W10 as far as I remember.

    Maybe this could help (Sysinternals Powertoys is a tool for all kinds of useful things): https://learn.microsoft.com/en-us/windows/powertoys/hosts-file-editor
     
    Last edited: Jun 17, 2025 at 9:52 AM
  15. orbitbooster

    orbitbooster Audiosexual

    Joined:
    Jan 8, 2018
    Messages:
    1,248
    Likes Received:
    687
    BlueLife Hosts Editor
     
  16. DoubleTake

    DoubleTake Audiosexual

    Joined:
    Jul 16, 2017
    Messages:
    2,409
    Likes Received:
    1,304
    I love BlueLife / Sordum stuff, and many of their utilities are part of Easy Context Menu
    ECM 00.png .
     
  17. Sylenth.Will.Fall

    Sylenth.Will.Fall Audiosexual

    Joined:
    Aug 21, 2015
    Messages:
    2,744
    Likes Received:
    1,908


    There are probably plenty of ways to do it, the reason I said my way is then you don't have to bother with notepad any more
     
  18. xorome

    xorome Audiosexual

    Joined:
    Sep 28, 2021
    Messages:
    1,402
    Likes Received:
    1,051
    One more for completeness' sake:

    Right click the 'hosts' file, go to the 'Security' tab, 'Advanced', 'Add', 'Select a principal' (not principle), your username, 'Allow' -> 'Full control'
     
  19. shinjiya

    shinjiya Platinum Record

    Joined:
    Dec 25, 2018
    Messages:
    460
    Likes Received:
    267
    Still works exactly like that unless people are messing with their installations trying to "optimize" stuff.

    In fact, I think you can still use this that is just as simple as doing it on Linux: echo 0.0.0.0 websitename.com >> %WINDIR%\System32\Drivers\Etc\Hosts
     
Loading...
Similar Threads - save changes host Forum Date
Kontakt pop-up "save changes to instrument?" Kontakt Oct 11, 2017
save changes to instrument Kontakt eDNA Kontakt Sep 28, 2014
Bulk batch save Kontakt Feb 18, 2025
Kontakt 8 Portable - Classic View does not save state as default [Solved] Kontakt Feb 17, 2025
Sent PM on AudioZ Not Saved in Outbox Forum News and Updates Feb 9, 2025
Loading...