TUR.ID. Example

TURing IDentification test to distinguish between humans and computers

A valid and funnier alternative to visual CAPTCHAs, without any accessibility issue.

Please complete the following text with the correct words.

This was a period of rapid growth in population, from the 212,000 people at
the time of  to more than 1,000,000, but this trend was  by
World War II, during which Rome was damaged by both Allied forces bombing
and Nazi occupation; after the execution of Mussolini and the end of the
war, a 1946 referendum abolished the monarchy in favor of the Italian
Toggle solution shown/hidden below

Take another TUR.ID. test


Download TUR.ID. implementation (PHP) v 0.1 by Daniele C. (aka legolas558)


This example uses (randomly) the following sources to create TUR.ID. tests:

Your users are unlikely to understand and complete the Divina Commedia's or the Paradise Lost's texts, so it is strongly suggested to use a wide range of common texts (e.g. from online newspapers, if you have the permission) to implement your tests.

The class is enough extensible and powerful (it is initalized passing a custom callback to the constructor) to allow the usage of any custom source for the random senteces:

You can of course customize everything else, the number of replaced words and the number of alternatives.

Give a look to the current source code (SVN)


TUR.ID. is free software, released under the GNU/LGPL license (read it)

If you are using TUR.ID. in your software a line of credits would be nice to be seen.


Please use the SourceForge.net based forums to discuss about TUR.ID. and related topics.

The SF.net project page contains also other open source project facilities

TUR.ID. is Copyright © 2007 by legolas558
This software is licensed under the GNU/LGPL license