Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Blocking Specific Websites

Blocking Specific Websites
Thread Tools
Fresh-Faced Recruit
Join Date: Dec 2003
Status: Offline
Reply With Quote
Jan 17, 2005, 02:18 AM
 
Hi, I have a problem that has been bugging me for a couple of weeks.

My friends recently discovered a horrible blog/hookup site called Myspace. Now it is bad enough that they spend all their time on it when they are at their houses, but when they come over here they sprint straight for my iMac and log on to it.

Aside from getting new friends how can I stop this (i.e. Somehow blocking the page from loading).

I tried changing stuff in netinfo:

http://img114.exs.cx/my.php?loc=img1...ddamnit0qn.jpg

And in the terminal:

http://img114.exs.cx/my.php?loc=img...age=term0wm.png

Restarted (just to make sure), and still myspace happily comes up.

Please oh please tell me how to kill this insidious page.
     
Mac Enthusiast
Join Date: May 2002
Status: Offline
Reply With Quote
Jan 17, 2005, 04:55 AM
 
Hey just change it in your etc/hosts file - follow the example given here for a different website, obviously entering the horrendous Myspace community address, instead of Slashdot.

Of course you could just join them.
I have Mac
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Jan 17, 2005, 02:15 PM
 
Originally posted by xkidmidnightx:
And in the terminal:

http://img114.exs.cx/my.php?loc=img1...ge=term0wm.png
I don't know about Netinfo, but to block the host with the /etc/hosts file you'll want an entry such as:
Code:
127.0.0.1 www.myspace.com
Note that I didn't include the "http://" like you did, simply the IP and the hostname are all you need.

But that's no fun, you should redirect them somewhere, like maybe Apples's website:
Code:
thefro:~ root# host www.apple.com www.apple.com CNAME www.apple.com.akadns.net www.apple.com.akadns.net A 17.254.0.91 thefro:~ root# echo -e "17.254.0.91\twww.myspace.com" >> /etc/hosts
Have fun.
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jan 17, 2005, 02:32 PM
 
I'd want to redirect them here.

That ought to leave them good and confused.
(Last edited by Chuckit; Jan 17, 2005 at 02:39 PM. )
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Professional Poster
Join Date: Jan 2003
Location: Teaneck, NJ
Status: Offline
Reply With Quote
Jan 17, 2005, 03:25 PM
 
If you are using a router you can easily block certain sites with it. I know this is possible with my linksys and I assume its very similar with other routers. Although its no as fun as redirecting them somewhere else its very easy to do.
     
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Jan 18, 2005, 09:45 AM
 
lock them out with ipfw
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jan 18, 2005, 11:43 AM
 
I thought ipfw (as of Panther, at least) didn't have the ability to block outgoing traffic, just incoming.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Jan 22, 2005, 01:24 PM
 
Originally posted by Chuckit:
I thought ipfw (as of Panther, at least) didn't have the ability to block outgoing traffic, just incoming.
You can block anything with ipfw, for example:
Code:
thefro:~ root# ipfw add deny ip from me to www.myspace.com 00100 deny ip from me to 69.89.74.24 thefro:~ root# ping www.myspace.com PING www.myspace.com (69.89.74.24): 56 data bytes ping: sendto: Permission denied ping: wrote www.myspace.com 64 chars, ret=-1 ^C
ipfw's pretty cool.
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jan 22, 2005, 02:56 PM
 
Well, what do you know? That is pretty cool. Thanks for the tip.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
   
Thread Tools
Forum Links
Forum 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 On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:07 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2