Menu

#1667 [Solution] Finally, HTTPS support for Privoxy

3.0.21
closed
nobody
5
2016-03-21
2014-10-22
Cattleya
No

Hi everybody, finally I found a way to make Privoxy filter/block HTTPS request using ProxHTTPSProxy from Proxomitron forum: http://prxbx.com/forums/showthread.php?tid=1618&page=15 . But I packed ProxHTTPSProxy.py with Python version that I've removed some unused component to reduce its file size.

Credits:

  • whenever for making ProxHTTPSProxy
  • GunGunGun - Solution that makes ProxHTTPSProxy works with Privoxy

Here is my step by step and download link:

  • First download ProxHTTPSProxy from this link: https://www.dropbox.com/s/z43qciz8svak1py/PrivHTTPSProxy.rar?dl=0

  • If you are using Privoxy originally download from Privoxy.org then add those filter to your user.filter:
    CLIENT-HEADER-TAGGER: tagger4https
    s@Tagged: Proxomitron FrontProxy@$0@i

  • And add those filter to user.action:
    {+client-header-tagger{tagger4https}}
    /
    {+forward-override{forward 127.0.0.1:8081}}
    TAG:.*?Proxomitron

  • Extract PrivHTTPSProxy.rar and then Import CA.crt to your browser (Firefox, IE, Opera, Chrome...), remember that if you are using Firefox like me you must tick all three "Trust this CA.." before you click "OK" because if not you cannot load any HTTPS site. This may apply to other browser too but I only use Firefox.

  • Change proxy setting of your browser HTTPS Proxy to 127.0.0.1 port 8079 and you are done, just start ProxHTTPSProxy.exe and happy surfing HTTPS sites. Your Privoxy now can filter HTTPS website, check it yourself!

Here is step by step using picture: http://imgur.com/5t7yscG,JN9z63H,JtuwYMx,XNtA8z5,ePLqWex

Thank Privoxy's author for making a very useful and fast ad filtering software, now you can focus to other feature because HTTPS filtering ability is posible with ProxHTTPSProxy.

Discussion

  • Cattleya

    Cattleya - 2014-10-22

    Pastebin tutorial (edit if needed): http://pastebin.com/kXD1Dfp1

     
  • Cattleya

    Cattleya - 2014-10-28

    Just a small note, a better way to redirect https to http, here is my filter: http://pastebin.com/WaWZDJW9

    Example with Youtube HTTPS to HTTP.

     
    • karnin

      karnin - 2015-03-13

      Sorry, I do not understand the purpose of this additional filter. Pls, can you explain it?
      Thx...

       
  • nowdtw

    nowdtw - 2014-11-23

    :D Very thanks Cattleya

     
  • Adrian

    Adrian - 2015-02-26

    Anybody got it working under Linux?

     
    • Cattleya

      Cattleya - 2015-05-17

      It will work if you setup Python the right way, just install urllib3, colorama and pyOpenSSL though pip install
      You should install urllib3 1.9.1 only because new version will have problem with headers so ProxHTTPSProxy will fail to load https sites.

      pip install urllib3==1.9.1
      pip install colorama
      pip install pyOpenSSL

      and Setup tagger like my #1
      Import cert to your browser the right way
      And take my package above, run ProxHTTPSProxy.py

       
  • Korda

    Korda - 2015-07-21

    Thanks to Cattleya and GunGunGun's posts, I managed to configure ProxHTTPSProxy on OS X. I confirm it works well. Below is a summary of the steps. OS X users, think about installing Homebrew first, but make sure you do the following steps after installing Homebrew…
    sudo chown -R whoami /usr/local (if necessary, replace whoami by its content…)
    brew doctor
    brew update

    Preparing for ProxHTTPSProxy:
    brew install python3 --with-brewed-openssl
    pip3 install colorama
    pip3 install urllib3==1.9.1
    pip3 install pyOpenSSL

    Add ProxHTTPSProxy's “CA.crt” to the Client's store of trusted certificate authorities.

    Set HTTPS Proxy to 127.0.0.1:8079 instead of 127.0.0.1:8118

    Add these lines to user.filter file:
    CLIENT-HEADER-TAGGER: tagger4https
    s@Tagged: Proxomitron FrontProxy@$0@i

    Add these lines to user.action file:
    {+client-header-tagger{tagger4https}}
    /
    {+forward-override{forward 127.0.0.1:8081}}
    TAG:.*?Proxomitron

    Launch ProxHTTPSProxy:
    python3.4 ProxHTTPSProxy.py

     
  • Korda

    Korda - 2015-07-26

    Updating to the latest version of ProxHTTPSProxy: ProxHTTPSProxyMII v1.3a

    First, obtain both archive: ProxHTTPSProxyMII_py 1.3.zip (www.prxbx.com) and ProxHTTPSProxyMII_py 1.3a.zip (www.prxbx.com)

    Copy the content of ProxHTTPSProxyMII_py 1.3a folder over its corresponding—existing—Python scripts in ProxHTTPSProxyMII_py 1.3 folder.

    Uninstall previous version of urllib3:
    pip3 uninstall urllib3

    Install urllib3/1.10.2:
    pip3 install urllib3==1.10.2

    Replace previous s@Tagged: Proxomitron FrontProxy@$0@i (cf. user.filter) by new one: s@^.*Tagged:.*ProxHTTPSProxyMII.*FrontProxy.*@$0@i

    Replace previous TAG:.*?Proxomitron (cf. user.action) by new one: TAG:.*?ProxHTTPSProxyMII

    You're done!

     
  • Korda

    Korda - 2015-07-27

    A brand-new Privoxy forum can be found at PrxBx

    I'm one of the contributor under pseudo Faxopita. I will continue to add new topics around Privoxy. On this forum, I will share and invite others to share their configurations. This forum can be a much much greater way to advertise Privoxy and possibly drive (more) funding—hopefully—to the Privoxy developers.

    If you're reading this and are a skilful Privoxy users, please contribute and share your experience as well. Make this forum big and contribute to making Privoxy more prominent.

    Thanks for all your great and potential support.

    Korda, Faxopita

     
  • Cattleya

    Cattleya - 2015-08-03

    Hi Faxopita, I'm cattleyavns in Prxbx forum.
    I'm supporting Privoxy in a forum of my country, at that place I share already a huge number of filter

    And I would like to share my filter in Prxbx forum in the future because I love Privoxy and want to help user understanding how to use Privoxy.

    If you have an email, please consider adding my email so we can keep contacting: cattleyavns gmail dot com (because spam bot will collect email and keep spamming so I have to protect my email)

    Cattleya

     
  • Fabian Keil

    Fabian Keil - 2016-03-21
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB