ciber Posted December 17, 2008 Share Posted December 17, 2008 I use a php file to display images, if it is linked from another site. What I want to know, is if someone links to an image <a href> it will show the php file (this works already) but what I want, is if they link to the image using a <img> is it possible to redirect to an image then so I can put a hotlinking message into a jpg/gif file so it will show on their site instead of not loading anything. Link to comment https://forums.phpfreaks.com/topic/137334-is-it-possible/ Share on other sites More sharing options...
blufish Posted December 17, 2008 Share Posted December 17, 2008 I think you should look into htaccess, they can do what you want. I think this site can do that for you. http://www.htaccesstools.com/hotlink-protection/ You could technically do this with PHP, but it would be using PHP images and .htaccess is much easier. Link to comment https://forums.phpfreaks.com/topic/137334-is-it-possible/#findComment-717546 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.