Thanks, I will probably use this as I don't want to limit access for other computers.
of course you'll also lose all network, not just the internet
I suppose the other way is changing /etc/resolv.conf from
nameserver 8.8.8.8
to nameserver 127.0.0.1
8.8.8.8 is google's speedy dns