Weird Thoughts From Eric's Head

Tags - Categories : All | AJAX | BUSINESS | PERSONAL | PROGRAMMING | BOOK REVIEW

Bigger the better?
A man goes into his local building supply store and orders 10,054 bricks.

"May I ask what you're building?" asks the man behind the counter.

"It's going to be a barbecue."

"Wow, that's a lot of bricks for one barbecue,"

"Not really; I live on the 12th floor."

Protecting Your Content - Waste of Time
One question I am tired of hearing is how do I keep my text from being able to be copied, printed, etc. The short answer is you can not do it.

The reason you can not do it is due to the fact that there are so many ways to get around the security you put on the page.

For instance people disable the right click menu, well you can use the keys (Ctrl-A,Ctrl-C,Ctrl-V).

Well you are now saying I can disable the keys. Yes you can, but now people can not use your forms. But people can turn off JavaScript. Yes JavaScript can be disabled. So now the users can click and type away with your code sitting there useless.

Another trick people do is use the CSS media to keep people from printing the contents. They sent the style to hide all of the content. Well a person can use the print screen key to get the information, they can copy and past the code into word, save the webpage and remove the CSS, edit the page with a editor, and much much more.

Now your web page content is public domain. When you are viewing a website, you download that code into your cache. Even if you set the meta tag to not cache it, it is still placed there. Anyone can go into their temp folder and view the pages. Therefore any images, movies, sounds, etc are sitting on the user's computer ready to be grabbed and used.

A real life example:
I once had an class where quizzes were given online. It had a JavaScript timer that would submit the page automatically after 5 minutes. Sad thing is I disabled the JavaScript and had as long as I wanted to take it. (Note: I did this on a sample quiz that did not count and I could take it multiple times for practice.) The server side code did not check to see how long the test was opened. A big flaw in the software, that means this flaw could result in extra time. Even though I never needed to do this since there was 10 questions and took roughly 30 seconds to do it!

If you do not want a person to use the information, then do not place the information online. It is that simple.

Eric Pascarello Moderator of HTML/JavaScript at www.JavaRanch.com
Author of: JavaScript: Your Visual Blueprint for Dynamic Web Pages




Add a comment

Title
Body
HTML : b, i, blockquote, br, p, pre, a href="", ul, ol, li
Math Quiz 6 + 5 = (Helps stop blog spam)
Name
E-mail address
Website
Remember me Yes  No 

E-mail addresses are not publicly displayed, so please only leave your e-mail address if you would like to be notified when new comments are added to this blog entry (you can opt-out later).

TrackBack to http://radio.javaranch.com/pascarello/addTrackBack.action?entry=1104348417000