The Spanner logo
    • Home
    • Blog
      • Blog home
      • RSS
    • Login
    • Home
    • Blog
      • Blog home
      • RSS
    • Login
    The Spanner logo

    The Spanner
    Web security blog

    Made by Gareth Heyes
    Follow me on Twitter: @garethheyes

    Javascript for hackers!

    Hackvertor logo
    Shazzer logo
    My Github account
    Recent posts
    Introducing Feedworm: A Privacy-First RSS Reader That Lives in DevToolsSpeedy RSVP extensionAutoVaderHackvertor history and tag finderShadow Repeater v1.2.3 releaseBurp Hackvertor v2.1.24 releaseHacking roomsXSSing TypeErrors in SafarivalueOf: Another way to get thisMaking the Unexploitable Exploitable with X-Mixed-Replace on FirefoxThe curious case of the evt parameterCSS-Only Tic Tac Toe ChallengeRewriting relative urls with the base tag in SafariBypassing DOMPurify with mXSSNew IE mutation vectorHow I smashed MentalJSMentalJS DOM bypassAnother XSS auditor bypassXSS Auditor bypassBypassing the IE XSS filterUnbreakable filterMentalJS bypassesmXSSJava SerializationBypassing the XSS filter using function reassignmentRPOSandboxed jQueryX-Domain scroll detection on IE using focusEpic fail IEnew operatorDecoding complex non-alphanumeric JavaScriptHacking FirefoxDOM ClobberingBypassing XSS AuditorThe evolution of codeNon-Alpha PHP in 6-7 charsetTweetable PHP-Non AlphaMentalJS for PHPOpera x domain with video tutorialSandboxing and parsing jQuery in 100ms

    Return of the Heyes Captcha

    By Gareth Heyes (@hackvertor)

    Published 18 years 10 months ago • Last updated March 22, 2025 • ⏱️ 2 min read

    ← Back to articles

    [Blocked Image]

    When I first created my Heyes Captcha I thought I was onto a winner but I must admit it got ripped to pieces by the security community and was hacked in a matter of hours. But I'm persistent so I released another one with a similar outcome :) but now I think I might have created a technique that is fully accessible and also strong enough to resist a computer attack.

    The new idea displays the words in a random order and you have to place them in the correct order to produce a valid sentence. I've only included one sample sentence but the idea would be to produce a lot of different sentences and only allow them to be used once. Take a look at the demo below and see if you can arrange the sentence in the correct order.

    Demo available here

    HeyesCaptcha3 Source

    Update...

    I've updated the captcha to make it more usable by displaying larger select boxes and changed the code slightly to improve performance. Thanks to Whiteacid for all the excellent suggestions.

    More sentences are now included to give a better idea on how the CAPTCHA works.

    New version

    I've launched another new version which is database powered now. The idea with this one is it takes 2 related sentences and mixes up the second one. It still needs work because it produces too long or short sentences but I think it is getting there.

    Demo version 3.2

    ← Back to articles