Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


typo fix | 15 comments | Create New Account
Click here to return to the 'typo fix' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
typo fix
Authored by: SOX on Jan 12, '07 10:26:52AM

copy and paste the following into a terminal
cat >/usr/local/bin/waxon_off.pl
#!/usr/bin/perl -w # typo fix
open FH, "/etc/hosts.orig";
@S = <FH>;
close FH;
open FH, ">/etc/hosts"; # fixed a typo
print FH, @S,"\n";
if (@ARGV[0] eq "off") {
print FH<<EOF;
127.0.0.1 slashdot.org apple.slashdot.org
127.0.0.1 macosxhints.com
EOF
close FH;
}



[ Reply to This | # ]
typo fix again
Authored by: SOX on Jan 12, '07 03:28:58PM

copy and paste the following into a terminal
cat >/usr/local/bin/waxon_off.pl
#!/usr/bin/perl -w # typo fix
open FH, "/etc/hosts.orig";
@S = <FH>;
close FH;
open FH, ">/etc/hosts"; # fixed a typo
print FH, @S,"\n";
if ($ARGV[0] eq "off") {
print FH<<EOF;
127.0.0.1 slashdot.org apple.slashdot.org
127.0.0.1 macosxhints.com
EOF
close FH;
}



[ Reply to This | # ]
typo fix again
Authored by: eaglemoon on Jan 19, '07 06:54:34PM

Hi,

Thanks for the hints!

Two questions:

1)Can this also block email traffic? I don't want any internet period!

2)Is there a way to create a little application that would do this from a GUI?

I am new on the Mac - would be happy to figure out a way to do this!



[ Reply to This | # ]