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

Voice4Vision

Member
Sep 16, 2019
42
32
18
55
United States
Hi,
Thanks for your work.
I've followed the steps you mentioned, but I'm getting an activation error.
I'll pass you the error capture: https://prnt.sc/q50adm
This is the screenshot of the modified wordfenceClass.php file: https://prnt.sc/q508pu
Any solutions please.
Thanks.
Hey Echeva,
So I just compared the image of your edits to the edits posted here by the OP. Your edits do NOT match those posted by the OP. I advise that you properly delete your installation of Wordfence and try again.

DO NOT ALTER the text that the author had posted.

Good Luck!!!
 
  • Like
Reactions: Echeva

Bazooka

Active member
Jul 22, 2019
350
177
43
Anyone else having this issue upon activating the plugin? 25257
Once you type in the email address and refresh the dashboard page, you see a popup like this.
 

ckeeper

Well-known member
Nov 8, 2019
623
376
63
Anyone else having this issue upon activating the plugin? screenshot.jpg
Once you type in the email address and refresh the dashboard page, you see a popup like this.
I do not recommend you renewing the license if you are using the nulled version. It will keep working even after renewal date. What happens when you resume installation?
 

Bazooka

Active member
Jul 22, 2019
350
177
43
I do not recommend you renewing the license if you are using the nulled version. It will keep working even after renewal date. What happens when you resume installation?
You simply have to put in your email to get alerts (similar to welcome popup) and then it popup disappears. But once you refresh, you see it again.

I think it is because of the latest version of the plugin, worked before on another website. But not on this new one.
 

ckeeper

Well-known member
Nov 8, 2019
623
376
63
You simply have to put in your email to get alerts (similar to welcome popup) and then it popup disappears. But once you refresh, you see it again.

I think it is because of the latest version of the plugin, worked before on another website. But not on this new one.
Sounds like they are collecting email addresses for marketing purposes. I do not believe any one had any issue with this so far. If you do not want spam email coming from them feel free to use temp email. Safer approach.
 

Bazooka

Active member
Jul 22, 2019
350
177
43
Sounds like they are collecting email addresses for marketing purposes. I do not believe any one had any issue with this so far. If you do not want spam email coming from them feel free to use temp email. Safer approach.
Well, they always collected email addresses to send you alters about logins and blocks. I Don't really think that it's for marketing purposes unless you agree to receive any.
 
  • Like
Reactions: hacgiay

ckeeper

Well-known member
Nov 8, 2019
623
376
63
Well, they always collected email addresses to send you alters about logins and blocks. I Don't really think that it's for marketing purposes unless you agree to receive any.
On a second thought, do you have any cache plugin active when installing wordfence? Best to install wordfence then activate the cache plugin, or clear all the cache's and try the wordfence dashboard again.
 

nesym

Active member
Babiato Lover
Sep 8, 2019
365
191
43
  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!
Can you please suggest how to add this code to a separate plugin or child theme so we can update the main plugin on the go without FTP. Thank you so so much! <3
 
  • Like
Reactions: RalfSander

ckeeper

Well-known member
Nov 8, 2019
623
376
63
Can you please suggest how to add this code to a separate plugin or child theme so we can update the main plugin on the go without FTP. Thank you so so much! <3
There is no free lunch on this one, basically you can update the plugin, after the update make sure to deactivate it first, apply the changes, and reactivate it. It will not delete any of your previous settings.
 

nesym

Active member
Babiato Lover
Sep 8, 2019
365
191
43
There is no free lunch on this one, basically you can update the plugin, after the update make sure to deactivate it first, apply the changes, and reactivate it. It will not delete any of your previous settings.
Hopefully, someone else knows how to hook it. Let's see. =)
 

hexmodz

New member
Jun 18, 2019
6
1
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!
Thank You very much..
it works like a charm
 

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