Cited: This is a strong web site with the Hotspot Shield, I do not know why not even on the server. Baidu to Google, found to change the hosts content is king, but because the read-only attribute can not be saved, bitter find a half-day finally found a solution. With the proxy TX see also no harm ~ the benefit of modifying the hosts is once and for all, unless the IP address is blocked ~
This post is also easy to use for yourself. The text file editing method is only for how to do the hosts edit under OS system, and the content of editing is the same as under win. Article transferred from Weiphone, author Harrygg
Title: Three ways to change the Hosts file under Mac OS X
For well-known reasons, a lot of websites are now blocked by "Kung Fu Wall", such as Twitter,facebook and so on.
We often see the IP address and site name added to the system's hosts file, the win system basically a lot of people are
Know, do not know Google a bit also know. Changing the Hosts file under the Mac system is a bit difficult, after my
Groping and searching, summed up three ways:
1. Terminal changes
This seems to be the most popular method on the Internet.
Open terminal (terminal) inside the application, enter
sudo vi/etc/hosts
Then prompt for the system password
The Hosts file is automatically opened
Then input I
Enter edit mode
Will add the website, IP copy in
When the edit is complete, press ESC and enter: WQ
This will make the change complete.
2.HostsWidget modification
There is a hostswidget under the Mac, which can be conveniently operated without the [terminal] tool. The interface is as follows:
http://www.douban.com/photos/photo/304849609/
http://www.douban.com/photos/photo/304852474/
Enter the password can be added, can not copy, to one add, some trouble.
(Go to space): www. Apple. com/downloads/dashboard/networking _ Security
3. Modify the local file directly
This is my own groping out.
Open Finder, go to the inside select Go to folder (shortcut key Shift+command+g)
Enter etc in the pop-up box and then go to the ETC directory, find the Hosts file, open (with text editing), copy or edit, after the completion of the save.
It is possible that the prompt cannot be saved because of a permissions issue. Open the Hosts file introduction, there is a section of sharing and permissions, click on the lower right corner of the lock, enter the password can change permissions. Change your own user rights to read and write.
http://www.douban.com/photos/photo/304849639/
If you also prompt permission problems, you want to modify the etc and the parent directory private two folder permissions, the same way, are changed to read and write.
After the Hosts file is saved, change the permissions back.
3 Ways to modify the Hosts file on Mac system