Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Protecting source code

Status
Not open for further replies.
May 19, 2004
212
US
Anyone know how to prevent a browser from viewing the source code?
 
if its client side no way to protect it, I find theres no point to it either, if you are trying to do anything password related, or otherwise security related, look into server-sided scripting, dont do anything like that on the client side.

Karl Blessing
PHP/MySQL Developer
 
You could go for a flash site -that's the only way I can think of.


Jakob
 
True flash can be decompiled, but the people i assume he fears are the right-clickers-and-copy type people, which will always exist and theres no point in trying to stop it. Best route is going serversided if theres any security related materials.

Karl Blessing
PHP/MySQL Developer
 
And, considering that people share their amazing html code all around internet for free, who would want to steal his code? I mean, have you discovered an amazing html technique that will make you rich beyond your dreams by selling it?
 
I mean, have you discovered an amazing html technique that will make you rich beyond your dreams by selling it?

I have, it's called Wullie's amazing source hider. I would show you all it, but I can't put it online incase someone steals it. [santa3]

Wullie

Fresh Look - Quality Coldfusion Hosting

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Oh god not this topic AGAIN

NATE


mainframe.gif


Got a question? Search G O O G L E first.
 
Thanks folks. Not being much of a HTML programmer but a piddler I didn't think so.

BUT... As with all other things, if it can be imagined it can be accomplished. There have been some pretty amazing things done when others thought it impossible.

Who knows what the future holds....

 
Why would you want to prevent someone from viewing your source code. There is a way to prevent people from being able to right click on a page, I'm not sure what it is, but there are other ways to view the source code. When you hit a webpage all you are doing is requesting the source code from a server and then the browser takes the code and displays the page. If you prevent one from seeing the source code you prevent the page from being displayed. If you want to protect your coding I would suggest using a server-side scripting language like PHP or ASP, where the server processes your code and then sends out HTML to display the page.

When in doubt, go flat out!

 
Well, i've seen the View Source fail to work when a computer has an abundance of temp internet files. So, logically, I guess you could force everyone to download 1GB or more of crap files when your site loads to see if you can force the problem to occur. However I can guarantee you that, using that method, no one would want to look at your source code so you'd be protecting yourself for nothing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top