LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   squid (http://www.linuxquestions.org/questions/linux-newbie-8/squid-923178/)

amartlk 01-11-2012 12:06 AM

squid
 
Hi

I have centos5.3 installed with squid as proxy .
i want to open some particular site for period of time as 11:00am -11:30 Am

how it is possible


Amar

deep27ak 01-11-2012 12:12 AM

Hello amartlk

I think you will have to be little more descriptive
do you want some sites to be opened in that time and later blocked?

try this, it should work
Code:

acl office_hours time 11:00-11:30
http_access allow office_hours time
http_access deny all


amartlk 01-11-2012 12:34 AM

Hi

i want some sites to be opened in that time and later blocked
suppose www.yahoo.com is site i want this site is open daily at 11:00
and blocked at 11:30 on same day.

Amar

deep27ak 01-11-2012 12:49 AM

This should work

Code:

acl websites url_regex dstdomain .yahoo.com
http_access allow websites

acl office_hours time 11:00-11:30
http_access allow office_hours time
http_access deny all



All times are GMT -5. The time now is 02:37 AM.