it better to use  hosts file located in system32 folder. Open file in notepad and add loop back adapter before website address.

ex:-

127.0.0.1 facebook.com