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
28
Reaction score
41
Points
13
Location
Under your bed
  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:

Kaibuma

New member
Joined
May 24, 2019
Messages
29
Reaction score
10
Points
3
🤩🤩 Worked like Charm and i just Blocked the whole of Russia!
Thanks Buddy!
 

imalchev

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

limevanilla

New member
Joined
Jan 27, 2019
Messages
3
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.
 

Similar threads


Forum statistics

Threads
8,571
Messages
39,797
Members
25,635
Latest member
phreekyo