![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
github.com/dpapathanasiou/go-recaptcha
https://godoc.org/github.com/dpapathanasiou/go-recaptcha
This package handles reCaptcha (API versions 2 and 3) form submissions in Go.
Install the package in your environment:
go get github.com/dpapathanasiou/go-recaptcha
To use it within your own code, import github.com/dpapathanasiou/go-recaptcha and call:
recaptcha.Init (recaptchaPrivateKey)
once, to set the reCaptcha private key for your domain, then:
recaptcha.Confirm (clientIpAddress, recaptchaResponse)
For each reCaptcha form input you need to check, using the values obtained by reading the form's POST parameters (the recaptchaResponse in the above corresponds to the value of g-recaptcha-response sent by the reCaptcha server.)
The recaptcha.Confirm() function returns either true (i.e., the captcha was completed correctly) or false, along with any errors (from the HTTP io read or the attempt to unmarshal the JSON reply).
Version 3 works differently: instead of interrupting page visitors with a prompt, it runs in the background, computing a score.
This repo has been updated to handle the score and action in the response, but the usage example is still in terms of version 2.
Included with this repo is example.go, a simple HTTP server which creates the reCaptcha form and tests the input.
See the instructions for running the example for more details.
If you find this work useful, please consider making a donation:
Bitcoin Donate 14TM4ADKJbaGEi8Qr8dh4KfPBQmjTshkZ2
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.