Type the following line: sudo nano /private/etc/hosts (type your username and password when asked).Open the Terminal.app by going into Applications -> Utilities -> Terminal.Also, there are viruses and pieces of software that can modify the 'hosts' file just to prevent you from downloading an antivirus software which can locate and remove the virus, or from visiting a particular website.Īs a solution to the 'This website can't be accessed ERR_CONNECTION_TIMED_OUT' error, you need to open and modify the hosts file. Via the 'hosts' file, you may add URLs of webpages you want to block, which will automatically be blocked in every single browser installed in your computer.