|
|
Blocking Hosts
|
|
|
|
formerly crazyreaper Senior User
Join Date: Jul 2007
Location: York, UK
Status:
Offline
|
|
im trying to block access to a domain on my mac, lets say for this thread its blockme.com, i read this tutorial: http://osxdaily.com/2007/03/19/block...ying-etchosts/ and followed it but when i open /ect/host im met with a blank window like the file doesnt exist? im been a bit retarded here but where would i find the file on my HDD if i did have it? any advice?
|
The Spammer Formally Known As Crazyreaper
Mac Book Pro 15", 2.66 Ghz C2D, 4GB DDR3 / iPhone 4 16GB
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status:
Offline
|
|
You could use Little Snitch, if you want to limit network access for individual apps.
I recommend LS for every user, it's one of the best tools on the Mac.
-t
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
Could you have made the same typo in the command line that you did in your post? It's /etc/hosts.
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2006
Location: Back in the Good Ole US of A
Status:
Offline
|
|
Originally Posted by crazyreaper
im trying to block access to a domain on my mac, lets say for this thread its blockme.com, i read this tutorial: http://osxdaily.com/2007/03/19/block...ying-etchosts/ and followed it but when i open /ect/host im met with a blank window like the file doesnt exist? im been a bit retarded here but where would i find the file on my HDD if i did have it? any advice?
It's /etc/hosts ... not /ect/host
|
|
|
|
|
|
|
|
|
formerly crazyreaper Senior User
Join Date: Jul 2007
Location: York, UK
Status:
Offline
|
|
Originally Posted by Chuckit
Could you have made the same typo in the command line that you did in your post? It's /etc/hosts.
our making a good point, i tried both, host which is reads in the copy and hosts which it showing in the screen shot, neither worked
|
The Spammer Formally Known As Crazyreaper
Mac Book Pro 15", 2.66 Ghz C2D, 4GB DDR3 / iPhone 4 16GB
|
|
|
|
|
|
|
|
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status:
Offline
|
|
Are you getting the nano editor's screen?
|
Glenn -----OTR/L, MOT, Tx
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
What happens if you open /etc in the Finder?
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Mar 2002
Location: Boston
Status:
Offline
|
|
I'm with turtle, I use LS and found it a handy app for managing access.
To Chuckit's question, you cannot easily see /etc in the Finder because its hidden by default.
|
~Mike
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
Go -> Go To Folder works even with hidden folders.
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
|
|
|
|
|
|
|
formerly crazyreaper Senior User
Join Date: Jul 2007
Location: York, UK
Status:
Offline
|
|
is what i get on both host and hosts
i shall see if i can find this LS, basically i need to restrict an applications access to a certain site (not safari)
|
The Spammer Formally Known As Crazyreaper
Mac Book Pro 15", 2.66 Ghz C2D, 4GB DDR3 / iPhone 4 16GB
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Mar 2002
Location: Boston
Status:
Offline
|
|
Originally Posted by Chuckit
Go -> Go To Folder works even with hidden folders.
I did not know that, thanks
|
~Mike
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status:
Offline
|
|
Originally Posted by crazyreaper
i shall see if i can find this LS, basically i need to restrict an applications access to a certain site (not safari)
Yes, you want LS.
Everything else is just going to be very cumbersome, and will break down on a regular basis.
LS is basically a personal Firewall that is very highly customizable on an application level.
All other solutions (like tinkering with etc/hosts/) will block ALL applications, not only specific ones.
-t
|
|
|
|
|
|
|
|
|
formerly crazyreaper Senior User
Join Date: Jul 2007
Location: York, UK
Status:
Offline
|
|
Originally Posted by turtle777
Yes, you want LS.
Everything else is just going to be very cumbersome, and will break down on a regular basis.
LS is basically a personal Firewall that is very highly customizable on an application level.
All other solutions (like tinkering with etc/hosts/) will block ALL applications, not only specific ones.
-t
well tbh the only time that address we be accessed is from the one program i dont want it to be accessed from, ive got LS anyway, any tips on using it, seems a bit confusing to me, how do i restrict access?
edit: just sound the deny button
|
The Spammer Formally Known As Crazyreaper
Mac Book Pro 15", 2.66 Ghz C2D, 4GB DDR3 / iPhone 4 16GB
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2006
Location: Back in the Good Ole US of A
Status:
Offline
|
|
Originally Posted by crazyreaper
is what i get on both host and hosts
i shall see if i can find this LS, basically i need to restrict an applications access to a certain site (not safari)
Dude... you're still spelling it wrong.. it's ETC not ECT
|
|
|
|
|
|
|
|
|
formerly crazyreaper Senior User
Join Date: Jul 2007
Location: York, UK
Status:
Offline
|
|
oh yer, my bad habit, i always use ect not etc in english, bad habit ive had from being a kid, sorry guys
|
The Spammer Formally Known As Crazyreaper
Mac Book Pro 15", 2.66 Ghz C2D, 4GB DDR3 / iPhone 4 16GB
|
|
|
|
|
|
|
|
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status:
Offline
|
|
I just copied the command line from the linked article...
|
Glenn -----OTR/L, MOT, Tx
|
|
|
|
|
|
|
|
Admin Emeritus
Join Date: Oct 1999
Location: Zurich, Switzerland
Status:
Offline
|
|
Originally Posted by crazyreaper
oh yer, my bad habit, i always use ect not etc in english, bad habit ive had from being a kid, sorry guys
"etc" is short for Latin et cetera ("and so on"). It's not "ect" in any language.
|
|
|
|
|
|
|
|
|
formerly crazyreaper Senior User
Join Date: Jul 2007
Location: York, UK
Status:
Offline
|
|
i know, i struggle with spelling, english, gramma ect, par of my dyslexia is that i tent to read things wrong, etc as ect for example
|
The Spammer Formally Known As Crazyreaper
Mac Book Pro 15", 2.66 Ghz C2D, 4GB DDR3 / iPhone 4 16GB
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Mar 2002
Status:
Offline
|
|
We understand.
The reason what you’re doing isn’t working, is that there normally is no ‘ect’ folder in OS X. The screenshot you posted tells us that you have created this folder, along with the ‘hosts’ file (which is something that always happens when you edit files with command line text editors: if the file or the parent folder doesn’t already exist, the editor creates it), but that file is never, ever, going to get read by OS X, because the system actually only looks in the ‘etc’ folder. In an ideal world, OS X would notice your dyslexia and compensate, but we’re not quite there yet, unfortunately.
Just paste this, meanwhile:
sudo nano /etc/hosts
This will start up the nano editor, and open the correct hosts file for editing.
|
|
|
|
|
|
|
|
|
formerly crazyreaper Senior User
Join Date: Jul 2007
Location: York, UK
Status:
Offline
|
|
Originally Posted by red rocket
In an ideal world, OS X would notice your dyslexia and compensate, but we’re not quite there yet, unfortunately.
lol
im giving LS ago atm anyway, am i correct in thinking with LS that if i dont want to restrict an applications access i can just click ok with the settings it has provided? it seems to have done the job for what i want atm
|
The Spammer Formally Known As Crazyreaper
Mac Book Pro 15", 2.66 Ghz C2D, 4GB DDR3 / iPhone 4 16GB
|
|
|
|
|
|
|
|
Junior Member
Join Date: Aug 2005
Status:
Offline
|
|
When the little snitch dialog comes up asking about a new application, if you want it to be unrestricted, click forever at the top, select any connection from the list, and finally press the allow button.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status:
Offline
|
|
Sorry, but I recommend to RTFM for LS, FTW.
-t
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|