I am trying to build an application that is exclusive to college students and need to validate their e-mail address with a list of all valid university/college e-mail domains.
Does anyone know where there is a list of some sort that has all these e-mail domains listed? (i.e. [email protected])
UPDATE Ok so to be more specific, I need to actually match email domains uniquely. i.e. If John Smith has a @ucla.edu, he should only be able to see other users with @ucla.edu e-mails.
That is why I am not just validating a '.edu' email, but instead need a list of valid '.edu' email domains. Also, I can't just use the school's domain. I know some schools use different email domains (for instance, Sonoma.edu actually uses '@seawolf.sonoma.edu' through a gmail account for their student emails) Hope that clarifies!
This list is quite massive - perhaps useful: https://github.com/Hipo/university-domains-list
I'm working on a site that only allows .edu domains. I need the names of the schools for displaying to the users, so I can't use a solution like the one provided by @JonBiere. As such, I compiled a list. I started with the link provided by @DavidAdams and found other domains here and there. I would have included the list in this answer, but the body is limited to 30,000 characters, so I put it here. Feel free to do whatever you want with it.
My plan is to make it so that whenever a user registers and confirms their email address, I'll check my database to see if the newly registered user's email domain is already in the database. If it's not, I'll add it to the database. I'll just have the name of the school be the same as the domain (so it will be domain: example.edu, name: example.edu). Then I'll have a cron job that checks for any of these entries in the database where the domain and name match. If any are found, I'll get an email instructing me to update the "name" field with a proper value (e.g. "Example University"). With this strategy, most popular schools should already have an entry to begin with and the more obscure ones will get an entry as users register and confirm their email address.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With