Contact Form 7: Check Box Customization To Help Prevent Spammers

by Kharim Tomlinson on January 28, 2013 · 35 comments

in Blogging Tips, Plugins, Tutorial

contact form 7

Contact Form 7 is one of the plugins used by WordPress blog owners so as to have a contact form on their blog as that their blog owners can easily send email to that blog owner.

Not only that, it can also be used as a form of accepting guest posts, but of course this depends on how you customize it for your blog.

One of my blog readers visited my “Contact Me” page and noticed the check box on my contact form. If that check box is not ticked then it is impossible for an email to be sent to me. So he wanted to find out how I added this check box to my Contact Form 7 WordPress plugin.

This is just a small tutorial post to help out my blog reader and hope that it will benefit others as well.

Preview Of My Contact Page

contact for 7 with check box

How To Add Check Box On Contact Form 7

First thing you want to do is install the plugin on your WordPress blog if you haven’t done so as yet.

After you install the plugin, go to the setting page for the Contact Form 7 plugin. Select to edit the contact form for your contact page.

If you notice on the right hand section when editing the contact form you will see a drop down menu labeled “Generate Tag”. You can use it to generate text fields, buttons and other stuff for your contact form.

You will see an option on the drop down list called Acceptance. This tag is used to create the check box to help prevent spammers.

Look at the image below.

check box tag

 After clicking the Acceptance option from the drop down list, it will generate the code for you to insert on the form. The code that should be copied will be hi-lighted in brown.

contact form acceptance tag

Copy the code and what you want to do is to paste that code right before the “Send Email” button. This way your blog visitors who want to contact you will see the check box and will be required to tick that box if they want to send the email to you. It is also important to add a label beside it asking your blog visitor to check to box to confirm that they are human or not a spammer.

acceptance code in contact form


Fill out the other settings with your email and that should do it.

Your contact form will now look something like this below.


contact for 7 with check box


My Contact Form 7 Coding

If  you want your contact form 7 to look exactly like mine, then you can copy the code below and paste it inside your contact form.

<p><strong>Your Name <font color="red">(required)</font></strong><br/>
<p><strong>Your Email <font color="red">(required)</font></strong><br/>
<p><strong>Subject</strong> <font color="red">(what is your email about)</font><br/>
<p><strong>Your Website </strong> (optional)<br/>
<p><strong>Please Type Your Message</strong><br/>
<p> <strong> Confirm You Are Not A Spammer <font color="red">(required)</font>
<font color="grey">(to prevent robots from sending me spammed emails)</font></strong>

Have fun and all the best in blogging!

Please let me know if it works and feel free to contact me if you need anymore tutorials.

Article By | View all 234 post by this author.

Hello, My name is Kharim Tomlinson and I am the proud owner of this blog. I am a 28 years-old Jamaican who enjoys blogging. Please feel free to leave a comment and subscribe to this blog. Thanks for your visit!

Leave a Comment - Speak Your Mind

Sign Up To FREE Blogging Tips. No spam guaranteed!

CommentLuv badge

This blog uses CommentLuv Premium which allows you to put your keywords with your name if you have had 0 approved comments. Use your real name and then @ your keywords (maximum of 3)

{ 35 comments… read them below or add one }

Suresh Khanal 1 January 28, 2013 at 8:39 pm

Thank you Kharim for solving my query about the GASP looking feature in Contact form. I’m going to implement in my blog soon.


Kharim 2 February 5, 2013 at 7:39 pm

You are welcome Suresh and thanks for giving me an idea for this post. :)


Jamy 3 January 29, 2013 at 3:25 am

Great thank you for the code as there are lots of spammers still working on internet after the updates of search engines this plugin will help a lot to save a site.


Kharim 4 February 5, 2013 at 7:40 pm

Hey Jamy,

Yep those spammers just won’t stop, so this is a great way to keep them from spamming your email inbox.

Thanks for the comment.


jawad zaib 5 January 29, 2013 at 3:28 am

nice tutorial Kharim about contact form 7 but i am using the default contact form which comes with my theme so should i add some plugin or the check box because i don’t have a check box in my form is there any plugin that you can tell me to use with it…
jawad zaib recently posted…Huawei Ascend G600My Profile


Kharim 6 February 5, 2013 at 7:43 pm

Hey Jawad,

Great to know that your theme came with a contact form built in it. Well as for a plugin check box, I am not sure where to find that.

What you could so is ask your theme creators to help you out in adding one.

Thanks for the comment and all the best to you.


sarika deshmukh from Recruitment Consultants 7 January 30, 2013 at 2:24 am

Hello Dear

finally i was waiting for your i read your post really this post is excellent post what a amazing plugin, thanks for the sharing me


Kharim 8 February 5, 2013 at 7:44 pm

You are welcome Sarika and thanks for reading and also leaving a comment.


Bradley Johnson 9 January 30, 2013 at 4:38 am

Thank you for sharing this with us. Given the rampant black hat SEO even after google introduced panda and penguin updates meant to curb dirty tactics in SEO there is need to take caution because there are some individuals out there who just like to do dirty work of spamming for fun. But with this tool the war against the spammers is coming to an end.


