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.
source share