Solved

View Source

Posted on 2003-11-10
4
588 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now