Title: Extending functionalities
Last modified: February 28, 2023

---

# Extending functionalities

 *  Resolved [mg_scr](https://wordpress.org/support/users/mgelly/)
 * (@mgelly)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/extending-functionalities/)
 * Hi, first, well done for this plugin. I would like to say this is the most efficient
   honeypot I tried so far.
 * But I would like to know if you had forseen the possibility of extending parts
   of your code, from the theme folder for example.
   To explain myself, there is 
   2 thing we would like to change to add more security in the “la_sentinelle_check_honeypot()”
   function :
 *     ```wp-block-code
       if ( isset($post_data["$field_name"]) && strlen($post_data["$field_name"]) > 0 ) {
       ```
   
 * We want to remove the isset(), because if the field was removed from the form
   we want it to be considered as spam.
 * Secondly we want to change the input’s type of the field “honeypot” (which has
   to stay empty) to a “text” type with a style=”display:none”. Bots tends to avoid
   more and more hidden fields and an obfuscated text field is more efficient on
   this part.
 * Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/extending-functionalities/#post-16520791)
 * Hi, thank you for the feedback.
 * Both changes have been added. Mostly I just test with the whole div removed, 
   but removing one input element is a good additional check too.
 * I never thought much about using hidden fields or text fields that are invisible,
   I guess both are fine 🙂 Did you see anything happen in the wild?
   I only run 
   small websites that haven’t been a manual target, only bots go there.
 *  Thread Starter [mg_scr](https://wordpress.org/support/users/mgelly/)
 * (@mgelly)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/extending-functionalities/#post-16521113)
 * Hi, thank you for the changes.
 * About the hidden fields / text field not displayed, we had the issue on some 
   websites with another technology (custom CMS / Symfony). And we saw that some
   automatic bots were clever enough to ignore type=hidden fields, after changing
   the system with text field (not displayed for users comfort), we had more success.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Extending functionalities’ is closed to new replies.

 * ![](https://ps.w.org/la-sentinelle-antispam/assets/icon-256x256.png?rev=1932361)
 * [La Sentinelle antispam](https://wordpress.org/plugins/la-sentinelle-antispam/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/la-sentinelle-antispam/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/la-sentinelle-antispam/)
 * [Active Topics](https://wordpress.org/support/plugin/la-sentinelle-antispam/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/la-sentinelle-antispam/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/la-sentinelle-antispam/reviews/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [extend](https://wordpress.org/support/topic-tag/extend/)

 * 2 replies
 * 2 participants
 * Last reply from: [mg_scr](https://wordpress.org/support/users/mgelly/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/extending-functionalities/#post-16521113)
 * Status: resolved