LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to block websites .. (https://www.linuxquestions.org/questions/linux-software-2/how-to-block-websites-173389/)

huno 04-22-2004 01:21 PM

how to block websites ..
 
how can i filter websites .. that mean .. blocking websites ..

i don't want users to enter illegal sites ..

i'm using Suse 9.0 pro

7ux_spirit 04-22-2004 01:45 PM

/etc/hosts file would do the job.
linux will *first* check this file for ip addresses of site names.
so add those site names in that file with the loopback address (one address per line) like ..
127.0.0.1 www.sitetobeblocked.com

this prevents those sites from loading;)

huno 04-22-2004 02:24 PM

what's the name of the server ?

Lleb_KCir 04-22-2004 03:37 PM

Quote:

Originally posted by huno
what's the name of the server ?
what server are you looking for?

the /etc/hosts file is a local file that most OSs have someplace. M$ has em, as does linux, i would guess that MAC does too.

my hosts file has over 700 entries in it. does slow things down form time to time, but it keeps a lot of the junk out of my M$ systems and keeps a load of banner adds from coming up on my *nix systems.

Road 04-22-2004 08:04 PM

Thats creative!

Most people set up a squid server that all your users go through and then you block access there. You could also block access with your firewall, but you need to know the IP.

Once again creative use on the host file.

Lleb_KCir 04-22-2004 08:31 PM

correct me if im wrong, but if you are using iptables you dont need the IP, you can use domains either partial or full URL to block em with your firewall no?


All times are GMT -5. The time now is 07:20 AM.