Jump to content
Kevinduck

Spam via my ecommerce shop

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?

Share this post


Link to post
Share on other sites

Thank you for your advise, will try to see if your suggestion will fix issue.

 

Thank you for your time

Share this post


Link to post
Share on other sites

Hi

 

Seems I do have the latest update for PestaShop.

 

Do you have any other solutions that may help?

 

Thank you

Share this post


Link to post
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

Share this post


Link to post
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 :(

Share this post


Link to post
Share on other sites

If this is realy contactcontroller issue I think for try you can in contac-form.tpl add hidden input with some value and in contactcontroller.php validate it.

Share this post


Link to post
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
  • Like 2

Share this post


Link to post
Share on other sites

I had the same problem once, really annoying! Thnak goodness you found a solution to fix it :D

Share this post


Link to post
Share on other sites

@Thorfly, this is only empty folders what you share in French forum.

Share this post


Link to post
Share on other sites

@Thorfly, this is only empty folders what you share in French forum.

sorry its a bug when i zip it

I upload a new file 

Edited by Thorfy

Share this post


Link to post
Share on other sites

 

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

Share this post


Link to post
Share on other sites

Hi, g.dompeyre,

 

I'm with prestashop 1.7, there's any way to provide the code for this version ?

 

Thank you

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
En 17/2/2018 a las 3:25 PM, sserras dijo:

Hi, g.dompeyre,

 

I'm with prestashop 1.7, there's any way to provide the code for this version ?

 

Thank you

Use this module: https://github.com/nenes25/eicaptcha/releases 

It's free and you do not have to manually add code.

Sorry for my English,
 

Share this post


Link to post
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

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More