firewall - how to block all incoming traffic except from 1 website? working example please

not sure how to do this been looking for hours and I do not see 1 example …I would think this to be a normal frequent question. I only need my website which is hosted on another place to access my digitalocean droplet. I am sure it can be done easily enough in the digitalocean fire wall but I have had zero luck with my testing?

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hey there @support2bd6f6efeefcc3c0033,

Our product docs have a great section on creating custom rules in our cloud firewall. You can use these to allow traffic through a specific port or from a specific IP.

In your situation, if you wanted to permit all traffic from a single IP, simply create the custom rule as the custom type with the port range left blank and in the source simply put the IP of the server you’d like to permit through.

Hope that helps! - Matt.