External images are not displayed when used in the img tag

I have these strange image URLs that if I call directly in the browser, the image appears, but when I use it in the img tag, the image does not appear.

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

I'm sure I'm making some kind of stupid mistake. Here is a 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?

+4
source share
1 answer

TV DB does not want to use its bandwidth to display images on your site.

We do not allow any hot links, you are allowed to directly upload images and then use them as you see fit, you cannot use us as a host.

They have taken steps to stop 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> 
+10
source

Source: https://habr.com/ru/post/1401659/


All Articles