The answer is probably: yes...
They're checking user-agents, I suppose.
And those are sent in your headers. You can fake your user-agent. Don't use file_get_contents()
though, as that one doens't allow faking your user-agent.
Look into curl.
Edit 1
Barmar's link shows a possibility to use file_get_contents()
with a different user-agent at the same time. It's worth while looking into...
Edit 2
But it could also be about then checking the referrer... If that is the case you really need to use curl
to be able to set the referrer.
Edit 3
Having seen the URL now, and looking at error 404
that you get (not a 50x
) , I advise you to check if the URL is being escaped and parsed ok. I see that the URL contains spaces, and two slashes after the domain name. Check if spaces are escaped into %20 and if the double slashed shouldn't be stripped to just one slash.
So
http://celebslam.celebuzz.com//bfm_gallery/2014/03/Lindsay Lohan 2 Broke Girls/gallery_enlarged/gallery_enlarged-lindsay-lohan-2-broke-girls-01.jpg
Should become
http://celebslam.celebuzz.com/bfm_gallery/2014/03/Lindsay%20Lohan%202%20Broke%20Girls/gallery_enlarged/gallery_enlarged-lindsay-lohan-2-broke-girls-01.jpg
And notice, the server is CaSe-SeNsItIvE !