---
title: nG Firewall
description: "When magic login URLs blocked from [nG firewall](https://perishablepress.com/ng-firewall/), you may want to extend firewall rules to allow magic login urls. If you are using runcloud: ``` # allow magic login links if ($request_uri ~ \"magic-login\"){ set $gfwreason \"allow\"; } ```…"
url: "https://handyplugins.co/docs/magic-login-ng-firewall-configuration/"
updated: "2024-05-13"
category: Magic Login Pro
---

# nG Firewall

When magic login URLs blocked from [nG firewall](https://perishablepress.com/ng-firewall/), you may want to extend firewall rules to allow magic login urls.

If you are using runcloud:

```
# allow magic login links
if ($request_uri ~ "magic-login"){
    set $gfwreason "allow";
}
```

or if you are running non customized version:

```
if ($request_uri ~ "magic-login"){
        set $7g_drop_bad_request 0;
        set $7g_drop_bad_referer 0;
        set $7g_drop_bad_query_string 0;
        set $7g_drop_not_allowed_method 0;
        set $7g_drop_bad_bot 0;
}
```
