So, in my app I’d like to offer student discounts.
I use Devise for authentication, and I require confirmation of email addresses. I was thinking that I could just check if the email ends in .edu after it’s confirmed, and if yes offer the discount. However, I wonder if that’s too simplistic. Is there a list or database of “real” .edu institutions out there, something I could check against?
Does my approach make sense, or would you solve this problem an entirely different way?
Thoughts?
To register a .edu domain you must be eligible. This means adding a validator on your email address for
/\.edu$/is sufficient for US educational discounts. This doesn’t mean you are reaching only student populations — research institutions and educators will also get the discount.Also keep in mind that this will only cover US educational institutions. Australia uses
.edu.au, the UK uses.ac.uk, etc.