I have just installed the hotlink builder plugin for WordPress. It provides a basic level of protection for the images on your blog from
leechers visitors who come via Google and MSN looking for images. At least some of them are going to right-click on an image to use it in their own blogs, sites or myspace pages. This plugin displays a chunk of code they can copy and paste into their template or post to display the image. That code has a link to your blog which is much better than someone simply stealing your image and not giving credit.
It’s not perfect, but you can see it in action here. Right click on the image of the spire and James Joyce. A red bordered box will appear above it. Unfortunately if you right click on other images the box still appears in the exact same space which could be off-screen. I must try making it a popup div instead.
I also installed the small but useful break out of frames plugin. It simply breaks your blog out of foreign frames. Google Images is probably the worst offender of the referrers to this blog so hopefully it’ll encourage people to stay a bit longer here. Both plugins found via seobook.
Later… Some minor fixes required to make it work properly:
- Line 116 of hotlink-builder.php should be
$src .= ' alt="' . get_bloginfo('blogname') . '"';otherwise it’ll print your blog title before every post.
- WP-Cache needs to know about the cookie this plugin sets. Open up wp-content/plugins/wp-cache/wp-cache-phase1.php and add the following code around line 72, in the function wp_cache_get_cookie_values():
if( $_COOKE[ 'imagesearcher' ] == 'yes' ) $string .= 'searchengine';
3 replies on “Credit’s due when it’s due”
I was able to right click and download the spire photo with no problem. Great idea for a plugin, and I would love to implement it… Maybe a Firefox incompatibility?
Thanks Will. I had noticed that happened once before when I was testing the “break out of frames” plugin but I verified it again.
That plugin is now gone and the red box appears again. Off the top of my head, I’d guess that the frames plugin removed the referrer that the hotlink plugin used to check where the visitor came from. But that could be a wild guess 🙂
I just tried it in Safari. The plugin doesn’t appear to be working. I didn’t notice anything other than what would normally be there when I right-click.