Skip to main content

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​

Cloudshield Settings

Follow these steps to set up a custom rule for your domain.

Step 1: Access Cloudflare WAF
  1. Log in to your Cloudflare Account.
  2. Select your domain from the dashboard.
  3. Click on Security in the left-hand menu.
  4. Inside the Security section, click on WAF (Web Application Firewall).
Step 2: Create a New Rule
  1. In the WAF security dashboard, click on Custom Rules.
  2. Click Create Rule to start a new rule.
  3. Enter a descriptive name for the rule.
Step 3: Define Rule Conditions
SettingDescription
FieldSelect URI, URI Full, or another appropriate field.
OperatorChoose from wildcard, equals, etc.
ValueEnter the specific value (e.g., /example.php).
Step 4: Choose an Action
ActionDescription
Managed ChallengePresents an automatic security check.
JS ChallengeRequires JavaScript execution to proceed.
Interactive ChallengePresents a CAPTCHA-like test.
BlockBlocks access to the matching request.
SkipSkips other security checks for the request.
Step 5: Deploy & Manage Rules
  1. Click Deploy to activate the rule.
  2. 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.
warning

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
  1. Log in to your Cloudflare Account.
  2. Click on your profile icon and select My Profile.
  3. 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:

FeatureAccess Level
Zone WAFEdit, Read
ZoneRead

Zone Resources:

  • Select applicable zones.

TTL & Expiry:

SettingValue
Client IP Address FilteringNot required
TTL (Time to Live)Not required
Start DateToday
End DateAs needed

⚠️ If the token expires, WAF rules cannot be managed.

Step 3: Generate & Use the Token
  1. Click Continue to Summary → Create Token.
  2. Copy the generated token.
  3. Enter the API Token and your email into the settings form.
  4. Select the domain and click Save Changes.
warning

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.

Cloudshield Settings Cloudshield Settings

SettingDescriptionOptionsRequired
Enable LogsAllows logging of events and actions.N/ANo
Logs RetentionDefines how long logs will be retained.1 day only, 7 days (default), UnlimitedNo
Authentication ModeDetermines the authentication method used to connect to Cloudflare.API Token, API KeyYes
Cloudflare e-mailThe email address associated with the Cloudflare account.N/AYes
Cloudflare API TokenAPI token required to authenticate and connect with Cloudflare.N/AYes
Save Changes ButtonSaves all modified settings.

Cloudshield Controller​

Cloudshield Settings

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.

Cloudshield Settings

SettingDescriptionRequired
Enable Cloudflare CaptchaEnables Cloudflare Captcha to protect your website from bots and ensure only legitimate traffic can access it.No
Block Cloudflare XMLRPCBlocks Cloudflare XMLRPC to prevent unauthorized access and enhance website security against brute force attacks.No
Block Wrong LoginBlocks wrong login attempts after multiple failed tries to enhance security and prevent brute force attacks.No
Request RateDefines the maximum number of incorrect login attempts allowed before blocking further attempts.No
Enable Country BlockRestricts login access, allowing only specified countries.No
Allow CountryAllows 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.

Cloudshield Settings

SettingDescriptionRequired
Enable Request RateEnables request rate limiting to block IPs that exceed a specified number of requests within a given time period.No
Request RateDefines 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 BlockRestricts access from specific IP addresses.No
Block IPAllows 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.

Cloudshield Settings

SettingDescriptionRequired
Enable Block NON SEOBlocks non-search engine bots and scrapers from accessing your site.No
Enable Block AI CrawlersPrevents automated bots and crawlers from accessing your site.No
Enable 404 ProtectionBlocks 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.