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
--
Don Gould
31 Acheson Ave, Mairehau, Christchurch, NZ
Ph +64 3 348 7235 or + 64 21 114 0699
www.thinkdesignprint.co.nz