how to add a website url to host file mac code example Example: view host entires mac terminal sudo nano /etc/hosts