Connect with us

Wordpress Tips

Add a Hidden Honeypot Field to WordPress Login Forms

Those of you who have run a WordPress site for a while have probably noticed bots attacking your forms from time to time. Many malicious ones target login forms. You can always install a security plugin to handle them. Adding a honeypot field to your login forms is another way to catch and ban bots. Here is how to get it done:

Currently trending WordPress plugins

The above code snippet simply adds a hidden field to your form, and when it is filled by a bot, they are blocked. You can use the same approach to protect your Contact Form 7 forms. Here is how:

To make sure your honeypot field stays hidden, simply hide it with CSS (display:none). You can take this to the next level by integrating it with a firewall plugin to block IPs automatically.

[where to get it]

Continue Reading
You may want to check out:
*some of our articles and lists include affiliate links to fund our operations (e.g. Amazon, Elegant Themes, Envato). Please read our disclaimer on how we fund Exxponent.
You may also like...
Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

More in Wordpress Tips

To Top