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
    Commented Aug 28, 2017 at 11:44

3 Answers 3


CiviCRM 5.69+ can do this with SearchKit. Entity is Contact. Under Where, select First Name, =, then change Value to Field. Then you can select Last Name.


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
    Commented Apr 28, 2016 at 4:32
  • @petednz-fuzion where do you set that at?
    – frTommy
    Commented Apr 28, 2016 at 6:35
  • webform has a Form Validation tab (from memory) under the Webform tab
    – petednz - fuzion
    Commented Apr 28, 2016 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 and acknowledge you have read our privacy policy.

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