Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mary2867

    (@mary2867)

    Hello.

    Thank you for your reply. 

    Still having problems to remove extended firewall protection.

    I can't change the plugin on: Wordfence > Firewall > All Firewall Options. The changes are not saved. The .htaccess and .user.ini have already been edited. 

    These are the files I have:

    Wordfence-waf.php:

    <?php

    // Before removing this file, please verify the PHP ini setting
    auto_prepend_file does not point to this.

    if (file_exists(__DIR__.'/wp-content/plugins/wordfence/waf/bootstrap.php')) {

    define("WFWAF_LOG_PATH", __DIR__.'/wp-content/wflogs/');

    include_once __DIR__.'/wp-content/plugins/wordfence/waf/bootstrap.php';

    }



    bootstrap.php:

    <?php

    /*
    php_value auto_prepend_file ~/wp-content/plugins/wordfence/waf/bootstrap.php
    */

    if (!defined('WFWAF_RUN_COMPLETE')) {

    if (!defined('WFWAF_AUTO_PREPEND')) {
    define('WFWAF_AUTO_PREPEND', true);
    }
    if (!defined('WF_IS_WP_ENGINE')) {
    define('WF_IS_WP_ENGINE', isset($_SERVER['IS_WPE']));
    }
    if (!defined('WF_IS_FLYWHEEL')) {
    define('WF_IS_FLYWHEEL', isset($_SERVER['SERVER_SOFTWARE']) && strpos($_SERVER['SERVER_SOFTWARE'], 'Flywheel/') === 0);
    }
    if (!defined('WF_IS_PRESSABLE')) {
    define('WF_IS_PRESSABLE', (defined('IS_ATOMIC') && IS_ATOMIC) || (defined('IS_PRESSABLE') && IS_PRESSABLE));
    }

    require(dirname(__FILE__) . '/../lib/wfVersionSupport.php');
    /**


    I can’t find another file containing the line: auto_prepend_file
    Could you edit the bootstrap.php file? Changing true to false?

    define('WFWAF_AUTO_PREPEND', true);


    Thank you for your help.

    mary2867
    Thread Starter mary2867

    (@mary2867)

    Hello support team

    The problem has been solved with the indications you have given us.

    We have disabled the OC and Wordfence no longer detects threats. Now the page works properly.

    Thank you for your help.

    • This reply was modified 2 years, 3 months ago by mary2867.
Viewing 2 replies - 1 through 2 (of 2 total)