Web Programming DIY – How to Protect Yourself Against Image Hotlinking!

For those of you who run small websites on shared servers, you might sometimes run into problems where your images are “hotlinked” and your bandwidth stolen.  Here at Zedomax.com, we run a server farm so we don’t have bandwith problems so far but here’s 2 really great resources on how to protect yourself against image hotlinking:

  • AltLab.com has some simple instructions on how to stop hotlinking via .htaccess file in your web server.
  • AlistApart.com has a slightly more complex PHP method that can help you protect against unwanted hotlinking.

If you have a website with no hotlinking image problems, it’s probably wiser and more beneficial to let people hotlink your images.  But of course, if your website starts going down for no reason, look at your web logs and see if someone has hotlinked your images.  For one, social networking services like StumbleUpon is built on hotlinking images.  If you use StumbleUpon a lot, you might want to check that your images are not being “stumbled” out of control.  If it is, simply put the code and you won’t have to worry about your website going down.  *Side Note – StumbleUpon really needs to “cache” those images instead of hotlinking.

hotlink

3 Responses to Web Programming DIY – How to Protect Yourself Against Image Hotlinking!

  1. semageek says:

    You can try my plugin against hotlink for wordpress too:
    http://wordpress.org/extend/plugins/pictpocket/
    I translate it in english language and you can see more explain on :
    http://www.semageek.com/2009/06/27/pictpocket-u
    but this post is in french, you can translate it, if you want to publish it on your blog.
    Best regard.
    Semageek

  2. zedomax says:

    Good stuff, thanks for the plugin, will definitely try it out.

  3. zedomax says:

    Good stuff, thanks for the plugin, will definitely try it out.

Leave a Reply

Your email address will not be published.


Check out more interesting categories: Blog, DIY, Educational, Featured, Featured DIYs, Hack, HOWTO, technology, Web, Wordpress.


Related News and Resources