Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-19-2009, 12:35 PM   #1
LQ Newbie
Registered: Jun 2009
Location: corpus christi
Posts: 2

Rep: Reputation: 0
Blocking websites

I used the method off the command line to block certain sites but in a medium to large domain I cant input 1000 websites for every user. So what software or hardware device do yall reconmmend me to use to filter out unneeded websites for my domain!
Old 06-19-2009, 12:46 PM   #2
Registered: Apr 2004
Distribution: slackware/FreeBSD/Vector
Posts: 291

Rep: Reputation: 52
Well personally I use a filtering proxy using dansguardian with antivirus. You could make the proxy transparent and that would force all machines to route web traffic through that proxy.
Old 06-19-2009, 02:18 PM   #3
Andy Alt
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware32-stable, Debian32 stable, LFS 7.1
Posts: 385

Rep: Reputation: 44
dnsmasq for blocking web sites

I use dnsmasq only as a caching name server for my personal computer, but it has options like the following:

# Add domains which you want to force to an IP address here.
# The example below send any host in to a local
# webserver.

Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server. It is designed to provide DNS and (optionally) DHCP to a small network. It can serve the names of local machines which are not in the global DNS. The DHCP server integrates with the DNS server and allows machines with DHCP-allocated addresses to appear in the DNS with names configured either in each host or in a central configuration file. Dnsmasq supports static and dynamic DHCP leases and BOOTP/TFTP for network booting of diskless machines.
Old 06-22-2009, 01:58 PM   #4
Senior Member
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,977
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Originally Posted by valdez_42 View Post
I used the method off the command line to block certain sites but in a medium to large domain I cant input 1000 websites for every user. So what software or hardware device do yall reconmmend me to use to filter out unneeded websites for my domain!
You can use squid.

Old 06-22-2009, 03:20 PM   #5
LQ Guru
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Untangle is another option.

can be setup as a transparent bridge, so you can insert it between your network and your firewall, without changing any of your other network settings.
Old 06-28-2009, 10:19 PM   #6
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 208

Rep: Reputation: 35
There is also DNS server poisoning.

If the goal is to prevent your users from being redirected to a malicious site, you can black-hole a valid host name within your companies DNS server. Sounds like what you started to do at the host level. There are sites that maintain lists of these domain names that can be resolved to either or a internal virtual domain name with a page that explains the site requested is blocked.

This method is not suitable if your goal is to prevent anyone from accessing say Twitter, as this method is easily circumvented by pointing the work station to an external DNS server.
Old 06-28-2009, 11:01 PM   #7
Registered: Jun 2009
Location: India
Distribution: Fedora,Redhat
Posts: 111
Blog Entries: 1

Rep: Reputation: 17
Ya...I think SQUID will do...Easy to configure and will tighten your security..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
blocking websites with squid tariq07 Linux - Security 2 03-03-2007 02:39 AM
blocking websites fakie_flip Linux - Software 7 09-02-2006 07:57 PM
Squid problem ... blocking some websites rickyinman Linux - Networking 4 04-11-2006 12:26 PM
linblock blocking websites synaptical Linux - Software 3 09-07-2004 11:12 PM
Iptables blocking certain websites?? Ikik Linux - Security 3 09-29-2003 02:39 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration