I''ve started to get problems with my rails site, I''ve had loads of comments containing stuff like this... http://pastie.org/343379 What can I do (have taken the site down for now). I''m after a really simple solution, can i just do some clever validation to fail this cr&p? I don''t really want to implement captcha or the like if I can avoid it. Site is down for now until I figure a solution, please let me know if you can help? Thanks, BB. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You might use negative captchas, require login, common captchas, the askimet web service, there are plenty of ways to avoid spamming :) - Maurício Linhares http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en) On Fri, Dec 19, 2008 at 7:39 PM, bingo bob <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > I''ve started to get problems with my rails site, I''ve had loads of > comments containing stuff like this... > > http://pastie.org/343379 > > What can I do (have taken the site down for now). > > I''m after a really simple solution, can i just do some clever validation > to fail this cr&p? > > I don''t really want to implement captcha or the like if I can avoid it. > > Site is down for now until I figure a solution, please let me know if > you can help? > > Thanks, > > BB. > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
OK but what about just validation statements in the models? Can I do it like that, maybe screening for some regex''s ? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
For what? A link? Your user could paste a link. There''s no easy way to tell that a comment is a spam (you would need a tool to perform analysis on the comment content to mark it as spam, that''s exactly what tools like Askimet do). - Maurício Linhares http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en) On Fri, Dec 19, 2008 at 7:42 PM, bingo bob <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > OK but what about just validation statements in the models? > > Can I do it like that, maybe screening for some regex''s ? > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
acts_as_snook is great for capturing stuff like that: http://github.com/rsl/acts_as_snook ----- Ryan Bigg Freelancer http://frozenplague.net On 20/12/2008, at 9:14 AM, Maurício Linhares wrote:> > For what? A link? > > Your user could paste a link. > > There''s no easy way to tell that a comment is a spam (you would need a > tool to perform analysis on the comment content to mark it as spam, > that''s exactly what tools like Askimet do). > > - > Maurício Linhares > http://alinhavado.wordpress.com/ (pt-br) | http:// > blog.codevader.com/ (en) > > > > On Fri, Dec 19, 2008 at 7:42 PM, bingo bob > <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> >> >> OK but what about just validation statements in the models? >> >> Can I do it like that, maybe screening for some regex''s ? >> -- >> Posted via http://www.ruby-forum.com/. >> >>> >> > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
superb, thanks! I put Snook in place. Looks great. bb -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---