Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-24-2006, 08:19 AM   #1
Registered: May 2005
Location: Brazil
Distribution: Fedore Core 3
Posts: 138

Rep: Reputation: 15
Squid Time Access for a range of domains

Hi everybody!!!

I have Squid running very smoothly on my machine. It blocks a lot of domains wich I dont want my clients to access. I want squid running as is but Id like to put an extra rule that would prevent clients to connect to known unproductive sites on the working hours. They can connect to these sites before work hours, on the lunch hour and after working hours are finished. The sites I would like to prohibit are sites for chatting, playing games online etc.

I found this rule on the web and was trying to understand, so I could fit it to my needs. Here it is.

acl restricted_access time MTWHF 12:00-14:00
http_access allow localnet restricted_access
I can see that the first line defines the acl on a timed schedule and the second prevents all the machines on the localnet from accessing sites.

But what I really want is that everybody can access permitted sites at any given moment. But I want time access restriction to sites that are considered unproductive.

Can this be done?

Old 03-04-2006, 01:45 PM   #2
Registered: Nov 2003
Location: Chittagong, Bangladesh
Distribution: RHEL 5
Posts: 63

Rep: Reputation: 19
r u not defining access list for those web sites ?? as u r already blocking lot of domains , u must know that u've to define access list for those domains . here is the code. hope it'll work cause i've tested it :
acl myclient src 
###### websites keywords sex, teen ######
acl denyurl url_regex sex teen
####this is the period when u want them to restrict ###
acl restricted_period time 09:00-11:00
http_access deny restricted_period denyurl
http_access allow myclient

Last edited by orko; 03-08-2006 at 03:14 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid: acl'ing range of IPs ivanatora Linux - Software 4 05-05-2005 03:43 AM
How to List files between date1 and date2 (range of time)? mystique98ls Linux - Newbie 2 09-10-2004 05:36 PM
Squid ACL - what happens when a user go goes past their allowed access time? Grizzlednewbie Linux - Software 0 07-07-2004 01:37 AM
Iptables-Client http-access only for few domains dnla Linux - Newbie 0 09-25-2003 06:05 AM
apache longer able to access domains marvc Linux - Software 7 06-07-2003 06:24 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration