Can’t edit hosts, does it have a maximum limit on lines?

Discussion in 'Software' started by grrarrrgh, May 22, 2026 at 6:54 PM.

  1. grrarrrgh

    grrarrrgh Kapellmeister

    Joined:
    Mar 6, 2024
    Messages:
    457
    Likes Received:
    54
    Can’t edit the hosts file to block something, it doesn’t let me type… does it have a maximum amount of lines that can be added or number of sites that can be blocked? Can’t edit with notepad++ but I can use notepad to edit but doesn’t let me save, is there a broken update like something broke the ability to edit hosts or should I just copy it and delete the original because it’s just not working?
     
  2.  
  3. Will Kweks

    Will Kweks Audiosexual

    Joined:
    Oct 31, 2023
    Messages:
    1,391
    Likes Received:
    985
    The file itself, no, it has the maximum size of whatever your filesystem lets you create. Windows name resolver might have a limit but whatever that would be is pretty huge.

    However, you need to be administrator to save the file. Also, it might be locked by some other app (Tinywall for instance can do this), or it's set to be read only.

    Check permissions and you can use things like File Locksmith from Windows PowerToys or Nirsoft's OpenedFilesView to check if some other process is holding the file hostage.
     
  4. grrarrrgh

    grrarrrgh Kapellmeister

    Joined:
    Mar 6, 2024
    Messages:
    457
    Likes Received:
    54
    I fixed it by clicking to open the properties window and unchecking read only, I might go back and recheck it just in case but doing that fixed my problem for now
     
  5. orbitbooster

    orbitbooster Audiosexual

    Joined:
    Jan 8, 2018
    Messages:
    1,426
    Likes Received:
    784
    Don't use text editors, use (free) Sordum Bluelife Hosts. Easy as pie.
     
Loading...
Loading...