Question

How to set a traffic limit to avoid unwanted charges?

I read that If the outbound transfer exceeds the amount included with my Droplets at end of the cycle, I will be charged $0.01 per excess gigabyte.

I am concerned about this potential automatic charge.

Is there a way to automatically disable droplet in case the limit is reached?

Alternatively, are there any ways through a firewall to set this limit and block excess traffic or turn off the droplet?


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.

Accepted Answer

Hey @iljkr,

I don’t believe that this is currently possible but it sounds like an interesting idea.

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.

https://ideas.digitalocean.com/

In the meantime what you could do is to setup Billing alerts so that you get early notifications when you reach a certain usage amount. You can do that via your Control Panel -> then go to Billing -> then under Billing Alerts hit the ‘Add Alert’ button.

Hope that helps! - Bobby.

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.

It’s not possible.

While it isn’t possible to do this exactly you can reduce the traffic a few ways.

First you can use software like this.

https://vitux.com/how-to-limit-network-bandwidth-in-ubuntu/

To monitor and cut off traffic, also you could just close the ports being accessed via your firewall. These don’t stop traffic but they reduce it by a lot!

Also you could use compression and caching and sites like cloudflare to serve the site to reduce bandwidth and improve performance.