T
Techeia
Back to Blog

How to restrict web access time in squid?

March 7, 2017
By Techeia

Say the web access allow time be  4:30pm  to 7:30pm , Monday to Friday.

a. To restrict web access between 4:30pm to 7:30pm from Monday to Friday, open the Squid configuration file.

# vi /etc/squid/squid.conf

b. Add the following lines and save the file and exit.

acl ALLOW_TIME time M T W H F 16:30-19:30

shttp_access allow ALLOW_TIME

c. Restart the Squid Service.

# service squid restart

Other Squid interview Questions:

Related Topics