Howdy monks :)
I seek wisdom in a certain subject. At a certain forum, i am a moderator, and have had heated discussion with sysadmin as to how they are going about stopping the spam. Before i go further into my proposal, let me go ahead and post the content that is "spam".
Title:
!! back!! 7073347120 FREE VaShiKaRaN SpeCiaLisT IN Allahabad
Actual post:
70733471207073347120707334712070733471207073347120 7073347120
Now, my proposal was to strip all alpha characters (a-zA-Z and spaces and special chars). which would only leave numbers.
use strict;
use warnings;
my @num;
while(my $string = (<DATA>)){
$string =~ s/(\D+)//g;
push @num, $string;
}
print $_ for(@num);
__DATA__
Title: !! back!! 7073347120 FREE VaShiKaRaN SpeCiaLisT IN Allahabad
Post: 707334712070733471207073347120707334712070733471207073347120
Then simply count the numbers and user post count, and
if ($num_count >= 7) && ($post_count <= 5){
stop_spam;
}
What are your thoughts on this subject? Any input is appreciated.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.