January 31, 2006

MT Plugins: CCode

NOTICE: As of February 17, The CCode plugin has been disabled until further notice. On Jan 31 we wrote:
I have added the CCode plugin to Movable Type.

CCode is similiar to SCode in that it adds one more input field. But CCode doesn't require commenter's interaction. And it doesn't store any additional CCode-related data to DB or file.

CCode adds an additional input field to the default comment form. This value(=CCode) is calculated from the entry's own data, and that value is obfuscated by Javascript routines, using the obfuscator provided by http://www.jottings.com/obfuscator/.

To send comment spams, a spam-bot must parse a page and calculate it reversely. This reverse solution is not impossible theoritically. But although spammer finds a solution routine for CCode, the problem is still there. They have to visit a page, parse it, solve it, and finally send spam to only "that" page. If they want to send spams to 100 different entries, they have to repeat the above process for each entry.

To use the plugin for your weblog:

  1. You have to add the content of obfuscator.js file into your Site JavaScript template.

    Either

    1. In your blog's Index Template menu page, open "Site JavaScript" template, and then add the content of obfuscator.js into the bottom of that template. Save and Rebuild it. That's all.

    2. Or ... The code has been added to the default site template. If you have not made other changes to your Site Javascript, in your Index Template menu page, check Site JavaScript template and do a "Refresh Template(s)" action. The content of obfuscator.js will be automatically added.

  2. Configure your comments to use the CCode plugin.

    Insert <$MTEntryCCode$> tag within the comment <form> tag of Individual Entry Archive template and Comment Preview template. Proper inserting position may be as below.

    <input type="hidden" name="entry_id" value="<$MTEntryID$>" />
    <$MTEntryCCode$>
    

    And then rebuild individual entry archives.

MT Plugins: CCode - posted by Vicki at Tue, 31 Jan, 12:21 Pacific | «e»