realpython / realpython-blog

real python blog posts
https://realpython.com/blog/
200 stars 86 forks source link

added address to prevent atacks. #32

Closed Bernardoow closed 6 years ago

Bernardoow commented 7 years ago

Hi,

I read your post and used it on production. Today I was invaded because postgres acepted conection from anywhere.

So, I researched and found solution. Added restriction who can access postgres. And only docker can do it. For restringe anywhere I put 127.0.0.1 before ports.