A guide on obtaining an unlimited premium license for Wordfence Security.

Heracyte

Well-known member
Joined
Apr 2, 2020
Messages
236
To begin, download the official Wordfence security plugin from https://en-ca.wordpress.org/plugins/wordfence/. After downloading the plugin, upload it to your WordPress but do not activate it.

Next, go to your WordPress main dashboard and select Plugins -> http://prntscr.com/nssknw. From there, choose "Select plugin to edit" -> http://prntscr.com/nssliv and press "Select".

In the "http://prntscr.com/nssmvl" section, select the http://prntscr.com/nssn6c file. Use "Ctrl + F" to search for the following text:

Please be advised that it may be necessary to scroll through a large amount of code to find the specific code required. Alternatively, you can copy the entire code into Notepad++ and use "Ctrl + F" to search for the necessary code.

$updateCountries = false;
$homeurl = wfUtils::wpHomeURL();
$siteurl = wfUtils::wpSiteURL();


Paste this after "$updateCountries = false;"
if (!WFWAF_SUBDIRECTORY_INSTALL && $waf = wfWAF::getInstance()) {




If that is the case, the code should appear in the following manner:


$updateCountries = false;
if (!WFWAF_SUBDIRECTORY_INSTALL && $waf = wfWAF::getInstance()) {
$homeurl = wfUtils::wpHomeURL();
$siteurl = wfUtils::wpSiteURL();

After doing that Now right under it paste this:

wfConfig::set('isPaid', 1); wfConfig::set('keyType', wfAPI::KEY_TYPE_PAID_CURRENT); wfConfig::set('premiumNextRenew', time()+31536000);


So the final 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);


Save the file after editing, and then activate the WordFence plugin. You should now have an unlimited premium license! Even though it says "renew in 365 days," you will notice that this number does not decrease.

If you are unable to locate the code, you can export the file, edit it using Notepad++, and then re-upload it, or use a similar method. Alternatively, you can use an FTP application to carry out this process.
 
The software functions effectively. Up until now, it has been performing exceptionally well. However, to err on the side of caution, I have conducted testing on my less critical website. I am perplexed, though, as to how a plugin with 4 million installations could be so easily susceptible to hacking.
 
The software functions effectively. Up until now, it has been performing exceptionally well. However, to err on the side of caution, I have conducted testing on my less critical website. I am perplexed, though, as to how a plugin with 4 million installations could be so easily susceptible to hacking.
How easily a security plugin can be hacked is more like it?
 
To begin, download the official Wordfence security plugin from https://en-ca.wordpress.org/plugins/wordfence/. After downloading the plugin, upload it to your WordPress but do not activate it.

Next, go to your WordPress main dashboard and select Plugins -> http://prntscr.com/nssknw. From there, choose "Select plugin to edit" -> http://prntscr.com/nssliv and press "Select".

In the "http://prntscr.com/nssmvl" section, select the http://prntscr.com/nssn6c file. Use "Ctrl + F" to search for the following text:

Please be advised that it may be necessary to scroll through a large amount of code to find the specific code required. Alternatively, you can copy the entire code into Notepad++ and use "Ctrl + F" to search for the necessary code.

$updateCountries = false;
$homeurl = wfUtils::wpHomeURL();
$siteurl = wfUtils::wpSiteURL();


Paste this after "$updateCountries = false;"
if (!WFWAF_SUBDIRECTORY_INSTALL && $waf = wfWAF::getInstance()) {




If that is the case, the code should appear in the following manner:


$updateCountries = false;
if (!WFWAF_SUBDIRECTORY_INSTALL && $waf = wfWAF::getInstance()) {
$homeurl = wfUtils::wpHomeURL();
$siteurl = wfUtils::wpSiteURL();

After doing that Now right under it paste this:

wfConfig::set('isPaid', 1); wfConfig::set('keyType', wfAPI::KEY_TYPE_PAID_CURRENT); wfConfig::set('premiumNextRenew', time()+31536000);


So the final 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);


Save the file after editing, and then activate the WordFence plugin. You should now have an unlimited premium license! Even though it says "renew in 365 days," you will notice that this number does not decrease.

If you are unable to locate the code, you can export the file, edit it using Notepad++, and then re-upload it, or use a similar method. Alternatively, you can use an FTP application to carry out this process.

Unauthorized entry prohibited. The webpage you're attempting to reach is limited because of a security regulation.

If you suspect that this security regulation is interfering with your website's regular functioning, get in touch with your hosting provider, providing them with detailed instructions on how to replicate this issue.
 
Somewhat alarming that a security plugin can be easily susceptible to hacking, but it functions effectively and appears to fulfill its purpose. A big expression of gratitude :)
 
Somewhat alarming that a security plugin can be easily susceptible to hacking, but it functions effectively and appears to fulfill its purpose. A big expression of gratitude :)
The task appears simple since someone else has already accomplished it. :)
 
Similar threads Most view View more
Back
Top Bottom