|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm sure this has come up before..but I'm looking for something not too difficult (as I am a beginner) to prevent others from veiwing my code. Any help is appreciated...but helpful help is appreciated more..
Thanks in advance |
|
#2
|
||||
|
||||
|
What code? What language? There are hundreds of languages out there - some are compiled into binaries or bytecode, some are just left as text and interpreted and complied at runtime.. bla bla bla. You're really going to have to give us more clues as to what you're doing.
christo
__________________
. Spiration channels: Free scripts, programming tutorials and articles Dotcut alerts: Online Press cuttings / news alerts Clearprop: UK microlight school, wiltshire Uk dating: UK safe dating with Topdates About Christo . . |
|
#3
|
|||
|
|||
|
I meant the source code..I dont want anyone messing with or copying my html codes and tags..so in plan words..I want to block the "View Source" command. Any ideas?..
|
|
#4
|
||||
|
||||
|
It's somthing that comes up regular as clockwork and there are various tools and scripts which attempt to do what you're looking for. You need to google for 'obfuscate html' or 'html obfuscation'. istr there are bits of javascript which can scramble body content with an onload() listener as the trigger.
christo |
|
#5
|
|||
|
|||
|
I'm pretty sure you can stop the 'View Source' option from working in Internet Explorer (I don't know how offhand), but I have no idea if it's possible with other browsers such as Mozilla - I honestly doubt it.
Even if you block the direct browser options to view the source, they still downloaded the file and it will be stored in a cache on the computer. There's no possible way to stop someone viewing source HTML if they want to, and really why should there be? You've got to take a serious look at your HTML and ask "Is there really anything here worth trying to *protect* from user's eyes?", chances are there really isn't. Why not leave it wide open and allow other people to look and learn from your layout if they like it? Last edited by sacrilege : October 1st, 2003 at 08:17 PM. |
|
#6
|
|||
|
|||
|
http://www.antssoft.com/htmlprotector/index.htm
This software sends the page as a string of escaped characters, and unescapes them on page load. However, this does not stop the user viewing the source via the menu bar in IE. And if I could really be bothered, I could unescape the source code to get proper tags and formatting etc. Due to client security, it is near impossible to actually change the menus of a users browser via html etc. So no matter what you do, someone can always see your source code ![]()
__________________
How can I soar like an eagle when I'm flying with turkey's? |
|
#7
|
||||
|
||||
|
And what exactly makes you think your HTML is so special that you should protect it from others anyway? It's a freakin' markup language! HTML isn't even programming! What it comes down to is this: for people to view your webpages or graphics, they have to download them. Once they are downloaded, people can do anything they want with them. All you can do is make it slightly more difficult for the clueless to get at your source. Determined folks will figure out a way to get your source, assuming it's worth looking at anyway.
The only options I've seen that pose any kind of barrier are javascript character encoders that are easily worked around by the moderately clueful, and which make completely useless pages should a user not have javascript enabled (a lot of people don't.) It's really not worth it, in my opinion. |
|
#8
|
||||
|
||||
|
I know I have a set of tools that encrypts PHP files so that people cannot veiw the source. Well actully I do it to make sure clients payme. Then I send them the source when they are happy and the check clears...
|
|
#9
|
||||
|
||||
|
princetab
How did you learn HTML? JavaScript? CSS?
__________________
# Jeremy Explain your problem instead of asking how to do what you decided was the solution. |
|
#10
|
||||
|
||||
|
Whatever nobbing around you do client side, it doesn't take a genius to slurp at least your entire index page within 10 seconds on telnet, or a simple socket connection, or a bit of fiddling with curl or wget. so if you really want to secure your html 100%, you're gonna be a long long time trying
![]() christo |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > How to hide code |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|