- Joined
- Apr 2, 2020
- Messages
- 206
- Reaction score
- 29
- Points
- 62
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:
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.
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.