fjanecic
fjanecic

Reputation: 51

Email verification

I'm creating a newsletter subscription app. I want to implement email verification to prevent spam/bot signups (well, at least so I can delete them afterwards). I've been struggling with confirmation key but though of a simpler solution:

  1. User clicks submit -> is inputed into database (verified = 0)
  2. User receives generic email ("Click me to verify") -> Verified page (verified = 1)

Would this work? Are there any potential issues which might come up?

Upvotes: 2

Views: 696

Answers (5)

Yours solution is good, but you will send email before validation. It's not always good. If I want to abuse your system I just can submit lots of nonexistent mails to yours registration form. And you will be blocked from main email services. To prevent it you can do email verification before sending email, at least you can check MX records existence or you can integrate with external email validation api. Anyway - you should check email address before sending to avoid bounces.

Upvotes: 0

shashikant_
shashikant_

Reputation: 122

you keep captcha protection, it will reduce the bot attacks by many times. And the solution you choose is totally fine.

Upvotes: 1

Algimantas Krasauskas
Algimantas Krasauskas

Reputation: 403

If your problem is Spam Bots, you should use CAPTCHA: http://www.google.com/recaptcha This will help you against most of them.

Your solution is good, if you want to prevent random user using the site, the problems that it solves is that user must put some effort in to it.

Also if you want to save some bandwidth, you can realy go in to email checking: http://www.serviceobjects.com/blog/hot-topics/email-validation-whitepaper/

Hope it helps

Upvotes: 1

kwarunek
kwarunek

Reputation: 12577

Yes this is good email verification solution, but won't solve problem with spambots to signup.

Upvotes: 0

Thought Space Designs
Thought Space Designs

Reputation: 429

That seems like a fine solution. Then test to make sure the user is verified before sending.

Upvotes: 0

Related Questions