Where can I get a list of all college / university email domains?

I'm trying to create an application that is exclusive to college students, and you need to verify your email address with a list of all valid university / college email domains.

Does anyone know where there is a list of some type that lists all these mailing addresses? (ie someEmail@ucberkeley.edu )

UPDATE Okay, so to be more specific, I need to actually map email domains unambiguously. If John Smith has @ ucla.edu, he should only see other users with email @ ucla.edu.

This is why I am not just checking the .edu email address, but instead you need a list of valid email domains .edu. Also, I can't just use the school domain. I know that some schools use different mail domains (for example, Sonoma.edu actually uses "@ seawolf.sonoma.edu" through a gmail account for its student emails) I hope this clears up!

+6
source share
4 answers

This list is quite massive - perhaps useful: https://github.com/Hipo/university-domains-list

+14
source

I am working on a site that only allows .edu domains. I need school names to display to users, so I can't use a solution like the one provided by @JonBiere. So I made a list. I started with the link provided by @DavidAdams and found other domains here and there. I would include a list in this answer, but the body is limited to 30,000 characters, so I added here . Feel free to do whatever you want.

My plan is to make sure that whenever a user registers and confirms his email address, I will check my database to see if the newly registered user email domain is already in the database. If it is not, I will add it to the database. I just want the name of the school to be the same as the domain (so it will be the domain: example.edu, name: example.edu). Then I will have a cron job that checks any of these records in the database where the domain and name match. If any of them are found, I receive an email with instructions that I update the "name" field with the correct value (for example, "University Example"). With this strategy, most popular schools should have an initial entry, while more obscure ones will receive an entry when users register and verify their email address.

+3
source

I know this question was asked some time ago, but I recently struggled with the same problem with the web application that I am creating. Instead of checking the user for a specific school domain, just use what other people offer and only allow .edu domains. I assume that you store registered users somewhere in the database? If so, you can achieve what you want with the help of simple application logic. I am using Entity Framework, so the query will look something like this:

var userObj = Context.Users.Where(u => u.user == WebSecurity.CurrentUserId).FirstorDefault(); string email = userObj.email; string[] words = email.Split('@'); var classmates = Context.Users.Where(u => u.email.EndsWith(words[1])).ToList(); 

The classmates variable will now have all users with the same school email address.

Hope this helps at least someone!

+1
source

I found this list. This is old, but since there is not much outflow at universities, it is still mostly updated: http://doors.stanford.edu/universities.html If you eventually create an updated list based on this, I will be interested to see it.

0
source

Source: https://habr.com/ru/post/910533/


All Articles