LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-06-2008, 12:33 AM   #1
arsha
LQ Newbie
 
Registered: Nov 2006
Posts: 4

Rep: Reputation: 0
squid + giving full access to a particular url


Hello,

I have implemented squid to block porn and unwanted urls, but the problem is there are specific web applications required by the company that need access , is there a way to give full access to these urls (in the same manner as we do for ip address ) so that they dont get blocked by squid.

Thanks for the help in advance.
 
Old 06-06-2008, 01:05 AM   #2
grizly
Member
 
Registered: Nov 2006
Location: Melbourne Australia
Distribution: Centos, RHEL, Debian, Ubuntu, Mint
Posts: 128

Rep: Reputation: 16
just add the allow directives for your whitelist above the deny directives..

Quote:
#Whitelist of sites that shouldn't be blocked
acl whitelist dstdom_regex -i '/etc/squid/whitelist.acl'

# Prevent porn and adverts from being accessed
acl denied_domains dstdom_regex -i '/etc/squid/denied_domains.acl'
acl denied_ads url_regex -i '/etc/squid/denied_ads.acl'

# Squid manager might need access.. :)
http_access allow manager localhost

# Allow our users to access proxy (make requests that fit acls that is)
acl users src 10.0.0.0/16
http_access deny !users

http_access allow whitelist
http_reply_access allow whitelist

http_access deny all deny_msn_mime
http_access deny all deny_msn_gw
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny denied_domains
http_access deny denied_ads
;)

Last edited by grizly; 06-06-2008 at 01:07 AM. Reason: Emoticons
 
  


Reply


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
i want to block a URL from squid Atifkhan Linux - Enterprise 3 02-23-2010 01:47 PM
Squid Not allowed IP url rssarathy Linux - Newbie 1 03-19-2008 08:00 AM
Squid- restrict access to url jocast Linux - Software 0 03-10-2006 01:59 PM
Squid url port 81 access-denied error steve@korehicom.com Linux - Networking 0 10-13-2005 09:55 AM
Need to specify the full URL path.. Why? soichih Linux - Networking 3 07-31-2004 08:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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