
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
The simplest way to add a zero friction captcha in your Rails forms.
A zero captcha works off the idea that most simple bots do not run a full JavaScript interpreter when crawling web forms, so they are unable to fill a required field whereas the required field is actually hidden and autopopulated by JavaScript in a real browser with a real human. This means having a layer of spam protection while maintaining zero friction.
This should not be used solely by itself, but can be useful as an extra layer of defense alongside honeypot captchas and/or more traditional captchas.
Requires Rails 5+
In your Gemfile, simply add
gem 'zero-captcha'
Simply specify that the form has a honeypot in the HTML options hash:
<% form_for Comment.new, html: { zero_captcha: true } do |form| -%>
...
<% end -%>
Simply specify that the form has a honeypot in the options hash:
<% form_tag comments_path, zero_captcha: true do -%>
...
<% end -%>
Simply specify that the form has a honeypot in the options hash:
<%= form_tag comments_path, zero_captcha: true -%>
...
</form>
By default, zero-captcha works by checking against a verify value if provided. If not provided, zero captcha will not activate.
However, if you wish to force the presence of a zero-captcha value, you may use this in your controller:
prepend_before_filter :require_zero_captcha, only: [:create]
See LICENSE for details.
FAQs
Unknown package
We found that zero-captcha demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.