-   Linux - Server (
-   -   squid + giving full access to a particular url (

arsha 06-06-2008 12:33 AM

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.

grizly 06-06-2008 01:05 AM

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

All times are GMT -5. The time now is 09:24 AM.