Manual entries in hosts file are automatically commented out

  • | 394 points

    Laragon 4.0.15 on Windows 10

    I'm trying to manually enter into Windows hosts file, a few hosts of my local network (192.168.x.x), but they get automatically commented out (a hash # sign before host's entry)!?

    Does Laragon control hosts file?

    Thanks for any advice!

  • administrators
    | 132054 points

    @jobet : No, Laragon only takes care of lines contains "Laragon's magic"

  • | 394 points

    Hi Leokhoa,

    I send you attached 2 screenshots, of what happens to Windows hosts file...0_1573665878766_Hosts-before.jpg

    You should see the 3 hosts 192.168.x.x now with a # sign in front of each line...

    Is there something wrong in the hosts file syntax maybe?

  • | 394 points

    Hi again,

    Found it! it was my new antivirus (Bitdefender).

    It scans hosts file and automatically comment out any IP address in these ranges: - - -

    The only solution is to set hosts file read-only....


Log in to reply

Looks like your connection to Laragon was lost, please wait while we try to reconnect.