blocking specific websites, but allowing internet access
hi, i have a machine that i would like to be able to block access to certain websites on (per user or machine wide will work) but i still want to allow access to all of the internet.
is there an easy way to do this? using: fedora core 2 firefox 1.0-1 |
set the site in the hosts file to be spoofed
127.0.0.1 blockedsite.com I'm going to try using IPtables when I get the chances, something like IPTABLES -A OUTPUT -d hotmail.com -reject-with icmp-host-unreachable I've searched this site, and someone posted the iptables method, but I have never actually tried it. If it works, I'm going to use a blacklist of websites and create a script to block more than 200 sites. |
thanks for the help, but i have tried that, it does not seem to work, what do i need to do to make it take effect? (i typed everything correctly, i promise)
|
this for instace:
Code:
# |
Put squid on the firewall/gateway and do content filtering through squid
|
Quote:
In some cases, I've run into situations where I have to enter multiple permutations of the site name (subdomains, etc) to get the desired effect. You don't have to do anything but save the file, and it'll be in effect immediately. Such is life with kids in the house. ;) and my hosts file passed 300KB in size a while back. |
What am I doing wrong? I haven't been able to block any websites.
Code:
ubuntu@ubuntu:~$ IPTABLES -A OUTPUT -d hotmail.com -reject-with icmp-host-unreachable |
All times are GMT -5. The time now is 04:32 PM. |