OrchardCMS / OrchardCore

Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
https://orchardcore.net
BSD 3-Clause "New" or "Revised" License
7.26k stars 2.35k forks source link

Suggestion: Change the default reCAPTCHA api host. #3478

Open Dolphinsimon opened 5 years ago

Dolphinsimon commented 5 years ago

As google.com is blocked in China, the reCAPTCHA service hosted by www.google.com doesn't work in China. But there is another host www.recaptcha.net for google's reCAPTCHA service can be accessed in China. For the service and all users the www.recaptcha.net host will be a more efficiency choice.

sebastienros commented 5 years ago

Maybe a setting instead? Or a custom feature that would change it in case people don't know how to set it up?

Dolphinsimon commented 5 years ago

Giving the choice to users may be a good solution.

GiantappMan commented 5 years ago

Giving the choice to users may be a good solution.

        services.Configure<ReCaptchaSettings>(options =>
        {
            options.ReCaptchaScriptUri = "https://www.recaptcha.net/recaptcha/api.js";
            options.ReCaptchaApiUri = "https://www.recaptcha.net/recaptcha/api/";
        });
Dolphinsimon commented 5 years ago

Giving the choice to users may be a good solution.

        services.Configure<ReCaptchaSettings>(options =>
        {
            options.ReCaptchaScriptUri = "https://www.recaptcha.net/recaptcha/api.js";
            options.ReCaptchaApiUri = "https://www.recaptcha.net/recaptcha/api/";
        });

Thank you for the reply. As I mentioned above, the default host should be a more accessible host. Set it to www.recaptcha.net will not have any defacts. If the default host can not be changed, a configuration page may be a good solution.