• Hi, I am using Gtranslate on a website I manage. Ninja is blocking its external server requests to wp-ajax:

    07/May/26 15:59:54 #7121323 MEDIUM – 37.59.139.250 POST /v2/wp-admin/admin-ajax.php – Blocked access to admin-ajax.php – [bot detection is enabled]

    Useragents seems to be “GTranslate-Translation-Proxy”

    Is it possible to whitelist it somehow?

Viewing 1 replies (of 1 total)
  • Plugin Contributor bruandet

    (@bruandet)

    You can whitelist ‘GTranslate-Translation-Proxy’ using the .htninja configuration file.
    This code will do:

    <?php
    /*
    +===========================================================================================+
    | NinjaFirewall optional configuration file |
    | |
    | See: https://blog.nintechnet.com/ninjafirewall-wp-edition-the-htninja-configuration-file/ |
    +===========================================================================================+
    */
    if ( isset( $_SERVER['HTTP_USER_AGENT'] ) &&
    ( $_SERVER['HTTP_USER_AGENT'] == 'GTranslate-Translation-Proxy') ) {

    define('NFW_UWL', true );
    return 'ALLOW';
    }
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.