'Allowed_hosts' setup question

18 views
Skip to first unread message

o1bigtenor

unread,
Jun 21, 2020, 7:38:12 AM6/21/20
to django...@googlegroups.com
Greetings

At the beginning stages of my Django journey running on Debian
testing, postgresql 12 Django 3 using Python3 (and definitely no
bloody expert under the hood!!).

Working on a personal use application that I would like available for
use by anyone on my local network.
Allowed_hosts in the docs gives examples for serving specific urls
and/or FDQN names.

Is there a way of limiting access to a web application to only the
members of the network without opening access to those outside the
network?

(Maybe this is a networking question but I thought I might start here.)

TIA

Mohsen Pahlevanzadeh

unread,
Jun 21, 2020, 8:58:14 AM6/21/20
to django...@googlegroups.com
I recommend you to use iptables.
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPpdf5-A0PLYgoFaH_%2Bj13Ssz%3DNLZzyO_CadE3rzH61DegQDGg%40mail.gmail.com.

o1bigtenor

unread,
Jun 21, 2020, 10:58:37 AM6/21/20
to django...@googlegroups.com
On Sun, Jun 21, 2020 at 7:57 AM Mohsen Pahlevanzadeh
<m.pahle...@gmail.com> wrote:
>
> I recommend you to use iptables.
>
So if I'm using nftables (Debian presently is using nftables - - -
iptables has been deprecated) - - - what is the recommended setup for
Allowed_hosts ?

Rgards
Reply all
Reply to author
Forward
0 new messages