November Happy Hour will be moved to Thursday December 5th.

Recptcha not work in China

Vote:
 

Currently, Recaptcha has been implemented in forms element and it is working.

However, we found recaptcha is not working in China

because recaptcha is using Google API service which is blocked by Chinese policy.

is it possible to replace like below?

use "www.recaptcha.net" in your code in circumstances when "www.google.com" is not accessible.

but we can't find the place to replace it, could you help suggst on it? thanks.

#254934
May 17, 2021 7:46
Vote:
 

I think you can use this url to provide feature request & feedback: https://feedback.episerver.com/

Hope it helps !

#255036
May 18, 2021 7:59
Vote:
 

Hello Simon

It is worth bearing in mind that Forms can be personalised using visitor groups. So you could set up a visitor group to check if a user is in China. If they are not in China then do not show the Recapcha.

David

#255043
May 18, 2021 10:09
Simon - May 24, 2021 8:55
if user not login to EPI server, how do visitor group know customer's country.
David Knipe - May 24, 2021 9:15
Hello Simon, the Geographic Location visitor group uses an IP look up database to work out what country someone is in:

https://webhelp.episerver.com/latest/en/cms-admin/visitor-groups.htm#Geographiclocation
Vote:
 

Actually, My action is to replace domain from "www.google.com" to "www.recaptcha.net" when page load is done using JavaScript

#255094
May 19, 2021 2:14
Vote:
 

Also worth noting the Episerver.Forms.Samples (which includes the recaptcha form element) is available on GitHub here: https://github.com/episerver/EPiServer.Forms.Samples/

You could try to create your own version of the recaptcha element that doesn't use Google. It's possible the only update necessary is to the RecaptchaVerifyBaseUrl value here: https://github.com/episerver/EPiServer.Forms.Samples/blob/master/Implementation/Validation/RecaptchaValidator.cs  (but I haven't tested at all.)

Then either use the new version of the recaptcha for everyone, or just for China users via Visitor Group personalization like David said.

#255692
May 28, 2021 16:44
Vote:
 

Following the conversation, hcaptcha is a very decent tool to replace recaptcha: https://www.hcaptcha.com/ and was adopted by Cloudflare: https://blog.cloudflare.com/moving-from-recaptcha-to-hcaptcha/

With visitor groups, it might be possible to offer hcaptcha to Chinese users without changing the user experience for visitors outside China

#255887
Jun 01, 2021 10:11
Simon - Jun 01, 2021 10:24
thank you, we will look into hcaptcha and try it firstly
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.