Title: Blocking locations
Last modified: July 29, 2026

---

# Blocking locations

 *  [netzurepl](https://wordpress.org/support/users/netzurepl/)
 * (@netzurepl)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/blocking-locations/)
 * Hi, 
   Im trying to block some countries using your plugin. I’ve created couple
   of keys from a website that is included in your instruction ([https://www.maxmind.com/en/accounts/current/license-key.](https://www.maxmind.com/en/accounts/current/license-key.)),
   but none of them are working. I’m getting an error:`You have entered an invalid
   [license key](https://www.maxmind.com/en/accounts/current/license-key). If you
   just created the key, please wait 5 minutes before trying to activate it.`I’ve
   been waiting more than 5 minutes.Please help.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/blocking-locations/#post-18979305)
 * Hello [@netzurepl](https://wordpress.org/support/users/netzurepl/),
 * I hope things are going well for you.
 * I am really sorry to hear that you’re facing an issue after testing it on my 
   test site. It works fine. Here is the screenshot for reference: [https://monosnap.ai/file/sSTDM4e28xZCGrTiCqH3P9N9wYJ2fx](https://monosnap.ai/file/sSTDM4e28xZCGrTiCqH3P9N9wYJ2fx).
 * On your end, the issue could be related to the MaxMind Account or to the site
   itself, with conflicting functionality from another plugin or theme.
 * I’ll suggest a few ways to narrow it down to which specific thing is causing 
   the issue:
 * First, navigate here: [https://playground.wordpress.net/](https://playground.wordpress.net/).
   You’ll get a fresh WordPress Installation, install the Defender plugin, add the
   key, and see if that works. If not, then you must check your account at [https://www.maxmind.com/](https://www.maxmind.com/).
 * If that works, then something related to the site setup must be causing a conflict;
   you must conduct a conflict test.
 * Here are the steps for the conflict test:
    – Create a full site backup using 
   a hosting platform or plugin. – Deactivate all the plugins, except the Defender.–
   Try adding the key if you still get the error after 5 minutes. (If you don’t 
   get any error, try reactivating each plugin one by one and keep refreshing the
   Defender page too, to see if activating any plugin changes any behaviour there?)–
   Deactivate the theme and switch to the WordPress default theme. – Repeat the 
   key-adding step and check the outcome.
 * Here is the conflict test documentation, which you can refer to if you feel stuck
   while doing a conflict test.
    [https://wpmudev.com/docs/getting-started/getting-support/#conflict-test](https://wpmudev.com/docs/getting-started/getting-support/#conflict-test)
   [https://wpmudev.com/wp-content/uploads/2015/09/Support-Process-Support-Process.gif](https://wpmudev.com/wp-content/uploads/2015/09/Support-Process-Support-Process.gif)
 * Please share the outcome with us.
 * –
    Kind Regards, Imran Khan
 *  Thread Starter [netzurepl](https://wordpress.org/support/users/netzurepl/)
 * (@netzurepl)
 * [1 week, 1 day ago](https://wordpress.org/support/topic/blocking-locations/#post-18980556)
 * I created a clean WordPress installation in Playground, installed the plugin,
   entered the license key, and I’m getting the same error message.
 * You mentioned that “if not, then you must check your account at [https://www.maxmind.com/](https://www.maxmind.com/).”
 * Could you please point me in the right direction and let me know what exactly
   I should be looking for in my MaxMind account?
 *  Plugin Support [Fida – WPMU DEV Support](https://wordpress.org/support/users/fidawpmudev/)
 * (@fidawpmudev)
 * [1 week ago](https://wordpress.org/support/topic/blocking-locations/#post-18981114)
 * Hello [@netzurepl](https://wordpress.org/support/users/netzurepl/) ,
 * I hope you are doing well, and thank you for the update.
 * Please go to the [https://www.maxmind.com/](https://www.maxmind.com/) site, generate
   a new license key for the **GeoLite2** database, wait for 10 minutes, and check
   if that new license key works in the Defender Pro settings.
 * Please follow this guideline for generating a new license key: [https://wpmudev.com/docs/wpmu-dev-plugins/defender/#locations](https://wpmudev.com/docs/wpmu-dev-plugins/defender/#locations)
 * Kind Regards,
    Fida Al Hasan

Viewing 3 replies - 1 through 3 (of 3 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fblocking-locations%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/defender-security/assets/icon-256x256.gif?rev=3435930)
 * [Defender Security - Malware Scanner, Login Security & Firewall](https://wordpress.org/plugins/defender-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/defender-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/defender-security/)
 * [Active Topics](https://wordpress.org/support/plugin/defender-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/defender-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/defender-security/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Fida – WPMU DEV Support](https://wordpress.org/support/users/fidawpmudev/)
 * Last activity: [1 week ago](https://wordpress.org/support/topic/blocking-locations/#post-18981114)
 * Status: not resolved