ok

On Tue, Jan 21, 2020 at 11:19 PM Kasper Laudrup <laud...@stacktrace.dk>
wrote:

> Hi,
>
> On 21/01/2020 13.34, Roger Gammans wrote:
> > Hi
> >
> > The precise details of this depend on your hosting environment, but the
> > canonical method is request.get_host() ; see
> >
> https://docs.djangoproject.com/en/3.0/ref/request-response/#django.http.HttpRequest.get_host
> >
> > If your hosting environment is non-standard; you might need some custom
> > middleware to help, as per the discussion in the link documentation.
> >
>
> Be aware that it's trivial to spoof this so don't rely on this to be
> accurate and don't ever rely on this for anything security related.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5dcbc2ea-b962-2d38-61b0-ab2a2e7497a1%40stacktrace.dk
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPUw6WYoEc8sw9jmmD-F%2B-wqWHTDxCBNrebon0Ms-4rdd%2BXuVQ%40mail.gmail.com.

Reply via email to