OvenPress Cloudshield
Contributors: WPOven
Requires at least: 6.6
Tested up to: 7.1
Stable tag: 1.0.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Introduction
OvenPress CloudShield is a robust security plugin designed to safeguard your WordPress website using Cloudflare's powerful capabilities. This plugin provides comprehensive protection against various threats, ensuring the safety and performance of your site.
Prerequisites
This plugin needs to create a dummy custom rule. This step will generate the unique ID required for http_request_firewall_custom. This ID is essential for creating and managing your actual custom rules, after creation delete the dummy rule to avoid clutter in your WAF dashboard.
Create a Dummy Custom Rule in Cloudflare

Follow these steps to set up a custom rule for your domain.
Step 1: Access Cloudflare WAF
- Log in to your Cloudflare Account.
- Select your domain from the dashboard.
- Click on Security in the left-hand menu.
- Inside the Security section, click on WAF (Web Application Firewall).
Step 2: Create a New Rule
- In the WAF security dashboard, click on Custom Rules.
- Click Create Rule to start a new rule.
- Enter a descriptive name for the rule.
Step 3: Define Rule Conditions
| Setting | Description |
|---|---|
| Field | Select URI, URI Full, or another appropriate field. |
| Operator | Choose from wildcard, equals, etc. |
| Value | Enter the specific value (e.g., /example.php). |
Step 4: Choose an Action
| Action | Description |
|---|---|
| Managed Challenge | Presents an automatic security check. |
| JS Challenge | Requires JavaScript execution to proceed. |
| Interactive Challenge | Presents a CAPTCHA-like test. |
| Block | Blocks access to the matching request. |
| Skip | Skips other security checks for the request. |
Step 5: Deploy & Manage Rules
- Click Deploy to activate the rule.
- To delete a rule:
- Click the three dots on the right side of the dashboard.
- Select Delete.
🔹 Why Use Custom Rules?
- Enhances security by blocking unwanted requests.
- Helps mitigate attacks like SQL injection and bot traffic.
- Provides flexibility to control access based on URLs or conditions.
Ensure the dummy custom rule is deleted after deploy to maintain a clean and organized rules list.
Create and Use a Secure API Token in Cloudflare
Step 1: Navigate to API Token Section
- Log in to your Cloudflare Account.
- Click on your profile icon and select My Profile.
- Scroll down to the API Tokens section and click Create Token.
Step 2: Configure API Token
- Click Get Started under Create Custom Token.
- Token Name: Choose a descriptive name.
Permissions:
| Feature | Access Level |
|---|---|
| Zone WAF | Edit, Read |
| Zone | Read |
Zone Resources:
- Select applicable zones.
TTL & Expiry:
| Setting | Value |
|---|---|
| Client IP Address Filtering | Not required |
| TTL (Time to Live) | Not required |
| Start Date | Today |
| End Date | As needed |
⚠️ If the token expires, WAF rules cannot be managed.
Step 3: Generate & Use the Token
- Click Continue to Summary → Create Token.
- Copy the generated token.
- Enter the API Token and your email into the settings form.
- Select the domain and click Save Changes.
Using an API Token is more secure and recommended over the Global API Key as it provides fine-grained permissions and an expiration period.
Installation
Download the Plugin
- To get the latest version of OvenPress Cloudshield :
- Download directly from the GitHub repository: Download.
Install the Plugin
- Log in to your WordPress admin dashboard.
- Go to Plugins Plugins > Add New.
- Click Upload Plugin button.
- Select the downloaded ZIP file and click Install Now.
Activate the Plugin
- Once installed, click Activate Plugin to start using it.
Configure Cloudshield Settings
Once activated, go to OvenPress > Cloudshield in the WordPress admin menu.

| Setting | Description | Options | Required |
|---|---|---|---|
| Enable Logs | Allows logging of events and actions. | N/A | No |
| Logs Retention | Defines how long logs will be retained. | 1 day only, 7 days (default), Unlimited | No |
| Authentication Mode | Determines the authentication method used to connect to Cloudflare. | API Token, API Key | Yes |
| Cloudflare e-mail | The email address associated with the Cloudflare account. | N/A | Yes |
| Cloudflare API Token | API token required to authenticate and connect with Cloudflare. | N/A | Yes |
| Save Changes Button | Saves all modified settings. |
Cloudshield Controller

