First open the hosts file from the PHP toolbox, then save it to the desktop, then copy and paste the hosts file into the directory C:\Windows\System32\drivers\etc, and replace the previous hosts file.
It may be caused by the Windows system host file permissions problem. You can try to save it to the desktop and then copy and replace it to the C drive.
First open the hosts file from the PHP toolbox, then save it to the desktop, then copy and paste the hosts file into the directory C:\Windows\System32\drivers\etc, and replace the previous hosts file.
This is how I did it.
Must have administrator rights
It may be caused by the Windows system host file permissions problem. You can try to save it to the desktop and then copy and replace it to the C drive.