How do I set up a django do-managed web app to serve only 1 ip address? seems like there’s only firewall feature for droplets
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hey @wafflez180,
Indeed, you can’t attach a cloud firewall to the App Platform.
The best thing to do to get your voice heard regarding this would be to head over to our Product Ideas board and post a new idea, including as much information as possible for what you’d like to see implemented.
Alternatively, you could create a middleware in Django and programmatically reject all of the traffic. For example, define a variable
BLOCKED_IPS = ('123.123.123.123',)
where you specify the IP that you want to allow. Then here is an example of the middelware that you could use:Best,
Bobby