Cheers Don,
That did the trick..... added all the websites to /etc/hosts and added
the commands to /etc/rc.local..... and bingo.....!!!
Thanks guys!
Navdeep Sidhu
[email protected] wrote:
Navdeep Singh Sidhu wrote:
Hi all,
I would like your help in blocking some websites like YouTube and
Bebo from our staff computer. We have an old Compaq running Ubuntu 8.10.
I have tried adding the websites to the /etc/hosts.deny list but
nothing happens.
/etc/hosts
youtube.com 127.0.0.1
result is that hits to google are redirected to localhost.
I searched Google and found a temporary solution, but once the
pc restarts that rule doesnot work. The following is what i have
tried ..
* sudo /sbin/iptables -A OUTPUT -d www.youtube.com -j REJECT
* sudo /sbin/iptables -A OUTPUT -d youtube.l.google.com -j REJECT
* sudo /sbin/iptables -A OUTPUT -d 208.117.236.70 -j REJECT
put the commands in rc.local so they're run at start up.
HTH
Cheers Don
What do you guys recommend. All help will be appreciated.
Navdeep Sidhu