• Resolved wanderndeluxe

    (@wanderndeluxe)


    Hi, I am using GTranslate together with NinjaFirewall. GTranslate is a Translation Delivery Network (“translation proxy”) and it seems that NinjaFirewall is blocking some of the translated pages and http-requests for the translated pages (but not all!).
    If I turn NinjaFirewall off, everything works fine.

    Do you have experience with GTranslate? As far as I understand, the GTranslate Proxy is trying to make a http-request to my website but doesn’t get a response. To be more precise: I get a 504 Time out + an error message coming from GTranslate, telling me not blocking the following IP address 217.xxx.xxx.xxx (one of the IPs used be GTranslate).

    It seems to me, that the IP was blocked by NinjaFirewall, even in DEBUG-MODE! However I don’t get any LOG-Details.
    I also tried to whitelist the IP via .htninja configuration file. Same result, the error still is turning up sometimes.

    Can you help me?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter wanderndeluxe

    (@wanderndeluxe)

    Hi again,

    here some more information.
    1.) The problem exists since I migrated to a new hosting provider. I did NOT deactivate NinjaFirewall before migration (didn’t know that, sorry for that). After mmigration I have deleted the nfwlog-folder, re-installed the plugin and it basically works (as I can see from the log, several requests are blocked or sanitized). I don’t assume there is a problem from that.
    However, the hosting provider I am using has set:
    auto_prepend_file = no value

    2.) the results from wp-check.php:

    NinjaFirewall (WP edition) troubleshooter
    HTTP server : Apache
    PHP version : 7.3.11-nmm1
    PHP SAPI : FPM-FCGI

    auto_prepend_file : none
    .htninja : found in /www/htdocs/xxx/.htninja
    wp-config.php : found in /www/htdocs/xxx/xxx/wp-config.php
    NinjaFirewall detection : NinjaFirewall WP Edition is loaded (WordPress WAF mode)

    Loaded INI file : /etc/php73/fpm/php.ini
    user_ini.filename : .user.ini
    user_ini.cache_ttl : 300 seconds
    User PHP INI : none found

    DOCUMENT_ROOT : /www/htdocs/xxx/xxx/
    ABSPATH : /www/htdocs/xxx/xxx/
    WordPress version : 5.3.2
    WP_CONTENT_DIR : /www/htdocs/xxx/xxx/wp-content
    Plugins directory : /www/htdocs/xxx/xxx/wp-content/plugins
    User Role : Unknown role (or user not logged in)
    User Capabilities : Error: missing manage_options capability – Error: missing unfiltered_html capability
    Make sure you are logged in to WordPress before running this script.
    Log dir permissions : /www/htdocs/xxx/xxx/wp-content/nfwlog dir is writable
    Cache dir permissions : /www/htdocs/xxx/xxx/wp-content/nfwlog/cache dir is writable

    Plugin Author nintechnet

    (@nintechnet)

    If there’s nothing in the log, check the “Firewall Policies > Advanced Policies > HTTP response headers” section. Did you enable some of those policies? If you did, they may block the request. You can check this by using your browser’s console. See this post: https://blog.nintechnet.com/securing-wordpress-with-a-web-application-firewall-ninjafirewall/?#http-response-headers

    Thread Starter wanderndeluxe

    (@wanderndeluxe)

    Thanks for the reply. I have set everything in “advanced policies” to no / unchecked. As a result I get the follwowing Header-Info:

    General:
    Request URL: https://www.xxx.de/es/categor%C3%ADa/alojamiento/
    Request Method: GET
    Status Code: 504
    Remote Address: 85.13.xxx.xxx:443
    Referrer Policy: no-referrer-when-downgrade
    Response Headers:
    cache-control: no-store, no-cache, must-revalidate
    content-type: text/html
    date: Mon, 09 Mar 2020 14:01:49 GMT
    expires: Thu, 19 Nov 1981 08:52:00 GMT
    pragma: no-cache
    server: gtranslate
    status: 504
    vary: User-Agent
    x-gt-origurl: /Kategorie/unterkuenfte/

    But I think this is just the response I get from the GTranslate proxy server. As far as I understand, this proxy server is between my browser and the original server, therefore I cannot see the original HTTP Response-Header coming from my website. I just get the HTTP Response from the proxy. Right?
    Any other idea?

    Plugin Author nintechnet

    (@nintechnet)

    When I request the “/es/categoría/alojamiento/” page on your site, it throws a 404 error. Is that normal?

    Thread Starter wanderndeluxe

    (@wanderndeluxe)

    Hi,
    thanks for your reply. I have to admitt that I deactivated NinjaFirewall in the meantime, using another security plugin. It was too difficult to analyze the error for me, talking to three different parties (Hosting Provider / GTranslate / NinjaFirewall). Somehow, in this constellation, it didn’t work.
    Sorry for that. However, I will recommend this plugin!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Compatibility with GTranslate (Translation Proxy)’ is closed to new replies.