Jump to content

Edit History

jscustom

jscustom

Hi people,

Since yesterday I have been copping hundreds of spam emails from a chinese spammer.

I have installed the eicaptcha module which seems to slow them down a little, but not even close to stopping. It seems they are not using the form, but calling it remotely somehow with a bot or similar.

I have tried a bunch of fixes, but everything I can find is for old versions.

some of the 'fixes' others have mentioned in other posts don't seem to be relevant to 1.6.1.24..

This is taken from

Quote

 

SOLVED!!!!

Problem was that the captcha algo has to be activated in the contactcontroller.php;

 

1: enter reCaptcha and generate the keys with your domain

2: Add <script src=https://www.google.com/recaptcha/api.js'></script> to header.tp just before the </head> tag

3: Add <div class="g-recaptcha" data-sitekey="[public Google key]"></div> to contact-form.tpl just before</form> tag <--- There are no <form> tags in 

4:  go to /controllers/front/ContactController.php and just efter this line : $this->errors[] = Tools::displayError('Bad file extension');

add:

} else if (!($gcaptcha = (int)(Tools::getValue('g-recaptcha-response')))){

    $this->errors[] = Tools::displayError('Captcha not verified');

            }

 

Thats it!

For prestashop 1.6.1.5

 

This just gives 500 errors on the contact form

Any ideas on how to sort this?

jscustom

jscustom

Hi people,

Since yesterday I have been copping hundreds of spam emails from a chinese spammer.

I have installed the eicaptcha module which seems to slow them down a little, but not even close to stopping. It seems they are not using the form, but calling it remotely somehow with a bot or similar.

My contact form is set to send mail to info@mydomain email address, which works fine with the eicaptcha installed, but I am getting the spam messages on my admin@domain email.

Any ideas on how to stop this?

×
×
  • Create New...