Close
Social profiles

Time Based restriction with Squid

Time Based restriction with Squid;

Time Based restriction with Squid

 

 

First open squid.conf file /etc/squid/squid.conf:

# vi /etc/squid/squid.conf

Now add following lines to your squid ACL section:

acl MyNetwork src 192.168.0.0/16
acl OfficeHr time M T W H F S 10:00-17:00
acl BLKSite dstdomain .yahoo.com
http_access allow BLKSite OfficeHr MyNetwork
http_access deny all

Save and close the file. [ :wq ]


Save and close the file. Restart Squid:

# /etc/init.d/squid restart

One thought on “Time Based restriction with Squid”

  1. I simply want to say I am just newbie to weblog and really loved your page. Likely I’m want to bookmark your blog post . You surely have perfect posts. Thanks a lot for revealing your web-site.

Leave a Reply

Your email address will not be published. Required fields are marked *

Close