What's new
  • Our resources on Babiato Forum is CLEAN and SAFE. So you can use it for development or production. But sometime the antivirus will warn the JS code. It's no problem. So before downloading, you need to disable the antivirus tools and then enjoy your "Party"!

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

eliteshades

Member
Joined
May 24, 2019
Messages
51
Reaction score
67
Points
18
Location
Under your bed
Website
cornhub.com
  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 ;)

Like for more "exploits" like this!
 
Last edited:

imalchev

New member
Joined
Apr 15, 2019
Messages
13
Reaction score
5
Points
3
You deserve a HUGE THANKS ! Thank you mate !
 

limevanilla

New member
Joined
Jan 27, 2019
Messages
4
Reaction score
1
Points
3
Is there a code for child theme function.php? So every time they have new update, we didn't have to make this code again.
 

fruites

New member
Joined
Jan 24, 2019
Messages
17
Reaction score
2
Points
3
Doesnt work, i cant find code line via ctrl+f. I did everthing step by step but when i choose wordfecneclass.php I cant find that first line


EDIT: My explorer didnt find it via ctrl+f so i copy full code to my offline editor and edit it with this tut. and than copy it back. ITS WORKIN!
 
Last edited:

Hygine

Member
Joined
Apr 22, 2019
Messages
60
Reaction score
4
Points
8
I can't find this code in wordfenceClass.php. please help
if (!WFWAF_SUBDIRECTORY_INSTALL && $waf = wfWAF::getInstance()) {
 

Theone

New member
Joined
Jan 11, 2019
Messages
12
Reaction score
3
Points
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 ;)

Like for more "exploits" like this!
Thank you for this..... Worked like a charm
 

Hygine

Member
Joined
Apr 22, 2019
Messages
60
Reaction score
4
Points
8
Damm it,,,,,, it worked. But folks let me explain something to you. Searching for this code from WordPress dashboard might not work for you,

At least it didn't work for me. The workaround is to use FTP application such as FileZilla,

Look for wordfenceClass.php from lib file of the plugin and right it and select view/edit. then search for the code and edit it according to the poster.
 

ubaid

Active member
Joined
Mar 20, 2019
Messages
149
Reaction score
53
Points
28
Location
INDONESIA RAYA
Mine, it says "renew in 364 days". Let's see if the number goes down or not.
 

eliteshades

Member
Joined
May 24, 2019
Messages
51
Reaction score
67
Points
18
Location
Under your bed
Website
cornhub.com
I can't find this code in wordfenceClass.php. please help
if (!WFWAF_SUBDIRECTORY_INSTALL && $waf = wfWAF::getInstance()) {
Do what the other person said because sometimes certain browsers can't find it for some reason. Copy the entire code to notepad++ or something then do the steps and copy and paste everything back in.
 

Similar threads


Forum statistics

Threads
10,289
Messages
54,076
Members
30,268
Latest member
Cyber Dragon