Rails form protection questions, hidden field

Posted by user284194 on Stack Overflow See other posts from Stack Overflow or by user284194
Published on 2010-04-02T20:17:59Z Indexed on 2010/04/02 20:23 UTC
Read the original article Hit count: 395

Filed under:
|
|
|
|

I have a live rails website and I want to have a form with a lot of fields on it. I have set up validations and allowed formatting for every field. I've tested it quite a bit and it seems to catch anything I throw at it. I think it's almost ready to go live, but I want to quadruple check if there's anything else I should do to protect it. My site has a low volume of visitors, but I want it to be a safe as possible. I'd like to avoid using a captcha if I can. I've read that you can use a hidden field to protect forms against bots. Do people recommend this instead of using a captcha, or even using it with a captcha?

my form is really standard:

<% form_for(@entry) do |f| %>
  ...
  <%= f.submit 'Create' %>
<% end %>

Any suggestions or code samples would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby