[Guide] How to unlock unlimited premium Wordfence Security license on any version

abhishekkjain

Member
Oct 7, 2019
81
44
18
I think time for a new guide? I see structural changes in 2.0.6

My bad, was checking wrong plugin.
 
Last edited:

deadmadsec

New member
Sep 29, 2020
24
3
3
  1. Download the official Wordfence security plugin from: https://en-ca.wordpress.org/plugins/wordfence/
  2. Upload the plugin to your wordpress but don't activate it
  3. Next, in your wordpress main dashboard head to Plugins -> Plugin Editor
  4. In the "Select plugin to edit" bar choose Wordfence Security and press Select
  5. Under the "lib file section" select the wordfenceClass.php file
  6. Press ctrl+f and paste 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 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);

7. Save the file, then activate WordFence plugin, you should have unlimited premium license! It says "renew in 365 days" but you will notice that this number doesn't go down ;)

If you can't find the code, you can export the file, edit using notepad++ and then reupload or do something similar. You can also use FTP application to do this method.

Like for more "exploits" like this!
Not working any more sir
 

MrSam_1

Well-known member
Administrative
Trusted Seller
Dec 1, 2018
23,640
26,991
120
All the instructions are clear in the first post of this thread. The one you've quoted.

I also do like your common sense and skills. You ask for "how to null this" on another thread and yet you can't follow some simple steps.

2020-10-04 23_13_46-Edit Plugins ‹ WordPress.png
 

NullMaster

Well-known member
Null Master
Trusted Uploader
Jul 25, 2018
12,058
22,063
120
All the instructions are clear in the first post of this thread. The one you've quoted.

I also do like your common sense and skills. You ask for "how to null this" on another thread and yet you can't follow some simple steps.

2020-10-04 23_13_46-Edit Plugins ‹ WordPress.png
and..
edit file /lib/wfAPI.php

inside find public function call(), & then find inside this function:
$dat = json_decode($json, true);

add these after above find:
$dat['_isPaidKey']=true;
$dat['_keyExpDays']=365;
$dat['_nextRenewAttempt']=365;
 

rikknet

Member
Jun 15, 2019
36
16
8
Still working !!
the best way to find the code is copy all code into a blank notepad++ page and next find "$updateCountries" and replace code.
Paste into your wordfece wordpress code, save it and activate plugin. Easy :)
 
Last edited:
  • Like
Reactions: smalok

Forum statistics

Threads
69,229
Messages
908,458
Members
237,126
Latest member
skzh6210

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu