Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I have a form which we wish to rate limit, we've decided to use a captcha and always present it to the user. We don't care if they are a bot, or not, we want them to have to enter a captcha regardless. It doesn't matter if they use the form once, or twenty times, each time they submit they will have to enter a captcha.
To this end I've modified captcha to add '#captcha_always', if it's set to true it will always request a captcha from the user. I've configured this in the specific form I wish to use.
Comment | File | Size | Author |
---|---|---|---|
#8 | captcha-force_captcha_validation-1912148-4-7.patch | 1.85 KB | Alex Liannoy |
#4 | always_require_captcha-1912148-4.patch | 1.79 KB | Valentine94 |
#1 | captcha-always_ask-1912148-0.patch | 1.82 KB | topham |
Comments
Comment #1
topham CreditAttribution: topham commentedComment #3
webengr CreditAttribution: webengr commentedthis would be useful for some situations
Comment #4
Valentine94Re-roll
Comment #5
Valentine94Comment #7
Alex Liannoy CreditAttribution: Alex Liannoy commentedComment #8
Alex Liannoy CreditAttribution: Alex Liannoy commentedComment #10
Alex Liannoy CreditAttribution: Alex Liannoy commentedComment #12
paravibe CreditAttribution: paravibe as a volunteer commentedPatch from #8 looks great.
BTW: patch from #7 is the best patch ever :D
Comment #13
paravibe CreditAttribution: paravibe as a volunteer commentedComment #15
podarokThanks, #8 merged