Where to get TextCaptcha API Key?

Alfuzzy

Well-known member
I've been using TextCaptcha for a while now...and it seems to have helped with reducing the number of "Contact Us" spam...and new user registration spammers. Only problem is switching to TextCaptcha seems to generate a lot of server errors (probably one server error for each TextCaptcha challenge).

I noticed in the AdminCP there's a box to input an API Key for TextCaptcha. When I go to textcaptcha.com...to get or sign-up for an API key...I'm not seeing any area to do it. Thought maybe if I got a TextCaptcha API key...it would fix the server error issues.

Does anyone know how you go about getting a TextCaptcha API key?

Thanks

Screen Shot 2023-01-31 at 1.21.26 PM.png
 
Sorry about that...hopefully I got it correct with the code tags:

Code:
Stack trace
#0 src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(149): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 src/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(102): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 src/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#3 src/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#4 src/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#5 src/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(37): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#6 src/vendor/guzzlehttp/guzzle/src/Middleware.php(30): GuzzleHttp\PrepareBodyMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#7 src/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(70): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#8 src/vendor/guzzlehttp/guzzle/src/Middleware.php(60): GuzzleHttp\RedirectMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#9 src/vendor/guzzlehttp/guzzle/src/HandlerStack.php(67): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#10 src/vendor/guzzlehttp/guzzle/src/Client.php(277): GuzzleHttp\HandlerStack->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#11 src/vendor/guzzlehttp/guzzle/src/Client.php(125): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
#12 src/vendor/guzzlehttp/guzzle/src/Client.php(131): GuzzleHttp\Client->requestAsync('get', Object(GuzzleHttp\Psr7\Uri), Array)
#13 src/vendor/guzzlehttp/guzzle/src/Client.php(89): GuzzleHttp\Client->request('get', 'https://api.tex...', Array)
#14 src/XF/Captcha/TextCaptcha.php(18): GuzzleHttp\Client->__call('get', Array)
#15 src/XF/Captcha/AbstractCaptcha.php(47): XF\Captcha\TextCaptcha->renderInternal(Object(XF\Template\Templater))
#16 src/XF/Template/Templater.php(2433): XF\Captcha\AbstractCaptcha->render(Object(XF\Template\Templater))
#17 [internal function]: XF\Template\Templater->fnCaptcha(Object(XF\Template\Templater), false, false, false)
#18 src/XF/Template/Templater.php(1105): call_user_func_array(Array, Array)
#19 internal_data/code_cache/templates/l1/s1/public/register_form.php(176): XF\Template\Templater->func('captcha', Array)
#20 src/XF/Template/Templater.php(1628): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
#21 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('register_form', Array)
#22 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#23 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Register\\For...', 'public:register...', Array)
#24 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#25 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#26 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#27 src/XF/App.php(2337): XF\Mvc\Dispatcher->run()
#28 src/XF.php(488): XF\App->run()
#29 index.php(20): XF::runApp('XF\\Pub\\App')
#30 {main}
 
I've done some testing.

If I try to register a new account or send a Contact Us message on/to the site...I do get a TextCapcha challenge...and everything mechanically works fine (Contact Us messages arrive fine...and new Registrations are created fine). Only issue is keep getting server errors in AdminCP.

These errors do not appear to be one-for-one (one error for every Contact Us or new Registration). Probably had a total of 15 new registrations and Contact Us messages to approve...but only had 1-2 TextCaptcha server errors.

Thanks
 
Back
Top Bottom