Sie sind auf Seite 1von 6

How to Block a Website in

Safari
Two Methods:Using your MacUsing your iOS Device

Do you want to block your kids from accessing certain sites, or


keep your employees on task? You can configure Safari to
block any site you want on either a Mac or on your iOS device.
See Step 1 below to get started, and you can have sites
blocked in just a few minutes.

Method 1 of 2: Using your Mac

<imgalt="Blocka
WebsiteinSafariStep1Version4.jpg"

src="http://pad3.whstatic.com/images/thumb/c/cb/BlockaWebsite
inSafariStep1Version4.jpg/670pxBlockaWebsiteinSafari
Step1Version4.jpg"width="670"height="504">

Open the

Terminal. To block specific websites, you will need to edit


your "hosts" file. This file determines what can and cannot be
accessed by the computer's network adapter. Adding websites
to this file will prevent them from loading in any browser,
including Safari. Ad

<imgalt="Blocka
WebsiteinSafariStep2Version4.jpg"
src="http://pad1.whstatic.com/images/thumb/b/b8/BlockaWebsite
inSafariStep2Version4.jpg/670pxBlockaWebsiteinSafari
Step2Version4.jpg"width="670"height="503">

Open the

hosts file. Type sudopico/etc/hosts and press Enter.


You will be asked to enter in the Administrator password. The
hosts file will open in the Terminal's text editing program.

<imgalt="Blocka
WebsiteinSafariStep3Version4.jpg"
src="http://pad2.whstatic.com/images/thumb/d/df/BlockaWebsite
inSafariStep3Version4.jpg/670pxBlockaWebsiteinSafari
Step3Version4.jpg"width="670"height="503">

Scroll to

the bottom of the file. Use your arrow keys to navigate.


Create a new line by pressing Enter.

<imgalt="Blocka
WebsiteinSafariStep4Version4.jpg"
src="http://pad1.whstatic.com/images/thumb/5/59/BlockaWebsite
inSafariStep4Version4.jpg/670pxBlockaWebsiteinSafari
Step4Version4.jpg"width="670"height="502">

Type in the

sites you want to block. For every site you want to block,
enter 127.0.0.1example.com and press Enter. Each
entry should be on its own line.

5
6

NSL1ofL3<iframeid="bc05d7ac9a"name="bc05d7ac9a"
src="http://usads.openx.net/w/1.0/afr?
auid=537735501&cb=INSERT_RANDOM_NUMBER_HERE"
frameborder="0"scrolling="no"width="728"height="90"><a

href="http://usads.openx.net/w/1.0/rc?
cs=bc05d7ac9a&cb=INSERT_RANDOM_NUMBER_HERE"
><imgsrc="http://usads.openx.net/w/1.0/ai?
auid=537735501&cs=bc05d7ac9a&cb=INSERT_RANDOM_NUM
BER_HERE"border="0"alt=""></a></iframe><imgalt="Blocka
WebsiteinSafariStep5Version4.jpg"
src="http://pad2.whstatic.com/images/thumb/1/19/BlockaWebsite
inSafariStep5Version4.jpg/670pxBlockaWebsiteinSafari
Step5Version4.jpg"width="670"height="503">

Save and

exit the editor. Once you have entered all of the sites that you
want to block, save and exit by pressing Ctrl + O and then
press Enter.

<imgalt="Blocka
WebsiteinSafariStep6Version4.jpg"
src="http://pad3.whstatic.com/images/thumb/8/89/BlockaWebsite
inSafariStep6Version4.jpg/670pxBlockaWebsiteinSafari

Step6Version4.jpg"width="670"height="503">

Flush your

DNS. In order for the settings to take effect, you will need to
flush your cash. You can do this by typing sudo
dscacheutilflushcache and pressing Enter. For more
details on flushing the DNS, see this article.[1]