Quote:
Originally Posted by costam
here i would like to inform you that my company ask me to block facebook site at the work time it is: 08:00-12:30 and 14:00-17:30 in proxy server...but i'm still confuse how to do!!!
i need the details configuration in squid regarding how to block the sites.
could anybody help me?
your feedback is my best solution!!!
|
I haven't done this in a while, but IIRC it should go like this (example):
Code:
acl facebook dstdomain .facebook.com
acl shift_early time S M T W H F A 08:00-12:30
acl shift_late time S M T W H F A 14:00-17:30
http_access deny facebook shift_early
http_access deny facebook shift_late
http_access allow all
You'll obviously need to tweak it to fit your needs (for example, you might want to allow
Facebook all day on Sundays, or create exceptions for certain IPs, etc.). Also, the last line is just for context, as I have no idea what your current setup looks like.