Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Alternative Computing > Mac Support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Mac Support Apple Operating Systems and Application Support on Macs

Reply
 
LinkBack Thread Tools
Old 03-01-2008, 03:34 PM   #1 (permalink)
Registered User
 
Join Date: Mar 2008
Posts: 7
OS: Mac OSX


blocking individual web sites on Safari

I'd like to be able to block individual websites, not whole categories, on my iMac running OS X and Safari. I called Apple but were unable to help me. The commercial programs I've looked at appear designed to block whole categories. On other on-line forums, I've seen detailed descriptions on how to block indivdual sites within a Windows format, but not for the iMac. Suggestions greatly welcome.

I am not a computer person but can follow precise directions. Thanks, Dan
Istorik is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 03-02-2008, 04:02 AM   #2 (permalink)
Moderator, Microsoft Support
 
POADB's Avatar
 
Join Date: Jul 2004
Location: United Kingdom
Posts: 6,482
OS: XP SP2


Re: blocking individual web sites on Safari

Hi Dan, welcome to TSF.

Use the hosts file
It's just like in Windows, except it's a little trickier to access.
Use Finder to search for the application Terminal.
In there type: sudo pico /etc/hosts
Enter your root password.
Use the arrow keys to move down to the bottom line and then type:

127.0.0.1 www.thesiteyouwanttoblock.com

There is a space between 127.0.0.1 and www.

User Ctrl+X to exit and Y to Save.

Then type lookupd -flushcache

Quit the Terminal and restart Safari.
__________________


POADB is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 03-03-2008, 06:40 PM   #3 (permalink)
Registered User
 
Join Date: Mar 2008
Posts: 7
OS: Mac OSX


Re: blocking individual web sites on Safari

I found the Terminal application. When I double clicked on it, a small pop up entitled Terminal--bash--80x24 opened up. It listed the last login (not by me), Welcome to Darwin!, then the name of my computer and my name followed by a dollar sign.

I entered in sudo pico /etc/hosts and it indeed asked for my password. I gave the administrative password, but it did not accept it. Is the root password different from the admin password?

Thanks again for your patience, Dan
Istorik is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 03-03-2008, 06:52 PM   #4 (permalink)
Mac Method Wiz -- Manager
 
sinclair_tm's Avatar
 
Join Date: Mar 2005
Location: Dusty Mexican Border Lands
Posts: 9,640
OS: MS Win XP Pro SP3 & Mac OS X 10.5.8

My System

Blog Entries: 24
Send a message via AIM to sinclair_tm Send a message via MSN to sinclair_tm
Re: blocking individual web sites on Safari

Yes it is. The root password is something that you must enable, and then set. In order to tell you how to do so, I need to know what version of OS X you are using, as there are some differences depending on the OS.
__________________
.






Quote:
it's human nature to stand in line...
-my brother
sinclair_tm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 03-03-2008, 07:12 PM   #5 (permalink)
Registered User
 
Join Date: Mar 2008
Posts: 7
OS: Mac OSX


Re: blocking individual web sites on Safari

It is Mac OS X Version 10.4.11. There were some scary messages when I entered the terminal application. I don't want to scramble the brains of my beautiful iMac.

Thanks,
Dan
Istorik is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 03-03-2008, 11:14 PM   #6 (permalink)
Mac Method Wiz -- Manager
 
sinclair_tm's Avatar
 
Join Date: Mar 2005
Location: Dusty Mexican Border Lands
Posts: 9,640
OS: MS Win XP Pro SP3 & Mac OS X 10.5.8

My System

Blog Entries: 24
Send a message via AIM to sinclair_tm Send a message via MSN to sinclair_tm
Re: blocking individual web sites on Safari

it always warns you like that the 1st time you use sudo. goto your utilities folder and open the app called netinfo manager. goto the menu security and choose authenticate. here you will have to use the admin name and password. once it accepts that, goto the same menu and select enable root user, and give it a really good password. now you can use sudo from the terminal.
__________________
.






Quote:
it's human nature to stand in line...
-my brother
sinclair_tm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 03-04-2008, 05:06 PM   #7 (permalink)
Registered User
 
Join Date: Mar 2008
Posts: 7
OS: Mac OSX


Re: blocking individual web sites on Safari

Bear with me, but I did establish a root password, but once I was in sudo, it would not accept the password. I exited and changed the password and tried again. Still no dice.

One observation/one question:

1. When I type in the password within Sudo, the cursor does not move. It doesn't show what I'm typing nor does it offer a string of ********. Is there some special protocol for entering a root password?

2. Should there be a space between pico and /etc. Couldn't tell from the original post. I tried it both ways. They both got me to the password stage......

Suggestions?
2.
Istorik is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 03-04-2008, 08:53 PM   #8 (permalink)
Mac Method Wiz -- Manager
 
sinclair_tm's Avatar
 
Join Date: Mar 2005
Location: Dusty Mexican Border Lands
Posts: 9,640
OS: MS Win XP Pro SP3 & Mac OS X 10.5.8

My System

Blog Entries: 24
Send a message via AIM to sinclair_tm Send a message via MSN to sinclair_tm
Re: blocking individual web sites on Safari

yes, there should be a space. as for the password, no there will be no feedback at all with sudo. remember, use only numbers and lowercase letters for the root password, about 8 characters long.
__________________
.






Quote:
it's human nature to stand in line...
-my brother
sinclair_tm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 03-06-2008, 05:52 PM   #9 (permalink)
Registered User
 
Join Date: Mar 2008
Posts: 7
OS: Mac OSX


Re: blocking individual web sites on Safari

