Topic on Project:Support desk

Can I use QuestyCaptcha and ReCaptcha together?

10
Utini (talkcontribs)

Hello everyone,

I just finished setting up ReCaptcha and noticed that it creates a Captcha on "Edit" and "Create" of pages as well as "New user registration".

I thought it would be a perfect addition to use QuestyCaptcha for "registration" instead of ReCaptcha

Can I activate both options in my LocalSettings.php or will this give me any problems?


E.g.:


wfLoadExtensions([ 'ConfirmEdit', 'ConfirmEdit/ReCaptchaNoCaptcha' ]);

wfLoadExtensions([ 'ConfirmEdit', 'ConfirmEdit/QuestyCaptcha' ]);

$wgCaptchaClass = 'ReCaptchaNoCaptcha';

$wgReCaptchaSiteKey = 'your public/site key here';

$wgReCaptchaSecretKey = 'your private key here';

$wgCaptchaQuestions = [

'What is the capital of France?' => 'Paris',

'What is the capital of Spain' => 'MADRID', // Answers are case insensitive

'What is the name of this wiki?' => $wgSitename, // You can use variables

'How many fingers does a hand have?' => [ 5, 'five' ], // A question may have many answers

];

$wgMainCacheType = CACHE_ANYTHING;

$wgCaptchaTriggers['createaccount'] = true;

$wgCaptchaTriggers['badlogin'] = true;

$wgCaptchaTriggers['login'] = true;


Ciencia Al Poder (talkcontribs)

No, you should't activate both. It makes no sense at all. Would you require your visitors to solve both captchas?

What causes captchas to display is not the type of captcha, but this configuration that is captcha-independent:

$wgCaptchaTriggers['createaccount']          = true;
$wgCaptchaTriggers['badlogin']        = true;
$wgCaptchaTriggers['login']    = true;
Utini (talkcontribs)

I dont want to captchas at the same time. I want the easier "ReCaptcha" on edits and new pages creation and the "QuestyCaptcha" on registration and login.

Bawolff (talkcontribs)

confirmEdit isnt really designed for this, $wgCaptchaClass can only have one value. There are probably really hacky things you could do, trying to change the captcha clsss based on url, but i wouldnt reccomend it

2003:E5:4F42:1517:1C2F:7BD4:92CD:DD53 (talkcontribs)

Ye well I just decided to move to QuestyCaptcha for the whole website. But I am kinda afraid that one might simply give it 10 minutes to crack all my questions.

Anyway, is there any way to also add the captcha to the login page?


The following doesn't work:

$wgCaptchaTriggers['login'] = true;

Ciencia Al Poder (talkcontribs)

I'm pretty sure $wgCaptchaTriggers['login'] = true; works. Just be sure you don't access the login page while you're logged in

Utini (talkcontribs)

Nope I just tried it from different browsers and even different devices. Also the wiki on mediawiki doesn't list "login" as an existing option?

Ciencia Al Poder (talkcontribs)

You're right, I misread login with createaccount. There's no captcha for login.

Utini (talkcontribs)

Hmm a captcha on the login page would be awesome. Is there a place to request such things/features?

Ciencia Al Poder (talkcontribs)

phabricator. Honestly, I don't remember any website that has a captcha for login

Reply to "Can I use QuestyCaptcha and ReCaptcha together?"