Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

External Images does not display when used in img tag

Tags:

html

I have these strange image urls that if I call direct in browser, an image shows up but when I use it in an img tag no image shows up.

http://thetvdb.com/banners/_cache/fanart/original/248951-1.jpg

I'm sure I'm making some silly mistake. Here is simple code.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org
/TR/html4/loose.dtd">
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title></title>
</head>
<body>
    <img src="http://thetvdb.com/banners/_cache/fanart/original/248951-1.jpg" alt=""/>
</body>
</html>

Any help?

like image 224
mysterious Avatar asked Dec 16 '22 02:12

mysterious


1 Answers

The TV DB does not want to use their bandwidth to display an image on your site.

We don't allow any kind of hotlinking, you are only allowed to directly download the images and then use them as you see fit, you may not use us as a host.

They have taken steps to prevent you from doing this.

quentin@laptop:~ # curl -e http://example.com/ http://thetvdb.com/banners/_cache/fanart/original/248951-1.jpg
<html>
<head><title>403 Forbidden</title></head>
<body bgcolor="white">
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</center>
</body>
</html>
like image 125
Quentin Avatar answered Jan 29 '23 07:01

Quentin