I know, I know, free speech and whatsoever, but you'd
be amazed at some of the naughty stuff that comes
through in search queries for gnutella! I'd say at
least 50%, if not the majority of it is devoted to The
Great Pastime, something I don't want to deal with at
all. What's worse, most of that 50% is borderline if
not downright illegal; we're not talking copyright
violation here. As much as budding sex offenders need
to find stuff to watch, I would like to reserve the
right not to help. But at the same time I want to be
an Ultrapeer and aid folks in their search query.
What is the answer to this dilemma?
Censorship.
That's right, I made a horribly cludgified patch that
allows me to censor the queries others send me; a
naughty query not only is not matched to my files, it
is not forwarded to any peers either. At least I think
that's what is going on... I'm still a bit confused
with the whole Controller -> UI thing. At any rate, I
basically stuffed a Censor function above the code for
matching and forwarding queries. If this is the wrong
way to do it, please tell me differently!
If I wanted to make it a bit more sophisticated,
(*COUGH*) I'd make the censored list a parameter in the
user pref's file, instead of a stupid hardcoded C
string table. As is, I think it works okay. I added
an optional use of the GNU regex library to match
naughty phrases, but also haven't much experience with
autoconf, so I can't promise it will work on any
computer except my own. But here ya' go! Maybe
somebody can make use of it.
Warning, even the patch is a bit naughty since it
includes the string table I generated from starting up
snort and watching what queries passed my connection.
Big Brother Owns You
Logged In: NO
If you want censorship, move to China or Iran. Your proposed
"feature" is downright disgusting.