Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository


Use CloudFlare's free geolocation service to restrict access to your site's login page.

Use the power of the cloud and a global CDN to restrict access to your login page.

CloudGuard brings global and cloud driven protection to your login page. Using CloudFlare's free Geolocation service, this super lightweight plugin restricts access to your login page, allowing access to only your chosen countries. This means that any login attempts from the rest of the world will be automatically blocked.

Additionally, this plugin tracks any unauthorized login attempts and displays them on a world map in your dashboard.

  • Protect your login page globally.
  • Reduce server load.
  • Country based IP ranges constantly updated by CloudFlare.
  • Track login attempt statistics via your dashboard.

Why CloudFlare's Geolocation?

There are other plugins which can restrict your login page by geographic location. However, these plugins use your server to detect the IP and compare this to a geographic location. This adds extra overhead to your site, takes up space on your server, and requires frequent updates to keep the IP list relevant.

CloudGuard is different. Since we leverage CloudFlare's geolocation service, your server simply has to read the data, rather than compute and store it locally. CloudFlare does the grunt work, leaving your site safe, secure and optimized.

Note: This plugin requires that you have an account (either free or premium) on CloudFlare with Geolocation enabled.

Has this free plugin helped you? Please consider leaving a rating :)

Author pipdig
Contributors pipdig
Tags access, block, cloudflare, geolocation, ip, login, restrict, security
  1. cloudguard screenshot 1

    Track login attempts from your dashboard.

  2. cloudguard screenshot 2

    Global view of login attempts.

  1. Go to the "Plugins > Add New" page in your WordPress dashboard.
  2. Search for "CloudGuard" and click the install button.
  3. Once installed, go to "Settings > CloudGuard" to complete the setup.


  • Fix issue with new lower case geolocation country codes from CloudFlare.


  • No longer requires CloudFlare plugin to operate.
  • Update country list.
  • Minor refactoring.


  • Add your own custom message if someone is blocked.


  • Add option to reset stats in dashboard widget.


  • Track login attempts on a global map.


  • Initial release!
Version 1.3.3

Requires WordPress version: 4.2 or higher

Compatible up to: 4.7.2

Last Updated 05 Jan 2017

Date Added: 18 Sep 2015

Plugin Homepage


5 stars
3 ratings


Not Enough Data

Works: 0
Broken: 0