How to let specific subdomain through Squid Proxy?

Posted by armani on Server Fault See other posts from Server Fault or by armani
Published on 2012-11-26T16:49:15Z Indexed on 2012/11/26 17:06 UTC
Read the original article Hit count: 210

Filed under:
|
|

I need to allow Facebook.com/MyOrganization, but nothing else from Facebook.com.

I tried:

acl local_c src 192.168.0.0/16
acl fb_ok urlpath_regex ^/MyOrganization
acl fb dstdomain .facebook.com

http_access allow local_c fb_ok
http_access deny local_c fb

But that simply brings down all of Facebook, including the page I want.

Anybody have experience in this? Lots of Googling got me nowhere, and Regular Expressions confuse me...

© Server Fault or respective owner

Related posts about firewall

Related posts about proxy