Personal tools
You are here: Home News Security Enhancements

Security Enhancements

3.28571428571

Some people [bots?] seem to think it's fun to register on the site with bogus details and either someone else's email address, or a non-functional email address. We've just made this a little more difficult.

This is probably very old-hat to many sites, however this is a relatively new feature for us and not something we've really needed before. The idea it to make the user enter something at registration time that a bot can't possibly know, or in this case see.

The Plone product we've chosen is PloneCaptcha which utilises a free service proided by http://captchas.net, essentially they generate a "random" graphic on demand which is displayed as part of the login process. To complete the login process the user must correctly interpret the graphic and enter the code contained within the graphic.

CAPTCHA is an acronym for Completely Automated Public Turing test to tell Computers and Humans Apart. (memorable huh!) Let's see if it filters out some of the idiots who seem to have nothing better to do.

Quick Plone Howto

For anyone wanting to implement this on their own Plone site, assuming you already have the PloneCaptcha product installed, all you need to do is;

  1. Register with http://captchas.net and get a username / password (or "key" as they call it)
  2. Insert these into PloneCaptcha.py in the PloneCaptcha Products folder
  3. Customise plone_login/join_form
  4. Add the following code wherever you want the Captcha to appear
      <div class="row" tal:define="error errors/captcha|nothing"
           tal:attributes="class python:test(error, 'field error', 'field')"> 
          <div tal:content="error">Validation error output</div>
          <div metal:use-macro="here/captcha/macros/edit" />
      </div> 
    
  5. Edit the validators for Join form and add;

    validate_captcha
  6. And you're off!

That should be all you need to do to protect your site from automated bogus registrations, and it's all free! That said if you want to donate to the captchas.net project then for 120 EUR you can have the Catchpa images without "captchas.net" printed in the bottom right hand corner ... :)

IT Support Manchester
For IT support, Manchester based MailSure will provide technical support for your IT needs or take control of your IT requirements at any stage in your business development.
IT Support Bristol
IT Services and IT Support provider based in Bristol. Computer maintenance with server support as standard.
Mobile Broadband Deals
Compare the cheapest mobile broadband deals on Mobile Broadband Genie, the independent UK price comparison website.
Project Planning Software
Atlantic Global offers full solutions of project management software, including project planning software, timesheets and more
City Leased Lines
Dedicated 100Mbit fibre optic Internet and Cloud outsourcing in the City of London, call now on 020 7096 9004 or email sales@metro-tek.com
IT Support
For The Best IT Support In London Make Our IT Department Your IT Department. Microsoft Gold Certified Partner.
IT Support London
Efficent IT Support & Hosted Services for SME businesses in and around greater London.
Reliable Web Hosting
Affordable Web Hosting with one click installs for Joomla, Moodle, Wordpress and more!
Data Recovery
Professional data recovery services