Question

Limit Access to my Website hosted on Digital Ocean

Hi Team DI, Wanted to know how can I limit access to my website (or droplet to say) only to specific laptops/PCs being used in my office or my home.

Droplet details - 4 GB / 80 GB Disk / NYC1 - CentOS 7.6 x64


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.

Hi there @kaustubhjsakpal,

What you could do is to use a firewall like CSF and lock down all ports. That way only the allowed IP addresses will be able to access the services running on the Droplet.

Here is a step by step tutorial on how to install CSF on CentOS:

https://www.digitalocean.com/community/questions/how-to-install-and-configure-config-server-firewall-csf-on-centos

Hope that this helps! Regards, Bobby