You've already been pointed to resources about CAPTCHAs, so I won't repeat those here. I will
warn that they can cause accessibility problems and point out that they
are not hard to defeat, and have been being bypassed easily enough for
a good few years now.
... so you might want to reconsider using one of these.