Post Reply 
Adapting “hosts” file block lists to Privoxy's way of blocking…
Jul. 24, 2015, 11:09 PM (This post was last modified: Aug. 01, 2015 09:10 PM by Faxopita.)
Post: #1
Adapting “hosts” file block lists to Privoxy's way of blocking…
Dear contributors,

Privoxy-adapted block lists are “about” half the size of traditional hosts file. If one wants to block “www.abc.com” and “abc.com”, one only need to add “.abc.com” in the action file's block section, for example.

There are three websites from which I collect hosts-adapted block lists:
I have created a shell script that do the conversion to Privoxy language. As I'm not a pro in programming, you might feel the urge to yell at me… Anyway, this script could be a starting point for you to create a nice and sharp Python—or anything else—code in order to do it the proper way.

Also, this post is also meant to thank ProxHTTPSProxy contributors. I now use it and, given the Privoxy log, I can no longer “live” without it. There are, indeed, some nasty trackers tucked inside HTTPS connexions!!!

How to… (download archive)
First, run yourself “MVPS2PRIV”, which in turn will run “hpHosts Maintainer”. Unfortunately, you will need to revise the paths in those scripts and relocate the two “action” files.

MVPS2PRIV job is to clean the hosts file while “hpHosts Maintainer” is to “optimise” the size of the resulting “hpHostsList.action” file.

MVPS2PRIV only apply to the third URL above. I haven't had the time to apply the script to the other two first URLs, although it should be fast to do it!!!

Tell me what you think or whether or not it would be interesting to convert my script into a more “professional” code…

———
Would anyone tell me how I can send my 3 MB files? Because, when trying to attach a file in this forum, I have either the “not allowed format” or the “too big size issue”. Very irritating indeed. Thank you. I don't use DropBox or any cloud stuff.
———

Thanks for contributing, as always.
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Adapting “hosts” file block lists to Privoxy's way of blocking… - Faxopita - Jul. 24, 2015 11:09 PM

Forum Jump: