Gtranslate stopped working since pointing website to cloudflare

Gtranslate is being used in website https://myjapanaddress.com and it stopped working after pointing the said website to cloudflare. The default language for the site is English and if any other language is selected from the language pulldown list the annoying hCaptcha is screen is loaded instead and answering the captcha doesn’t resolve to the translated website but an infinite loop of responding to the captcha. I have done the following without any success
Whitelisted all the IPs provided by gtranslate in the firewall rules
Set Security Level to Low
Privacy Pass Support Activated
Web Application Firewall Activated
Disabled Hotlink Protection

I will really appreciate any pointers that will help me resolve this problem.
Thanks in advance.

Take a look at your Firewall Events log. It should show you the CAPTCHA entry and the setting that triggered it if you click on the log entry.

Sorry for responding late due to the holidays. I have to apologise that I have
looked at the logs but unable to interprete it or maybe I looked at the wrong log
below is a copy

{
“action”: “managed_challenge”,
“clientASNDescription”: “OVH”,
“clientAsn”: “16276”,
“clientCountryName”: “FR”,
“clientIP”: “51.178.161.67”,
“clientRequestHTTPHost”: “myjapanaddress.com”,
“clientRequestHTTPMethodName”: “GET”,
“clientRequestHTTPProtocol”: “HTTP/1.1”,
“clientRequestPath”: “/omron-healthcare-displays-wristwatch-like-blood-pressure-meter/”,
“clientRequestQuery”: “”,
“datetime”: “2021-12-27T15:18:17Z”,
“rayName”: “6c438549cdc3404f”,
“ruleId”: “874a3e315c344b1281ad4f00046aab6f”,
“rulesetId”: “48ba18287c544bd7bdbe842a294f1ae2”,
“source”: “firewallManaged”,
“userAgent”: “Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; [email protected])”,
“matchIndex”: 0,
“metadata”: [
{
“key”: “ruleset_version”,
“value”: “4”
},
{
“key”: “version”,
“value”: “3”
},
{
“key”: “type”,
“value”: “customer”
}
],
“sampleInterval”: 1
}

That’s probably not it. userAgent says DotBot.

That hCaptcha screen should have a RayID on it that you can filter on in the Events Log.

Sorry I am not really knowledgeable on this issue, I have looked at the log again
the RayID seems to vary for every entry in the events log so I am not sure which entry
to filter. Secondly, in the events log it is clearly written as RayID but in the Json file it isn’t. I have selected 2 entries for User Agent : Gtranslate-Translation-Proxy and hope you will look at it and advise.

{
“action”: “managed_challenge”,
“clientASNDescription”: “OVH”,
“clientAsn”: “16276”,
“clientCountryName”: “FR”,
“clientIP”: “51.178.161.67”,
“clientRequestHTTPHost”: “myjapanaddress.com”,
“clientRequestHTTPMethodName”: “GET”,
“clientRequestHTTPProtocol”: “HTTP/1.1”,
“clientRequestPath”: “/shop/ohm-takoyaki-plate-cok-e-t65-ah-r/”,
“clientRequestQuery”: “”,
“datetime”: “2021-12-28T15:38:59Z”,
“rayName”: “6c4be0f8e8593329”,
“ruleId”: “874a3e315c344b1281ad4f00046aab6f”,
“rulesetId”: “48ba18287c544bd7bdbe842a294f1ae2”,
“source”: “firewallManaged”,
“userAgent”: “GTranslate-Translation-Proxy”,
“matchIndex”: 0,
“metadata”: [
{
“key”: “ruleset_version”,
“value”: “4”
},
{
“key”: “version”,
“value”: “3”
},
{
“key”: “type”,
“value”: “customer”
}
],
“sampleInterval”: 1
}

{
“action”: “allow”,
“clientASNDescription”: “OVH”,
“clientAsn”: “16276”,
“clientCountryName”: “FR”,
“clientIP”: “51.178.161.67”,
“clientRequestHTTPHost”: “myjapanaddress.com”,
“clientRequestHTTPMethodName”: “GET”,
“clientRequestHTTPProtocol”: “HTTP/1.1”,
“clientRequestPath”: “/shop/ohm-takoyaki-plate-cok-e-t65-ah-r/”,
“clientRequestQuery”: “”,
“datetime”: “2021-12-28T15:38:59Z”,
“rayName”: “6c4be0f8e8593329”,
“ruleId”: “9da3965889ee4d008cb485e92758c267”,
“rulesetId”: “”,
“source”: “firewallrules”,
“userAgent”: “GTranslate-Translation-Proxy”,
“matchIndex”: 1,
“metadata”: [
{
“key”: “filter”,
“value”: “79775192a33e46f6b67584e442196a36”
},
{
“key”: “type”,
“value”: “customer”
}
],
“sampleInterval”: 1
}

Try adding an Allow as the first Firewall Rule:

I have added useragent Gtranslate in the Allow firewall rule, cleared my brower cache
and even purged the cloudflare cache unfortunately nothing has changed.
I don’t know what next to do.

Same as before: Check the firewall log for why it’s blocked.

Thanks for the prompt response.
Sorry, I don’t think I have ever seen in the event log why it is blocked. I have enclosed herein two events from the log Managed Challenge and Allowed. One thing I have noticed in the log is that 99% of the events for user agent Gtranslate are from France.

{
“action”: “managed_challenge”,
“clientASNDescription”: “OVH”,
“clientAsn”: “16276”,
“clientCountryName”: “FR”,
“clientIP”: “51.178.161.67”,
“clientRequestHTTPHost”: “myjapanaddress.com”,
“clientRequestHTTPMethodName”: “GET”,
“clientRequestHTTPProtocol”: “HTTP/1.1”,
“clientRequestPath”: “/shop/delonghi-electric-drip-coffee-maker-distinta-icm1011j-bk/”,
“clientRequestQuery”: “”,
“datetime”: “2021-12-29T22:20:34Z”,
“rayName”: “6c566a9acadfee07”,
“ruleId”: “874a3e315c344b1281ad4f00046aab6f”,
“rulesetId”: “48ba18287c544bd7bdbe842a294f1ae2”,
“source”: “firewallManaged”,
“userAgent”: “GTranslate-Translation-Proxy”,
“matchIndex”: 0,
“metadata”: [
{
“key”: “ruleset_version”,
“value”: “4”
},
{
“key”: “version”,
“value”: “3”
},
{
“key”: “type”,
“value”: “customer”
}
],
“sampleInterval”: 1
}

{
“action”: “allow”,
“clientASNDescription”: “OVH”,
“clientAsn”: “16276”,
“clientCountryName”: “FR”,
“clientIP”: “51.178.161.67”,
“clientRequestHTTPHost”: “myjapanaddress.com”,
“clientRequestHTTPMethodName”: “GET”,
“clientRequestHTTPProtocol”: “HTTP/1.1”,
“clientRequestPath”: “/product-category/220v%EF%BD%9E240v-products/page/3/”,
“clientRequestQuery”: “”,
“datetime”: “2021-12-29T22:21:25Z”,
“rayName”: “6c566bd8edd03a81”,
“ruleId”: “9da3965889ee4d008cb485e92758c267”,
“rulesetId”: “”,
“source”: “firewallrules”,
“userAgent”: “GTranslate-Translation-Proxy”,
“matchIndex”: 1,
“metadata”: [
{
“key”: “filter”,
“value”: “79775192a33e46f6b67584e442196a36”
},
{
“key”: “type”,
“value”: “customer”
}
],
“sampleInterval”: 1
}

Do you have any other Firewall Rules? other than the Allow.

I see it’s the same IP address in the firewall log entries, so you can try adding it as an Allow in Firewall → Tools.

I added it as Allow in firewall tools and it worked.
It seems having it as a range in firewall rules for some reason
doesn’t work.
Thank you so much for the guidance and patience.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.