Can i use botdetectCaptcha in AEM?
Can i use botdetectCaptcha in AEM ?
I am trying to integrate botdetect captcha from captcha.com in AEM.
I added the maven dependency,created an osgi bundle with the jars provided . Still not able to access it . Getting Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest at com.captcha.botdetect.web.servlet.Captcha.load(Unknown Source)
See also questions close to this topic
-
CryptoException while decrypting in AEM
we are facing CryptoException while decrypting the text in AEM 6.0 version. Actually one of our environment is having this issue. we dont have this issue in other environments. This issue is specific to only one environment. Literally we tried all the options.
Tried options:- Deleted /etc/key folder in publish server and restarted Adobe Granite Crypto Bundle and restarted pub server too. But nothing is helped and still facing the same error.
Below is complete error message
Caused by: com.adobe.granite.crypto.CryptoException: Cannot convert byte data at com.adobe.granite.crypto.internal.CryptoSupportImpl.unprotect(CryptoSupportImpl.java:160) at com.pearson.aem.aemcore.hybris.services.CommerceServiceImpl.getExternalUser(CommerceServiceImpl.java:326) ... 136 common frames omitted Caused by: com.adobe.granite.crypto.CryptoException: Failed decrypting cipher text at com.adobe.granite.crypto.internal.CryptoSupportImpl.decrypt(CryptoSupportImpl.java:96) at com.adobe.granite.crypto.internal.CryptoSupportImpl.unprotect(CryptoSupportImpl.java:157) ... 137 common frames omitted Caused by: com.rsa.jsafe.JSAFE_PaddingException: Invalid padding. at com.rsa.jsafe.JSAFE_SymmetricCipher.decryptFinal(Unknown Source) at com.adobe.granite.crypto.internal.jsafe.JSafeCryptoSupport.getPlainText(JSafeCryptoSupport.java:326) at com.adobe.granite.crypto.internal.jsafe.JSafeCryptoSupport.getPlainText(JSafeCryptoSupport.java:308) at com.adobe.granite.crypto.internal.CryptoSupportImpl.decrypt(CryptoSupportImpl.java:94) ... 138 common frames omitted
Is there any config which we should cross verify?
-
CQ5 Query Debugger
I am trying to pull all the pages in AEM 6.1 whose cq:last modified date is greater than cq:last replicated.to put it in a basic English i want all the pages which are having both the green(activated) and the blue(modified) colors highlighted in siteadmin
Can anyone please help me with this query
-
Overlay issue in i18n AEM6.0
We have some sites such as:
/apps/site1 |----i18n |---data |---keys |---languages |---translator /apps/site2 |----i18n |---data |---keys |---languages |---translator
Now when we hit the site, we can see the call
libs/cq/i18n/dict.xx-xx.json
. Ideally that call should be either from/apps
or/etc
. How can I achieve this?OOTB servlet :
@Component @Service({Servlet.class}) @Properties({@Property( name = "service.description", value = {"ResourceBundle Renderer Servlet"} ), @Property( name = "sling.servlet.paths", value = {"/libs/cq/i18n/dict"} )}) public class ResourceBundleExportServlet extends SlingSafeMethodsServlet {
-
How to solve captcha in Imacros by API
I want to use deathbycaptcha to solve captchas in Imacros.
I see api for imacros, but it isnot working for me.
http://api.dbcapi.me/decaptcher?function=imagegroup&print_format=html
what I am doing:
- submit user name and password
- chose a picture
- click send
but result is -1
can anyone help me?
This is their API
VERSION BUILD=844 URL GOTO=http://api.dbcapi.me/decaptcher?function=imagegroup&print_format=html TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://api.dbcapi.me/decaptcher ATTR=NAME:username CONTENT={{YOUR_DBC_USERNAME}} TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://api.dbcapi.me/decaptcher ATTR=NAME:password CONTENT={{YOUR_DBC_PASSWORD}} TAG POS=1 TYPE=INPUT:FILE FORM=ACTION:http://api.dbcapi.me/decaptcher ATTR=NAME:pict CONTENT={{PATH_TO_MAIN_IMAGE}} TAG POS=1 TYPE=INPUT:FILE FORM=ACTION:http://api.dbcapi.me/decaptcher ATTR=NAME:banner CONTENT={{PATH_TO_BANNER_IMAGE}} TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://api.dbcapi.me/decaptcher ATTR=NAME:banner_text CONTENT={{BANNER_TEXT}} TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://api.dbcapi.me/decaptcher ATTR=NAME:grid CONTENT={{GRID}} TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://api.dbcapi.me/decaptcher ATTR=* TAG POS=6 TYPE=TD ATTR=* EXTRACT=TXT SET !VAR1 {{!EXTRACT}}
This is my code in imacros
VERSION BUILD=10022823 TAB T=1 TAB CLOSEALLOTHERS SET !EXTRACT_TEST_POPUP NO FILEDELETE NAME=C:\captcha\captcha1.jpg URL GOTO=https://www.jayde.com/submit-site.html TAG POS=1 TYPE=IMG FORM=NAME:jayde-url-submit ATTR=SRC:https://rservice.ientry.com/captcha.srv ONDOWNLOAD FOLDER=C:\captcha\ FILE=captcha1.jpg TAG POS=1 TYPE=IMG FORM=NAME:jayde-url-submit ATTR=HREF:"https://rservice.ientry.com/captcha.srv" CONTENT=EVENT:SAVEITEM tab open tab t=2 URL GOTO=http://api.dbcapi.me/decaptcher?function=imagegroup&print_format=html TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://api.dbcapi.me/decaptcher ATTR=NAME:username CONTENT=myusername TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://api.dbcapi.me/decaptcher ATTR=NAME:password CONTENT=mypassword TAG POS=1 TYPE=INPUT:FILE FORM=ACTION:http://api.dbcapi.me/decaptcher ATTR=NAME:pict CONTENT=C:\captcha\captcha1.jpg TAG POS=1 TYPE=INPUT:SUBMIT ATTR=TYPE:submit Wait seconds=20 TAG POS=6 TYPE=TD ATTR=* EXTRACT=TXT SET !VAR1 {{!EXTRACT}} tab close Tab t=1 TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:HUMAN-TEST CONTENT={{VAR1}}
-
Read Captcha from CaptchaImageHandler
The CaptchaImageHandler.aspx class of Microsoft ASP.net provides a captcha service. It accepts a parameter via an URL like
../CaptchaImageHandler.aspx?captcha=FLYq9H7jrlxOk7BzEvb9GQ==
and returns via HTTP an image including the captcha.
Is there a way to translate the parameter to the captcha?
-
I can visit the html page after unblock the captcha, but the python program cannot?
I am trying to fetch the html content from a website with python, the code is pretty simple, just
requests.get(url)
It has a daily limit of access for individual ip. After I clicked many times eventually I got a captcha, I have to manually unlock it.
What I want to do as first step is I try to let the python script figure out if the page is blocked. So the html page will be slightly different and to tell if it's blocked is very simple just parse the html content.
But somehow, I noticed, after I unblock the page manually with chrome. The chrome will show the unblocked content, but the python script still fetches the blocked page.
howcome?
-
Edit BotDetect Captcha in cakePHP
I am using Bot Detect Captcha in my cakePHP project using the following link:
https://captcha.com/doc/php/cakephp-captcha-quickstart.html#tab_install_with_local_git
Came up like this:
But If you see the text area and the captcha are getting joined. I would like give line break to input box and image box so that I get some space between them.
I tried adding "br" to my ctp file but didn't get through.
Here is the form.ctp I am trying out:
<div class="grid-container vert-center"> <div class="area landing"> <?=$this->Form->textarea('message',[ 'placeholder' => 'Your message...' ]) ?> <br /> <br /> <?= captcha_image_html()?> <?= $this->Form->input('captchaCode', [ 'label' => " ", 'placeholder' => 'Retype the characters from the picture:', 'maxlength' => '10', 'style' => 'width: 270px;', 'id' => 'CaptchaCode' ]); ?> <button>Submit!</button> </div> </div>
I would like give same padding in form it is sticking to my text area. I am not sure where do I give the spacing. I tried
-
BotDetect-angularjs cannot create captcha instance inside modal
I am trying to implement BotDetect-angularjs in my website, and here is my form submit function:
vm.submitPtoPForm = function(){ $log.log('vm.submitPtoPForm'); var path = vm.configProps.apiEndPoint.basePath + vm.configProprs.apiEndPoint.formPath; httpService.sendPost(vm.details, path).then(function (response){ $log.log(response); var errorData = response.data; //error in one of the fields var errorSize = Object.keys(errorData).length; if(showCaptcha(errorData)){ $log.log('showCaptcha'); vm.modalInstance = $uibModal.open({ animation: false, templateUrl: 'JavaScript/directives/modelHTML/modalCaptcha.html', controller:'captchaController' }); } //....more code
After checking by
session
, I get the response for show/no showing the capcha, so the next step is to go tomodalCaptcha.html
:<botdetect-captcha styleName="exampleCaptcha"></botdetect-captcha>
And the controller:
function captchaController(rest, $scope, $log, Captcha) { $log.log(Captcha); var httpService = rest; var vm = this; vm.configProprs = null; var params = {'sender' :'captchaController'}; httpService.sendGet(params, 'JavaScript/config.json').then(function(data){ vm.configProprs = data; }); var exampleUrl = vm.configProprs.apiEndPoint.formPath + vm.configProprs.apiEndPoint.captchaPath; $scope.validate = function(valid) { if (!valid) { return; } // create new BotDetect Captcha instance var captcha = new Captcha(); // captcha id for validating captcha at server-side var captchaId = captcha.captchaId; // captcha code input value for validating captcha at server-side var captchaCode = $scope.captchaCode; var postData = { captchaId: captchaId, captchaCode: captchaCode }; httpService.sendPost(exampleUrl, JSON.stringify(postData)).then(function(response) { if (response.data.success) { $log.log(response); // CAPTCHA validation passed at server-side } else { $log.log('captcha faild'); // CAPTCHA validation falied at client-side } // reload Captcha image captcha.reloadImage(); }, function(error) { throw new Error(error.data); }); }; }
But before loading
botdetect-captcha
directive I get this error:function () { if (typeof BotDetect === 'undefined') { throw new Error('Can not create Captcha instance, please put "new Captcha()" inside function that will be invoked after form is submitted.…
The
new captcha()
is in a modal after submmiting the form(invm.submitPtoPForm
), so I don't understand why it is trying to init the Captcha before the submit, thanks for any help -
Botdetect Captcha HTML <taglib>
I want to add Botdetect Captcha to my html file.But in the website of the Botdetect captcha, there is example only for jsp. In this jsp file,
<taglib>
is used like that:<%@taglib prefix="botDetect" uri="https://captcha.com/java/jsp"%> .... <botDetect:captcha id="basicExample" userInputID="captchaCode" /> <div class="validationDiv"> <input name="captchaCode" type="text" id="captchaCode" value="${basicExample.captchaCode}" /> <input type="submit" name="validateCaptchaButton" value="Validate" id="validateCaptchaButton" /> <span class="correct">${basicExample.captchaCorrect}</span> <span class="incorrect">${basicExample.captchaIncorrect}</span> </div>
Is there any alternative for
<%@taglib>
in HTML files. How can I solve this problem?