|
external filters
|
|
Jan. 29, 2017, 11:41 PM
(This post was last modified: Dec. 08, 2017 10:24 PM by Faxopita.)
Post: #2
|
|||
|
|||
|
RE: external filters
It's time to revise the whole section 8.4 of the Privoxy user manual, which talks about filtering through the use of metacharacters. Offending domain names often contain recurring terms. Why not compressing your list using metacharacters then. Your blacklist probably contains a ton of the word “analyticâ€, for example. What you could do then is suppressing all entries containing the word “analyticâ€, then adding only…
Code: .*analytic*.Attached to this post, an archive to help you eliminate a lot of the redundant entries in your blacklist. Inside the archive, the files “meta_col.txt†and “meta_col.rgx†contain the same entries; the second one is only an extended REGEX version of the first one. You're going to use “meta_col.rgx†to compress your blacklist. Once you're done with this task, you simply add the content of “meta_col.txt†file to your blacklist. Before, we start the process of compressing your blacklist, I suggest you revise the content of “meta_col.txt†in order to add or suppress entries. Then, you replicate your changes to “meta_col.rgx†file. If your blacklist is really big, then I suggest you install the tool Parallel to speed things up. Also, why not installing pv as well—a progress monitor. The following command will compress your blacklist at maxed out CPU usage: Code: cp your_blacklist your_blacklist.bakIf you prefer the “classic way†instead of the above variation… Code: grep -vf meta_col.rgx your_blacklist > your_blacklist_compressedThen, you can append the content of “meta_col.txt†to your new compressed blacklist. Code: cat meta_col.txt >> your_blacklist_compressedJob done! Note: if you have a huge blacklist (hundreds of thousands entries) the “classic way†to compact it can be a very slow process as you're not using all of your CPU cores. -–— Some other generic terms you could use as well in your blacklist: Code: .*casino*.Of course, you'd have first eliminated the numerous entries containing those words beforehand. -–— Minuscule donations are always appreciated… Code: BTC --> 34WKogWorDoReJ2MSxw8rTsrGD87VMAPJY |
|||
The following 1 user says Thank You to Faxopita for this post:kik0s |
|
« Next Oldest | Next Newest »
|
| Messages In This Thread |
|
external filters - kik0s - Jan. 29, 2017, 03:21 PM
RE: external filters - Faxopita - Jan. 29, 2017 11:41 PM
RE: external filters - ryszardzonk - Jul. 16, 2018, 10:40 PM
RE: external filters - cattleyavns - Jan. 30, 2017, 05:13 AM
RE: external filters - kik0s - Jan. 30, 2017, 01:46 PM
RE: external filters - cattleyavns - Jan. 31, 2017, 03:37 AM
RE: external filters - Faxopita - Jan. 31, 2017, 08:31 AM
RE: external filters - oldsod - May. 07, 2017, 04:08 AM
RE: external filters - kik0s - May. 07, 2017, 09:49 AM
RE: external filters - oldsod - May. 07, 2017, 04:08 PM
RE: external filters - oldsod - May. 07, 2017, 04:19 PM
RE: external filters - kik0s - May. 07, 2017, 04:28 PM
RE: external filters - ryszardzonk - Sep. 12, 2018, 10:41 AM
|

Search
Member List
Calendar
Help





![[-]](images/ONi/collapse.gif)