josiasmontag / laravel-recaptchav3

Laravel package for Google's Recaptcha V3
MIT License
188 stars 37 forks source link

make RECAPTCHA_ORIGIN configurable #3

Closed xiaohuilam closed 4 years ago

xiaohuilam commented 5 years ago

For Chinese visitors/sites, they don't have abilities to access www.google.com for GFW reasons, but they can access recaptcha's domain www.recaptcha.net

eg

so, can you make captcha origin configurable?

https://github.com/josiasmontag/laravel-recaptchav3/blob/e4224c94bf3da879fb920d51a648ff1010874c07/src/RecaptchaV3.php#L18

https://github.com/josiasmontag/laravel-recaptchav3/blob/e4224c94bf3da879fb920d51a648ff1010874c07/src/RecaptchaV3.php#L101

josiasmontag commented 5 years ago

There should not be anything bad about changing the URLs generally to recaptcha.net, right? I see this domain in the official FAQ.

So for simplicity I think we could just change it generally.

xiaohuilam commented 5 years ago

There should not be anything bad about changing the URLs generally to recaptcha.net, right? I see this domain in the official FAQ.

So for simplicity I think we could just change it generally.

But i think googe's ReCAPTCHA credit score algorithm might include behaviors which stored at users' browser session tagged at www.google.com.

So, configurable and defaults www.google.com maybe the better way.

josiasmontag commented 4 years ago

RECAPTCHAV3_ORIGIN is now configurable.