Re: Alert php-gtk Wiki Spaamer!!!!!!!

From: Date: Thu, 27 Oct 2005 15:52:06 +0000
Subject: Re: Alert php-gtk Wiki Spaamer!!!!!!!
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6303@lists.php.net to get a copy of this message
LOL nice thinking! ----- Original Message ----- From: "Tradebit Service" <info@tradebit.com> To: <php-gtk-general@lists.php.net> Sent: Thursday, October 27, 2005 4:49 PM Subject: RE: [PHP-GTK] Alert php-gtk Wiki Spaamer!!!!!!! > Hi folks, > > I patched my wiki with the following lines (generic) > and maybe we can add this to the PHP-GTK wiki as well. > > whenever a new spam comes up, i just add the keys i found > to the spamwords. the spam attempts went NIL during the last > 6 months... > > ... > $wikkipost = strtolower(CONTENTVAR-FROM-WIKI) > // define blacklist > $spamwords = array(); > $spamwords[]="poker"; > $spamwords[]="holdem"; > $spamwords[]="casino"; > $spamwords[]="gamble"; > $spamwords[]="cum"; > $spamwords[]="cunt"; > $spamwords[]="slut"; > $spamwords[]="sex"; > $spamwords[]="boob"; > $spamwords[]="xywl.com"; > // enhance here > > for($spamkill=0;$spamkill<count($spamwords);$spamkill++) > { > if(substr_count($wikkipost),$spamwords[$spamkill])>0) > { > $repcount=0; > $reporters[$repcount++]="Yahoo!"; > $reporters[$repcount++]="Google"; > $reporters[$repcount++]="MSN"; > $reporters[$repcount++]="Technorati"; > $reporters[$repcount++]="AllTheWeb"; > $reporters[$repcount++]="Bloglines"; > $reporters[$repcount++]="Feedster"; > > print "<html><body>\n"; > for($myr=0;$myr<$repcount;$myr++) > print "<script>alert('Wiki SPAM for link > manipulation reported to ".$reporters[$myr]."...');</script>\n"; > print "</body></html>\n"; > die(); > > } > } > ... > > cheers, > Ralf > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.gtk.general (#6303) next »