LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 04-26-2011, 05:43 PM   #1
linuxStudent11
Member
 
Registered: Jun 2007
Posts: 114

Rep: Reputation: 17
Privoxy 3 Can't Set { +standard.Cautious } /


Every time I try to set to standard.(cautious|medium|advanced) I get

Apr 26 17:20:59.960 7f7faff15700 Fatal error: can't load actions file '/etc/privoxy/match-all.action': invalid line (9): { +standard.Cautious } /

or something similar. No additional help is available in the docs.

So i try to use http://p.p (i.e. config.privoxy.org), and click on http://config.privoxy.org/show-status, expecting to get the three mode buttons.

Nothing!

It just returns to p.p.

And, yes, I already set the three edit vars to allow remote editing etc.
So I looked in the top 15 Google hits for "Privoxy standard.Cautious". Apparently, nobody else knows how to do this either!!!

I even tried launching firefox in root...nada.

Apologies, but I'm getting kind-of frustrated with the writers/maintainers of Privoxy 3.
Any help would be appreciated. I think this is a bug and needs to go into a queue somewhere.
 
Old 04-26-2011, 08:46 PM   #2
linuxStudent11
Member
 
Registered: Jun 2007
Posts: 114

Original Poster
Rep: Reputation: 17
FWIW: For a short-term workaround, I think I'll just paste the definition(s) for the respective modes directly into match-all.action.
 
Old 04-26-2011, 08:57 PM   #3
linuxStudent11
Member
 
Registered: Jun 2007
Posts: 114

Original Poster
Rep: Reputation: 17
Well THAT's cute...
I just realized that the implementers of Privoxy 3 did EXACTLY THAT :P
They pasted the definition of standard.Medium into match-all.action ... lol.
In other words, they couldn't fix the bug...so they hacked it exactly the way I suggest :P
Hmmm...I guess I answered my own question ... he he he
(maybe with a little more study I'll be able to help...maybe.)
 
Old 04-26-2011, 09:18 PM   #4
linuxStudent11
Member
 
Registered: Jun 2007
Posts: 114

Original Poster
Rep: Reputation: 17
btw: I used Privoxy 3.0.16 directly off apt-get (Synaptic Package Manager) on Ubuntu 10.10
 
Old 05-08-2011, 08:19 PM   #5
linuxStudent11
Member
 
Registered: Jun 2007
Posts: 114

Original Poster
Rep: Reputation: 17
A better Privoxy initial load solution

Even though this thread is dead, I think I will post some related details about trying to get Privoxy to work with standard.Cautious.
As I stated above, I was never able to get
Code:
{ +standard.Cautious }
/
to work in ANY variation, combination or permutation...not in user.action, not in default.action either.
I was stupidly wrong above when I tried to get it to work in match-all.action. That symbol is not yet defined at that point in the load process.

So I redefined standard.Cautions as an ALIAS in user.action. This is the only solution I could get to work. It is as follows:
Code:
################
#
# Cautious settings -- safe for all sites, but offer little privacy protection
#
standardCautious = \
+change-x-forwarded-for{block} \
+hide-from-header{block} \
+set-image-blocker{pattern} 

################
#
# Medium settings -- safe for most sites, with reasonable protection/damage tradeoff
#
standardMedium = \
+change-x-forwarded-for{block} \
+deanimate-gifs{last} \
+filter{refresh-tags} \
+filter{img-reorder} \
+filter{banners-by-size} \
+filter{webbugs} \
+filter{jumping-windows} \
+filter{ie-exploits} \
+hide-from-header{block} \
+hide-referrer{conditional-block} \
+session-cookies-only \
+set-image-blocker{pattern}


################
#
# Advanced settings -- reasonable privacy protection but
# require some exceptions for trusted sites, most likely
# because of cookies or SSL. Also testing ground for
# new options.
#
# CAUTION: These settings can still be subverted by a
# misconfigured client that executes code from untrusted
# sources.
#
standardAdvanced = \
+change-x-forwarded-for{block} \
+client-header-tagger{css-requests} \
+client-header-tagger{image-requests} \
+crunch-if-none-match \
+crunch-outgoing-cookies \
+crunch-incoming-cookies \
+deanimate-gifs{last} \
+fast-redirects{check-decoded-url} \
+filter{html-annoyances} \
+filter{content-cookies} \
+filter{refresh-tags} \
+filter{img-reorder} \
+filter{banners-by-size} \
+filter{banners-by-link} \
+filter{webbugs} \
+filter{jumping-windows} \
+filter{frameset-borders} \
+filter{quicktime-kioskmode} \
+hide-if-modified-since{-60} \
+hide-from-header{block} \
+hide-referrer{conditional-block} \
+limit-connect{,} \
+overwrite-last-modified{randomize} \
+set-image-blocker{pattern}

{standardCautious}
/
THIS WORKS! ...as well as I can tell.
...with a few caveats.
I put the above code in user.action at the end of the alias section. (that's important).

The actual {standardCautious} invocation actually ends the alias section. I'm guessing that any invocation ends alias sections. For that reason, the invocation of that symbol should probably go after the #### END ALIASES ##### comment. Not required, but handy.

Any user should also avoid standard alias pitfall...ALL aliases are LOCAL to their file, by the way I'm reading the manual. I had much better luck when I took that into account.

Also, putting a + in front of an alias doesn't help (I tried that too). Same for a minus. You can't un-negate a -whatever inside an alias by sticking a minus in front of whateverContainsMinusWhatever unless you define a -whateverContainsMinusWhatever as a separate alias.

I guess the bottom line is: You REALLY gotta read the Privoxy manual CAREFULLY and cover-to-cover if you want to customize it.
 
  


Reply

Tags
privoxy


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
cautious about rsync after re-install of OS SOLVED nephish Linux - Software 2 01-05-2010 10:39 AM
Privoxy - "Privoxy is not being used" from http://www.privoxy.org/config/ slimjim Linux - Networking 1 03-12-2007 12:07 PM
Set Privoxy to allow remote connections 1veedo Linux - Software 1 01-28-2006 03:53 PM
How to set standard font in Firefox? inexperienced Linux - Newbie 1 09-30-2005 12:02 PM
gdm doesn't ask for which desktop to set standard quarry_06 Linux - Software 0 11-04-2004 10:23 AM


All times are GMT -5. The time now is 12:48 PM.

Main Menu
Advertisement
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