Review your favorite Linux distribution.
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 10-12-2011, 05:22 AM   #1
LQ Newbie
Registered: Oct 2008
Posts: 18

Rep: Reputation: 0
Squid ACL to allow access to a child URL below a blocked main URL

Hi all, I do apologize if this is a dupe but I cannot for the life of me think how I would search for this..
I need to allow access to a specific URL that is blocked by another ACL. I have an ACL called denied_domains and it contains amongst others and all IP's falling below this ACL are denied access to Facebook. However the company has a Facebook page and wants employees to be able to access that but only that. So I created a new ACL above denied_domains called specific_sites with the full URL in it :
acl specific_sites dstdom_regex -i but still no access. Is this possible and if so how? Thanks and regards to all.. Roger
Old 10-13-2011, 03:47 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,206

Rep: Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394

Better use a url_regex acl containing the url you want to allow.
Also note that you have to use a referer_regex acl, or else the page you want to see will be incomplete, as it uses objects from other URLs inside the domain.
So try this:
acl good_facebook url_regex -i ^
acl ref referer_regex -i custfbpagedetail

http_access allow good_facebook
http_access deny denied_domains !ref


acl, squid

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
[SOLVED] Squid Acl block access to a particular url rexjenny Linux - Server 2 10-05-2011 01:02 AM
Cannot Redirect URL to another URL when the link is down with Squid marx_long Linux - Newbie 1 06-13-2010 09:59 PM
squid + giving full access to a particular url arsha Linux - Server 1 06-06-2008 02:05 AM
Squid- restrict access to url jocast Linux - Software 0 03-10-2006 02:59 PM
Squid url port 81 access-denied error Linux - Networking 0 10-13-2005 10:55 AM

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