Hi Suraj,
On 07/10/2019 12.41, Suraj Thapa FC wrote:
> How do I protect the media and static files... From unauthorised access.
>
If you use Nginx, have a look here:
https://wellfire.co/learn/nginx-django-x-accel-redirects/
Something similar can most likely be done with other web servers (eg.
Apache).
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+unsubscribe@googlegroups.com
> <mailto:django-users+unsubscribe@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPjsHcHCCzXbkYX663xz-%3DMX7pS%3D_3uQOP7xa-L0hNTLjHdxuw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAPjsHcHCCzXbkYX663xz-%3DMX7pS%3D_3uQOP7xa-L0hNTLjHdxuw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/959adc59-21e8-ea57-3041-7a2eae762096%40stacktrace.dk.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment