LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-11-2012, 12:06 AM   #1
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 337

Rep: Reputation: 1
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
 
Old 01-11-2012, 12:12 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,188
Blog Entries: 4

Rep: Reputation: 219Reputation: 219Reputation: 219
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

Last edited by deep27ak; 01-11-2012 at 12:53 AM.
 
Old 01-11-2012, 12:34 AM   #3
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 337

Original Poster
Rep: Reputation: 1
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
 
Old 01-11-2012, 12:49 AM   #4
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,188
Blog Entries: 4

Rep: Reputation: 219Reputation: 219Reputation: 219
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
 
  


Reply


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 Redirect specific domain to an Secondary (External) Squid Proxy Zxarr Linux - Server 2 04-20-2010 12:50 PM
My squid server is running slow i have 40 fedora 11 in my squid proxy ashraflinux1@gmail.com Linux - Server 4 09-15-2009 12:17 AM
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard laxmantsharma Linux - Software 1 02-24-2009 06:02 AM
Squid 2.6 Reverse Proxy from Squid(3128) to OrginServer(80) Not working rraj Linux - Server 0 06-06-2008 02:29 PM
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard Niceman2005 Linux - Software 1 11-24-2004 02:29 PM


All times are GMT -5. The time now is 09:28 AM.

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