Password Protect Comments

We’re getting spammed by blog-spammers. Today an offensive couple of spams were posted. Greg called me to let me know so I could quickly delete them.

I’ll be introducing a counter measure shortly. This one seems reasonable.

Free Moby

Added to /mt/lib/mt/app/comments.pm just above ip ban:

my $entry_password = uc $q->param(‘password’)

or return $app->handle_error($app->translate(

“Password is required.”));

if ( $entry_password ne “PASSWORD1” && $entry_password ne “PASSWORD2”) {

return $app->handle_error($app->translate(

“Password is incorrect.”));

}

6 thoughts on “Password Protect Comments

  1. I noticed it too and was going to e-mail you but then I figured you would get an e-mail based on the comment anyway. If you want you can give me privileges over your sites so I could delete offensive comments.

  2. Note to self: 4 templates that include password field code:

    /Library/WebServer/documents/mt-tmpl/individualentryarchive.tmpl

    /Library/WebServer/documents/mt-tmpl/commentlisting.tmpl

    /Library/WebServer/documents/mt-tmpl/commentpreview.tmpl

    /Library/WebServer/documents/mt-tmpl/commenterror.tmpl

  3. Good ol’ Charlie. Hey! We’re still trying to finalize this next kid’s name. Maybe I better hurry and go suggest Charlie to Jennifer.

Leave a Reply

Your email address will not be published. Required fields are marked *