The beauty of raising a genetically-enhanced child - not many people can brag that they have an extra chromosome... Follow the journey of our first-born son, Sheridan Michael, as we travel down a path that looks different than what we imagined, but is far more incredible than we could have ever hoped for.

14 March 2010

Adding Security to Your Blog

After the heart-wrenching attack on NDSC's More Alike Than Different Campaign, many members of the Oz Squad began discussing the security of our own blogs. Specifically, how can we better protect the images we upload of our children so people can't simply download them (and worse, manipulate them).

I found a relatively easy way to bypass the two most common ways people download images from blogger:

1. people can right-click on your images and simply "save as"

2. even if you disable right-clicking, people can left-click on your image and it will redirect them to your original file in blogger (which is even bigger, better quality) and people can save that image.

In an effort to increase the security of my images and content I did some sleuthing (along with some of you - so thank you for the back-and-forth!) and here is the best way I found to disable right-clicking and the left-click work around. It is a bit cumbersome (and will be a TOTAL hassle as I go back and try to do this to all my existing posts), but it's not bad if you do this as you create new posts... and I found this to give me the protection I wanted without losing some of the functionality I know I rely on (e.g., if you disable all right-clicking on your blog, people cannot link to a specific post if they want).

WARNING: This cannot prevent somebody from taking a screen image or viewing your source code; therefore, I now embed a copyright on each image. Trust me, anybody who tries the first two common ways to download your image will get the point that you don't allow it - but you can't prevent people from taking a screen shot (but by disabling the left-click on the image, all they can take a screen shot of is the smaller, lesser quality image in your post). This is something I am willing to live with.

Although there are a couple different ways to get the same results, this is what I found to be easiest.

Here you go... there's only 3 steps!

STEP ONE: Create your blog post, including uploading any images

STEP TWO: Switch to HTML edit. Each image uploaded looks like this:

(for the purpose of illustration, I allow readers to left-click and right-click on these images so you can see them clearly - just click on it once and you will be taken to a larger version so you can see the text clearly)

The blue part I highlighted above is the html code that links your image back to the original picture you uploaded through blogger. DELETE IT. But be careful that you only delete the portion in blue. Here is what it looks like when you have done it correctly (again, click the image to see the code in detail):

Now you have eliminated the left-click work around...

STEP THREE: If you want to disable right-clicking on the image, insert the following code right before the end of the image html. Let's break it down... here's the code to disable the rick-click and provides a warning:

Notice that my code provides a warning that simply indicates the image is copyrighted by me. You could come up with something more creative, or scary, if you want :)

Now, insert that at the very end of the image code, where I have the red X below (again, click on the image to see the code more clearly):

It is very important that you put it right before the /> at the end of the image tag. When you are done, it will look like this:

THAT'S IT! It's just 3 steps... I know it sounds cumbersome, but it's actually pretty quick and easy while you're creating your posts. If you want to see an example of the results, you can check out my two latest posts (I haven't gone back through my whole blog yet):

I hope some of you find this useful. I share this only because I think we do more good out in the open and I would hate to see too many people go private, although I truly understand why some of you have made that personal choice. There is, unfortunately, no perfect solution to protect our images...

Thanks so much for providing this info...for some reason, I also had to delete the < / a > that follows the image code to disable the left click option...

I was afraid I'd have to limit my blog to registered viewers and REALLY wanted to stay available to other DS families that may not take the time to do that, so this will be a big help. Thanks so much, Smarty!

Thank you so very much!!!I did it ;-) even we got a different code in Germany...and it is in just black too.I feel much better now ;-) Just have to find out how to get to the code for the photos on the side.:-) Christine & Joshua

Want to receive email updates when I post something new? Click here!

All text and images on GENETICALLY ENHANCED are property of the author unless otherwise noted. If you link or share from this site (and please do), please credit me! But note that altering, printing, copying, distributing, or any other unauthorized use of the images or content on this blog is prohibited. Any use of the images or content requires written authorization.