You must quickly record down the returned IP address on a text editor so that you won’t enter the wrong number into the file. You can find out the IP address of a website by sending a ping to the site via the Terminal. In this way, the user will be redirected to a different site when he attempts to visit the site with the browser. If you don’t want to redirect the website to an invalid IP address, you can enter the valid IP address of the site where you want the user to be redirected. If you want to block access to a specific website, you must map the particular website you want to block to an invalid IP address such as 0.0.0.0 so that the browser won’t be able to display the page when someone tries to enter the URL.Įnter the Redirected URLs into the Hosts File Instead, you are to use the arrow keys to travel to different lines.īlocking Access to Certain Websites with the Hosts Fileįor some people, they edit the host file in order to block the user from accessing a certain site on the Mac system. When making edits in the file, you cannot use mouse click as the mouse has been disabled in the text editor. The hosts file can be backup by entering the hosts backup command in the terminal app. Before making changes on the hosts file, you should first backup the files. The file also list the IP address of the localhost and broadcasthost. You will notice that it is a simple file that contains just a few lines of text and characters such as pound and hash tags. To edit the host file, you must first open it by double clicking it. Now, you must select the “hosts” file with your mouse cursor and drag it to the desktop.ĭoing so will unlock the file and enable you to edit it. When you have launched the Finder tool, you can select Go to Folder and enter the file location /private/etc/hosts. The easiest way to find the host file is to use the Finder tool. Other Ways To Find The Hosts File on a Mac The solution is to copy the file to an unprotected location for example desktop edit it there. Because it is situated in a protected area of the system, you cannot open the file and edit it. The host file is located in the /private/etc/hosts on your Mac. Maybe you too may be wondering where this costs file is on the mac. I always knew where the hosts file was on my PC but I had a hard time finding it on my Mac. I’ve been using a Windows PC all my life and I have recently switched over to a Mac.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |