403 Forbidden when making requests to some websites from Droplet

I’m trying to make a request to a website from my service that runs on a droplet and for some reason the website’s cloudflare prevents me from making the request. After some investigation, I also realized that hitting another endpoint results in a 403 forbidden. I started testing other websites just to make sure that there wasn’t anything wrong with the website I was trying to make requests to. I found that was also returning a 403 from the droplet. I’ve tried making requests locally, and from a VM (provided by a competing cloud provider) and it works fine.


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 @beepBeepImaJeep,

Can you confirm how are you doing the requests? What curl or wget commands are you using or is it something else entierly? I’m asking as I want to try and re-create the issue on my end.

Additionally, make sure you’ve allowed outgoing connections on the ports you are trying to use!

Regards, KFSys