Jump to content

Spam from contact form to different email address


jscustom

Recommended Posts

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?

Edited by jscustom (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...