Title: Few things..
Last modified: September 2, 2016

---

# Few things..

 *  [taekvideo](https://wordpress.org/support/users/taekvideo/)
 * (@taekvideo)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/few-things/)
 * Just a few things…
 * #1
    `if ( ! empty( $_POST['honeypot-comments'] ) )` How would this ever execute
   if the id and name of your honeypot are 25 character random strings?
 * #2
    `<input type="hidden" id="'. RandomString(25) .'" name="'. RandomString(25).'"/
   >';` Bots aren’t really going to fill out a type=”hidden” field… that’s more 
   of a vinegarpot than a honeypot. You should make it a textarea to entice them,
   and hide it from real users with css (or javascript is even better)
 * #3
    Even if both of those are done right, some spambots will still get through
   because they ignore the form you send them and just POST a standard WordPress
   form. To block those, you’d need to change the “name” attribute of the comment
   textarea to something else… which is a bit of a pain to do without breaking anything
   but it’s possible.

The topic ‘Few things..’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/honeypot-comments.svg)
 * [Honeypot Comments](https://wordpress.org/plugins/honeypot-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/honeypot-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/honeypot-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/honeypot-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/honeypot-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/honeypot-comments/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [taekvideo](https://wordpress.org/support/users/taekvideo/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/few-things/)