Wordfence Security – Firewall & Malware Scan - Version 5.3.10

Version Description

  • Fix: Removed .htaccess file the previous release created in wfcache directory that caused problems.
Download this release

Release Info

Developer mmaunder
Plugin Icon 128x128 Wordfence Security – Firewall & Malware Scan
Version 5.3.10
Comparing to
See all releases

Code changes from version 5.3.9 to 5.3.10

Files changed (4) hide show
  1. lib/wfCache.php +11 -2
  2. lib/wordfenceClass.php +5 -0
  3. readme.txt +4 -1
  4. wordfence.php +2 -2
lib/wfCache.php CHANGED
@@ -142,7 +142,7 @@ class wfCache {
142
143
$file = self::fileFromRequest( ($_SERVER['HTTP_HOST'] ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME']), $_SERVER['REQUEST_URI']);
144
self::makeDirIfNeeded($file);
145
- self::writeCacheDirectoryHtaccess();
146
$append = "";
147
$appendGzip = "";
148
if(wfConfig::get('addCacheComment', false)){
@@ -220,7 +220,9 @@ class wfCache {
220
}
221
return $msg;
222
}
223
- return self::writeCacheDirectoryHtaccess(); //Everything is OK
224
}
225
226
/**
@@ -243,6 +245,13 @@ class wfCache {
243
return false;
244
}
245
246
public static function action_publishPost($id){
247
$perm = get_permalink($id);
248
self::deleteFileFromPermalink($perm);
142
143
$file = self::fileFromRequest( ($_SERVER['HTTP_HOST'] ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME']), $_SERVER['REQUEST_URI']);
144
self::makeDirIfNeeded($file);
145
+ // self::writeCacheDirectoryHtaccess();
146
$append = "";
147
$appendGzip = "";
148
if(wfConfig::get('addCacheComment', false)){
220
}
221
return $msg;
222
}
223
+ self::removeCacheDirectoryHtaccess();
224
+ return false;
225
+ // return self::writeCacheDirectoryHtaccess(); //Everything is OK
226
}
227
228
/**
245
return false;
246
}
247
248
+ public static function removeCacheDirectoryHtaccess() {
249
+ $cacheDir = WP_CONTENT_DIR . '/wfcache/';
250
+ if (file_exists($cacheDir . '.htaccess')) {
251
+ unlink($cacheDir . '.htaccess');
252
+ }
253
+ }
254
+
255
public static function action_publishPost($id){
256
$perm = get_permalink($id);
257
self::deleteFileFromPermalink($perm);
lib/wordfenceClass.php CHANGED
@@ -324,6 +324,11 @@ class wordfence {
324
wfConfig::set('scansEnabled_heartbleed', 1);
325
}
326
327
//Must be the final line
328
}
329
private static function doEarlyAccessLogging(){
324
wfConfig::set('scansEnabled_heartbleed', 1);
325
}
326
327
+ if (wfConfig::get('cacheType') == 'php' || wfConfig::get('cacheType') == 'falcon') {
328
+ wfCache::removeCacheDirectoryHtaccess();
329
+ }
330
+
331
+
332
//Must be the final line
333
}
334
private static function doEarlyAccessLogging(){
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: mmaunder
3
Tags: wordpress, security, performance, speed, caching, cache, caching plugin, wordpress cache, wordpress caching, wordpress security, security plugin, secure, anti-virus, malware, firewall, antivirus, virus, google safe browsing, phishing, scrapers, hacking, wordfence, securty, secrity, secure, two factor, cellphone sign-in, cellphone signin, cellphone, twofactor, security, secure, htaccess, login, log, users, login alerts, lock, chmod, maintenance, plugin, private, privacy, protection, permissions, 503, base64, injection, code, encode, script, attack, hack, hackers, block, blocked, prevent, prevention, RFI, XSS, CRLF, CSRF, SQL Injection, vulnerability, website security, WordPress security, security log, logging, HTTP log, error log, login security, personal security, infrastructure security, firewall security, front-end security, web server security, proxy security, reverse proxy security, secure website, secure login, two factor security, maximum login security, heartbleed, heart bleed, heartbleed vulnerability, openssl vulnerability, nginx, litespeed, php5-fpm, woocommerce support, woocommerce caching
4
Requires at least: 3.9
5
Tested up to: 4.1.1
6
- Stable tag: 5.3.9
7
8
Wordfence Security is a free enterprise class security and performance plugin that makes your site up to 50 times faster and more secure.
9
@@ -165,6 +165,9 @@ cause a security hole on your site.
165
166
== Changelog ==
167
168
= 5.3.9 =
169
* Premium Feature: Password Auditing. Audit the strength of your admin and user-level passwords against our GPU based auditing cluster. Easily alert users to weak passwords or force a password change.
170
* Feature: Activity email summary. See options page to enable a weekly, bi-weekly or monthly activity summary.
3
Tags: wordpress, security, performance, speed, caching, cache, caching plugin, wordpress cache, wordpress caching, wordpress security, security plugin, secure, anti-virus, malware, firewall, antivirus, virus, google safe browsing, phishing, scrapers, hacking, wordfence, securty, secrity, secure, two factor, cellphone sign-in, cellphone signin, cellphone, twofactor, security, secure, htaccess, login, log, users, login alerts, lock, chmod, maintenance, plugin, private, privacy, protection, permissions, 503, base64, injection, code, encode, script, attack, hack, hackers, block, blocked, prevent, prevention, RFI, XSS, CRLF, CSRF, SQL Injection, vulnerability, website security, WordPress security, security log, logging, HTTP log, error log, login security, personal security, infrastructure security, firewall security, front-end security, web server security, proxy security, reverse proxy security, secure website, secure login, two factor security, maximum login security, heartbleed, heart bleed, heartbleed vulnerability, openssl vulnerability, nginx, litespeed, php5-fpm, woocommerce support, woocommerce caching
4
Requires at least: 3.9
5
Tested up to: 4.1.1
6
+ Stable tag: 5.3.10
7
8
Wordfence Security is a free enterprise class security and performance plugin that makes your site up to 50 times faster and more secure.
9
165
166
== Changelog ==
167
168
+ = 5.3.10 =
169
+ * Fix: Removed .htaccess file the previous release created in wfcache directory that caused problems.
170
+
171
= 5.3.9 =
172
* Premium Feature: Password Auditing. Audit the strength of your admin and user-level passwords against our GPU based auditing cluster. Easily alert users to weak passwords or force a password change.
173
* Feature: Activity email summary. See options page to enable a weekly, bi-weekly or monthly activity summary.
wordfence.php CHANGED
@@ -4,13 +4,13 @@ Plugin Name: Wordfence Security
4
Plugin URI: http://www.wordfence.com/
5
Description: Wordfence Security - Anti-virus, Firewall and High Speed Cache
6
Author: Wordfence
7
- Version: 5.3.9
8
Author URI: http://www.wordfence.com/
9
*/
10
if(defined('WP_INSTALLING') && WP_INSTALLING){
11
return;
12
}
13
- define('WORDFENCE_VERSION', '5.3.9');
14
if(get_option('wordfenceActivated') != 1){
15
add_action('activated_plugin','wordfence_save_activation_error'); function wordfence_save_activation_error(){ update_option('wf_plugin_act_error', ob_get_contents()); }
16
}
4
Plugin URI: http://www.wordfence.com/
5
Description: Wordfence Security - Anti-virus, Firewall and High Speed Cache
6
Author: Wordfence
7
+ Version: 5.3.10
8
Author URI: http://www.wordfence.com/
9
*/
10
if(defined('WP_INSTALLING') && WP_INSTALLING){
11
return;
12
}
13
+ define('WORDFENCE_VERSION', '5.3.10');
14
if(get_option('wordfenceActivated') != 1){
15
add_action('activated_plugin','wordfence_save_activation_error'); function wordfence_save_activation_error(){ update_option('wf_plugin_act_error', ob_get_contents()); }
16
}