PrestaSam Posted August 17, 2016 Share Posted August 17, 2016 Hi, Our shop was spammed by some Chinese spam bot (messages from qq.com) via the contact form. I managed to stop it by deleting the specific contact it was sent to. But in the last 3 days more than 130.000 messages were sent and I need to delete them. Prestashop allows only a view with 1000 messages to delete at once. It's cost me hours... Does somebody know how to delete all messages at once? You would really help me a lot. Link to comment Share on other sites More sharing options...
vekia Posted August 17, 2016 Share Posted August 17, 2016 you've got an access to database manager like phpMyAdmin ? Link to comment Share on other sites More sharing options...
PrestaSam Posted August 17, 2016 Author Share Posted August 17, 2016 Hi Vekia, I have no experience with that. Could I used Dreamweaver for that too? Link to comment Share on other sites More sharing options...
PrestaSam Posted August 17, 2016 Author Share Posted August 17, 2016 Isn't it possible to add for instance 100.000 in the selection dropbox that manages how many messages can be viewed at once? Link to comment Share on other sites More sharing options...
vekia Posted August 17, 2016 Share Posted August 17, 2016 no, you cant do this with dreamviewer. if you want to remove these spam emails in bulk it will be necessary to do it with some database manager software where you can do it in bulk. i think that this can be done with free (30 days) store manager http://addons.prestashop.com/en/2937-store-manager-for-prestashop.html Link to comment Share on other sites More sharing options...
PrestaSam Posted August 17, 2016 Author Share Posted August 17, 2016 Ok, I entered my Cpanel and I do have access to phpMyAdmin. In fact: I'm viewing my database right now. Which table do I need to look at? Link to comment Share on other sites More sharing options...
milaonline Posted January 11, 2018 Share Posted January 11, 2018 I you are familiar in PHP you can make script - something like: $id_customer_thread = SELECT id_customer_thread FROM ps_customer_thread WHERE email LIKE '%qq.com'; then DELETE FROM ps_customer_message where id_customer_thread = ".$id_customer_thread." DELETE FROM ps_customer_thread where id_customer_thread = ".$id_customer_thread." This script is not complete. Link to comment Share on other sites More sharing options...
Vince Posted January 12, 2018 Share Posted January 12, 2018 If you only delete in database, it should not resolve your problem 100%. What is after deleting the spam emails, then tomorrow it should back again? I think you should do two things: 1. In contact form: You should add a captcha option to avoid spam. 2. Delete all the old spam message. You can use this SQL command to delete all of them: DELETE FROM ps_customer_thread WHERE email LIKE '%qq.com'; becareful if your db have another prefix, you should replace "ps_" to your prefix. Hope this help! 1 Link to comment Share on other sites More sharing options...
milaonline Posted January 15, 2018 Share Posted January 15, 2018 Vince you are right. Here is solution for No 1 - stop sending messages: https://github.com/PrestaShop/PrestaShop/pull/8168 It works great 2 Link to comment Share on other sites More sharing options...
LauraPresta Posted February 20, 2018 Share Posted February 20, 2018 Hello Guys, Same problem here (we added recaptacha so problem is half solved) We cleared table ps_customer_message and ps_customer_thread but i check it is not enough. There is some others things to clear because i still check the database is 17mB too big Any idea ? Link to comment Share on other sites More sharing options...
LauraPresta Posted February 20, 2018 Share Posted February 20, 2018 ok so there is also : ps_mail to clear, and we added ps_gest, ps_connections and ps_logs good luck 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