I've been thinking about looking into this... If anybodies already done it please hook me up with it I've been using the VB attatchment system for all of my articles and now the article images are getting hotlinked fairly often.
I've been thinking about looking into this... If anybodies already done it please hook me up with it I've been using the VB attatchment system for all of my articles and now the article images are getting hotlinked fairly often.
I think the simpilest thing to do is not allow guests to view attachments
Using a .htaccess file to prevent hotlinking works on the same principle as the code posted above. Because of the session-less design of HTTP, there are really only 2 ways you can prevent hotlinking. 1 - referrer url or 2 - user authentication.
.htaccess won't protect attachments though, will it? It won't keep someone from using a img src tag to post an attachment from your Forum to where ever they want to. How can that be done?