• Resolved Andi

    (@atanke)


    Hi, when I’ve activated “Block attempts to publish, edit or delete a published post by users who do not have the right capabilities”
    it won’t publish the legal texts from the IT-Recht-Kanzlei”.
    I got this error message
    25/Dec/21 15:09:06 #4900562 CRITICAL - 79.143.183.229 POST /index.php - WordPress: Blocked post/page edition attempt - [post_content: <h1 class="itkanzlei_first_headline">Datenschutzerkl&auml;rung</h1>%0a%0a<h2>1) Information &uuml;ber di...] - www.ats-aquashop.de

    I’ve deactivated the anonymisation of the ip-addresses and added to the file .htninja:

    <?php
    /*
     +===========================================================================================+
     | NinjaFirewall optional configuration file                                                 |
     |                                                                                           |
     | See: https://blog.nintechnet.com/ninjafirewall-wp-edition-the-htninja-configuration-file/ |
     +===========================================================================================+
    */
    
    $ip_array = array( '79.143.183.227' , '79.143.183.228' , '79.143.183.229' );
    if ( in_array( $_SERVER["REMOTE_ADDR"], $ip_array ) ) {
       return 'ALLOW'; // whitelist
    }

    but it won’t help

    Just when I deactivate “Block attempts to publish, edit or delete a published post by users who do not have the right capabilities” it works

    How can I solve this prob?

    Best Regards

    Andreas

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nintechnet

    (@nintechnet)

    You would need to define the NFW_UWL constant right before returning:

    $ip_array = array( '79.143.183.227' , '79.143.183.228' , '79.143.183.229' );
    if ( in_array( $_SERVER["REMOTE_ADDR"], $ip_array ) ) {
       define('NFW_UWL', true); // Force whitelist
       return 'ALLOW'; // whitelist
    }
    
    Thread Starter Andi

    (@atanke)

    Thanks, that helps 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘BUG ? ERROR: Blocked post/page edition attempt’ is closed to new replies.