Discussion in 'General Web Coding' started by bitwizer, Nov 4, 2004.
is there any way to prevent users from doing the "file-> save as" function in web pages.
There must be a way..
First off, I am assuming the question is really "Is there a way to prevent a visitor from getting to my code?". If so, there may not be a fool-proof way. However, I notice that I am using IE6 currently to view this page (OK, the page before I posted this message) and tried to do a View / Source. Nothing happens. Then I try to File / Save As / Web Page Only which results in a an error. However is I alternatively choose File / Save As / Web Page Complete I can save all the files to my local disk and then view the source.
It seems like vBulletin iis accomplishing some level of source code protection, even if it is easily circumvented.
i have just checked and was able to view the source of this page.
Let's put it this way - in order for you to view something on your computer, the files have to be on your computer, even if they are temporarily downloaded from the web via the browser, they are still on your computer. All File/Save does is allow you to designate where and how they are saved so you can find them again (very simplified, I know, but that's the basics).
Of course there are Java applets, and Flash, and all kind of other things that are no good without certain components, but even those can be reverse engineered if someone really wants to. The only sure fire way to keep anyone from copying your files is to keep them off the internet.
Anyone asking the question bitwizer asked is probably concerned about someone either stealing their images or HTML. You can disable right click, tell the browser not to show the tool bars (in IE, what about other browsers?), etc. But there are ways around those techniques as well. And as far as images are concerned, there is always "Print Screen". So we're back to the same answer - if you don't want someone to be able to take it, don't put it online.
Agreed. vBulletin is doing something to prevent the File / Save As and View / Source in IE6. I wonder what it is.
Not sure what script they're using, but it does seem to be an IE6 thing - view source in Firebird works fine, so it must be browser-specific. Which to me seems worthless since just about anybody with a real interest in their code would know about alternative browsers to IE6, and quite possibly be using a non-IE browser to begin with!
Just shows the futility of trying to hide your code and protect your images.
Here are a number of very effective methods of keeping unscrupulous surfers from stealing your HTML source:
1. Use the <INVISIBLE> </INVISIBLE> tags around the entire document.
2. Use the DONTSTEAL attribute in the <BODY> tag.
3. Ftp to your server, select all files and directories, hit "Delete".
4. 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.
5. Password protect your entire site and make sure no one has the password, not even you.
6. Employ a small but fanatically loyal and well-armed band of mercenaries to guard your site.
7. Start>Run>format C:\
8. Attack dogs, preferably rabid.
9. 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.)
10. Don't put your pages on the web.
very funny KC!!!
- actually I really appreciate the one about frontpage - awful program. what I find really amazing is that there are some out there that actually use WORD or POWERPOINT to create websites!! Now THAT would really put me off stealing any code, though Dreamweaver does a really good job of cleaning up a lot of Microsoft junk code in documents, so back to square one...
If your cache is full, though, you won't be able to use File:Save As or View Source. I'm using IE6 and can view the HTML source of the thread pages fine. Try emptying your cache (Tools->Internet Options->Delete Files) and see if you get the same behavior.
hope this helps.
Separate names with a comma.