Kevinduck Posted May 17, 2017 Share Posted May 17, 2017 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 More sharing options...
endriu107 Posted May 17, 2017 Share Posted May 17, 2017 Probably you have old module sendtofriend, check this topic: https://www.prestashop.com/forums/topic/544579-major-security-issues-with-few-modules-and-themes/ 1 Link to comment Share on other sites More sharing options...
Kevinduck Posted May 17, 2017 Author Share Posted May 17, 2017 Thank you for your advise, will try to see if your suggestion will fix issue. Thank you for your time Link to comment Share on other sites More sharing options...
Kevinduck Posted May 17, 2017 Author Share Posted May 17, 2017 Hi Seems I do have the latest update for PestaShop. Do you have any other solutions that may help? Thank you Link to comment Share on other sites More sharing options...
javior00 Posted May 17, 2017 Share Posted May 17, 2017 (edited) 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 May 17, 2017 by javior00 (see edit history) Link to comment Share on other sites More sharing options...
Kevinduck Posted May 17, 2017 Author Share Posted May 17, 2017 Not yet but they are the same websites that are are sending rubbish Link to comment Share on other sites More sharing options...
javior00 Posted May 17, 2017 Share Posted May 17, 2017 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 More sharing options...
Kevinduck Posted May 17, 2017 Author Share Posted May 17, 2017 Ok,I will That is not so good if you have no contact you page. Link to comment Share on other sites More sharing options...
endriu107 Posted May 17, 2017 Share Posted May 17, 2017 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. Link to comment Share on other sites More sharing options...
Kevinduck Posted May 17, 2017 Author Share Posted May 17, 2017 Ok,you lost me there but will give it a try Thanks Link to comment Share on other sites More sharing options...
javior00 Posted May 17, 2017 Share Posted May 17, 2017 (edited) SOLVED!!!!Problem was that the captcha also has to be activated in the contactcontroller.php;1: enter reCaptcha and generate the keys with your domain2: 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 May 17, 2017 by javior00 (see edit history) 2 Link to comment Share on other sites More sharing options...
Kevinduck Posted May 17, 2017 Author Share Posted May 17, 2017 Well done, stopped Link to comment Share on other sites More sharing options...
baby_lumi Posted May 17, 2017 Share Posted May 17, 2017 I had the same problem once, really annoying! Thnak goodness you found a solution to fix it Link to comment Share on other sites More sharing options...
Thorfy Posted May 19, 2017 Share Posted May 19, 2017 (edited) hello if you don't have the captcha module see the french post here :https://www.prestashop.com/forums/topic/610365-spam-du-sav/page-2?do=findComment&comment=2558747 I dev a quickly solution if you don't want captcha module or if you don't know how to fix it. Edited May 19, 2017 by Thorfy (see edit history) Link to comment Share on other sites More sharing options...
endriu107 Posted May 19, 2017 Share Posted May 19, 2017 @Thorfly, this is only empty folders what you share in French forum. Link to comment Share on other sites More sharing options...
Thorfy Posted May 19, 2017 Share Posted May 19, 2017 (edited) @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 May 19, 2017 by Thorfy (see edit history) Link to comment Share on other sites More sharing options...
mikanat Posted February 6, 2018 Share Posted February 6, 2018 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 More sharing options...
g.dompeyre Posted February 15, 2018 Share Posted February 15, 2018 Hi mikaelnatech Is your website runing with prestashop 1.7? Link to comment Share on other sites More sharing options...
sserras Posted February 17, 2018 Share Posted February 17, 2018 Hi, g.dompeyre, I'm with prestashop 1.7, there's any way to provide the code for this version ? Thank you Link to comment Share on other sites More sharing options...
kennyaires Posted February 20, 2018 Share Posted February 20, 2018 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 More sharing options...
nadie Posted February 20, 2018 Share Posted February 20, 2018 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, Link to comment Share on other sites More sharing options...
nadie Posted February 21, 2018 Share Posted February 21, 2018 People who have not had their version of Prestashop within the Prestashop 1.6 branch to the latest variants of Prestashop 1.6 Update files: https://github.com/PrestaShop/PrestaShop/pull/8168/files 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now