Access denied using cURL from Droplet

Posted March 19, 2021 704 views

So I’m trying to cURL a website from a Droplet, but I’m getting this error:

<TITLE>Access Denied</TITLE>
<H1>Access Denied</H1>

You don't have permission to access "http&#58;&#47;&#47;www&#46;kroger&#46;com&#47;" on this server.<P>

I tried this on my local machine and it works just fine. I also tried to run this on a fresh Droplet, but I’m receiving the same error message. Are websites just blocking Digital Ocean Droplet connections? If not, what can I do to fix this?

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.

Submit an Answer
1 answer

Hi there,

It looks like that there is a deny rule on the kroger .com side that is blocking your HTTP requests. It is possible that they have a geo IP check and they could be blocking access to their services from specific countries.

What I could suggest in this case is getting in touch with the kroger .com provider and asking them to allow your Droplet IP address to access their services.