Skip to content

Server throws DisallowedHost error when accessed via IP address #41

@madmecodes

Description

@madmecodes

The Django server is throwing DisallowedHost exceptions when users access the application directly via the server's IP address instead
of the domain name.

Long Term Fix: #40

Image

Why is this happening? (Discussion)

  1. Internet Bots trying to access?
  2. Bad actors trying for direct access to application via IP?
  3. Cloud provider health checks or background crawlers, some hosting environments or security scanners occasionally send requests to the raw IP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions