 |
 |
How to block a specific IP?
|
 |
|
 |
|
Professional Poster
Join Date: Feb 2002
Location: adequate, thanks.
Status:
Offline
|
|
I need to block the eBay IPs on my computer. Where/how can I do that? The goal is not to be able to access eBay.de from my Mac.
|
|
|
| |
|
|
|
 |
|
 |
|
Admin Emeritus 
Join Date: Oct 1999
Location: Zurich, Switzerland
Status:
Offline
|
|
Just use a hosts file to resolve ebay.de to 0.0.0.0.
eBay is huge, as you may have noticed. They probably have thousands of IPs you'd have to block.
Also, if this is to keep others from accessing eBay, just use Tiger's parental controls to restrict access.
tooki
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Feb 2002
Location: adequate, thanks.
Status:
Offline
|
|
Meh, parental controls don't work in this case, 'cause I need to block it for me = admin acct.
I did some searches on google regarding the host file solution, but I could not find any useful info. Can you halp me out? I figure this isn't too much word to do, is it?
|
|
|
| |
|
|
|
 |
|
 |
|
Admin Emeritus 
Join Date: Oct 1999
Location: Zurich, Switzerland
Status:
Offline
|
|
The hosts file resides at /etc/hosts
Just type "man hosts" in the terminal to get the help on it, and then use your preferred text editor to edit the hosts file appropriately.
I think the entry you want is:
"0.0.0.0 ebay.de"
but it's been a while since I messed with hosts files, so check before you act!
tooki
|
|
|
| |
|
|
|
 |
|
 |
|
Admin Emeritus 
Join Date: Oct 1999
Location: Zurich, Switzerland
Status:
Offline
|
|
Come to think of it, I don't think that'll work. I think OS X still looks at NetInfo first, so you have to juggle around the DNS resolver first, or just use NI to set the entry you need.
Perhaps someone else with more experience with this can chime in with the exact commands?
tooki
|
|
|
| |
|
|
|
 |
|
 |
|
Administrator 
Join Date: Apr 2001
Location: San Antonio TX USA
Status:
Offline
|
|
I'd reroute the blocked site(s) to 127.0.0.1 rather than 0.0.0.0, if only to avoid getting an error message about an invalid IP.
Otherwise, I don't know which direction the OS goes first in resolving a URL, so I can't be helpful.
|
|
Glenn -----
OTR/L, MOT, Tx
|
| |
|
|
|
 |
|
 |
|
Posting Junkie
Join Date: Dec 2000
Status:
Offline
|
|
I used /etc/hosts to block forums.macnn.com for a while last year when I really was wasting too much time on here. Redirecting it to 127.0.0.1 worked. However, I think that was on Panther. Not sure if anything's changed since then, but it's certainly worth a try.
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Oct 2001
Location: Australia
Status:
Offline
|
|
Originally Posted by andreas_g4
I need to block the eBay IPs on my computer. Where/how can I do that? The goal is not to be able to access eBay.de from my Mac.
are u looking for something similar to this.It's open source but can only find a windows version
http://phoenixlabs.org/pg2/
|
|
Apple an innovator in a world of Immitators.
And thats the bottom line!!!!!!!!!
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Apr 2002
Location: case.edu
Status:
Offline
|
|
/etc/hosts will override NetInfo will override DNS, IIRC. (This is in 10.4.x.)
|
pb 1440x960 | 1.67, 1.5, 128, 80 | leopard
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Aug 2000
Location: Ancaster, Ontario, Canada
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
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
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|