Manual entries in hosts file are automatically commented out


  • | 228 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
    | 115988 points

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


  • | 228 points

    Hi Leokhoa,

    I send you attached 2 screenshots, of what happens to Windows hosts file...0_1573665878766_Hosts-before.jpg
    0_1573665890166_Hosts-after.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?


  • | 228 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:
    10.0.0.0 - 10.255.255.255
    172.16.0.0 - 172.31.255.255
    192.168.0.0 - 192.168.255.255

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

    Te


Log in to reply
 

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