LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 11-13-2005, 04:20 AM   #1
algates
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
Question Squid Proxy Problem


I am trying to run proxy server for my small office network.
So I am currently configuring the /etc/squid/squid.conf file for setting up my server as a proxy server. I want to block all the phono/sex sites coming into the office network. So there is a way to block the destination sites based on regular expressions in squid.conf file. I am trying to block all the sites having the keyword sex in the url.

acl Sex url_regex sex
acl Sex1 urlpath_regex sex
acl Sex2 dstdom_regex sex
http_access deny Sex Sex1 Sex2

Instead of giving the above three definitions the browser allows the url paths with the keyword sex. Please help me resolve this issue.
Thanks in advance.
AlGates.
 
Old 11-13-2005, 06:31 AM   #2
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
Do you not need -i in there, such as "acl Sex url_regex -i sex"? I'm not too hot with regular expressions through Squid. Instead, run DansGuardian inline with Squid to provide true content filtering. Think of how many websites don't contain "sex" in the url that would sail through. Using the ACL's like you have you'd only catch a handful of sites. SquidGuard would be a bit easier at blocking direct URL's, but not scanning the content of sites before providing them to end-users.
 
  


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
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM
squid proxy autentication problem HELP!! mlu Linux - Networking 1 07-27-2005 05:13 PM
Problem Squid Proxy Installation cyberM Linux - Software 1 11-21-2004 09:44 PM
transparent proxy with squid problem philipph Linux - Networking 5 04-19-2004 09:03 AM
Squid proxy problem kelper Linux - Software 2 06-16-2003 01:39 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 12:03 AM.

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