
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
validates_against_stopforumspam
Advanced tools
= ValidatesAgainstStopForumSpam
Rails gem for ActiveRecord comment model validation against StopForumSpam.com. No API key required.
Respect their terms of use: http://www.stopforumspam.com/apis
Compatibility: Rails 3, tested with Ruby 1.9.3
Licensed under MIT license.
Specify the gem in your Gemfile:
gem "validates_against_stopforumspam"
or for the current edge version:
gem "validates_against_stopforumspam", :git => 'git://github.com/rfc2822/validates_against_stopforumspam'
and install it with bundler.
validates_against_stopforumspam processes three parameters:
username
email
ip
If your model's attribute names are different, you can specify the names in the
validates_against_stopforumspam
call. If an attribute is not present, it will be ignored.
class Comment < ActiveRecord::Base
validates_against_stopforumspam :username => :user_name
end
You may also pass other parameters for validate
:
class Comment < ActiveRecord::Base
validates_against_stopforumspam :username => :user_name, :ip => :ip_address, :on => :create
end
When the comment may be spam (because at least one of the parameters appear on stopforumspam.com), the
validation error :spam_according_to_stopforumspam
is added to the model instance. Translate
it in your i18n files.
FAQs
Unknown package
We found that validates_against_stopforumspam 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.