Coder Social home page Coder Social logo

Comments (4)

Darthagnon avatar Darthagnon commented on May 16, 2024 2

How to run Privaxy on Windows without an annoying CMD window

Also seems to halve the RAM usage when run this way.
Taskmgr_HwqV02HfHt

  1. Create a run.bat batch file next to privaxy.exe containing only the name of the executable, i.e. privaxy.exe
  2. Create a hide.vbs script file in the same folder, and put the following code into it: CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
  3. Create a New Shortcut (e.g. in %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\, if you want to start Privaxy automatically with your PC) and put the following into the Target: field: C:\Windows\System32\wscript.exe "D:\Absolute\Path\to\hide.vbs" "C:\Absolute\Path\to\run.bat"
  4. Run Privaxy via this shortcut will launch it without a console window, and it will use 1/2 the RAM it would otherwise.

from privaxy.

Barre avatar Barre commented on May 16, 2024 2

Memory usage seems ok to me.

On slowness, I did some troubleshooting. Reqwest by default uses system proxy settings which just makes privaxy forwards requests to privaxy. I didn't observe the same behavior on linux / macos though.

I also saw slowness coming from trustdns with many related issues such as hickory-dns/hickory-dns#1607, hickory-dns/hickory-dns#1696, hickory-dns/hickory-dns#1636, let's use getaddrinfo everywhere then.

I fixed both issues in #24 and published a new release https://github.com/Barre/privaxy/releases/tag/v0.3.0

Can you confirm if it fixes things for you?

from privaxy.

Darthagnon avatar Darthagnon commented on May 16, 2024

Hmmm... looks like it's not that simple. While running hidden via the above method and using less RAM, the GUI is accessible via the browser, but it seems to not work reliably, with ads or placeholders appearing I forgot to save my proxy settings (whereas running with the console open, it works perfectly). When running "hidden", it seems to be unreliable, spitting out

502

Bad Gateway.
Unable to process your request.

Reason:

error sending request for url (https://uk.news.yahoo.com/amanda-owen-breaks-silence-split-161903537.html): error trying to connect: invalid peer certificate contents: invalid peer certificate: UnknownIssuer

I saw a few of the following in the console, which seemed related to the 502 error:

WARN  privaxy::proxy::mitm] Unable to perform handshake for host: github.com:443. Consider excluding it from blocking. The service may not tolerate TLS interception.

EDIT:

  • I'm typically using Yahoo.com and wololo.net (both have heavy ads) to test.
  • Hmmm... Wonder if I've broken something, it's now giving 502 and the above console reading all the time.
  • Might have just been a browser caching issue or a github.com issue, as github (the website that wouldn't load at all with 502) loads in incognito. Things still kinda slow, and it would be nice to figure out how to hide that console window successfully
  • RAM usage seems to start at 42MB and increase with content blocked or rules loaded (?)

from privaxy.

Darthagnon avatar Darthagnon commented on May 16, 2024

Thank you!!! Confirm that it's a lot faster. Memory usage is about 100mb with standard filters enabled during standard usage, which is okay (voidtools Everything, Quicklook each take about that much).

from privaxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.