General

How to create Captcha on onion site?

Started by TakeCareMan-dde0f979 · Feb 26, 2026

#2926
↳ Replying to @TakeCareMan-dde0f979
If you're talking about the rotating captcha you see here on tforum and the one on Pitch that's done using CSS which allows the image to rotate without the page re-loading. There is code on the backend which chooses the images and offsets, and then validates the user's response when they submit the form and determines if the captcha challenge was passed.

Whether you're implementing the captchas inline in a form or taking a captive portal approach where you have a captcha you need to pass to access the website you'll need to get creative with CSS, the server side language of your choice and understanding which problems are difficult for a computer to solve but less complicated or easy for a human to solve.
#2930
↳ Replying to @TakeCareMan-dde0f979
I replicated DrugHub's JS free captcha. Works pretty well.

http://hyrxpsoy6bcbbmjxhf26itxyuj5gd6cu4za7slgadvs57wutlxpakoid.onion/

Members-only continuation

This discussion contains more posts.

Create an account or sign in to continue reading the full conversation. 1 additional post awaits inside.

Create an accountSign in