User talk:Lovelace

Jump to: navigation, search

Tanner,

here's some info on the Spam blacklist extension I was telling you about after the meeting.

The basic info can be found on the extensin can be found on the meta wiki at http://meta.wikimedia.org/wiki/SpamBlacklist_extension

I recently added the info about how to use the blacklist on chongqed.org.

Also as I told you, I made some mods to let you set up an optional list of email addresses of folks who should be notified if the blacklist catches a malefactor in the act of trying to add blacklisted links to an article in the wiki. Here are my diffs to the CVS versions

diff README.new README (CVS version 1.1)

24,30d23
< $wgSpamBlacklistMonitors is an optional array, each value is a string
< containing the email address of someone who will be notified by email (from
< the email address contained in $wgEmergencyContact) whenever the SpamBlacklist
< is triggered. The email body will contain the string which matched
the reg exp,
< the user name and ip address of the user attempting to save the article, and
< the full text which the user attempted to save.
<
41,44d33
< $wgSpamBlacklistMonitors = array(
<       "spamhandler@myWikiDomain.com",
< };
<

diff SpamBlacklist.php.new SpamBlacklist  (CVS version 1.1)
4a5
>
11d11
< $wgSpamBlacklistMonitors = array();

diff SpamBlacklist_body.php.new SpamBlacklist_body.php (CVS version 1.7)

48a49
>
53,54d53
<
<
59d57
<
61d58
<
87d83
<
91,100c87,88
<                         global $wgUser, $wgIP, $wgSpamBlacklistMonitors,$wgEmergencyContact;
<                         $userName = $wgUser->getName();
<                         $artTitle = $title->getFullText();
<                         foreach ($wgSpamBlacklistMonitors as $recipient) {
<                           mail ("$recipient","Alert from SpamBlacklist.php",
<                                     "SpamBlacklist caught $matches[0] by $userName from
$wgIP\n\nArticle title=$artTitle\n\n$text",
<                                     "From:$wgEmergencyContact");
<                         }
<                         EditPage::spamPage( $matches[0] );
<                         $retVal = true;
-- -
>                               EditPage::spamPage( $matches[0] );
>                               $retVal = true;

------ End of last patch ---

--Rick DeNatale 23:32, 11 Jun 2005 (EDT)

Retrieved from "http://www.trilug.org/wiki/User_talk:Lovelace"