WAF Settings
Login Protection Settings
The Login Protection section enhances security by preventing unauthorized access, brute force attacks, and restricting login access based on country.

| Setting | Description | Required |
|---|---|---|
| Enable Cloudflare Captcha | Enables Cloudflare Captcha to protect your website from bots and ensure only legitimate traffic can access it. | No |
| Block Cloudflare XMLRPC | Blocks Cloudflare XMLRPC to prevent unauthorized access and enhance website security against brute force attacks. | No |
| Block Wrong Login | Blocks wrong login attempts after multiple failed tries to enhance security and prevent brute force attacks. | No |
| Request Rate | Defines the maximum number of incorrect login attempts allowed before blocking further attempts. | No |
| Enable Country Block | Restricts login access, allowing only specified countries. | No |
| Allow Country | Allows login access only from selected countries. | No |
DDoS Protection Settings
The DDoS Protection section provides security settings to prevent denial-of-service attacks and unauthorized access by bots or malicious users.

| Setting | Description | Required |
|---|---|---|
| Enable Request Rate | Enables request rate limiting to block IPs that exceed a specified number of requests within a given time period. | No |
| Request Rate | Defines the maximum number of requests allowed per time period. Rate limiting rules control request rates to prevent abuse, DDoS attacks, and server overload. Example Value: 10 (Adjustable via slider or input field). | No |
| Enable IP Block | Restricts access from specific IP addresses. | No |
| Block IP | Allows users to manually enter and block specific IP addresses. If an IP is selected, the system will prevent requests from that IP, improving security. | No |
Crawler Protection Settings
The Crawler Protection section provides security settings to prevent unwanted bot activity and optimize website performance.

| Setting | Description | Required |
|---|---|---|
| Enable Block NON SEO | Blocks non-search engine bots and scrapers from accessing your site. | No |
| Enable Block AI Crawlers | Prevents automated bots and crawlers from accessing your site. | No |
| Enable 404 Protection | Blocks excessive 404 requests. | No |
Features
-
Cloudflare-Integrated Login Captcha: Adds an intelligent login CAPTCHA to secure your admin login page and prevent unauthorized access attempts.
-
IP Blocking: Blocks IP addresses based on specific conditions, including:
- Multiple failed login attempts.
- Custom-defined IP blocks.
- Excessive request rates.
-
Country Blocking: Restrict access to your site from specific countries, giving you full control over regional access.
-
XMLRPC Blocking: Disables XMLRPC endpoints to prevent exploitation and brute-force attacks targeting this protocol.
-
Crawler Management: Blocks unwanted crawlers, such as non-SEO crawlers and AI bots, to ensure only legitimate traffic reaches your website.
-
404 Protection: Provides additional safeguards against 404 client errors, such as bad requests, to enhance server performance and resilience.
Frequently Asked Questions
-
What does OvenPress CloudShield do?
OvenPress CloudShield secures your WordPress site by integrating Cloudflare features like login CAPTCHA, IP blocking, country restrictions, bot management, and XMLRPC protection. -
How does the plugin block unwanted crawlers?
The plugin identifies and blocks non-SEO and AI crawlers, ensuring only legitimate traffic interacts with your site, reducing server load and enhancing performance. -
Can I block specific countries from accessing my website?
Yes, OvenPress CloudShield allows you to restrict access from specific countries through its country-blocking feature. -
Does the plugin protect against brute-force login attacks?
Absolutely. The plugin uses Cloudflare's CAPTCHA and IP blocking to prevent brute-force attacks and unauthorized access attempts effectively. -
How is IP blocking managed?
IPs can be blocked based on failed login attempts, custom rules, high request rates, or other suspicious activity patterns. -
Does OvenPress CloudShield work with all WordPress setups?
Yes, the plugin is compatible with most WordPress setups and works seamlessly with Cloudflare to enhance your site's security.
Changelog
-
1.0.1
- Renamed the plugin branding from WPOven to OvenPress.
-
1.0.0
- Initial release with Added Cloudflare integration with CAPTCHA, IP blocking, country restrictions, XMLRPC protection, crawler management, 404 protection, and a user-friendly security settings interface.
Upgrade Notice
- Regularly update the plugin to ensure compatibility with future WordPress versions.