[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipcop-user
Subject:    Re: [IPCop-user] Block the Facebook certain time
From:       "Renaud (Ron) Olgiati" <renaud () olgiati-in-paraguay ! org>
Date:       2011-08-18 10:15:58
Message-ID: 201108180615.58963.renaud () olgiati-in-paraguay ! org
[Download RAW message or body]

On Thursday 18 Aug 2011 00:24 my mailbox was graced by a message from Reydan 
who wrote:
> i am trying to filter the site on the specific time after office hours, i
> want to block the facebook during 12:30 pm to 8:45 pm i configure the time
> constraints but its not working.. what is the possible way to make it.

How about a couple of cron jobs, one to add a "127.0.0.1 www.facebook.com" to 
/etc/hosts, (echo "127.0.0.1 www.facebook.com" >> /etc/hosts) the other to 
remove that line (grep -v facebook /etc/hosts > toto && cp toto /etc/hosts) ?
 
Cheers,
 
Ron.
-- 
                Even if you do learn to speak correct English,
                     whom are you going to speak it to ?
                                            -- Clarence Darrow
                                    
                   -- http://www.olgiati-in-paraguay.org --


------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
IPCop-user mailing list
IPCop-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-user
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic