Password Protect Comments

| | Comments (6) |

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."));
}


Categories

6 Comments

UT said:

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.

Me said:

Testing password protected comments.

UT said:

I was able to post a comment too!

Me said:

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

Greg said:

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.

Jeb said:

Testing password for Greg... give them _ _ _ _.

Leave a comment

About this Entry

This page contains a single entry by Jeb published on April 9, 2004 11:05 PM.

soople.com was the previous entry in this blog.

New Gutters is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.31-en

Good Reads

Flickr Badge

www.flickr.com
This is a Flickr badge showing items in a set called Wallet. Make your own badge here.