Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Terminal - Unblock Website

I blocked a site using terminal, with the code : sudo nano /ect/hosts

and proceeded with 127.0.0.1 [website name] and so on....

I want to unblock that site...and I tried to by deleting the "file" in Terminal....but I think I messed something up and now I am completely lost.

Please help.

MacBook

Posted on Sep 1, 2019 5:40 PM

Reply
Question marked as Top-ranking reply

Posted on Sep 1, 2019 6:36 PM

Roll in the file from your Time Machine backups, and reboot.


Then delete (just) the line of text that was added into the file, using the nano editor.


If you don’t have backups, you’ll want to recreate the hosts file.


Related:

http://osxdaily.com/2012/08/07/edit-hosts-file-mac-os-x/


Here are the default contents:


##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1 somethig.com
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost




1 reply
Sort By: 
Question marked as Top-ranking reply

Sep 1, 2019 6:36 PM in response to margo209

Roll in the file from your Time Machine backups, and reboot.


Then delete (just) the line of text that was added into the file, using the nano editor.


If you don’t have backups, you’ll want to recreate the hosts file.


Related:

http://osxdaily.com/2012/08/07/edit-hosts-file-mac-os-x/


Here are the default contents:


##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1 somethig.com
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost




Reply

Terminal - Unblock Website

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.