Block access to a domain
Block the web access to a domain. So if you navigate to this website on a browser you will get your localhost copy.
Edit the host file of OSX
sudo vim /etc/hosts
Add this lines
127.0.0.1 thesite.com 127.0.0.1 www.thesite.com