Hide My WP Ghost
  • Features
    • All Features
    • Brute Force Protection
    • Limit Login Attempts
    • Website Activity Log
    • Website Security Check
    • Security Tweaks
    • Change Wp-Admin URL
  • Pricing
  • Help
  • Contact
  • Features
    • All Features
    • Brute Force Protection
    • Limit Login Attempts
    • Website Activity Log
    • Website Security Check
    • Security Tweaks
    • Change Wp-Admin URL
  • Pricing
  • Help
  • Contact
Buy Now
  • Home
  • How To
  • Add Brute Force Protection To Elementor Login Forms With WP Ghost

Add Brute Force Protection to Elementor Login Forms with WP Ghost

July 13, 2024

Category:

Prove your humanity: 6   +   7   =  
Prove your humanity: 0   +   6   =  
Prove your humanity: 3   +   8   =  
Prove your humanity: 10   +   9   =  
Prove your humanity: 6   +   9   =  
Prove your humanity: 0   +   4   =  
Prove your humanity: 7   +   2   =  
Moved

This tutorial has moved to the new WP Ghost Knowledge Base where each feature is presented in detail.

View on new site
Table of Contents
  • When You Need the Brute Force Shortcode
  • Step 1 – Activate Brute Force Protection
  • Step 2 – Add the Shortcode to Elementor
  • Using the Shortcode with Other Page Builders
  • What About WooCommerce Login Forms
  • Frequently Asked Questions
    • Do I need the shortcode on the default WordPress login page?
    • Which reCAPTCHA type works best with Elementor?
    • Can I use this shortcode on registration forms too?
    • The reCAPTCHA does not appear after adding the shortcode.
    • Does WP Ghost modify WordPress core files?

Add WP Ghost’s brute force reCAPTCHA protection to custom Elementor login forms using the shortcode. WP Ghost automatically protects the default WordPress login page, but custom page builder forms need the shortcode to enable the same protection.

When You Need the Brute Force Shortcode

WP Ghost’s Brute Force Protection works automatically on the standard WordPress login page (wp-login.php). It adds reCAPTCHA, limits login attempts, and blocks IPs that exceed the threshold. No setup is needed for the default login form.

But if your site uses a custom login page built with Elementor, Divi, WPBakery, or another page builder, the brute force protection does not load on those forms by default. Page builder login forms use their own form handling, so WP Ghost can not inject the protection automatically.

The shortcode solves this. Place it inside any page builder form, and it renders the same reCAPTCHA widget and attempt-limiting logic that the default login page uses. This tutorial shows the Elementor workflow, but the shortcode works in any builder that supports WordPress shortcodes.

Elementor login form with WP Ghost brute force reCAPTCHA protection added via shortcode

Step 1 – Activate Brute Force Protection

The shortcode only works when Brute Force Protection is active. If you have not enabled it yet:

1. Go to WP Ghost > Brute Force > Settings.

2. Switch on Use Brute Force Protection.

3. Select your preferred reCAPTCHA type. You have four options: Math reCAPTCHA (no API keys needed, simplest setup), Google reCAPTCHA V2 (the “I’m not a robot” checkbox), Google reCAPTCHA V3 (invisible, behavior-based scoring), or Google reCAPTCHA Enterprise (advanced risk analysis for high-value sites).

4. Click Save.

For the full reCAPTCHA configuration guide including API key setup, see the Brute Force Protection tutorial.

Step 2 – Add the Shortcode to Elementor

5. Open the page containing your login form in the Elementor editor.

6. If you have not created a login form yet, drag the Elementor Pro Login widget onto your page.

7. In the Login widget settings, go to the Form Fields section.

8. Add a Shortcode field and enter:

[hmwp_bruteforce]

9. Save and publish the page.

The reCAPTCHA widget now appears on your Elementor login form. It renders whichever reCAPTCHA type you selected in WP Ghost’s Brute Force settings. If you later switch from Math reCAPTCHA to Google V3, the shortcode automatically renders the V3 widget. No need to change the shortcode itself.

Failed login attempts are tracked and IPs are blocked according to your Brute Force settings (max failed attempts, ban duration, lockout message).

Using the Shortcode with Other Page Builders

The shortcode works anywhere WordPress shortcodes are supported. Here is how to add it to other popular page builders:

Divi. Add a Code module inside your login form section. Paste in the code field.

WPBakery. Add a Text Block or Raw HTML element inside your form layout. Enter .

Beaver Builder. Add an HTML module inside the form section and enter the shortcode.

Bricks. Use a Shortcode element and paste .

The shortcode renders the same reCAPTCHA widget regardless of which builder you use.

What About WooCommerce Login Forms

WooCommerce login forms have their own toggle in WP Ghost > Brute Force > WooCommerce > WooCommerce Support. WP Ghost auto-detects WooCommerce login forms and adds protection automatically when this option is enabled. You do not need the shortcode for WooCommerce login forms.

Use the shortcode only for custom-built forms that WP Ghost can not auto-detect, like page builder login widgets and custom registration forms.

Frequently Asked Questions

Do I need the shortcode on the default WordPress login page?

No. WP Ghost automatically adds brute force protection to the standard WordPress login page (wp-login.php). The shortcode is only needed for custom login forms built with page builders that do not use the default WordPress login mechanism.

Which reCAPTCHA type works best with Elementor?

All four types work with Elementor. Math reCAPTCHA is the simplest because it requires no API keys and has no external dependencies. Google reCAPTCHA V3 is invisible and provides the smoothest user experience. Choose based on your preference for simplicity vs. user experience.

