Hi
I’ve got a_a_a running on my site, and it’s working great, but …
I’ve just noticed that one of the new users email addresses is a
spammer’s address. And there are a whole batch of slightly suspect new
users called e.g. Larry, with mail addresses as [email protected], [email protected] etc.
What’s the best way to stop spam registration?
Greg has a post here
on using captcha and javascript, but the comments seem to suggest that
it’s more of a load on the user than it is on the bots.
Any ideas or pointers really appreciated
Thanks
Piers
captcha-validation-with-javascript">here
on using captcha and javascript, but the comments seem to suggest that
it’s more of a load on the user than it is on the bots.
Any ideas or pointers really appreciated
What I’ve done in the past and seems to work, is generate a unique id
on the serverside (hashing Time.now for example), then putting that
in a session variable and injecting it through a javascript function
in a field. This won’t work on browsers with JS turned off, but it’s
pretty good protection and the user doesn’t need to know about it
(i.e. your actually filling in the captcha yourself through JavaScript).
Controller save_registration:
if params[:validator_field] == session[:form_validator]
save_registration
else
show_message_turn_js_on_or_stop_trying_to_spam_me
end
Pretty easy to implement and no complaints about spamming.
Best regards
Peter De Berdt
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.