Hi,
As a follow up to https://www.themoviedb.org/talk/65cc7217894ed6014726c832, on further digging, it seems like the "referer" header may be causing issues.
Trying this:
curl -L 'https://media.themoviedb.org/t/p/w440_and_h660_face/bL1mwXDnH5fCxqc4S2n40hoVyoe.jpg' -H 'referer: https://www.themoviedb.org/'
returns:
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0"/><style>body{margin:0px;padding:0px;}iframe{width:100%;height:100%}</style><iframe src="http://www.airtel.in/court-orders/ " width="100%" height="100%" frameborder=0></iframe>
but this works fine:
curl -L 'https://media.themoviedb.org/t/p/w440_and_h660_face/bL1mwXDnH5fCxqc4S2n40hoVyoe.jpg'
returns (basically the expected image):
Warning: Binary output can mess up your terminal. Use "--output -" to tell curl to output it to your terminal anyway, or consider "--output <FILE>" to save to a file.
Is it possible the CDN itself may be caching invalid responses? And if so, can it be configured to skip those invalid responses?
No trobeu una pel·lícula o una sèrie? Inicieu la sessió per a crear-la.
Desitgeu valorar o afegir aquest element a una llista?
No en sou membre?
Resposta per darthShadow
el 3 agost de 2025 a les 12:55 P.M.
CDN response for the first (with
referer
header):Notice the
cdn-cache: HIT
.And for the second (without the
referer
header):Resposta per Travis Bell
el 4 agost de 2025 a les 1:25 P.M.
The data being returned in your first request is from Airtel, it has nothing to do with us. The body of that request tells you what is happening.
We’ve known for a long time that there are ISP’s in India that block TMDB which is unfortunately outside of our control.
Regarding the
referer
header, it’s set automatically by your browser and cannot be altered. Without that header the request is redirected toimage.tmdb.org
. This being a different domain, it looks like Airtel isn’t blocking it. Again though, we have no knowledge as to what Airtel is or isn’t blocking. And what they do block seems completely arbitrary at this point.