# How do I manually add an email address to the block list?

**URL:** https://meta.discourse.org/t/how-do-i-manually-add-an-email-address-to-the-block-list/307098
**Category:** Support
**Created:** [May 7, 2024, 2:38pm UTC](https://meta.discourse.org/t/how-do-i-manually-add-an-email-address-to-the-block-list/307098 "2024-05-07T14:38:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [May 7, 2024, 2:38pm UTC](https://meta.discourse.org/t/how-do-i-manually-add-an-email-address-to-the-block-list/307098/1 "2024-05-07T14:38:32Z")

</div>

When deleting a user we have the option to also block the email address from signing up / creating an account again in the future:

 ![Screenshot 2024-05-07 at 15.34.17](https://global.discourse-cdn.com/meta/original/4X/5/0/0/500b6a212377f9e592ecd835db62d3746efc2431.png)

The list of email addresses which are blocked can be found at `https://example.com/admin/logs/screened_emails`

Where / how do I manually add an email address to this list? 🤔

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [May 7, 2024, 3:37pm UTC](https://meta.discourse.org/t/how-do-i-manually-add-an-email-address-to-the-block-list/307098/2 "2024-05-07T15:37:33Z")

</div>

I don’t think this is possible still using the UI.

There’s this tip for doing it through the rails console, though I haven’t tested it to check it’s up-to-date. Always worth taking a backup first as well when adjusting things in the rails console.

> [@Manually add an email to the screened email list](https://meta.discourse.org/t/manually-add-an-email-to-the-screened-email-list/142277/2):
>
> It looks like you can do it from the console. I just tested the following:
> 
> ```plaintext
> ./launcher enter app
> rails c
> ScreenedEmail.create(email: "problem@email.com")
> 
> ```
> 
> The screened email will show up in your admin interface after that. You can remove it from there if ever necessary.

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [May 7, 2024, 5:03pm UTC](https://meta.discourse.org/t/how-do-i-manually-add-an-email-address-to-the-block-list/307098/3 "2024-05-07T17:03:12Z")

</div>

> [@JammyDodger](#):
>
> I haven’t tested it to check it’s up-to-date

Confirmed working on `latest`:

```plaintext
[1] pry(main)> **ScreenedEmail**.create(email: **"** problem@email.com **"** )
=> #<ScreenedEmail:0x00007f74b3200c90
id: **93** ,
email: **"** problem@email.com **"** ,
action_type: **1** ,
match_count: **0** ,
last_match_at: **nil** ,
created_at: **Tue** , **07**  **May**  **2024**  **17** : **01** : **10.150557112**  **UTC**  **+00** : **00** ,
updated_at: **Tue** , **07**  **May**  **2024**  **17** : **01** : **10.150557112**  **UTC**  **+00** : **00** ,
ip_address: **nil** >
[2] pry(main)>
```

And in the UI:

 ![Screenshot 2024-05-07 at 18.02.53](https://global.discourse-cdn.com/meta/original/4X/1/8/b/18b380a71a7d46dc89a926e95195ca20b6673ed8.png)

Thanks @JammyDodger😃

---

<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: [June 6, 2024, 5:03pm UTC](https://meta.discourse.org/t/how-do-i-manually-add-an-email-address-to-the-block-list/307098/4 "2024-06-06T17:03:29Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
