Solved

Privoxy - Any Way To Filter Based On Time Of Day?

Posted on 2013-01-11
7
941 Views
Last Modified: 2013-01-20
Hi,

I have an install running Privoxy.

Is there any way to set filtering rules that apply only at certain times of the day using Privoxy?

Thanks,

Alan.

PS:  No points for telling me one of the thousands of options / ways that I *can* do this - I am well aware - the question is whether I can get Privoxy to do it :-)
0
Comment
Question by:Alan3285
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 38770505
no
0
 
LVL 23

Accepted Solution

by:
Mysidia earned 200 total points
ID: 38770544
There is absolutely no way in Privoxy to set a filtering rule that automatically applies only at certain times of day or a schedule  for an individual rule,   without you modifying the source code to Privoxy, to develop a new feature.

You could write and schedule an automated script to replace the entire Privoxy configuration,  and reload Privoxy in the background at specified times a day, according to your schedule.

Your script could provide a Privoxy configuration enabling only the rules/filterfiles you want for that time period.


I also believe it is unlikely, the feature will ever be available in Privoxy as a native option for configuringa rule.    Can you explain what kind of scenario,  would make it necessary  that  Privacy/Ad filtering should only apply at a specified time of day?

It seems like a fairly unlikely need.

You could also enable the remote-http-toggle function,  and manually disable filtering on Privoxy completely, for all rules, when you need to access a site without the privacy filtering functionality.
0
 
LVL 51

Assisted Solution

by:ahoffmann
ahoffmann earned 200 total points
ID: 38770740
> PS ...  the question is whether I can get Privoxy to do it :-)
well, if privoxy is not running it cannot filter/block
hence a valid solution according your restrictions is to start and stop privoxy time-based using cron ;-)
0
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

 
LVL 63

Assisted Solution

by:btan
btan earned 100 total points
ID: 38771328
nope - as the rest said. Was mentioned before (maybe similar context) in feature req

http://sourceforge.net/tracker/index.php?func=detail&aid=1049643&group_id=11118&atid=361118
0
 
LVL 40

Expert Comment

by:noci
ID: 38780853
If you have transparent proxying you can use iptables to select a different port based on time. You will then need to run 2 privoxy instances.
0
 
LVL 23

Expert Comment

by:Mysidia
ID: 38781549
Noci,  that's true,  and is another way to  send the connection  through Privoxy with a different configuration at different times.
The downside is if you want more than two combinations of active rules, however, you will require more than two instances to achieve that.

Eg
Rule A   active from    2 pm to   4pm
Rule B   active from    3 pm to   6 pm
Rule C   active from    4:30 pm to  9 pm
(other rules: always active)

You require   5 instances  of Privoxy in that case.

So it may be more efficient to just generate the config file with a script,  or have 5 copies of a config file,    where you "install one"  on schedule with a crontab,
depending on the complexity of the desired schedule :)
0
 
LVL 12

Author Comment

by:Alan3285
ID: 38799423
Thanks everyone.

The answer appears to be that Privoxy can't do this itself, and that's what I needed to confirm.

I may be back looking for an alternative later, but I'll start a new question if so :-)

Alan.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are looking at this article, you have most likely been hit by some version of ransomware and are trying to find out if there is anything you can do, or what way you should react - READ ON!
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question