sudo pico /etc/hosts
and press Enter. Pressing enter, you will be asked to enter the Administrator Password127.0.0.1
followed by the URL or Site address.i.e: 127.0.0.1 www.yahoo.com
And press Enter. Type another URL or Site following the same steps. Do not add more than one URL or Site in a single line, each entry should be in a separate line.sudo dscacheutil -flushcache
to flush your DNS and press Enter.sudo pico /etc/hosts
→ remove the URL and Site → press Ctrl+O and Enter