You open the hosts file, change one line, hit save, and get Permission denied.
That is normal. The system hosts file is protected on purpose.
Why it happens
On macOS and Linux, /etc/hosts is owned by root.
On Windows, C:\Windows\System32\drivers\etc\hosts needs Administrator rights.







