Constructing a CB query to find SPAM users

4 years 8 months ago - 4 years 8 months ago #313815 by researchware
Constructing a CB query to find SPAM users was created by researchware
For a couple of our sites, we end up with SPAM bot registrations. You can spot them, when you look at the users, as they are always of the form where the firstname is a subset of the lastname. For example:
Firstname: KeithGum
Lastname: KeithGumEA
and Confirmed is always false (i.e. the bot never responded to the email confirmation)

If I was doing a SQL query, to find all these users, it would be: SELECT * FROM jml_comprofiler a WHERE a.lastname LIKE CONCAT(a.firstname,'%') and a.confirmed = 0

My question is: How can I select these from the Community Builder administrative back end so I can cleanly delete them? I don't seem to be able to use field substitutions in the advanced search. Is there some way in the Joomla backend to construct this query?

Using the latest Joomla and CB versions.

Please Log in to join the conversation.

4 years 8 months ago #313822 by krileon
Replied by krileon on topic Constructing a CB query to find SPAM users
First step I recommend is ensuring you've CB AntiSpam installed and its captcha configured. This will catch most if not all automated bots. You're then left with human bots who register then had off the account to an automated process. Typically the automated bots will try to spam forums, which you can use the below usage in CB Auto Actions to try and protect against.

www.joomlapolis.com/documentation/291-cb-auto-actions/tutorials/18810-blocking-kunena-forum-spammers

As for your issue no substitutions are not supported in the searching. Joomla search is even less powerful than ours so it won't work there either. You could maybe create a frontend userlist though and have an Advanced Filter which directly adds to the database query to try and match your spam criteria to at least help find them better.

If there's a common element to their email address though you could use the auto blocking feature in CB AntiSpam to try and block similar email addresses from even being allowed to registered, but a lot of the time they'll use a compromised email account to register.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

4 years 8 months ago #313845 by researchware
Replied by researchware on topic Constructing a CB query to find SPAM users
Thank you. I just wanted to know whether I could construct the query I was looking in CB. Not being able to, I'll approach removing the accounts in a different way..

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.171 seconds

Facebook Twitter LinkedIn