You edited the hosts file. The line looks correct. The browser still opens the old site.

Do not rewrite the hosts file again yet. Walk the stack in order.

1. Confirm the file that actually loaded

macOS / Linux:

grep -n "example.com" /etc/hosts