Can I use this shortcode on registration forms too?

Yes. The shortcode works on any form where you want brute force protection, including custom registration forms, membership signup forms, and any other form that accepts user credentials. Place the shortcode inside the form to add reCAPTCHA protection.

The reCAPTCHA does not appear after adding the shortcode.

Make sure Brute Force Protection is enabled in WP Ghost > Brute Force > Settings. The shortcode only renders the reCAPTCHA widget when Brute Force Protection is active. Also clear any page cache and check that the shortcode is placed inside the form area, not outside it.

Does WP Ghost modify WordPress core files?

No. The shortcode renders through WordPress’s standard shortcode API. No core files are modified. Removing the shortcode removes the reCAPTCHA widget instantly.

Tags:

  • How to Add Files to "Hide WordPress Common Files" in WP Ghost
    Previous
    How to Add Files to "Hide WordPress Common Files" in WP Ghost
  • How to Remove the Sitemap Author and Style in WordPress with WP Ghost
    Next
    How to Remove the Sitemap Author and Style in WordPress with WP Ghost
  • Installation & Setup
    • Download plugin
    • Activate Hide My WP Ghost
    • Setup in Safe Mode & Ghost Mode
  • Customize Paths
    • Change wp-admin Path
    • Change wp-login Path
    • Hide Language Switcher
    • Change Author Path
    • Change Lost Password Path
    • Change Register Path
    • Change Logout Path
    • Change Activation Path
    • Change admin-ajax.php Path
    • Change Paths in Ajax Calls
    • Change wp-content Path
    • Change wp-includes Path
    • Change uploads Path
    • Change comments Path
    • Change Plugins Path
    • Change Themes Path
    • Change Rest API Path
    • Hide RSD Endpoint
    • Disable XML-RPC access
    • Hide WordPress Common Paths
    • Hide WordPress Common Files
    • Add Security Headers for XSS
    • Firewall Against Script Injection
    • Block Theme Detectors
    • Remove Unsafe Headers
    • Disable Directory Browsing
  • Security Tweaks
    • Redirect Hidden Paths
    • Login Redirect URL
    • Logout Redirect URL
    • Change Paths For Logged Users
    • Change Paths In Cached Files
    • Change Relative to Absolute URLs
    • Change Paths in Sitemaps XML
    • Change Paths in Robots.txt
    • Hide Admin Toolbar
    • Hide WordPress Version
    • Hide HTML Comments
    • Hide IDs from META Tags
    • Hide WordPress Generator
    • Hide Emoji icons
    • Disable Embed scripts
    • Disable WLW Manifest scripts
    • Disable DB Debug in Frontent
    • Disable Right Click
    • Disable Copy-Paste
    • Disable Drag-Drop
    • Disable View-Source
    • Disable Inspect Element
    • Login Page Design
  • URL Mapping and Text Mapping
    • URL Mapping
    • Text Mapping
    • CDN URLs
    • Optimize CSS and JS files
  • Brute Force Attack Protection
    • Activate Brute Force Protection
    • Math Captcha Protection
    • Google reCaptcha V2
    • Google reCaptcha V3
    • Ban IP addresses
    • Whitelist IP addresses
    • Blocked IPs Report
  • Firewall and Geo Security
    • 8G Firewall
    • Geo Security
    • Country Blocking
    • Whitelist IPs
    • Whitelist Paths
    • Blacklist IPs
    • Block User Agents
    • Block Referrers
    • Block Hostname
  • Temporary Logins
    • Global Settings
    • Create Temporary User
    • Edit Temporary User
    • Lock/Unlock Temporary User
    • Delete Temporary User
    • Copy Temporary Login Link
  • Two Factor Authentication
    • Activate 2FA Feature
    • Setting up 2FA Code Scan
    • Setting up 2FA Email Code
    • 2FA Login Monitor
    • Magic Link Login
  • Security Threats Log
    • Activate Security Threats Log
    • Reading Threats Report
    • Responding to Threats
    • GEO Threat Map
  • User Events Log
    • Activate Users Events Log
    • Log User Roles
    • Check User Events Log
    • User Events Email Alerts
  • Website Security Check
    • Run a Website Security Check
    • All The Security Tasks
  • Advanced WP Security
    • Custom Safe URL Parameter
    • Must Use Plugin Loading
    • Priority & Normal & Late Loading
    • Late Loading
    • Add Rewrites in WP Rules Section
    • Clean Login Page
    • Email Notification
    • Preset Security Options

Get Protected

  • Pricing & Plans
  • Install Free Version
  • Free vs Premium
  • Free Security Check
  • One-Click Security Presets
  • Quick Setup Guide
  • Best Practice Settings

Top Features

  • Hide wp-admin & wp-login
  • 7G + 8G Firewall
  • Brute Force Protection
  • 2FA & Passkey Login
  • Country Blocking
  • Security Headers
  • Security Threats Log
  • Temporary Logins

Resources

  • Knowledge Base
  • FAQs
  • Best Practice Guide
  • Plugin Compatibility
  • Theme Compatibility
  • Why WP Ghost
  • Changelog

Company

  • Contact Support
  • Affiliate Program
  • Agency White Label
  • Media Kit
  • Terms of Use
  • Privacy Policy
  • About Us
© 2016 - 2026 WP Ghost. All rights reserved. Powered by AISQ.
Hide My WP uses cookies on the website to give you the most relevant experience by remembering your preferences and repeat visits.
Ok Reject
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT