Report this

What is the reason for this report?

Limit Access to my Website hosted on Digital Ocean

Posted on June 9, 2021

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



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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.