# Unable to log into my discourse - "You can't log in as xxx from that IP address."

**URL:** https://meta.discourse.org/t/unable-to-log-into-my-discourse-you-cant-log-in-as-xxx-from-that-ip-address/27128
**Category:** Support
**Created:** [2 Abril, 2015 17:17 UTC](https://meta.discourse.org/t/unable-to-log-into-my-discourse-you-cant-log-in-as-xxx-from-that-ip-address/27128 "2015-04-02T17:17:08Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [2 Abril, 2015 17:17 UTC](https://meta.discourse.org/t/unable-to-log-into-my-discourse-you-cant-log-in-as-xxx-from-that-ip-address/27128/1 "2015-04-02T17:17:08Z")

</div>

Uh oh - I am having a problem!

Update: my suspicion is that this is about cloudflare, and the way we block IP addresses when deleting users. Is there any way to fix this so we can log into our discourse again??

 ![](https://global.discourse-cdn.com/meta/original/3X/3/2/329247263602c713382c7cf34c3ae8d8439a853c.png)

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [2 Abril, 2015 18:38 UTC](https://meta.discourse.org/t/unable-to-log-into-my-discourse-you-cant-log-in-as-xxx-from-that-ip-address/27128/2 "2015-04-02T18:38:48Z")

</div>

You’ll need to go into the rails console or postgresql command line and delete the ScreenedIpAddress record for your IP address.

```plaintext
s = ScreenedIpAddress.match_for_ip_address("...")
s.destroy

```

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [2 Abril, 2015 20:11 UTC](https://meta.discourse.org/t/unable-to-log-into-my-discourse-you-cant-log-in-as-xxx-from-that-ip-address/27128/3 "2015-04-02T20:11:45Z")

</div>

Thanks, @neil! I’m happy to do this but don’t know how to do it. Would you be willing to give me steps? I’d really appreciate it.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [2 Abril, 2015 21:48 UTC](https://meta.discourse.org/t/unable-to-log-into-my-discourse-you-cant-log-in-as-xxx-from-that-ip-address/27128/4 "2015-04-02T21:48:21Z")

</div>

Using the standard Docker install:

```plaintext
cd /var/discourse
sudo -E ./launcher enter app
rails c
s = ScreenedIpAddress.match_for_ip_address("...")
s.destroy

```

You might have used a different name than “app” for your yml file.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [3 Abril, 2015 02:14 UTC](https://meta.discourse.org/t/unable-to-log-into-my-discourse-you-cant-log-in-as-xxx-from-that-ip-address/27128/5 "2015-04-03T02:14:22Z")

</div>

Use `ScreenedIpAddress.all` to see what’s there and which ones you need to delete.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [3 Abril, 2015 15:55 UTC](https://meta.discourse.org/t/unable-to-log-into-my-discourse-you-cant-log-in-as-xxx-from-that-ip-address/27128/6 "2015-04-03T15:55:03Z")

</div>

thanks everyone! so what worked for me ultimately was:

1. log in using my phone (where I had not yet logged out!) and grab the user list, which includes IP address for users
2. opened rails console using [commands provided elsewhere](https://meta.discourse.org/t/how-do-i-open-the-rails-console-in-discourse-docker-in-production-mode/16970/4) by @sam, then [ran commands](https://meta.discourse.org/t/unable-to-log-into-my-discourse-you-cant-log-in-as-xxx-from-that-ip-address/27128/2) provided by @neil for the IP address of affected users

---

<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: [23 Septiembre, 2018 13:11 UTC](https://meta.discourse.org/t/unable-to-log-into-my-discourse-you-cant-log-in-as-xxx-from-that-ip-address/27128/7 "2018-09-23T13:11:51Z")

</div>



---

<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: [28 Mayo, 2021 22:56 UTC](https://meta.discourse.org/t/unable-to-log-into-my-discourse-you-cant-log-in-as-xxx-from-that-ip-address/27128/8 "2021-05-28T22:56:38Z")

</div>



---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [29 Marzo, 2022 13:57 UTC](https://meta.discourse.org/t/unable-to-log-into-my-discourse-you-cant-log-in-as-xxx-from-that-ip-address/27128/11 "2022-03-29T13:57:54Z")

</div>

Este tema se cerró automáticamente 30 días después de la última respuesta. Ya no se permiten nuevas respuestas.
