1

I am facing one issue. I am accessing third party image into our site but it gives me 403 error. But I am able to access it if I am hitting that image url directly on browser.

Please provide what the reason behind it

Esoteric Screen Name
  • 6,082
  • 4
  • 29
  • 38
user1046987
  • 113
  • 7

1 Answers1

1

This image is not available for hotlinking. Service does checking of referrer and doesn't allow to embed image inside another sites. You can try to use proxying for that reason with short server-side script.

Please, refer to this thread, if you're using PHP.

Community
  • 1
  • 1
fedosov
  • 1,989
  • 15
  • 26
  • Thanks, But if I am accessing that image url using my local host it's opening it. – user1046987 Jul 16 '12 at 11:49
  • Through opening in browser? In that situation `referer` stays empty, and service accepts your request with ease. So, with script you can emulate this behaviour and be happy. – fedosov Jul 16 '12 at 11:51
  • No I am not accessing it Directly on browser. I have made a test page in local Server and add that image path in the image source. In that case it's opening perfectly. Referrer will empty in that case as well or what ? – user1046987 Jul 17 '12 at 03:21
  • Maybe service permits hotlinking from localhost - if you provide an example image URL i can start try to figure out this. Please, try the script that i mentioned in the answer. – fedosov Jul 17 '12 at 06:38