Administrator
- Join Date:
- Feb 2006
- Posts:
- 10,620
- Plugin Contributions:
- 212
Delete Spam Customers
bad guys. It cleans out all database records for the bad account.
It's available here: https://www.zen-cart.com/downloads.php?do=file&id=2253
Administrator
Totally Zenned
Administrator
Totally Zenned
Totally Zenned
Administrator
Totally Zenned
swguy:
You might need to just use a date range or a customer id range.
Administrator
Totally Zenned
swguy:
Be careful ... the reason I created the mod is that it's hard to delete from the DB without leaving straggling parts of a spam ID. Refer to the code to see all the tables touched.
Administrator
Totally Zenned
swguy:
you might have to do this 3 or 4 times (set the range, upload, run the file, set the range, upload, run the file ...) but at least you know the bad ones will be cleaned out properly.
Also as another suggestion, take a look at ZenNonCaptcha. It has really cut down on spam for my clients that are using it.
https://www.zen-cart.com/downloads.php?do=file&id=2207
// Could also be based on date, customer_id, etc.
$query = $db->Execute("SELECT * FROM " . TABLE_CUSTOMERS . " WHERE customers_firstname LIKE '%http%' OR customers_lastname LIKE '%http%'"); Administrator
Totally Zenned
swguy:
$query = $db->Execute("SELECT customers_info_id as customers_id FROM " . TABLE_CUSTOMERS_INFO . " WHERE customers_info_date_account_created >= '2018-08-01' and customers_info_date_account_created <= '2018-08-30'"
Totally Zenned
swguy:
$query = $db->Execute("SELECT customers_info_id as customers_id FROM " . TABLE_CUSTOMERS_INFO . " WHERE customers_info_date_account_created >= '2018-08-01' and customers_info_date_account_created <= '2018-08-30'"
New Zenner
shags38:
Maybe I am doing something wrong, I cannot get this date range code to work :) - so I deleted the existing original https code and replaced it with this code [with closing );] and simply altered dates to suit a block of spam customers to remove >> saved the file and uploaded it to admin/delete_spam_customers.php >> then selected admin/customers/delete spam customers with the result being 0 customers removed - did this a number of times, once I altered date format to read month/date/year in line with how it shows in admin but that didn't help - so I am stumped.
Any assistance would be appreciated.
cheers,
Mike
Administrator
shags38:
Maybe I am doing something wrong, I cannot get this date range code to work :)
Administrator
Coins2012:
Here is a screen shot of what I have to deal with, this started about 6 months ago, I do have google captcha but not help with these people.
Totally Zenned
swguy:
sorry it's really hard to write code on the forum. I missed the end paren. Let's space out the end quote too so it's obvious there's a single and then a double.
$query = $db->Execute("SELECT customers_info_id as customers_id FROM " . TABLE_CUSTOMERS_INFO . " WHERE customers_info_date_account_created >= '2018-08-01' and customers_info_date_account_created <= '2018-08-30' ");
Totally Zenned
Coins2012:
Here is a screen shot of what I have to deal with, this started about 6 months ago, I do have google captcha but not help with these people.
You might want to consider some of the blocking mods out there like Cindy's Access Blocker:and it has helped to greatly reduce the number of these getting through - there will be a few here and there that do get through because the plugin relies on using a website that produces lists of known spam ip addresses and as such some ip addresses take a while to make the list - but it works well for me (even without captcha). The issue now is deleting hundreds and hundreds that got through before the plugin mentioned above was developed.
https://www.zen-cart.com/downloads.php?do=file&id=2237
Administrator
Destination thread ID and reason are required when shown.
Tell staff why this post should be reviewed.
Required for login, security, and core site functionality.
Help us understand how the site is used so we can improve it.
Used for promotion and personalized campaign measurement.