You are on page 1of 6

terminal-

Menu history-in-
Thursday, Feb 20, 2020 
Time Based restriction with Squid
(http://www.techwithguru.com/) linux/) 1

By Techwithguru (Http://Www.Techwithguru.Com/Author/Admin/) (http://www.te


lspci-
— May 2, 2013 (Http://Www.Techwithguru.Com/2013/05/02/) command/)
— Squid Proxy (Http://Www.Techwithguru.Com/Category/Linux/Squid-Proxy/) 2

(http://www.te
alt-delete-
HOME (HTTP://WWW.TECHWITHGURU.COM)  LINUX
(HTTP://WWW.TECHWITHGURU.COM/CATEGORY/LINUX/)  SQUID PROXY ubuntu/)
3
(HTTP://WWW.TECHWITHGURU.COM/CATEGORY/LINUX/SQUID-PROXY/)  TIME BASED
RESTRICTION WITH SQUID

(http://www.te
to- nd-the-
ubuntu-
Time Based restriction with Squid version/) 4

Time Based restriction with Squid;

Time Based restriction with Squid (http://tecexpertz.com/wp-


content/uploads/2013/04/minutes-timer.jpg)
Recent Com
 

  Siu Cuthbert
(http://downloa
First open squid.conf le /etc/squid/squid.conf:
Custom Error P
(http://www.tec
# vi /etc/squid/squid.conf server-custom-

Junior Brody
Now add following lines to your squid ACL section: (http://downloa
Custom Error P
(http://www.tec
acl MyNetwork src 192.168.0.0/16 server-custom-
acl OfficeHr time M T W H F S 10:00-17:00
acl BLKSite dstdomain .yahoo.com
Armanda Dudd
(http://zblackm
Custom Error P
(http://www.tec
http_access allow BLKSite OfficeHr MyNetwork server-custom-
http_access deny all

Save and close the le. [ :wq ]

Save and close the le. Restart Squid:

# /etc/init.d/squid restart Te

 (https://www

Installing Squid Proxy Server in CentOS ( http://tecexpertz.com/installing-squid-  (https:/


proxy-server-in-centos/) :
Running Squid on Boot in Squid Proxy Server (http://tecexpertz.com/running-squid-
on-boot-in-squid-proxy-server/) : (https://ca.link
Initializing Cache Directories in Squid Proxy Server (http://tecexpertz.com/initializing-
cache-directories-in-squid-proxy-server/) :
(https://www
Clean and Re-build Squid cache in Squid Proxy Server (http://tecexpertz.com/clean-
View Terminal History in Linux Linux – lspci command How to disable CTRL+
and-re-build-squid-cache-in-squid-proxy-server/) :
  (http://www.techwithguru.com/view-
terminal-history-in-linux/)
(http://www.techwithguru.com/linux-
lspci-command/)
keys under Ubuntu L
(http://www.techwit
 
(http://www.te
Squid Proxy Server – Error : ‘visible_hostname’ ( http://tecexpertz.com/squid-proxy- terminal-
Menu server-error-visible_hostname/) : history-in-
Thursday, Feb 20, 2020  1
Squid Proxy Server – Custom Error Pages (http://tecexpertz.com/squid-proxy-server-
(http://www.techwithguru.com/) linux/)
custom-error-pages) :
Squid Proxy Server – ACL Types (http://tecexpertz.com/squid-proxy-server-acl-
(http://www.te
types) :
lspci-
Squid Proxy Server – ACL : src, dst, myip (http://tecexpertz.com/squid-proxy-server-
command/)
acl-src-dst-myip) :
2
How to enable Internet Access to the Local Network in Squid Proxy Server
(http://tecexpertz.com/how-to-enable-internet-access-to-the-local-network-in-squid-
(http://www.te
proxy-server) :
alt-delete-
Squid Proxy Server – ACL : req_mime_type (http://tecexpertz.com/squid-proxy-
ubuntu/)
server-acl-req_mime_type) : 3
How to Block a Streaming Video in Squid Proxy Server (http://tecexpertz.com/how-
to-block-a-streaming-video-in-squid-proxy-server) :
Squid Proxy Server – ACL : dstdomain (http://tecexpertz.com/squid-proxy-server-acl-
(http://www.te
dstdomain) :
to- nd-the-
Block any Domain Name in Squid Proxy Server (http://tecexpertz.com/block-any-
ubuntu-
domain-name-in-squid-proxy-server) :
version/) 4
Di erence between url_regex, urlpath_regex and dstdom_regex
(http://tecexpertz.com/di erence-between-url_regex-urlpath_regex-and-
dstdom_regex) :
Squid content ltering from Squid Proxy Server (http://tecexpertz.com/squid-
content- ltering-from-squid-proxy-server) :
Block urls, keyword or le format on Squid proxy (http://tecexpertz.com/block-urls- Recent Com
keyword-or- le-format-on-squid-proxy) :
Block Anonymous Proxy sites in SQUID (http://tecexpertz.com/block-anonymous-
Siu Cuthbert
proxy-sites-in-squid) :
(http://downloa
Squid Proxy Server – Combining ACLs (AND/OR) (http://tecexpertz.com/squid-proxy-
Custom Error P
server-combining-acls-andor) :
(http://www.tec
Squid Proxy Server – ACL : time (http://tecexpertz.com/squid-proxy-server-acl-time) :
server-custom-
Time Based restriction with Squid (http://tecexpertz.com/time-based-restriction-
with-squid) :
Junior Brody
How to Limit download size in Squid ( http://tecexpertz.com/how-to-limit-download-
(http://downloa
size-in-squid) :
Custom Error P
How to Limit Upload size in Squid (http://tecexpertz.com/how-to-limit-upload-size-in-
(http://www.tec
squid) :
server-custom-
Max User IP In Squid Proxy Server (http://tecexpertz.com/maximum-connections-
and-max-user-ip-in-squid-proxy-server) :
Maximum Connections In Squid Proxy Server (http://tecexpertz.com/maximum- Armanda Dudd
connections-in-squid-proxy-server) : (http://zblackm
How to block a Web Browser using Squid proxy (http://tecexpertz.com/how-to-block- Custom Error P
a-web-browser-using-squid-proxy) : (http://www.tec
Redirect URL In Squid Proxy Server (http://tecexpertz.com/redirect-url-in-squid- server-custom-
proxy-server) :

    
0 0 0 0 0

 (https://getsocial.io?utm_source=reaction_button)

Te
Tagged : How to block sites using Squid proxy also by date and time
(http://www.techwithguru.com/tag/how-to-block-sites-using-squid-proxy-also-by-date-and-time/) Linux  (https://www
(http://www.techwithguru.com/tag/linux/) Proxy Server (http://www.techwithguru.com/tag/proxy-server/)
Squid (http://www.techwithguru.com/tag/squid/) Time Based restriction with Squid
 (https:/
(http://www.techwithguru.com/tag/time-based-restriction-with-squid/)

Related Articles (https://ca.link

(https://www
(http://www.techwithguru.com SQUID PROXY
(HTTP://WWW.TECHWITHGURU.COM/CATEGORY/LINUX/SQUID-PROXY/)
View Terminal History in Linux
url-in-squid-proxy-server/) Linux – lspci command How to disable CTRL+
  (http://www.techwithguru.com/view- (http://www.techwithguru.com/linux- keys under Ubuntu L  
terminal-history-in-linux/) lspci-command/) (http://www.techwit
(http://www.te
Redirect URL In Squid Proxy Server terminal-
Menu (http://www.techwithguru.com/redirect-url-in- history-in-
Thursday, Feb 20, 2020 
squid-proxy-server/) linux/) 1
(http://www.techwithguru.com/)
By Techwithguru
(Http://Www.Techwithguru.Com/Author/Admin/) (http://www.te
— May 2, 2013 (Http://Www.Techwithguru.Com/2013/05/02/) lspci-
command/)
2
(http://www.techwithguru.com SQUID PROXY
(HTTP://WWW.TECHWITHGURU.COM/CATEGORY/LINUX/SQUID-PROXY/)
urls-keyword-or- le-format- (http://www.te
on-squid-proxy/) Block urls, keyword or file format on Squid proxy alt-delete-
(http://www.techwithguru.com/block-urls- ubuntu/)
3
keyword-or-file-format-on-squid-proxy/)
By Techwithguru
(Http://Www.Techwithguru.Com/Author/Admin/)
(http://www.te
— May 2, 2013 (Http://Www.Techwithguru.Com/2013/05/02/)
to- nd-the-
ubuntu-
version/) 4
(http://www.techwithguru.com SQUID PROXY
(HTTP://WWW.TECHWITHGURU.COM/CATEGORY/LINUX/SQUID-PROXY/)
sarg-squid-analysis-report-
generator/) Configure SARG – Squid Analysis Report
Generator
(http://www.techwithguru.com/configure-
sarg-squid-analysis-report-generator/) Recent Com

By Techwithguru
(Http://Www.Techwithguru.Com/Author/Admin/) Siu Cuthbert
— May 2, 2013 (Http://Www.Techwithguru.Com/2013/05/02/) (http://downloa
Custom Error P
(http://www.tec
(http://www.techwithguru.com SQUID PROXY server-custom-
(HTTP://WWW.TECHWITHGURU.COM/CATEGORY/LINUX/SQUID-PROXY/)
squid-proxy-server-
windows/) Download Squid Proxy Server for the Windows Junior Brody
Platform (http://downloa
(http://www.techwithguru.com/download- Custom Error P
squid-proxy-server-windows/) (http://www.tec
server-custom-
By Techwithguru
(Http://Www.Techwithguru.Com/Author/Admin/)
— May 2, 2013 (Http://Www.Techwithguru.Com/2013/05/02/) Armanda Dudd
(http://zblackm
Custom Error P
(http://www.tec
(http://www.techwithguru.com SQUID PROXY
(HTTP://WWW.TECHWITHGURU.COM/CATEGORY/LINUX/SQUID-PROXY/)
server-custom-
proxy-installation/)
Squid Proxy installation via binary packages on
various Linux flavors
(http://www.techwithguru.com/squid-proxy-
installation/)
By Techwithguru
(Http://Www.Techwithguru.Com/Author/Admin/)
— May 2, 2013 (Http://Www.Techwithguru.Com/2013/05/02/)

Te

 (https://www

Previous  (https:/
Squid Proxy Server: date and time based restriction using ACL
(https://ca.link
(http://www.techwithguru.com/squid-proxy-server-acl-time/)

(https://www

View Terminal History in Linux Linux – lspci command How to disable CTRL+
  (http://www.techwithguru.com/view- (http://www.techwithguru.com/linux- keys under Ubuntu L  
terminal-history-in-linux/) lspci-command/) (http://www.techwit
Next (http://www.te
How to Limit Upload size in Squid terminal-
Menu history-in-
Thursday, Feb 20, 2020
(http://www.techwithguru.com/how-to-limit-upload-size-in-squid/) 
linux/) 1
(http://www.techwithguru.com/)

(http://www.te
lspci-
ONE THOUGHT ON “TIME BASED RESTRICTION command/)
WITH SQUID” 2

(http://www.te
alt-delete-
Matthew C. Kriner (http://www.howtomakemoney832.com) ubuntu/)
June 8, 2013 at 5:39 am (http://www.techwithguru.com/time-based-restriction-with-squid/#comment-210) 3

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
(http://www.te
revealing your web-site. to- nd-the-
ubuntu-
REPLY
version/) 4

LEAVE A REPLY

Your email address will not be published. Required elds are marked * Recent Com

COMMENT
Siu Cuthbert
(http://downloa
Custom Error P
(http://www.tec
server-custom-

Junior Brody
(http://downloa
Custom Error P
NAME * EMAIL *
(http://www.tec
server-custom-

WEBSITE
Armanda Dudd
(http://zblackm
Custom Error P
(http://www.tec
Post Comment server-custom-

Te

 (https://www
 (https:/

(https://ca.link

(https://www

View Terminal History in Linux Linux – lspci command How to disable CTRL+
  (http://www.techwithguru.com/view-
terminal-history-in-linux/)
(http://www.techwithguru.com/linux-
lspci-command/)
keys under Ubuntu L
(http://www.techwit
 
(http://www.te
terminal-
Menu history-in-
Thursday, Feb 20, 2020  1
(http://www.techwithguru.com/) linux/)

(http://www.te
lspci-
command/)
2

(http://www.te
alt-delete-
ubuntu/)
3

(http://www.te
to- nd-the-
ubuntu-
version/) 4

Recent Com

Siu Cuthbert
(http://downloa
Custom Error P
(http://www.tec
server-custom-

Junior Brody
(http://downloa
Custom Error P
(http://www.tec
server-custom-

Armanda Dudd
(http://zblackm
Custom Error P
(http://www.tec
server-custom-

ABOUT

TechwithGuru, Is a Computer Technology related web portal that provides the latest and
industry speci c information to the viewers. Most of the important categories covered are
Networking, Hardware, Software, Open Source, Linux, Web development, Programming, OS etc.
Te
Top Stories: Mobile
 (https://www
 (https:/
(http://www.techwithguru.com/ — 1 Apr 2019
reset-samsung-galaxy-s- How To Factory/Master Reset Samsung Galaxy S device
device/) (http://www.techwithguru.com/factory-reset-samsung-
(https://ca.link
galaxy-s-device/)
1

(http://www.techwithguru.com/ — 31 Mar 2019 (https://www


reset-samsung-galaxy-device/) How to Hard
View Terminal History in Linux Reset
Linux Samsung
– lspci Galaxy S devices
command How to disable CTRL+
(http://www.techwithguru.com/hard-reset-samsung-
  (http://www.techwithguru.com/view-
terminal-history-in-linux/)
(http://www.techwithguru.com/linux-
galaxy-device/)
lspci-command/)
keys under Ubuntu L 
(http://www.techwit

2
(http://www.te
(http://www.techwithguru.com/ — 30 Mar 2019 terminal-
Menu
cache-partition-samsung- How to Wipe cache partitionThursday,
in Samsung Galaxy S devices history-in-
Feb 20, 2020
(http://www.techwithguru.com/wipe-cache-partition-  1
galaxy/)
(http://www.techwithguru.com/) linux/)
samsung-galaxy/)
3

(http://www.techwithguru.com/ — 29 Mar 2019 (http://www.te


iphone-origin/) How to Find iPhone’s Origin? lspci-
(http://www.techwithguru.com/find-iphone-origin/) command/)
4 2

(http://www.te
alt-delete-
Top Stories: Linux
ubuntu/)
3

(http://www.techwithguru.com/ — 4 Jan 2020


terminal-history-in-linux/) View Terminal History in Linux
(http://www.techwithguru.com/view-terminal-history-in- (http://www.te
linux/)
1 to- nd-the-
ubuntu-
(http://www.techwithguru.com/ — 3 Jan 2020 version/) 4
lspci-command/) Linux – lspci command
(http://www.techwithguru.com/linux-lspci-command/)
2

(http://www.techwithguru.com/ — 2 Jan 2020


Recent Com
alt-delete-ubuntu/) How to disable CTRL+ALT+DEL reboot keys under Ubuntu Linux
(http://www.techwithguru.com/disable-alt-delete-ubuntu/)
3
Siu Cuthbert
(http://downloa
(http://www.techwithguru.com/ — 1 Jan 2020
Custom Error P
to- nd-the-ubuntu-version/) How To Find the Ubuntu Version
(http://www.techwithguru.com/how-to-find-the-ubuntu- (http://www.tec
4
version/) server-custom-

Junior Brody
(http://downloa
Search … Search Custom Error P
(http://www.tec
server-custom-
Social Profile’s
Armanda Dudd
(http://zblackm
 (https://www.facebook.com/techwithguru/)  (https://twitter.com/techwithguru) Custom Error P
(http://www.tec
server-custom-
 (https://ca.linkedin.com/company/techwithguru)

 (https://www.youtube.com/c/techwithguru)

Copyright All right reserved : by TechwithGuru (http://techwithguru.com/)

Home (http://www.techwithguru.com/home/)
Contact Us (http://www.techwithguru.com/contact-us/)
About Us (http://www.techwithguru.com/about-us/) Blog (http://www.techwithguru.com/blog/)

View Terminal History in Linux Linux – lspci command How to disable CTRL+
  (http://www.techwithguru.com/view-
terminal-history-in-linux/)
(http://www.techwithguru.com/linux-
lspci-command/)
keys under Ubuntu L
(http://www.techwit
 

You might also like