Solved

View Source

Posted on 2003-11-10
4
592 Views
Last Modified: 2011-09-20
http://www.vortex-webdesign.com/help/hidesource.htm

Does anyone have the info that was on this page?

I never copied it and saved it, i just posted the link.

If you have it please post it and i will set it up on another domain.
0
Comment
Question by:jaysolomon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 31

Accepted Solution

by:
seanpowell earned 20 total points
ID: 9715481
Here are a number of very effective methods of keeping unscrupulous surfers from stealing your HTML source:

Use the <INVISIBLE> </INVISIBLE> tags around the entire document.
Use the DONTSTEAL attribute in the <BODY> tag.
Ftp to your server, select all files and directories, hit "Delete".
Put every existing copy of every file on floppies, place them in a shoebox and bury them in the backyard. There is another version of this method which involves placing the floppies in a plastic bag and hiding them in a different sort of hole. Both are equally effective.
Password protect your entire site and make sure no one has the password, not even you.
Employ a small but fanatically loyal and well-armed band of mercenaries to guard your site.
Start>Run>format C:\
Attack dogs, preferably rabid.
Use any version of Microsoft Frontpage to create your site. (This won't prevent people from viewing your source, but no one will want to steal it.)
Don't put your pages on the web.
See also the alt.html micro-faq: http://hyweljenkins.com/support/mfaq.htm #1, #2, #6, #19, #20, #22 & #36.

Ok, that was a bit of fun. Here's the real lowdown on hiding your source code:

It can't be done.
The only truly effective method in the list above is #10.

While it is possible to make it difficult for people to view your source code, you cannot stop someone who really wants it. It has been suggested that using javascript to disable right-click or encrypting the HTML may be effective. It is far more likely that employing these easily circumvented techniques will only encourage people to "steal" your code. In all probability, they don't want it until you tell them they can't have it.

For example: Here is page- http://prestigiousdames.com/char/57_chevy -where the author is laboring under the misapprehension that employing all manner of legitimate-user-infuriating scripting tricks will prevent their page from being copied/edited/distributed. They have attempted to encrypt the source, intercept right-clicks, left-clicks and various keyboard commands and have, of course, most conspicuously failed. The only thing this author has succeeded in doing is to create a page that presents serious obstacles to legitimate users and one that will crash many commonly used browsers. A simple snippet of javascript defeats all of this foolishness in under two seconds:

javascript:(function(){ function htmlEscape(s){s=s.replace(/&/g,'&');s=s.replace(/>/g,'></g,'<');return s;} x=window.open(); x.document.write('>');s=s.replace(/pre>' + htmlEscape('\n' + document.documentElement.innerHTML + '\n')); x.document.close(); })();

To use this javascript simply right-click the following link and select "add to favorites": Reveal Generated Source (Use IE5.0 or greater)

Now point your browser at http://prestigiousdames.com/char/57_chevy and once the page is displayed, go to the bookmark you just made. All of the encryption is stripped out leaving a clean copy of the HTML source to do with as you see fit. Images from the page may be saved by dragging them from the page into a local folder, or by going directly to their individual URLs.

The point of this little demonstration is that there are a number of ways to protect your works from unauthorized distribution. Creating crippled pages with easily defeated script-kiddie hacks is not one of them.

Beware, there are individuals and companies that sell HTML "protection" to the naive. These are nothing more than scams; don't get taken for a ride.

0
 
LVL 16

Author Comment

by:jaysolomon
ID: 9715509
Thanks a Million

lol now we have a link in EE to point to

[Bookmark]
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9716814
If you ever need to find other pages that have been removed:
http://www.archive.org/

If you add your URL to the search box, you'll get this:
http://web.archive.org/web/*/http://www.vortex-webdesign.com/help/hidesource.htm

October is the most recent listing that still functions...
0
 
LVL 16

Author Comment

by:jaysolomon
ID: 9716882
Kool

Thanks
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question