Manual entries in hosts file are automatically commented out
-
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!
-
@jobet : No, Laragon only takes care of lines contains "Laragon's magic"
-
Hi Leokhoa,
I send you attached 2 screenshots, of what happens to Windows hosts file...
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?
-
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.255The only solution is to set hosts file read-only....
Te