Some years back there was a forum discussion about a custom search to find contacts where the first name was equal to the last name, which is (or was) common for spam submissions that ended up generating contacts.

A custom search was shared but I was curious if anyone had this working on a more recent version of CiviCRM via an extension. (If not, I may play with that).

  • Finally got round to trying this. Works very well indeed. I expected quite a few but not a thousand. Very strange this because they were all created in batches but no evidence of creating a Drupal User. I cant figure out what the purpose of the spammer is really. Thanks for your work creating this extension. Saved me a lot of work.
    – PeterS
    Aug 28 '17 at 11:44

Now that I got my computer set up with buildkit, I had a chance to play further with civix and built a simple "first name = last name" search extension to test this out and practice the basics of civix.

If anyone wants to try it let me know how it goes:


  • 2
    good work on this. i found that setting first != last as a validation on webforms was a great spam reducer where webforms were the entry point.
    – petednz - fuzion
    Apr 28 '16 at 4:32
  • @petednz-fuzion where do you set that at?
    – frTommy
    Apr 28 '16 at 6:35
  • webform has a Form Validation tab (from memory) under the Webform tab
    – petednz - fuzion
    Apr 28 '16 at 23:22

Maybe the extension you are looking for is https://civicrm.org/extensions/aug-searches .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.