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 10-12-2011, 04:22 AM   #1
soslinux
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 .facebook.com 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 https://www.facebook.com/pages/custfbpagedetail in it :
acl specific_sites dstdom_regex -i https://www.facebook.com/pages/custfbpagedetail but still no access. Is this possible and if so how? Thanks and regards to all.. Roger
 
Old 10-13-2011, 02:47 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,922

Rep: Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327
Hi,

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 facebook.com domain.
So try this:
Code:
acl good_facebook url_regex -i ^https://www.facebook.com/pages/custfbpagedetail
acl ref referer_regex -i custfbpagedetail

http_access allow good_facebook
http_access deny denied_domains !ref
Regards
 
  


Reply

Tags
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 12:02 AM
Cannot Redirect URL to another URL when the link is down with Squid marx_long Linux - Newbie 1 06-13-2010 08:59 PM
squid + giving full access to a particular url arsha Linux - Server 1 06-06-2008 01:05 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


All times are GMT -5. The time now is 07:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration