Oki printer drivers for mac mojave. If you own an iPhone and a Mac, Apple's new system for connecting the two is one of the best new features for OS X 10.10 Yosemite. Adobe premiere elements for imac el capitan. True, Apple is years behind Google when it comes to making.
Ip Blocker For Mac Yosemite 2017
Hosts file is an important file located in your mac allows mapping IP addresses to host names. The IP mapping controls the browser, how the site address entered should be handled before it goes to browser’s DNS resolution. There are two main reasons one should think of adding mapping in hosts file:
In this article we discuss how to edit hosts file in mac OS X with Yosemite version 10.10.2.
Edit Hosts File in Mac OS X
Hosts file is located in the file path “/private/etc/hosts” in mac. You should have an administrator privileges in order to edit the hosts file. Press “Command + Space” buttons in the keyboard to open “Spotlight Search”. Enter “Terminal” and double click on the “Terminal” app appearing as a top hit.
Run shell script for mail macos mojave. Open Terminal in Mac OS X
You can also open Terminal from the path “/Applications/Utilities/” through Finder.
Backing up Hosts File
It is always a good idea to backup things before you start modifying. Type the below command in the Terminal command prompt and press enter to backup your hosts file to the Documents folder.
sudo cp /private/etc/hosts ~/Documents/hosts-backup
![]()
You will see a warning message and ask you to enter system password to proceed further. Type your password, you will not be able to view the password when typing, so don’t get panic that you are not able to type the password in Terminal app. Press enter after typing the password and check in the Documents folder to find the UNIX executable backup file named “hosts-backup”.
Hosts File Backup in Mac OS X
Hosts file in mac is located in the path “/private/etc/hosts/”, open the hosts file by typing the below command in Terminal and type the admin password.
Hosts file will be loaded in nano editor and use arrow marks to reach the last line where you can enter new IP and domain name. For example, you can map this site www.webnots.com with an IP 74.220.193.173 so that whenever you open the site hosts file entry is used to map the IP quickly and the save time on resolving host name.
Adding Entries in Hosts File in Mac
![]()
Once you added the required entries, press “Control + O” keys and press enter / return key to confirm the modification to the file “/private/etc/hosts/”. Press “Control + X” to quit the nano editor. Final cut pro for el capitan.
Now the host file is modified but you may need to flush out the existing DNS cache for the entries to be effective in the browser. Type the below command in Terminal and press enter to flush out existing DNS entries.
Open the site you maintained in hosts file in Safari and see how fast it gets loaded compared to before. If you use Chrome you will never see the embarrassing “Resolving host…” message in Chrome status bar any more.
Sometimes you may also need to close all browser windows or restart the system for the changes to be effective.
Did some mistake in modifying the hosts file? Don’t worry just restore the backup file saved in the Documents folders by typing the below command in Terminal app.
Ip Blocker For Mac Yosemite 10
sudo cp ~/Documents/hosts-backup /private/etc/hosts
Ip Blocker For Mac Yosemite MacBlocking Domains Using Hosts FileIp Blocker For Mac Os X
If you want to block domains using hosts file then the simple way is to point those domains to the localhost IP address. The localhost IP is referred as ::1 for IPv6 and 127.0.0.1 for IPv4 hence add the below lines in hosts file to block a website.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |