Support » Plugin: Wordfence Security » [Plugin: Wordfence Security] Wordfence could not get an API key

  • Resolved mzit



    I just installed Wordfence for the first time, now I recieve this error message:

    “Wordfence could not get an API key from the Wordfence scanning servers when it activated. You can try to fix this by going to the Wordfence “options” page and hitting “Save Changes”. This will cause Wordfence to retry fetching an API key for you. If you keep seeing this error it usually means your WordPress server can’t connect to our scanning servers. You can try asking your WordPress host to allow your WordPress server to connect to”

    How do I solve this problem? Also, does this mean that Wordfence does not work in it’s entirety or are only certain features affected (I received some basic data from the live traffic scanning already)? Please note that I also sent you my activity log a few minutes ago.

    Of course I will also check with my hosting provider, but I am hoping to be able to get soem feedback from you as well.

    I also have a second question regarding the firewall rules feature. Can you give me (or direct me to) further information on how I should configure it? Currently it is deactivated, but I would like to set up some basic (not to strict yet affective) rules in the future.

    Thanks in advance for answering.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Wordfence


    Hi Mzit,

    Please try to uninstall and reinstall the plugin. We experienced some DNS issues today which caused this problem.

    My apologies for any inconvenience caused.



    Thanks, I noticed that I couldn’t reach your website yesterday because it said the domain had expired.

    I will try to uninstall and reinstall the plugin now.

    Also, my host said the plugin has a bug and is using to much memory (according to the error log). So I changed the maximum memory limit to 128MB but still got the same error. As I said I will try again.


    I have just updated to plugin to a new version, but am still receiving the same error message.

    Also, my error log says that the plugin tried to increase memory limit to 268435456 bytes (which is above the allowed limit), even though the Wordfence Memory benchmarking utility does not report any problems after I set the maximum memory limit to 128 megabyte.

    Plugin Author Wordfence


    Hi Mzit,

    You can email your error log entries to and I’ll take a look at them.

    Note that increasing the memory limit does not mean that Wordfence will actually use that amount of memory. Wordfence is built to be very memory efficient and will only use about 8 megabytes during a scan.

    Any problems we had with DNS were fixed about 10 to 12 hours ago, so you should not be seeing that any longer.

    Email me those error log entries and I’ll take a look.



    Thank you, I sent it to you just now.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Wordfence Security] Wordfence could not get an API key’ is closed to new replies.