Thursday, 1 October 2009

Most effective protection from copy/paste

Ever had a client ask for their content to be protected from copy/paste, or specifically tables of data? Well with Coldfusion you've a great head start.

The usual steps for doing this are to:
  • Disable copy/paste
  • Prevent drag/drop of text blocks
  • Remove right click & file bar
  • Prevent print
But this still leaves, the information available in the source code and as soon as you've downloaded that page you can do what ever you want with it...

Here's the clever bit.

A good way to get round this I thought would be to send this information in via ajax so it's not in the source code. CF steps in with cfgrid which can bind itself to a CFC for remote AJAX calls. Not only do you get an instantly cool looking grid you get the AJAX power grid.

Now, normally this would still leave the ajax call prone to a direct call to display the information, but with CF when you try to call the CFC directly you get the CFIDE login screen. Pretty sweet.

There are obviously ways to still surpass this but I would hazard a guess that even most web savvy people won't be able to get this data and it would require some of us with a little more know how. Retweet this button on every post blogger

No comments:

Post a Comment

 
Bookmark and Share