Answers.Body: <p>CiviCRM 5.69+ <a href="https://github.com/civicrm/civicrm-core/pull/28112" rel="nofollow noreferrer">can do this with SearchKit</a>.  <em>Entity</em> is <strong>Contact</strong>.  Under <em>Where</em>, select <code>First Name</code>, <code>=</code>, then change <code>Value</code> to <code>Field</code>.  Then you can select <code>Last Name</code>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-30T18:28:49.137Z
Answers.LastActivityDate: 2023-11-30T18:28:49.137Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>Now that I got my computer set up with <code>buildkit</code>, I had a chance to <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Module+Extension#CreateaModuleExtension-Addacustomsearch" rel="nofollow">play further with <code>civix</code></a> and built a simple "first name = last name" search extension to test this out and practice the basics of <code>civix</code>. </p>
  
  <p>If anyone wants to try it let me know how it goes:</p>
  
  <p><a href="https://github.com/CEDC/org.cedc.namename" rel="nofollow">https://github.com/CEDC/org.cedc.namename</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-28T04:32:40.990Z
Answers.Text: 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.
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-28T06:35:37.090Z
Answers.Text: @petednz-fuzion where do you set that at?
Answers.UserDisplayName: frTommy
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-28T23:22:59.650Z
Answers.Text: webform has a Form Validation tab (from memory) under the Webform tab
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-28T03:35:51.443Z
Answers.LastActivityDate: 2016-04-28T04:03:06.240Z
Answers.LastEditDate: 2016-04-28T04:03:06.240Z
Answers.UserDisplayName: Laryn
Answers.Body: <p>Maybe the extension you are looking for is <a href="https://civicrm.org/extensions/aug-searches" rel="nofollow noreferrer">https://civicrm.org/extensions/aug-searches</a> . </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-28T18:24:17.080Z
Answers.LastActivityDate: 2017-08-28T18:24:17.080Z
Answers.UserDisplayName: Kainuk - CiviCooP
Body: <p>Some years back there was <a href="https://forum.civicrm.org/index.php?topic=27351.0" rel="nofollow">a forum discussion about a custom search</a> 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. </p>
  
  <p>A <a href="https://wiki.civicrm.org/confluence/display/CRMDOC44/Spam+name+search" rel="nofollow">custom search</a> 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).</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-28T11:44:19.513Z
Comments.Text: 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.
Comments.UserDisplayName: PeterS
Tags: <extension><custom-search><spam>
Title: Search extension for first name = last name (to purge spam submissions)
ThreadText: # Search extension for first name = last name (to purge spam submissions)
  
  (Asked by: username_0 on 2016-03-01)
  
  Some years back there was [a forum discussion about a custom search](https://forum.civicrm.org/index.php?topic=27351.0) 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](https://wiki.civicrm.org/confluence/display/CRMDOC44/Spam+name+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).
  
  **Tags:** extension, custom-search, spam
  
  > **Comments:**
  > **username_1**: 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.  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2023-11-30. Score: 2 | Accepted answer
  
  CiviCRM 5.69+ [can do this with SearchKit](https://github.com/civicrm/civicrm-core/pull/28112). *Entity* is **Contact**. Under *Where*, select `First Name`, `=`, then change `Value` to `Field`. Then you can select `Last Name`.
  
  
  ---
  
  ### Answer by username_0 on 2016-04-28. Score: 3
  
  Now that I got my computer set up with `buildkit`, I had a chance to [play further with `civix`](https://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Module+Extension#CreateaModuleExtension-Addacustomsearch) 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:
  
  <https://github.com/CEDC/org.cedc.namename>
  
  > **Comments:**
  > **username_3**: 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.  
  > **username_4**: @username_3 where do you set that at?  
  > **username_3**: webform has a Form Validation tab (from memory) under the Webform tab  
  
  ---
  
  ### Answer by username_5 on 2017-08-28. Score: 1
  
  Maybe the extension you are looking for is <https://civicrm.org/extensions/aug-searches> .
  
  
  ---
  
  