Kharim 10 February 5, 2013 at 7:45 pm

Hey Bradley,

Yep this little customization will help to keep those spammers out.

Thanks for the comment.


Ali usman 11 January 31, 2013 at 9:59 am

Very important but I don’t know why people use spam bot or any bot for comment only to save time but I think they don’t know they are wasting time on it.
Ali usman recently posted…National Materials Science Research Institute Planned to be Established in PakistanMy Profile


Kharim 12 February 5, 2013 at 7:51 pm

Hey Ali,

I totally agree with you. I never accept spam on this blog and also hate them in my inbox. So this is the reason for this contact form 7 tweak.

Thanks for the comment.


Purnima from seo sydney 13 January 31, 2013 at 12:57 pm

Hey Kharim ,
I am new to the blogging world hence I am always on a lookout for advice . I had heard about Contact Form 7 but was not much updated about its benefits . You have explained the usage in a simplified and step by step manner .


Kharim 14 February 5, 2013 at 7:38 pm

Hey Purnima,

Glad that this article could be an eye-opener to you and helped you to gain more knowledge.

Thanks for the comment.


Fatima from sell used guns
15 February 1, 2013 at 2:28 pm

Contact forms are a must-have and there’s nothing like a spam-proof contact form. Thanks for the informative share.


Kharim 16 February 5, 2013 at 7:37 pm

You are welcome Fatima and thanks for the comment.


John Mak 17 February 3, 2013 at 3:57 am

Great tips Kharim. Even though we try to protect our sites from anything unwanted, it is still difficult to avoid it. Any try though is good that brings positive results. Thanks for sharing!

John Mak recently posted…USB 3.0 Protocol &#038; Thunderbolt Review: A Reason Good Enough to Get a MacMy Profile


Kharim 18 February 5, 2013 at 7:36 pm

Hey John Mak,

Yeah those spammers can be so annoying at times.

Thanks for the comment.


Aayna from excel 2013 training online 19 February 3, 2013 at 4:13 am

This post is of immense value to me. I am a newbie into the field of blogging, so got a lot of essential learning through this detailed guide. Thanks for sharing the informative stuff about contact form 7. Indeed helpful!!


Kharim 20 February 5, 2013 at 7:34 pm

Hey Aayna,

You are welcome. So happy that this article could be of some help to you. If you ever need any help then feel free to contact me.

Thanks for the comment.


abdelrhman 21 February 4, 2013 at 6:33 am

Great and useful plugin i already applied your easy to follow steps to use it right now .. Big thanks for sharing :)


Kharim 22 February 5, 2013 at 7:25 pm

You are welcome and thanks for the comment.


Tim 23 February 5, 2013 at 11:12 am

Very informative post Kharim! I use this on many of my WP sites, and it is actually easy to use and works well. Great share!!!


Kharim 24 February 5, 2013 at 7:15 pm

Hey Tim,

Contact Form 7 is a great contact plugin, and glad to know that you are using it on your blog.

Thanks for the comment.


Ferb 25 February 7, 2013 at 4:12 am

Hi Kharim, contact form 7 is definitely faster the way readers can use to contact us but with out the great feature you shared, the amount of spam emails I received every time I check will never go down.

Thanks for this great feature – Ferb


Kharim 26 February 7, 2013 at 8:26 pm

Hey Ferb,

Yep that little feature will help to keep spammers out.

Thanks for the comment.


Naser 27 February 7, 2013 at 8:20 am

Thanks for the share Kharim. This method will act as GASP for contact form :D


Kharim 28 February 7, 2013 at 8:20 pm

You are welcome pal and thanks for the comment.


Matt 29 February 21, 2013 at 11:27 am

Hey Kharim !
Interesting post. Well i think you have solved the problem of number of people including me.
Thanks for your step by step guide.


Kharim 30 February 21, 2013 at 11:33 am

Well Matt, I guess that I have. Thanks for the comment.


Mihai Alexandru 31 February 25, 2013 at 8:34 pm

This article is great and this really is a great tool, but still, for those who know programming, they can all the time modify it even more as they want it to be, so , doing everything with your own hand is the alternative, an alternative which I find a lot better many times.

That is what I did on my websites where comments are allowed.

Thanks for the “SCRIPT”.


Kharim 32 February 26, 2013 at 9:06 am

Hey Mihai,

Spammers are annoying and they make our blog look messy. So I have do come up with some way to prevent their spam mails as well.

You are welcome and thanks for the comment.


Dicks 33 March 10, 2013 at 10:57 am

Thank you very much for the tutorial, it is useful for me as my contact form at my blogs have a lot of spamming comments.
I will try it. Thanks.
Dicks recently posted…Menghitung Biaya Pemakaian Peralatan ListrikMy Profile


Kharim Tomlinson 34 March 11, 2013 at 9:46 am

You are welcome and thanks a lot for the comment.
Kharim Tomlinson recently posted…8 Awesome Tips For Writing An Effective Blog PostMy Profile


Prakash 35 April 23, 2013 at 5:09 am

Its great to have a check box in contact form for preventing the spammers. Thanks fir providing these tips.


Previous post:

Next post: