Using WP Plugin – WordFence

 

sudo nano /etc/nginx/sites-available/domain.conf

On Singlesite or Multisite-Subdomain add:

location ~ ^/\.user\.ini {
    deny all;
}

On Multisite-Subdirectory add:

location ~ ^/wordpress/\.user\.ini {
    deny all;
}

 

sudo nano /var/www/wordpress/wp_config.php

Below “WP_DEBUG” line:

#define('WFWAF_ENABLED', false);

sudo nano /var/www/wordpress/wp-content/plugins/wordfence/wordfence-waf.php

Before “if” line:

#define('WFWAF_ENABLED', false);

In case Wordfence firewall cannot be disabled from UI, remove # in any of above to force disabled the firewall.

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s