It is important to protect your website from bots and spam. Many webmasters use CAPTCHA to determine that the visitor is a real user.
Equally important.Don't use complicated pictures, twisted lettersAnd so on to turn customers off. After all, user experience is the key.
Cloudflare Turnstile CAPTCHA This is solved by simple checkboxes or no checkboxes at all (invisible CAPTCHA), providing a cleaner user experience.
Next, let's find out how to get the most out of the WordPress websiteOn setting up Cloudflare CAPTCHA. the article goes over both methods, provides steps for testing and troubleshooting the issue, and some recommendations.
![图片[1]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.361sale.com/wp-content/uploads/2025/01/20250109105241505-image.png)
Cloudflare CAPTCHA Overview
CAPTCHA It's "Fully automated Turing test for distinguishing computers from humans" abbreviation. This is a security measure that effectively prevents bots and the like from accessing a website.
CAPTCHA requires the user to perform actions that are simple for humans but difficult for robots, such as reading distorted text, selecting a picture containing a specific object, or checking a checkbox.
Cloudflare CAPTCHA is part of Cloudflare's broader security suite that focuses on blocking malicious traffic and preventing bot attacks.
What is Cloudflare Turnstile?
![图片[2]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.361sale.com/wp-content/uploads/2025/01/20250109095504951-image.png)
Cloudflare Turnstile CAPTCHA is a bit different from traditional CAPTCHA in that it is a modern, lightweight solution.
pass (a bill or inspection etc)Removing the image-based challenge, Turnstile passes rotating browser tests and non-interactive JavaScript to ensure smooth form protection. Meaning users don't have to complete the puzzle, optimizing the form submission process.
In addition, there is no need to be an existing Cloudflare customer to use this service; WordPress webmasters can sign up for free and easily integrate Cloudflare Turnstile CAPTCHA into their web forms.
Main features
Key features of Cloudflare CAPTCHA include:
- No user interaction required
- Do not disturb the user
- Non-Interactive JavaScript Challenges
- adaptive protection
- Lightweight and fast
- Free Integration
Turnstile Widget Type
Types of Turnstile widgets include:
- Non-interactive challenges
- If the visitor is suspected of being a robot, challenge with a non-intrusive interaction (e.g. checking a checkbox)
![图片[3]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.361sale.com/wp-content/uploads/2025/01/20250109100647453-image.png)
- Providing Invisible Challenges to Browsers
How to use Cloudflare CAPTCHA?
In the article, I'll add Cloudflare Turnstile CAPTCHA to the website's contact form.
So far it looks that way:
![图片[4]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.361sale.com/wp-content/uploads/2025/01/20250109100841629-image.png)
coerceGetting started with Cloudflare, visit their website and follow the steps below:
- Find and click on the top right corner of the "enrollment "button or "Free Start."
![图片[5]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.cloudways.com/blog/wp-content/uploads/Cloudflare-3.png)
- Add an email address and password to register.
![图片[6]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.cloudways.com/blog/wp-content/uploads/email-address-and-password.png)
After you create an account, you are taken to the Cloudflare dashboard.
- In the left panel, look for " Turnstile ".
- Then, click Turnstile Widgetsto add widgets.
- Next.christenThe widget is easy to recognize later. Here it is named "Security".
- Then, click on "Add hostname "to add the site.
![图片[7]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.cloudways.com/blog/wp-content/uploads/Add-Hostnames.png)
- Now scroll down the page to find and selectWidget Mode.
- strike (on the keyboard)"Save changes"The
![图片[8]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.cloudways.com/blog/wp-content/uploads/widget-mode.png)
- Once the widget is created, an API key is obtained, which is needed in the next step.
![图片[9]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.cloudways.com/blog/wp-content/uploads/API-keys.png)
How to Add Cloudflare Turnstile to WordPress
There are two ways to add Cloudflare CAPTCHA to a WordPress site.
Method 1: Add Cloudflare Turnstile CAPTCHA with WPForms
The most common way to add a Cloudflare Turnstile is with WPForms.
Step 1: Setting up Turnstile on WPForms
- First, go toPlugins>Add New PluginThe
- In the search bar type"WPForms".
- Then.mountingfurthermoreactivateWP Forms plugin.
![图片[10]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.cloudways.com/blog/wp-content/uploads/activate-the-WP-Forms-plugin.png)
- Then, go toWPForms > Settings > CAPTCHAThe
- strike (on the keyboard)Turnstile).
![图片[11]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.cloudways.com/blog/wp-content/uploads/Turnstile.png)
Remember that Cloudflare has provided Site Key respond in singing Secret Key, you can now fill them in here.
- Scroll down and find something you can paste Site Key respond in singing Secret Key of the region.
- If desired, you can also modify the message that is displayed when authentication fails.
- After entering the key, click"Save Settings".
![图片[12]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.cloudways.com/blog/wp-content/uploads/site-key-and-secret-key.png)
Step 2: Enable Turnstile on WordPress Forms
Now that the key has been added, the next step is to enable the form that Turnstile wants to protect.
Follow the steps below:
- Go to WordPressinstrument panelsThe
- In the left panel, go toWPForms > All FormsThe
- Find the form for which you want to enable Cloudflare CAPTCHA.
- Directly below the form, click"Edit."The
![图片[13]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.cloudways.com/blog/wp-content/uploads/WPForms-2.png)
in the event that compiler Options are not shown, you can hover over the form and all options will appear.
- In the editing dashboard, find the left side of the Turnstile, and then click on it.
![图片[14]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.cloudways.com/blog/wp-content/uploads/Editing-dashboard.png)
In doing so, you will see a message indicating that Turnstile is enabled:
![图片[15]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.cloudways.com/blog/wp-content/uploads/Turnstile-enabled.png)
- strike (on the keyboard)"OK."and then click on "Save" .
![图片[16]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.cloudways.com/blog/wp-content/uploads/click-on-Save.png)
That's it, done with the setup.
Now, go check out the front end of the site and check if the widgets are displaying properly.
Here's what my connection table looks like now:
![图片[17]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.cloudways.com/blog/wp-content/uploads/Contact-Form-1.png)
If the form is not built with WPForms, the plugin can still be used to integrate Cloudflare CAPTCHA.
Method 2: Add Turnstile CAPTCHA with free plugin
It is possible to use Simple Cloudflare Turnstile The plugin adds Turnstile to WordPress forms.
- First, go toPlugins>Add New PluginThe
- In the search bar type"Simple Cloudflare Turnstile."The
- Then.mountingfurthermoreActivate Simple Cloudflare Turnstile Plug-ins.
![图片[18]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.cloudways.com/blog/wp-content/uploads/Simple-Cloudflare-Turnstile-plugin.png)
This will take you intoAPI Key SettingThe
- Paste in the relevant input box Site Key respond in singing Secret KeyThe
![图片[19]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.cloudways.com/blog/wp-content/uploads/API-Key-Settings.png)
- Now scroll down and check the forms you want to enable Turnstile for.
![图片[20]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.cloudways.com/blog/wp-content/uploads/turn-Turnstile-on.png)
If you are not using the default WordPress form, you will see the section below, which also includes forms for other plugins. In my example, you can see that it shows the options for WPForms.
- strike (on the keyboard)"Save changes"It's done. It's done.
![图片[21]-如何在WordPress网站上设置Cloudflare Turnstile CAPTCHA:简单教程](https://www.cloudways.com/blog/wp-content/uploads/Integrations.png)
How to test Cloudflare CAPTCHA?
To make sure that everything goes well, you can first test Cloudflare Turnstile CAPTCHA in your development environment.
The following site keys and secret keys are available for testing purposes.
If you want to test the real key locally, you need to set yourTest hostname added to domain whitelistThe
It can be tested with a virtual site key for any domain (including localhost).
Cloudflare recommends that site keys for production environments should not allow local locales (e.g., localhost or 127.0.0.1), but you can optionally add the local locale to the allowed list if desired.
Test key example:
Sitekey | descriptive | visibility |
---|---|---|
1x000000000000000000000000AA | overhead | it can clearly be seen (that this is the case) |
2x000000000000000000000000AB | enduring obstruction | it can clearly be seen (that this is the case) |
1x000000000000000000000000BB | overhead | invisibility |
2x000000000000000000000000BB | enduring obstruction | invisibility |
3x000000000000000000000000FF | Enforcing Interactive Challenges | it can clearly be seen (that this is the case) |
Attention:These virtual site keys will return XXXX.DUMMY.TOKEN.XXXX
Response. The production environment's secret key will reject this token, so for testing, also apply theVirtual Secret KeyThe
Testing and Troubleshooting
If Cloudflare CAPTCHA has been added, here are some ways to test and troubleshoot it:
Test Form Submission
- Go to the WordPress dashboard.
- Select and submit a form with Cloudflare CAPTCHA enabled.
- Check that the form is working as expected (e.g., if the submission goes smoothly, if validation pops up, etc.).
These steps help to ensure that CAPTCHA is functioning properly and to perform initial tests. If you encounter problems, you can further troubleshoot and adjust settings.
Link to this article:https://www.361sale.com/en/32589The article is copyrighted and must be reproduced with attribution.
No comments