Open donrestarone opened 2 years ago
@alis-khadka can you link me to the document that says that we need to show some Google branding/privacy policy/TOS copy when we use recaptcha v3?
@alis-khadka can you link me to the document that says that we need to show some Google branding/privacy policy/TOS copy when we use recaptcha v3?
You mean in case of hiding the recaptcha badge, right? hiding recaptch badge
@alis-khadka yup, That's the one, thanks!
Before you begin
Recaptcha is a proprietary technology developed by Google. Recaptcha's client-side code is neutrally included as part of Violet Rails to implement Recaptcha challenges on a per-application basis. Before use please see Google's privacy: https://policies.google.com/privacy and Terms of Service: https://policies.google.com/terms
I don't like the default Recaptcha branding on the API Form, can I change it?
Google has some specific rules, we will yield to them on this matter hiding recaptch badge
Google Recaptcha Console setup
Login to the recaptcha console![Screenshot from 2022-06-12 12-04-58](https://user-images.githubusercontent.com/35935196/173242457-9514b252-7180-46df-9ab6-afdabcce9cd6.png)
Register your site:
Server configuration: Violet Rails supports V2 and V3
Recaptcha V2
Renders a challenge like so:![Screenshot from 2022-06-12 12-39-40](https://user-images.githubusercontent.com/35935196/173243646-27a5613b-a69c-4603-85f5-8d28b0c122b8.png)
Env Variables
Ensure that the following variables are set in
.rbenv-vars
/ Heroku / Where-ever you set environment variables for your systemRECAPTCHA_SITE_KEY=6Lc6BAAAAAAAAChqRbQZcn_yyyyyyyyyyyyyyyyy
RECAPTCHA_SECRET_KEY=6Lc6BAAAAAAAAKN3DRm6VA_xxxxxxxxxxxxxxxxx
Recaptcha V3
Does not render a challenge, but observes how the form is filled out and decides automatically if its a bot or human that completed the web form![Screenshot from 2022-06-12 12-38-50](https://user-images.githubusercontent.com/35935196/173243654-9a9ba195-add7-4a09-9f9b-c2dbb3317af7.png)
Env Variables
Ensure that the following variables are set in
.rbenv-vars
/ Heroku / Where-ever you set environment variables for your systemRECAPTCHA_SITE_KEY_V3=6Lc6BAAAAAAAAChqRbQZcn_yyyyyyyyyyyyyyyyy
RECAPTCHA_SECRET_KEY_V3=6Lc6BAAAAAAAAKN3DRm6VA_xxxxxxxxxxxxxxxxx
After setting the environment, restart the system-- eg:
Violet Rails Client Setup
Simply choose which version of Recaptcha you want Violet Rails to render:![Screenshot from 2022-06-12 18-53-47](https://user-images.githubusercontent.com/35935196/173256846-c5b6a22c-4b74-44f0-b101-9f806efc3944.png)