I have configured squid in my CentOs 6.3 server it's working fine now i want to allow facebook access only in lunch time i have wrote a acl for this but it's blocking http access when i try to open facebook with https it not blocking facebook in this mode my code for http blocking.
acl FACEBOOK dstdomain www.facebook.com acl LUNCH time MTWHF 13:00-14:00 http_access allow FACEBOOK LUNCH http_access deny FACEBOOK
these acl i am writing on the bottom of these lines.
acl manager proto cache_object acl localhost src 127.0.0.1/32 ::1 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
and is only blocking http requests but not https requests.
I have tried to block this using this CONNECT acl but it not working for me.
http_access deny CONNECT FACEBOOK
but it's also not working and i want to know about where to write this acl in squid.conf file whether on bottom of these acl or anywhere in squid.conf file.
Please tell me the correct solution i have searched a lot on this on google but not able to find googd one. Thanks.