{"id":18926,"date":"2026-10-21T20:17:41","date_gmt":"2026-10-21T17:17:41","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/protect-contact-form-from-spam\/"},"modified":"2026-10-21T20:17:53","modified_gmt":"2026-10-21T17:17:53","password":"","slug":"protect-contact-form-from-spam","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/protect-contact-form-from-spam\/","title":{"rendered":"How to Protect Your Website Contact Form from Spam and Bots"},"content":{"rendered":"<div class=\"hkb\" dir=\"ltr\">\n<div class=\"hkb-tldr\"><b>In short<\/b>Bots hunt for contact, sign-up and comment forms and use them to send thousands of spam messages and links. This floods your inbox and can push your domain\u2019s email into spam folders. Stop them with a hidden honeypot field, a light CAPTCHA, submission limits and a content filter, and never send automatic replies to an address the visitor types.<\/div>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/10\/hkb-form-spam.webp\" alt=\"Spam bots trying to submit a contact form while a shield blocks them\" width=\"1200\" height=\"630\" loading=\"lazy\" \/><\/figure>\n<h2>Why do spammers target your form?<\/h2>\n<div class=\"hkb-cards\">\n<div class=\"hkb-card\"><i>1<\/i><b>Posting links<\/b><span>Ads or scam links, hoping they get published in comments.<\/span><\/div>\n<div class=\"hkb-card\"><i>2<\/i><b>Abusing your email<\/b><span>If the form sends the visitor a copy, the attacker types the victim\u2019s address and your site sends the spam for them.<\/span><\/div>\n<div class=\"hkb-card\"><i>3<\/i><b>Fake accounts<\/b><span>Automated sign-ups in your store or forum.<\/span><\/div>\n<div class=\"hkb-card\"><i>4<\/i><b>Probing for flaws<\/b><span>Sending code instead of text, looking for flaws such as <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/xss-cross-site-scripting\/\">XSS<\/a>.<\/span><\/div>\n<\/div>\n<h2>7 ways to protect your form<\/h2>\n<ol class=\"hkb-steps\">\n<li><b>Honeypot field:<\/b> A field hidden from visitors that only bots see and fill, so the submission is rejected automatically. Most form plugins support it, and visitors never notice.<\/li>\n<li><b>A light CAPTCHA:<\/b> Such as Cloudflare Turnstile or Google reCAPTCHA v3, which usually run in the background without image puzzles.<\/li>\n<li><b>Time and rate limits:<\/b> Reject submissions sent a second after the page opens, and limit messages per address.<\/li>\n<li><b>A content filter:<\/b> A plugin such as Akismet, or rules that reject messages full of links or spam words.<\/li>\n<li><b>Do not send the visitor a copy:<\/b> \u201cSend me a copy\u201d or auto-replies to an address the visitor types turn your form into a spam tool. Turn them off.<\/li>\n<li><b>Send from an address on your domain:<\/b> Make the sender a real mailbox on your domain and put the visitor\u2019s address in Reply-To. This protects your domain\u2019s reputation.<\/li>\n<li><b>Keep your form plugin updated:<\/b> An outdated plugin may allow file uploads or code execution.<\/li>\n<\/ol>\n<div class=\"hkb-note\"><b>Do not publish your email as plain text:<\/b> bots harvest addresses shown on pages and spam them directly. Use the form instead.<\/div>\n<h2>Which verification should you choose?<\/h2>\n<div class=\"hkb-tbl\">\n<table>\n<thead>\n<tr>\n<th>Method<\/th>\n<th>Pros<\/th>\n<th>Notes<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Honeypot field<\/td>\n<td>Invisible to visitors and easy to enable.<\/td>\n<td>Stops simple bots only.<\/td>\n<\/tr>\n<tr>\n<td>Cloudflare Turnstile<\/td>\n<td>Lightweight, usually no image puzzles.<\/td>\n<td>Needs free keys from a Cloudflare account.<\/td>\n<\/tr>\n<tr>\n<td>Google reCAPTCHA v3<\/td>\n<td>Runs in the background and scores each visitor.<\/td>\n<td>Needs the right score threshold so real visitors are not rejected.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"hkb-hh\">\n<h2>How Hyyat Host protects your site<\/h2>\n<ul>\n<li><strong>Imunify360<\/strong> blocks addresses known for attacks and spam at the server level.<\/li>\n<li>Hosting email scans incoming and outgoing messages and limits spam sending. Learn how to <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/how-can-i-combat-spam-mail\/\">combat spam email<\/a>.<\/li>\n<li>Alerts when sending from your account spikes, so we can help you stop the source quickly.<\/li>\n<\/ul>\n<\/div>\n<h2>Frequently asked questions<\/h2>\n<div class=\"hkb-faq\">\n<details>\n<summary>Why do I still get spam with a CAPTCHA?<\/summary>\n<p>Some messages come from real people or advanced bots. Add a honeypot field and a content filter alongside the CAPTCHA.<\/p>\n<\/details>\n<details>\n<summary>Can form spam affect my domain\u2019s email?<\/summary>\n<p>Yes, if the form sends messages to addresses visitors type. Turn off automatic copies and send from a mailbox on your domain.<\/p>\n<\/details>\n<details>\n<summary>Does a CAPTCHA annoy visitors?<\/summary>\n<p>Modern ones such as Turnstile and reCAPTCHA v3 usually run in the background, so most visitors never notice.<\/p>\n<\/details>\n<\/div>\n<div class=\"hkb-rel\"><b>Related guides<\/b><\/p>\n<ul>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/block-bad-bots\/\">Bad Bots: How to Spot Them and Protect Your Site Without Blocking Google<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/xss-cross-site-scripting\/\">What Is an XSS Attack? Cross-Site Scripting Explained and How to Prevent It<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/brute-force-protection\/\">Brute Force Attacks: How They Work and How We Protect Your Site<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/protect-website-from-hacking\/\">How to Protect Your Website from Hacking: 10 Practical Steps<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.hyyat.com\/en\/kb\/website-protection\/\">All website security guides \u2192<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In shortBots hunt for contact, sign-up and comment forms and use them to send thousands of spam messages and links. This floods your inbox and can push your domain\u2019s email into spam folders. Stop them with a hidden honeypot field, a light CAPTCHA, submission limits and a content filter, and never send automatic replies to [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2744],"doc_tag":[],"class_list":["post-18926","docs","type-docs","status-publish","hentry","doc_category-website-protection"],"year_month":"2026-10","word_count":543,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"Website Security","term_url":"https:\/\/www.hyyat.com\/en\/kb\/website-protection\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=18926"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18926\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=18926"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=18926"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=18926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}