mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #3246] Add an option to reject or drop a request with an unknown host #2191
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#2191
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ondrejnedoma on GitHub (Oct 7, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3246
Is your feature request related to a problem? Please describe.
This is a security concern of mine, where if someone opens ANY domain pointing to my IP address with an A record, or the IP address itself, it would at best throw a 404 page if I set that up in the settings, and at worst show the congrats page.
Describe the solution you'd like
It would be a great feature if besides choosing congrats page, 404 page, redirection, or custom page, I could also choose to reject or drop the request entirely, giving the attacker a lot less hope.
Describe alternatives you've considered
Additional context
@FibreTTP commented on GitHub (Oct 8, 2023):
This is was already implemented in https://github.com/NginxProxyManager/nginx-proxy-manager/pull/2942:

https://nginx.org/en/docs/http/request_processing.html#how_to_prevent_undefined_server_names
@ondrejnedoma commented on GitHub (Oct 10, 2023):
Oh, I was running almost a year old version of NPM, after updating I see the option, Thanks!