|
|
. |
Location: MST Home / Resources / Tips and Tricks / Right Mouse
CaptureMST Resources
Tips and Tricks
Right Mouse Capture
Since people learned how to 'Right Click' and perform a 'View source' or 'Save image
as...', protecting ones work has been practically impossible. Sure, if you know JavaTM
or ActiveX®, they can help in preventing this action since they
are compiled, rather than interpreted, languages. Both are very powerful and are
useful for many tasks, however, it may not be ideal for every situation. This is
especially true if what you are trying to protect is client-side Dynamic HTML, where
Javascript, CSS and HTML are the perfect environment.
Since HTML and Javascript are interpreted, the browser must be able to read and execute
your code. Since the leading browsers offer a means in which to 'Right Click' and
'View source', protecting your code has been practically impossible. Sure, you can
view the source from the browser toolbar, however, if your page is in a frameset, it
becomes a little more difficult to view the source of the page. Simply 'Right Click'
in the frame and be presented with the opportunity to 'View source'.
While we can't absolutely stop the most determined individual from grabbing our code,
we can hinder their ability to do so. Capturing the Right Mouse button is just one
step that we can perform, and since that is the issue at hand, this is the area that we
will focus on.
We developed a cross browser compatible script, mstRMCapture.js, offering
graceful degradation for older browsers, to capture the Right Mouse button. We had
such a response concerning our script, we're making it publicly available to use within
your own Website. Keep in mind, this isn't a means in which to absolutely stop
source or image theft, it helps to slow the process, especially with novice designers.
<< Back ][ Next >>
[ Top of Page ] |
. |
|