Warning - the following post contains adult language.
Effectively blocking adult content is really really hard.
First there are simple examples
blocking 'cock' blocks 'John Hancock', and 'Sally Babcock'.
Whereas things like
'suc-my-kock'
will pass many a automated filter.
And these are some of the least original things I can come up with.
Also you have the issue of 'adult words' versus 'adult themes'. You can
remove common misspellings of the 'seven dirty words', but it's
nigh-impossible to filter out things like
'I want to do you doggy-style'
which at least to me is much worse than
'i don't like this shit'
I understand your intention, and think you can make some progress by
making a profanity filter like
sub filter {
my $text = shift;
my @profanity = ('ass', 'shit', 'fuck',);
map { $text =~ s/\b$_\b//ieg } @profanity;
$text;
}
Or something like that. Hopefully though, the above demonstrates that
anyone even mildly interested in sending filthy content can do so
easily. If you question whether people do this stuff or not, I
encourage you to check out a community site with a young audience.
You'ld be astounded at the originality invested in being foul.
George
On Monday, September 23, 2002, at 09:31 PM, Steve Gilbert wrote:
> My daughter has decided to put up a web site that
> she'd like people to email her at. She has an aol
> account at her mothers but I did not want her to give
> out that address. So I set up an account were people
> can email her there and then I have a process that is
> to eliminate any message with "adult content" and any
> files that are executable and only pass files that
> she's expecting. If the message contains no
> executables or adult content then my process will
> foward the message to her aol account.
> With a little help from Kevin Meltzer (Thanks Kevin)
> and his suggestion to use MIME::Parser (MIME::Tools)
> I'm half way there, but I'm a little stuck on how to
> create an effective adult content filter. I thought I
> had seen on here a nifty peice of regexp but I can't
> find it. Anyone have any suggestions?
>
> TIA
>
> Steve
>
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
// George Schlossnagle
// Principal Consultant
// OmniTI, Inc http://www.omniti.com
// (c) 240.460.5234 (e) [EMAIL PROTECTED]
// 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]