Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Instagram Block CDN URL requests from Some IPs?

I observed recently that for some cdn url of instagram the GET request is giving >400 response.

https://scontent.cdninstagram.com/t51.2885-15/26184672_169643143794471_5913317750591193088_n.jpg

If I try same url from same code from local it works. so, does it block content delivery by IP address of the request?

like image 658
enator Avatar asked Jan 08 '18 11:01

enator


People also ask

Does Instagram use CDN?

Instagram now also has a check-out feature where users can buy an item. All these things are largely because of CDNs.

Does blocking someone on Instagram block their IP address?

No. Users can report abusive behavior and accounts, but they can't actually block someone's IP themselves.

What does CDN Instagram mean?

"Canadian" is the most common definition for CDN on Snapchat, WhatsApp, Facebook, Twitter, Instagram, and TikTok. CDN.


1 Answers

As the 400 error could be interpreted as:

  • Invalid URL

  • Bad Request

  • The request hostname is invalid.

  • The request could not be understood by the server due to malformed syntax.

You may try to :

  • clear your browser cookies
  • clear your DNS cache
  • clear your browser cache

And retry to get the data again.


Apparently it is not due to cache or cookies,

So please note that in the specific case of Instagram, and according to this issue the 400 error could also mean:

{ "meta": { "error_type": "OAuthAccessTokenException", "code": 400, "error_message": "The access_token provided is invalid." } }

You may also note that according to the rate limit documentation when the max. rate limit was reach Instagram will raise a 429 error, and from the same source,

You may also receive responses with an HTTP response code of 400 (Bad Request) if we detect spammy behavior by a person using your app. These errors are unrelated to rate limiting.


So my last advice is to evaluate if your production server may be considerate by Instagram as a "spammy server" (because of too much requests)

In that case, you may still try to review your app and getting an access token. But keep in mind, that if your app was reviewed you still have this Global Rate Limits constraint:

Global rate limits are applied inclusive of all API calls made by an app per access token over the 1-hour sliding window, regardless of the particular endpoint. Rate limits also apply to invalid or malformed requests.

Sandbox 500 /hour

Live 5000 / hour

like image 102
A STEFANI Avatar answered Oct 09 '22 02:10

A STEFANI