How to Get Wordfence Premium License for Free?

wordfence-premium-licence-free
Written by wpgenuine

Wordfence is one of the best security plugins for the wordpress website, over 150M+ users are already using wordfence plugin for protecting their website.

Many peoples are using wordfence nulled plugins for protecting their website but it’s too harmful to your website.

So, Here I give you the best tricks to use wordfence premium license without downloading any nulled plugin from unauthorized website.

Here I give you 100% working tricks to use wordfence premium plugin you can download it from the official WordPress website and use it on all of your website, only you need to add some code in the plugin file.

Why use wordfence premium plugin?

Wordfence premium plugins come with endpoint firewall, leaked password protection, live traffic, advanced manual blocking, country blocking, repair file, two-factor authentication, and much more features.

How to use wordfence premium version?

Step by step guide how to manually null wordfence plugin for premium use.

Step 1: Download official wordfence plugin from wordpress website and upload it to your website or you can also download plugin from add plugin section

Note: Do not activate plugin

Step 2: Use ftp, cpanel, file manager or plugin editor section to edit the wordfence plugin code

Step 3: select plugin or go to plugin installation folder to edit lib > wordfenceClass.php file.

Step 4: Press ctrl + f and find following code

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 it paste this in:

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

So the code should look like this:

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

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

Step 5: Now save and activate the plugin. you should have unlimited premium licence.

About the author

wpgenuine

Leave a Comment