I finally got in to sudo, but using the regular password, not the root password. Anyhow, I proceeded as directed, and entered the web-site I want to block. I only entered one, but if I wanted to enter several, would I also use 127.0.0.1?


I did pause when I got to

lookupd -flushcache

The cursor at that time was at the end of a line of "DOS" text that said File name to write /etc/hosts

Is that where I was supposed to type lookupd -flushcache or on a different line.

Also, as I exited terminal, there appeared to be several intermediate messages/stages. Again, I just don't want to do something that I can't reverse.
Istorik is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 03-06-2008, 07:52 PM   #10 (permalink)
Mac Method Wiz -- Manager
 
sinclair_tm's Avatar
 
Join Date: Mar 2005
Location: Dusty Mexican Border Lands
Posts: 9,640
OS: MS Win XP Pro SP3 & Mac OS X 10.5.8

My System

Blog Entries: 24
Send a message via AIM to sinclair_tm Send a message via MSN to sinclair_tm
Re: blocking individual web sites on Safari

Okay, after opening the Terminal, typing in the sudo line, entering you password, you are now in the host file. you want to put in the 127.0.0.1 for every site you wished blocked. then you do the control-x, and at the bottom it will ask you if you want to write the file, which is where you were. that is where you push the "y" key for yes, you want to write. then the terminal window should look like it did when you first opened it, only you'll now see thee sudo line you typed. That is where you type the flush cache line.
__________________
.






Quote:
it's human nature to stand in line...
-my brother
sinclair_tm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 03-07-2008, 11:34 AM   #11 (permalink)
Moderator, Microsoft Support
 
POADB's Avatar
 
Join Date: Jul 2004
Location: United Kingdom
Posts: 6,482
OS: XP SP2


Re: blocking individual web sites on Safari

Quote:
Originally Posted by POADB View Post
Hi Dan, welcome to TSF.

Use the hosts file
It's just like in Windows, except it's a little trickier to access.
Use Finder to search for the application Terminal.
In there type: sudo pico /etc/hosts
Enter your root password.
Use the arrow keys to move down to the bottom line and then type:

127.0.0.1 www.thesiteyouwanttoblock.com

There is a space between 127.0.0.1 and www.

User Ctrl+X to exit and Y to Save.

Then type lookupd -flushcache

Quit the Terminal and restart Safari.
I thought my instructions were clear....
__________________


POADB is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 03-08-2008, 06:53 AM   #12 (permalink)
Registered User
 
Join Date: Mar 2008
Posts: 7
OS: Mac OSX


Re: blocking individual web sites on Safari

Gents,
Got it. I just needed to "return" out of that box to the $ line, and then enter in the flush command. It now works.

Many thanks for your patience.
Istorik is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 03-08-2008, 12:24 PM   #13 (permalink)
Moderator, Microsoft Support
 
POADB's Avatar
 
Join Date: Jul 2004
Location: United Kingdom
Posts: 6,482
OS: XP SP2


Re: blocking individual web sites on Safari

No problem Istorik.
__________________


POADB is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 03-20-2008, 05:20 PM   #14 (permalink)
Registered User
 
Join Date: Mar 2008
Posts: 7
OS: Mac OSX


Re: blocking individual web sites on Safari

One follow up query: Is it possible to add something to the website address in the terminal utility to block the whole domain? That is, not just www.ebay.com but all the websites that start with that. Some sort of /* code?
Istorik is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 03-20-2008, 05:40 PM   #15 (permalink)
Mac Method Wiz -- Manager
 
sinclair_tm's Avatar
 
Join Date: Mar 2005
Location: Dusty Mexican Border Lands
Posts: 9,640
OS: MS Win XP Pro SP3 & Mac OS X 10.5.8

My System

Blog Entries: 24
Send a message via AIM to sinclair_tm Send a message via MSN to sinclair_tm
Re: blocking individual web sites on Safari

stopping ebay.com should kill all pages of it, or so i'd think. or if that doesn't work, find the ip address of ebay and block that.
__________________
.






Quote:
it's human nature to stand in line...
-my brother
sinclair_tm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 03-21-2008, 10:54 AM   #16 (permalink)
Moderator, Microsoft Support
 
POADB's Avatar
 
Join Date: Jul 2004
Location: United Kingdom
Posts: 6,482
OS: XP SP2


Re: blocking individual web sites on Safari

If you put in http://www.ebay.com - that domain will be blocked.
I think you might need to add https://www.ebay.co.uk too, for the secure server - and any other server before the ebay.com domain. (such as www2)
__________________


POADB is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-19-2008, 09:25 AM   #17 (permalink)
Registered User
 
Join Date: Aug 2008
Posts: 1
OS: I Mac


Re: blocking individual web sites on Safari

How do you unblock the web site after?
billdozzer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-19-2008, 05:44 PM   #18 (permalink)
Mac Method Wiz -- Manager
 
sinclair_tm's Avatar
 
Join Date: Mar 2005
Location: Dusty Mexican Border Lands
Posts: 9,640
OS: MS Win XP Pro SP3 & Mac OS X 10.5.8

My System

Blog Entries: 24
Send a message via AIM to sinclair_tm Send a message via MSN to sinclair_tm
Re: blocking individual web sites on Safari

Please start a new thread and give detail about your problem.
__________________
.






Quote:
it's human nature to stand in line...
-my brother
sinclair_tm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 11-03-2009, 11:39 AM   #19 (permalink)
Registered User
 
Join Date: Nov 2009
Location: CA
Posts: 1
OS: Multiple


Re: blocking individual web sites on Safari

I found the above instructions very useful, with this note: In Snow Leopard (OS X 10.6.x) lookupd has been replaced with (or renamed to) dscacheutil. Thanks for the help.
MaoDaAmargura is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 01:06 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85