Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


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

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


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
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..

#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
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


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 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 > Forums > Linux Forums > Linux - Server

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