• Resolved jrothhardt

    (@jrothhardt)


    Hello, I installed Ninja Firewall (WP-edition) and it works except for the following problem. All new blog posts created by WP-Matico daily are blocked.
    Every day this message appears:
    NinjaFirewall has blocked an attempt to edit/create a post by a user who doesn’t have the right capabilities:

    Blog: https://top-newsaktuell.de/
    Username: Unauthenticated user
    Action: Attempt to create a new post
    post_title: Start the day active and in a good mood with morning exercises
    post_content: <div>Simple exercises for a good start to the day<br><br>.
    When the alarm clock rings, use a lot of…
    User IP: 136.243.70.135
    SCRIPT_FILENAME: /var/www/vhosts/hausgeraete-tipps.com/top-newsaktuell.de/wp-cron.php
    REQUEST_URI: /wp-cron.php?doing_wp_cron=1613732469.7783269882202148437500
    Date: February 19, 2021 @ 12:01:10 (UTC +0100)

    I have created a .htninja with this IP address and deposited the database data as well.
    Unfortunately without success
    Thanks for your answer & help.
    Kind regards J?rg

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author nintechnet

    (@nintechnet)

    It is blocked by the “Firewall Policies > Block attempts to publish, edit or delete a published post by users who do not have the right capabilities” because it is not authenticated.
    You have two options:
    1. Disable the protection: I really don’t recommend it.
    2. Whitelist the user using the NFW_UWL constant in the .htninja.

    <?php
    /*
     +===========================================================================================+
     | NinjaFirewall optional configuration file                                                 |
     |                                                                                           |
     | See: https://blog.nintechnet.com/ninjafirewall-wp-edition-the-htninja-configuration-file/ |
     +===========================================================================================+
    */
    if ( $_SERVER['REMOTE_ADDR'] == '1.2.3.4' ) {
       define('NFW_UWL', true);
       return 'ALLOW';
    }
    

    Replace ‘1.2.3.4’ with the correct user IP.

Viewing 1 replies (of 1 total)
  • The topic ‘[NSFW] [NinjaFirewall] Blocked post/page edition attempt’ is closed to new replies.