How To Unlock Wordfence Security Premium For Free (On Any Version)

Wordfence security is one of the most popular and powerful firewall and malware scan plugins for WordPress. It has many security features like WordPress firewall, Security scanner, Login security, Wordfence central, and many other tools. Many WordPress website builders chose Wordfence as their primary security plugin. The free version of what fence security is more than enough for basic WordPress security. If you’re running an e-commerce site or a blog that drives tons of visitors every day, you must need the paid version of Wordfence to ensure your proper security. In this tutorial, I will tell you how to unlock the pro version of the Wordfencefence security plugin for free. But keep in mind that this tutorial is only for educational purposes, and you can use this hack for testing purposes only. If you like the pro version of this plugin, then we recommend you purchase it from the official site. So, let’s jump into the tutorial.


Download the official Wordfence security plugin from:

Download Page: Wordfence Security

Step- 2

Upload the plugin to your WordPress, but don’t activate it.


Next, in your WordPress main dashboard, head to Plugins -> Plugin Editor

Plugins -> Plugin Editor


In the “Select plugin to edit” bar, choose Wordfence Security and press Select.

Plugins Editor Page


Under the “lib file section,” select the wordfenceClass.php file.

lib file section


Press ctrl+f and search for this :

if (!WFWAF_SUBDIRECTORY_INSTALL && $waf = wfWAF::getInstance()) {

You should see:

$updateCountries = false;
if (!WFWAF_SUBDIRECTORY_INSTALL && $waf = wfWAF::getInstance()) {
$homeurl = wfUtils::wpHomeURL();

$siteurl = wfUtils::wpSiteURL();


Now right under the code, paste the below line:

wfConfig::set('isPaid', 1);
wfConfig::set('keyType', wfAPI::KEY_TYPE_PAID_CURRENT);
wfConfig::set('premiumNextRenew', time()+31536000);


Save the file, then activate the WordFence plugin. You should have an Unlimited Premium License! It says “renew in 365 days, but you will notice that this number doesn’t go down.

[Note: IF you update the plugin to a newer version, the premium license may be reset to the free version. But don’t worry! Do the above steps again & you’ll get another premium version.]

Leave a Comment

Shopping Cart
Select your currency
Scroll to Top


Submit your article & get high quality backlinks for your site!


  • 100% Free & Unlimited.
  • Instant Approval for Informative Articles.
  • Accepting Do follow Backlinks.
  • Accepting Affiliate Links.
  • Social Share options.
  • Free WP GPL CLUB Membership for regular bloggers.

*Please read our Terms & Conditions before submitting your content