Adapting “hosts” file block lists to Privoxy's way of blocking…
|
Aug. 03, 2015, 04:30 PM
(This post was last modified: Aug. 03, 2015 04:46 PM by Faxopita.)
Post: #16
|
|||
|
|||
RE: Adapting “hosts” file block lists to Privoxy's way of blocking…
(Aug. 02, 2015 07:48 AM)whenever Wrote: Have you measured the performance gain of Privoxy after the block file size reduction? I'm not sure if that kind of optimization is really needed by Privoxy, or maybe Privoxy can do it internally? The problem with a hosts file is that it will only block what's exactly been put in it. If you want to forbid one particular domain (0.0.0.0 abc.com), your browser will still be able to access any of its subdomains—for example, fed.abc.com Converting a hosts file has one big advantage: broad the use of blocking for a particular domain. For example, you may have us.adserver.goodsite.com, eu.adserver.goodsite.com in your hosts file, but if you happen to catch uk.adserver.goodsite.com, connexion will be made. Converting those entries into one single entry (.adserver.goodsite.com) would be good in this case to block all potential undesirable connexion attempts that have not been explicitly declared. In terms of performance, I'm not convinced there's a perceived gain given fast computers today. The choice of converting/optimising a hosts file is a top opportunity to put in real practice what Privoxy can do in terms of address blocking. |
|||
Aug. 03, 2015, 04:44 PM
Post: #17
|
|||
|
|||
RE: Adapting “hosts” file block lists to Privoxy's way of blocking…
(Aug. 02, 2015 08:20 AM)cattleyavns Wrote: it can enhance user privacy by blocking Canvas Fingerprinting, it is extendable because Privoxy can inject javascript and even run complex Userscript using GM_, hide ads like Firefox's Adblock by injecting style tags with id/class/index and display:none; Wow! This, I like. I'm sure most of us will have a great time learning with you how to boost our own Privoxy config. |
|||
Aug. 04, 2015, 09:31 AM
Post: #18
|
|||
|
|||
RE: Adapting “hosts” file block lists to Privoxy's way of blocking…
(Aug. 02, 2015 03:22 AM)cattleyavns Wrote: Okay, here we go, convert2privoxy HTML + JS version, this is a very first Alpha version, can you integrate your optimization into it ? I'm pretty busy at this time: Thanks for setting the base of the code. I'll have a look into this. Quote:We can upload this tool to a random webserver, or simply open our network port and use this tool from everywhere, even Android or IOS. This seems really good indeed! |
|||
Aug. 04, 2015, 11:08 AM
(This post was last modified: Aug. 04, 2015 11:47 AM by cattleyavns.)
Post: #19
|
|||
|
|||
RE: Adapting “hosts” file block lists to Privoxy's way of blocking…
(Aug. 03, 2015 04:44 PM)Faxopita Wrote:(Aug. 02, 2015 08:20 AM)cattleyavns Wrote: it can enhance user privacy by blocking Canvas Fingerprinting, it is extendable because Privoxy can inject javascript and even run complex Userscript using GM_, hide ads like Firefox's Adblock by injecting style tags with id/class/index and display:none; Okay, block canvas fingerprinting is easy, here is my filter: Code: FILTER: canvasblocker Test: https://www.browserleaks.com/canvas Block WebRTC: Code: FILTER: blockwebrtc Test: https://diafygi.github.io/webrtc-ips/ Auto kill clickjacking: Code: FILTER: anticlickjacking Test: http://www.clickjack.net/fbook/index.php If you want to run Greasemonkey script using Privoxy, first you need my edited version of GM_function.js lib: Code: FILTER: GM_function Then just inject Greasemonkey's script like this: Code: FILTER: Adsbypasser At this time I'm porting convert2privoxy to HTML + JS, but you can try convert2privoxy, you can easily make Greasemonkey's script run on all web browser by using GreasemonkeyURL (include the brand new Edge, Edge at this time have no addon, but here is what I got so far ![]() |
|||
Aug. 05, 2015, 09:10 AM
(This post was last modified: Aug. 05, 2015 01:04 PM by Faxopita.)
Post: #20
|
|||
|
|||
RE: Adapting “hosts” file block lists to Privoxy's way of blocking…
Important details to bear in mind when optimising converted hosts file. Please, read on…
Consolidating hosts file for Privoxy use can be carried out via one of the two following methods:
|
|||
« Next Oldest | Next Newest »
|