[GH-ISSUE #856] Bypass auth for certain IPs while requiring satisfy all for others #724

Closed
opened 2026-02-26 06:34:09 +03:00 by kerem · 3 comments
Owner

Originally created by @Chief-T1 on GitHub (Feb 2, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/856

Hi,

I'm new to this so I apologise if this is already available or I have posted in the wrong place.

I'm trying to limit external access to only the cloudflare IP ranges and I would like these to be authenticated with a password. I would also like to allow a local IP to not need a password. Is there a way to do this?

I see this has been done with Nginx using the geo directive: https://serverfault.com/questions/959612/require-basic-auth-for-specific-ips-in-nginx

Would this work as part of the geoip module as I see there is already an issue raised for that?

Thanks

Originally created by @Chief-T1 on GitHub (Feb 2, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/856 Hi, I'm new to this so I apologise if this is already available or I have posted in the wrong place. I'm trying to limit external access to only the cloudflare IP ranges and I would like these to be authenticated with a password. I would also like to allow a local IP to not need a password. Is there a way to do this? I see this has been done with Nginx using the geo directive: https://serverfault.com/questions/959612/require-basic-auth-for-specific-ips-in-nginx Would this work as part of the geoip module as I see there is already an issue raised for that? Thanks
kerem 2026-02-26 06:34:09 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@cpainchaud commented on GitHub (Feb 4, 2023):

geo and geoip are different modules unfortunatly

<!-- gh-comment-id:1416869634 --> @cpainchaud commented on GitHub (Feb 4, 2023): geo and geoip are different modules unfortunatly
Author
Owner

@github-actions[bot] commented on GitHub (Mar 20, 2024):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:2008552328 --> @github-actions[bot] commented on GitHub (Mar 20, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (May 1, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:2843930848 --> @github-actions[bot] commented on GitHub (May 1, 2025): Issue was closed due to inactivity.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#724
No description provided.