Jump to content

Spam via my ecommerce shop


Kevinduck

Recommended Posts

Every 5 mins I receive a spam request from a china web site via my PrestaShop.

 

And the mail auto replies(via PrestaShop) so then I receive a email saying Mail delivery failed: returning message to sender 

 

also every 5 mins.my webmaster installed Chatcha but that has done nothing to stop receiving spam every 5 mins.

 

I would have thought that the PrestaShop would have away to block sites.

 

Anybody got any idea's how to fix?

Link to comment
Share on other sites

Man i have the exact same problem, since this morning sendtofriend is not the problem, I do not have it installed, instaled captcha it made no difference, deleted all contact-form.tpl it made no difference i still got chinese  smap every 5 minutes  all spam is the same from different emails they all are:

虎博發推荐 www.hubofa.com

乐虎注册送88 无流水 www.lehu201.com

龙虎注册送88 www.longhu90.com

世嘉娱乐 www.sega113.com 50送58 10水 100送108 12水


did you find a solution?

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

those f****, i cant believe they can send spam even without a form, and even bypassing the captcha like it is nothing, please let me know if you find a solution, ill do the same if i do, for now i renamed the contactcontrollr.php, and the spam stopped, but now i have no contact page :(

Link to comment
Share on other sites

SOLVED!!!!
Problem was that the captcha also 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.tpl 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

4:  go to /controllers/front/ContactController.php and just after 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

Edited by javior00 (see edit history)
  • Like 2
Link to comment
Share on other sites

  • 8 months later...

 

Quote

SOLVED!!!!
Problem was that the captcha also 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.tpl 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

4:  go to /controllers/front/ContactController.php and just after 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!

Hello everyone,

I actually meet the same problem on my website.
Although I apply the modifications @javior00 said, these make my website down.

 

Step 3 and 4 do not allow access to the contact form

and nobody can visit my website if I apply the step 1.

 

Do anybody has a solution please ?


Thank you

Link to comment
Share on other sites

  • 2 weeks later...
On 17/05/2017 at 5:01 AM, javior00 said:

SOLVED!!!!
Problem was that the captcha also 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.tpl 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

4:  go to /controllers/front/ContactController.php and just after 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

 

Worked for me as well! Thanks a lot!

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...