From: SourceForge.net <no...@so...> - 2004-10-29 07:53:43
|
Support Requests item #1056062, was opened at 2004-10-28 05:37 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=211118&aid=1056062&group_id=11118 Category: filters Group: None Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: content filter Initial Comment: Hi, How Can I add or delete words and/or urls from the content filter? ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2004-10-29 00:53 Message: Logged In: NO I enabled the the crude-parental ... It works. So thanks. Now I only like to know where I can edit the word-list. Is it possible to add your own words. ---------------------------------------------------------------------- Comment By: Scott (flarch) Date: 2004-10-28 22:50 Message: Logged In: YES user_id=821397 I don't think Privoxy is intended to function as a content filter. But using a text editor you can open the default.filter file. There you'll find this example: ################################################################################# # # crude-parental: Crude parental filtering? (Use along with a suitable blocklist). # Shows how to deny access to whole page based on a keyword. # ################################################################################# FILTER: crude-parental Crude parental filtering (demo only) # (Note: Middlesex, Sussex and Essex are counties in the UK, not rude words) # (Note #2: Is 'sex' a rude word?!) s%^.*(?<!middle)(?<!sus)(?<!es)sex.*$%<html><head><title>Blocked</title></head><body><h3>Blocked due to possible adult content. Please see <a href="http://dmoz.org/Kids_and_Teens/">this site</a>.</h3></body></html>%is s+^.*warez.*$+<html><head><title>No Warez</title></head><body><h3>You're not searching for illegal stuff, are you?</h3></body></html>+is Right above that is an example of how to find and replace content within a web page: ################################################################################# # # fun: Text replacements for subversive browsing fun! # ################################################################################# FILTER: fun Text replacements for subversive browsing fun! s/microsoft(?!.com)/MicroSuck/ig # Buzzword Bingo (example for extended regex syntax) # s* (?:industry|world)[ -]leading | cutting[ -]edge | customer[ -]focused | market[ -]driven | award[ -]winning # Comments are OK, too! | high[ -]performance | solutions[ -]based | unmatched | unparalleled | unrivalled *$0<sup><font color="red"><b>Bingo!</b></font></sup> *igx Detailed explanation of regular expressions and the Perl commands used in the examples is beyond the scope of this post, and nearly beyond the scope of my knowledge. I have expanded the two filters somewhat and adapted them to additional uses but using Privoxy as a serious content filter would be tricky. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=211118&aid=1056062&group_id=11118 |