Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.


  Search this Thread
Old 07-06-2005, 04:23 AM   #1
LQ Newbie
Registered: Jun 2005
Posts: 1

Rep: Reputation: 0
Denying URL's

Hi, this is Daniel , Maxx762, I need to know how to deny access to some URL's using my redhat linux 9 box. I have squid proxy server installed and I need to know how to deny the network I have access to some url's such as,, and so on. Thanks in advance
Old 07-06-2005, 04:44 PM   #2
Registered: Mar 2005
Location: UK
Distribution: opensuse 12.2 x86_64
Posts: 563

Rep: Reputation: 38
Well, there are a few possibilities here:

1) if you need a quick solution then use your hosts file:
put lines like

in the hosts file in the /etc/ folder. You need root access to do this. This works by telling your PC that the IP address of hotmail is when it clearly isn't --> can't connect to hotmail.

2) Use PeerGuardian by adding the IP ranges you want to block to your own list. []

3) I imagine this is also possible using IPtables, but I've never tried, so don't know how.
Old 07-06-2005, 05:46 PM   #3
Senior Member
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
Within the squid.conf file, you can specify ACL's to block certain sites -

Or, something like SquidGuard can easily run alongside Squid allowing you to simply enter required domains or URL's into a text file and have them blocked. It depends on how complicated you want it, or rather, how many sites you expect will end up being blocked. There are loads of content filtering than run alongside Squid. Personally, I use DansGuardian, but check out that first link through the Squid FAQ's for a simply way to block certain sites purely with Squid.


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
Malformed url's go to MS? Why? Brain Drop General 5 02-25-2005 07:52 PM
Message saying I can't post URL's theGerbil LQ Suggestions & Feedback 5 08-23-2004 07:47 PM
Opening URL's in Kmail ksilver Mandriva 2 01-29-2004 02:12 PM
Denying Pings oostevo Linux - Security 6 08-13-2002 10:50 PM
Denying telnet with message Infamous Tim Linux - Security 4 03-25-2001 06:56 PM > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 03:07 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