{
    "componentChunkName": "component---src-templates-post-index-js",
    "path": "/blog/fixing-spam-on-wordpress",
    "result": {"data":{"post":{"featured":{"src":"feature/photo-1530436098968-cab21a5dfea6.jpg"},"title":"Fixing Spam on WordPress","description":"As if spam wasn&#39;t already infiltrating enough areas of our lives - in our letter boxes, on our phones in our emails - it&#39;s now in our website contact forms. But as much as I would like to earn millions of dollars through a cryptocurrency, I&#39;d also like to keep my contact form to legitimate submissions, thankfully WordPress has a few options for this.","slug":"fixing-spam-on-wordpress","content":"<p>As if spam wasn't already infiltrating enough areas of our lives - in our letter boxes, on our phones in our emails - it's now in our website contact forms. But as much as I would like to earn millions of dollars through a cryptocurrency, I'd also like to keep my contact form to legitimate submissions, thankfully %WordPress has a few options for this.</p>\n<section><h2 id=\"akismet-anti-spam-plugin\"><a href=\"#akismet-anti-spam-plugin\" aria-hidden=\"true\" tabindex=\"-1\"><span class=\"icon icon-link\"></span></a>Akismet Anti Spam Plugin</h2><p><a href=\"https://akismet.com/wordpress/\" target=\"_blank\" rel=\"nofollow\">Akismet</a> is the most popular spam plugin for WordPress websites (and is in the top 3 for most popular WordPress plugins) and it's there for a reason. It takes a couple of minutes to set up and from there it helps to filter out spam submissions for both your contact forms and any comment forms you have on your site. It may already be on your site, if not you can install it under <strong>Plugins</strong> → <strong>Add New</strong> in the admin side menu</p><p></p><figure class=\"\"><picture class=\"\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/install_akismet-800.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/install_akismet-1600.png 2x\" media=\"(min-width: 800px)\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/install_akismet-600.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/install_akismet-1200.png 2x\" media=\"(min-width: 600px)\"><img srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/install_akismet-300.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/install_akismet-600.png 2x, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/install_akismet-900.png 3x\" src=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/install_akismet-300.png\" alt=\"Find Akismet in the plugins section of the WordPress dashboard\" class=\"\" loading=\"lazy\"></picture><figcaption class=\"\"><p>Screenshot of the WordPress dashboard, in the plugins section</p>\n</figcaption></figure><p></p><p>Navigate to <strong>Settings</strong> → <strong>Akismet Anti-Spam</strong> in the side menu and click <strong>Set up your Akismet account</strong> to register your website</p><p></p><figure class=\"\"><picture class=\"\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_admin-800.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_admin-1600.png 2x\" media=\"(min-width: 800px)\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_admin-600.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_admin-1200.png 2x\" media=\"(min-width: 600px)\"><img srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_admin-300.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_admin-600.png 2x, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_admin-900.png 3x\" src=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_admin-300.png\" alt=\"\" class=\"\" loading=\"lazy\"></picture></figure><p></p><p>In the new tab, click <strong>Set Up Your Akismet Account</strong>, then select the plan you want to (if your site is only for personal use, the <em>Personal</em> plan should be fine, if your site is for a business then you need to have at least the <em>Plus</em> plan.</p><p></p><figure class=\"\"><picture class=\"\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_plans-800.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_plans-1600.png 2x\" media=\"(min-width: 800px)\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_plans-600.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_plans-1200.png 2x, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_plans-1800.png 3x\" media=\"(min-width: 600px)\"><img srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_plans-300.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_plans-600.png 2x, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_plans-900.png 3x\" src=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_plans-300.png\" alt=\"\" class=\"\" loading=\"lazy\"></picture></figure><p></p><p>Once you've selected your plan, fill out your details and confirm your subscription (if you've chosen the <em>Personal</em> plan, you'll also be given the option to pay for it anyway).</p><p></p><figure class=\"\"><picture class=\"\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_details-800.png\" media=\"(min-width: 800px)\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_details-600.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_details-1200.png 2x\" media=\"(min-width: 600px)\"><img srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_details-300.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_details-600.png 2x, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_details-900.png 3x\" src=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_details-300.png\" alt=\"\" class=\"\" loading=\"lazy\"></picture></figure><p></p><p>Once you've filled out your details (and paid for your plan), you'll be given an API Key for your website</p><p></p><figure class=\"\"><picture class=\"\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/api_key_akismet-600.png\" media=\"(min-width: 600px)\"><img srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/api_key_akismet-300.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/api_key_akismet-600.png 2x\" src=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/api_key_akismet-300.png\" alt=\"\" class=\"\" loading=\"lazy\"></picture></figure><p></p><p>Copy the API key and paste it into WordPress under the Akismet settings then click <strong>Save Changes</strong>.</p><p></p><figure class=\"\"><picture class=\"\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_api_console-800.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_api_console-1600.png 2x\" media=\"(min-width: 800px)\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_api_console-600.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_api_console-1200.png 2x\" media=\"(min-width: 600px)\"><img srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_api_console-300.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_api_console-600.png 2x, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_api_console-900.png 3x\" src=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/akismet_api_console-300.png\" alt=\"\" class=\"\" loading=\"lazy\"></picture></figure><p></p><p>If you like, you can also change the settings here to define how strict Akismet is with letting spam submissions through.</p></section>\n<section><h2 id=\"captcha-for-wp-forms\"><a href=\"#captcha-for-wp-forms\" aria-hidden=\"true\" tabindex=\"-1\"><span class=\"icon icon-link\"></span></a>Captcha for WP Forms</h2><p>If Akismet isn't enough to stop the spam (or you want to stop it before it gets that far), you can also set up your contact form to show a CAPTCHA to help prevent bots submitting spam to your form. I use <a href=\"https://wpforms.com/\" target=\"_blank\" rel=\"nofollow\">WPForms</a> and <a href=\"https://www.google.com/recaptcha/intro/v3.html\" target=\"_blank\" rel=\"nofollow\">Google reCAPTCHA</a>, but there are many alternatives out there, this is a combination I've found works well and is easy to set up</p><p></p><figure class=\"\"><picture class=\"\"><img srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/form_captcha-300.png\" src=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/form_captcha-300.png\" alt=\"\" class=\"\" loading=\"lazy\"></picture></figure><p></p><p>Under <strong>WPForms</strong> → <strong>Settings</strong> → <strong>reCAPTCHA</strong>, you have the options for setting up reCAPTCHA on your forms.</p><p></p><figure class=\"\"><picture class=\"\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/wpforms_recaptcha-800.png\" media=\"(min-width: 800px)\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/wpforms_recaptcha-600.png\" media=\"(min-width: 600px)\"><img srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/wpforms_recaptcha-300.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/wpforms_recaptcha-600.png 2x, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/wpforms_recaptcha-900.png 3x\" src=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/wpforms_recaptcha-300.png\" alt=\"\" class=\"\" loading=\"lazy\"></picture></figure><p></p><p>In a new tab, go to <a href=\"https://www.google.com/recaptcha/admin\" target=\"_blank\" rel=\"nofollow\">https://www.google.com/recaptcha/admin</a> and login with a Google or GSuite account. It should prompt you to set up a new site and enter the details. Make sure you enter a domain under the <strong>Domains</strong> section (and if you have a test or development site, enter that too). I prefer to use the reCAPTCHA v2 checkbox option, but you can also choose the v2 invisible badge if you prefer. The v3 still has a few issues, so I'd recommend against using that for now. Once you've filled in your site's details, click <strong>Submit</strong> at the bottom</p><p></p><figure class=\"\"><picture class=\"\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/new_recaptcha-800.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/new_recaptcha-1600.png 2x\" media=\"(min-width: 800px)\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/new_recaptcha-600.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/new_recaptcha-1200.png 2x, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/new_recaptcha-1800.png 3x\" media=\"(min-width: 600px)\"><img srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/new_recaptcha-300.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/new_recaptcha-600.png 2x, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/new_recaptcha-900.png 3x\" src=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/new_recaptcha-300.png\" alt=\"\" class=\"\" loading=\"lazy\"></picture></figure><p></p><p>It will then give you two keys to add the reCAPTCHA to your site, a <em>Site Key</em> and a <em>Secret Key</em>.</p><p></p><figure class=\"\"><picture class=\"\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/recaptcha_api-800.png\" media=\"(min-width: 800px)\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/recaptcha_api-600.png\" media=\"(min-width: 600px)\"><img srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/recaptcha_api-300.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/recaptcha_api-600.png 2x, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/recaptcha_api-900.png 3x\" src=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/recaptcha_api-300.png\" alt=\"\" class=\"\" loading=\"lazy\"></picture></figure><p></p><p>Back in WordPress, copy and paste the <em>Site</em> and <em>Secret</em> keys from Google into the fields for WPForms. Make sure you select the correct reCAPTCHA type that you've chosen with Google (checkbox or invisible) and click <strong>Save Settings</strong>.</p><p></p><figure class=\"\"><picture class=\"\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/wpforms_wp_api-800.png\" media=\"(min-width: 800px)\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/wpforms_wp_api-600.png\" media=\"(min-width: 600px)\"><img srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/wpforms_wp_api-300.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/wpforms_wp_api-600.png 2x, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/wpforms_wp_api-900.png 3x\" src=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/wpforms_wp_api-300.png\" alt=\"\" class=\"\" loading=\"lazy\"></picture></figure><p></p><p>Under <strong>WPForms</strong> → <strong>All Forms</strong>, click to edit your contact form. Under the fields on the left hand side, click on the <strong>reCAPTCHA</strong> field, this shouldn't add anything to the form, but you will see a <em>reCAPTCHA Enabled</em> badge in the right top corner of your form. Click <strong>Save</strong> and exit the editor.</p><p></p><figure class=\"\"><picture class=\"\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/recaptcha_form-800.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/recaptcha_form-1600.png 2x\" media=\"(min-width: 800px)\"><source srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/recaptcha_form-600.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/recaptcha_form-1200.png 2x\" media=\"(min-width: 600px)\"><img srcset=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/recaptcha_form-300.png, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/recaptcha_form-600.png 2x, https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/recaptcha_form-900.png 3x\" src=\"https://blog.amyskapers.dev/img/dev/wordpress-forms-spam/recaptcha_form-300.png\" alt=\"\" class=\"\" loading=\"lazy\"></picture></figure><p></p><p>When you load your form, you should now have a reCAPTCHA appearing at the bottom, and form submissions won't submit unless it's been checked (if you have the invisible checkbox, it may not appear every time).</p><hr></section>","date":"04 Feb 2020"}},"pageContext":{"id":"8150e91c-6dd9-575d-9233-a5b9bd32ab85"}},
    "staticQueryHashes": ["1737603086","259994666","2851563141"]}