/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] (IE) View > Source =’s “Scrambled Code”

Can a JavaScript, script be developed to “scramble” the viewed code when a web site browser views the source code of that particular page being viewed or is this impossible?

In other words:

When viewing a page click: View > Source (IE), and receive a Notepad view of the code, but it’s without the carriage returns, rendering the viewer with a very confusing notepad full of “scrambled” information?

Regards,

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceFeb 28.2006 — Anything is possible -- except making the result fool-proof as far as being able to easily de-scramble such a display. There is just no way to prevent someone from viewing and/or getting their own usable copy of anything that is sent to a browser. Impossible.
Copy linkTweet thisAlerts:
@blah1985Feb 28.2006 — Take this note: none of Google's Javascript is hidden and noone steals it so why do you need to "hide" it. It's not like whatever you do can't be recreated in a few min anyhow
Copy linkTweet thisAlerts:
@userloginFeb 28.2006 — You can obfuscate your scripts to a point that if anyone attempts to edit them the scripts wont work.

many people point out that it is pointless to do so but when you consider that a vast majority of users on the internet wouldnt even know what 'view source' does let alone know what 'HTML' and 'Javascript' are, these are 'Jargon' words that they recognise but dont fully understand.

if you take a look at the example here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/cbefd450-fe08-4dca-9dc1-de71eec05d84.asp and if you look deeper into it, you can find the free tool to endcode your scripts, its your choice but you have to remember that each time you come to edit, you have to go back to the original source code and then make a fresh encode and replace that page or .js file.
Copy linkTweet thisAlerts:
@BytesauthorFeb 28.2006 — Phpnovice - Understand fully any could be possible and for a moment of assuming a script could be developed to scramble the Notepad’s view of a page’s source code, the easiest way to get around to viewing the code would be to disable the JavaScript option in your browser, hit “refresh and then you could possibly see the page’s code. This is assuming a JavaScript routine was implemented to scramble it.

But most lookie-lous’ would take the trouble to investigate disabling JavaScript in their browser’s (I think)?

Userlogin – Very helpful, interesting reading and practical, but I’m not sure – on the server side of things, if the server will be able to digest the encrypted code received from my upload to the server.

Great idea, as I understand it, for file storage!

Thanks Folks for your time, skills and comments.

Regards,

?
Copy linkTweet thisAlerts:
@felgallFeb 28.2006 — Scrambling the source has no effect on people being able to view the unscrambled version.

See http://javascript.about.com/library/blsource.htm to obtain a script that can be installed into the favorites menu that can be used to view the unscrambled version of almost any source when the regular view source option displays it scrambled.

If you really want to scramble the content of your page then don't wast money on a program to 'encrypt' the source. http://javascript.about.com/library/blenc.htm can "protect" your source just as effectively as any $200 program (ie. adds 2 seconds to the time taken to obtain the source).
×

Success!

Help @Bytes spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...