LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 07-06-2005, 03:23 AM   #1
Maxx762
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 hotmail.com, warez.com,porn.com and so on. Thanks in advance
 
Old 07-06-2005, 03:44 PM   #2
rjwilmsi
Member
 
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
0.0.0.0 www.hotmail.com
0.0.0.0 www.badsite.com

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 0.0.0.0 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. [http://www.methlabs.org]

3) I imagine this is also possible using IPtables, but I've never tried, so don't know how.
 
Old 07-06-2005, 04:46 PM   #3
fouldsy
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 - http://www.squid-cache.org/Doc/FAQ/FAQ-10.html#ss10.23

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.
 
  


Reply



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 06:52 PM
Message saying I can't post URL's theGerbil LQ Suggestions & Feedback 5 08-23-2004 06:47 PM
Opening URL's in Kmail ksilver Mandriva 2 01-29-2004 01:12 PM
Denying Pings oostevo Linux - Security 6 08-13-2002 09:50 PM
Denying telnet with message Infamous Tim Linux - Security 4 03-25-2001 05:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 10:41 PM.

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