Home

Forum

Archives

Tags



Plugins:


AddCategory

AjaxRating

Blacklist32

BlacklistStats

BlogJanitor

CommentRegistration

DefineCommentPending

EntryPost

FastSearch

FlickrPhotos

FormatList

MTCategoryCommentCount

MTDisguiseCommentURL

MTDisguiseTrackbackURL

MTDynamic

MTTrackbackEntry

PluginNetwork

SmartRebuild

SpamFirewall

TemplateInheritance

TrustedCommenters







BlacklistStats v0.5 Beta

Keep track of this discussion by subscribing to the RSS feed for this discussion thread
Author Message
Mark







PostPosted: March 2, 2004 10:10 PM 

This plugin is designed to be used with MT-BlackList. The plugin gives you the ability easily see stats about what is being blocked by your blacklist, including the ability to summarize and rank blacklist entries.

BlacklistStats is an adaptation of the Searches plugin by David Raynes. 99.9% of the credit goes to David, as I modified only a very small portion of the code to create this plugin.

Instructions

1. Download the plugin: blackliststats.zip

2. Upload the "blackliststats.pl" file to the plugins directory in your MT installation.

3. Begin using the template tags described below

Template Tags

MTBlacklistStats - A container tag used for displaying statistics about your blacklist activity. The tags below must be used within an MTBlacklistStats container.

arguments:

days: to include blocks from only the last n days (e.g. <MTBlacklistStats days="7">)
lastn: to include n searches in the list (e.g. <MTBlacklistStats lastn="5">)
unique: to include only the latest instance of a particular blacklist entry (e.g. <MTBlacklistStats unique="1">)
rank: orders the blacklist entries by rank, the most common being the first (e.g. <MTBlacklistStats rank="1">), implies unique

MTBlacklistValue - The blacklist entry that caused the comment/trackback to be blocked (ie. viagra.com).

MTBlacklistDate - The date that the comment was blocked. This tag takes a "format" argument, which works the same as MT Date formats.

MTBlacklistIP - The IP address of the person (or server) of the blocked comment/trackback.

MTBlacklistBlog - The name of the blog on which the blog occured. This is useful if you have more than one blog.

MTBlacklistType - The type of block: 'comment' or 'trackback'

MTBlacklistRank - The rank of the blacklist entry. For example, the blacklist entry that resulted in the highest number of blocks would be ranked #1.

MTBlacklistTotal - The total number of blocks for a blacklist entry. For example if 5 comments were blocked containing "viagra.com", this tag would have a value of 5.

Also included in the zip file is a sample template. The template creates two tables:

Blacklist Stats - lists each block by date, most recent listed first.

Rankings - lists each blacklist entry, ranked from the most blocks to the least.

You may need to adjust the stylesheet and image paths. I used the stylesheet used by the MT admin interface.

Notes:

1. If you want keep your stats private, be sure to build the stats file in a protected area.

2. It may be a good idea to uncheck "Rebuild this template automatically..." and just manually rebuild the stats from time to time (especially if you have a large activity log).

3. The plugin pulls data from the activity log. If you reset the activity log, your BlacklistStats will also be reset.


joey

Posts: 2

Reply: 1



PostPosted: October 29, 2004 10:43 PM 

I installed this using plugin manager which doesn't always really work. However, where will I find this once I install it? When I log into blacklist?

Mark Carey

Posts: 33

Reply: 2



PostPosted: October 30, 2004 9:28 AM 

No, it won't show up in MT-Blacklist. To use the plugin, add the template tags described above to your templates.

Gary LaPointe

Posts: 2

Reply: 3



PostPosted: December 2, 2005 3:29 PM 

So does this still work with MT 3.2 and later versions of the BlackList? I can't get it to work... It sees the tags but outputs nothing (I do have data in my blacklist log). Maybe it used to do the logs different (did it share the system log?)...



Subscribe to this discussion: Email | RSS

Join the conversation:









Remember personal info?





Very Happy Smile Sad Surprised
Shocked Confused Cool Laughing
Mad Razz Embarassed Crying or Very Sad
Evil or Very Mad Twisted Evil Rolling Eyes Wink
Powered by MTSmileys
Check to Subscribe to this Comment:
(email field must be filled in)



Subscribe Without Commenting
















Creative Commons License
This weblog is licensed under a Creative Commons License.