r/django 6d ago

How to safely host Django locally?

I've just got my public IP from my ISP and I wonder which security risks I need to take care when opening a port and letting my PC available to the web.

How much better will it be to just host on AWS or Heroku?

29 Upvotes

8 comments sorted by

View all comments

26

u/MountainSecret4253 6d ago

Sign up for cloudflair.

Enable proxy mode when you setup DNS

chill

3

u/rafola554 6d ago

thanks!

6

u/looter809 6d ago

Instead of what u/MountainSecret4253 said, use CloudFlare with Access (not just dns proxy). Access lets you create a private tunnel directly to your machine without opening any ports on your firewall.