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

cryptointel

Active member
Trusted Uploader
Jul 19, 2019
247
54
28
  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!
Can I enable auto update? Any effect?
 

telugumirchy

Active member
Trusted Uploader
Aug 26, 2018
227
97
43
www.blogginged.com
Hello @eliteshades , thank you very much for the tips.... Is there any way for such similar tweaks for the below plugins? please share... Appreciate it.

Ithemes Security
WP-Optimize
updraft plus
Sucuri
Yoast SEO plugin
wp-rocket
wp-fastest cache
Hummingbird
Smart Crawl
Monster insights
 

djoxer

Member
Jul 20, 2019
51
12
8
is fine if i use at single site,.
but if i use at multisite "Premium Protect Disable"
how to use this method for multisite ?

thanks
 

newbi3

Well-known member
Trusted Seller
May 16, 2019
576
405
63
Site went down after activating the plugin (The site is experiencing technical difficulties. )
I guess it's not working in the latest version? @eliteshades
 
  • Like
Reactions: zen123

eliteshades

Well-known member
May 24, 2019
55
286
53
Under your bed
cornhub.com
Site went down after activating the plugin (The site is experiencing technical difficulties. )
I guess it's not working in the latest version? @eliteshades

Working fine on latest version, just tested.

Also adding this code to the license file can't bring your site down, if anything it will show an error on premium license on WordFence. Your website going down is rooted in another problem (host, memory capacity, virus, etc)
 
Last edited:

zen123

Well-known member
Trusted Seller
Feb 14, 2019
2,091
978
113
CyberSpace IN
Site went down after activating the plugin (The site is experiencing technical difficulties. )
I guess it's not working in the latest version? @eliteshades
Always and all time and every version is working
Site went down after activating the plugin (The site is experiencing technical difficulties. )
I guess it's not working in the latest version? @eliteshades
Working fine tested... I use this for professional purpose..

Fantastic working with all version..
May be you are going something wrong..
 
  • Like
Reactions: eliteshades

dominarmac

Active member
Babiato Lover
Jun 9, 2019
182
68
28
I have tested on a new Wordfence update, and it still works!
Version 7.4.0
 
Last edited:

soyeb786

Active member
Jul 29, 2019
581
161
43
India
Now tested why this error comes? plugines issue.. deactivate all plugin then use code working fine.
or remove all plugin then use code.
and theme don't activate before doing this process thanks.

Noted and thanks for the solution and bother please check PM
 

Latest posts

Forum statistics

Threads
69,226
Messages
908,435
Members
237,020
Latest member
babahack1

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