blocking websites

Gabriel M Dragffy dragffy at yandex.ru
Fri Sep 1 22:31:15 UTC 2006


On Fri, 2006-09-01 at 09:34 -0500, Chris Lemire wrote:
> i have blocked myspace. here's how to do it.
> 
> echo "127.0.0.1 www.myspace.com" | sudo tee -a /etc/hosts 
> 
> i dont believe the person is smart enough to use instant message from
> a website, but if i need to, ill start blocking all those websites.
> how can i use block the instant messengers with iptables? be more
> specific on how to do it please. what's the command? yahoo uses port
> 5050 for logging in with the server for IM, so how can I block that?
> There should be one command  to do it instead of installing squid and
> a bunch of other software.
Quite honestly I don't know how to do it in IP tables, sorry. I'd be
glad to know how i fsomeone can pass on their knowledge. Particularly if
they are rules that can apply to firehol.



>  I just blocked websites without installing squid, so please don't
> suggest it. 

I never did suggest it, in fact it was I who proposed you avoided squid.






More information about the ubuntu-users mailing list