# Limit registration to specific educational domain email address?

**URL:** https://meta.discourse.org/t/limit-registration-to-specific-educational-domain-email-address/41193
**Category:** Support
**Created:** [March 17, 2016, 1:44pm UTC](https://meta.discourse.org/t/limit-registration-to-specific-educational-domain-email-address/41193 "2016-03-17T13:44:10Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![kalihman](https://avatars.discourse-cdn.com/v4/letter/k/e9c0ed/32.png) [@kalihman](https://meta.discourse.org/u/kalihman)
#### Post date: [March 17, 2016, 1:44pm UTC](https://meta.discourse.org/t/limit-registration-to-specific-educational-domain-email-address/41193/1 "2016-03-17T13:44:10Z")

</div>

Hello, I am currently building a community website that only accept the student from my campus. What I’m trying to do is to customize the email format of the registration form. Every student in my campus has one’s own email address that is identified by student id. So, I would like to receive only the student id and I can send confirmation email to the student without knowing the whole address (and also great to defend spammers).

I used to be a express/nodejs developer and new to the ruby on rails framework (interested in learning emberJS though). Is it possible to change the form by changing source code? Or this kind of approach is entirely prohibited/impossible? Thank you!!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 17, 2016, 1:56pm UTC](https://meta.discourse.org/t/limit-registration-to-specific-educational-domain-email-address/41193/2 "2016-03-17T13:56:03Z")

</div>

Have you seen the `email domains whitelist` setting? That solves the problem of restricting members to your school. I don’t think that people having to type the domain name of the school is especially arduous.

Another thing to consider is SSO. Are you formally connected to the school so that you might authenticate against some service that the school provides?

---

<div class="post-metadata">

### Author: ![kalihman](https://avatars.discourse-cdn.com/v4/letter/k/e9c0ed/32.png) [@kalihman](https://meta.discourse.org/u/kalihman)
#### Post date: [March 17, 2016, 2:01pm UTC](https://meta.discourse.org/t/limit-registration-to-specific-educational-domain-email-address/41193/3 "2016-03-17T14:01:18Z")

</div>

First of all, thank you for the reply. I have not checked it yet. I just installed discourse and currently playing with it. If that function works, it would be fantastic.

The website is my private project (but school knows this project). I think I cannot get any means of authentication from school. I’m simply doing this for the sake of my friends.

---

<div class="post-metadata">

### Author: ![kalihman](https://avatars.discourse-cdn.com/v4/letter/k/e9c0ed/32.png) [@kalihman](https://meta.discourse.org/u/kalihman)
#### Post date: [March 17, 2016, 2:03pm UTC](https://meta.discourse.org/t/limit-registration-to-specific-educational-domain-email-address/41193/4 "2016-03-17T14:03:29Z")

</div>

Oh, it works. Terrific!! Thanks a million!! 😃

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 17, 2016, 2:30pm UTC](https://meta.discourse.org/t/limit-registration-to-specific-educational-domain-email-address/41193/5 "2016-03-17T14:30:47Z")

</div>

Glad that worked, @kalihman! If your school uses Google apps (e.g., your school’s email system is gmail), you can configure Discourse to authenticate against gmail (as well as facebook, and others), as you may have noticed when you logged in here.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 29, 2018, 6:29am UTC](https://meta.discourse.org/t/limit-registration-to-specific-educational-domain-email-address/41193/6 "2018-12-29T06:29:57Z")

</div>



---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [December 29, 2018, 4:17pm UTC](https://meta.discourse.org/t/limit-registration-to-specific-educational-domain-email-address/41193/7 "2018-12-29T16:17:22Z")

</div>


