sinisterchipmunk / bot-away Goto Github PK
View Code? Open in Web Editor NEWSilently, unobtrusively masks Rails-generated forms in order to filter out spambot submissions.
Home Page: http://thoughtsincomputation.com
License: MIT License
Silently, unobtrusively masks Rails-generated forms in order to filter out spambot submissions.
Home Page: http://thoughtsincomputation.com
License: MIT License
I tried this gem and then i was unable to visit the form page even on my rails application. Everything was working fine before that. Can you help?
Here's a patch
def content_tag_with_obfuscation(name, content_or_options_with_block = nil, options = nil, *args, &block)
if block_given?
content_tag_without_obfuscation(name, content_or_options_with_block, options, *args, &block)
else
# this should cover all Rails selects.
if spinner && options && (options.keys.include?('id') || options.keys.include?('name'))
if name == 'select' && !content_or_options_with_block.empty?
# PATCH: add a html safe string
content = '<option selected value=""></option>'.html_safe
else
content = ""
end
disguise(content_tag_without_obfuscation(name, content, honeypot_options(options), *args)) +
content_tag_without_obfuscation(name, content_or_options_with_block, obfuscate_options(options), *args)
else
content_tag_without_obfuscation(name, content_or_options_with_block, options, *args)
end
end
end
Running rails 3.1.1
Parameters always empty, wich leads to unexpected redirects.
We have a multilanguage app and trying to set the locale through params.
Thanx
Hello! I absolutely love this gem. I'm just wondering if it is compatible with rails 4?
A feature request, not a bug.
I'd like to be able to disable bot-away
by namespace. So in Refinery CMS say, I don't want bot-away
to run on any non-public facing admin controllers. This is how I expect it would work:
BotAway.disabled_for controller: /^Admin/
But right now I have to specifically exclude each controller.
Thanks for a great gem by the way!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.