/    Sign up×
Community /Pin to ProfileBookmark

RE: How to hide your source code.

Here’s another way to do so. Even if you put a no right click thing or do anything else, I’ll get in. I can hack almost any page, and make it useful.

Here’s one thing you can do: Add Frames.

A frame is basically one page over another, therefore showing a security barrier over any page. They’ll just see:

[CODE]// Security Frame for protection.[/CODE]

I do believe that theyre is a way to go past the frame utility but I dont know how. Theyre may be a program or a simple code to figure it out. I haven’t really looked into it.

What you “Could” do is add more than one frame. If a code is made to see behind a frame, they’ll still see a backup frame under the same URL, therefore never seeing that actual thing. Its probably possible to make a multiple function with a program though.

Hope this helps.

** Fred, you can add this to your post if you’d like ?, just don’t forget the (c)?

to post a comment
JavaScript

9 Comments(s)

Copy linkTweet thisAlerts:
@felgallApr 03.2007 — I know of two ways to get the page source which can be blocked regardless of what you do that involve using one or two mouseclicks respectively.

Adding frames or disabling window.open will only defeat the third easiest way which also involves two mouse clicks.
Copy linkTweet thisAlerts:
@snipingkidauthorApr 03.2007 — You just lost me big time. Is that good or bad?
Copy linkTweet thisAlerts:
@Jeff_MottApr 03.2007 — Part of what felgall was getting at (I think) is that it takes only one extra click of the mouse to see the source of a framed page. In Firefox, for instance, you would right-click and select "this frame" > "view frame source." Frames, therefore, don't add any security.
Copy linkTweet thisAlerts:
@KorApr 03.2007 — snipingkid, it looks like you jave not read attentively Fred's article. By short, [I]you can not hide the HTML/javascript code[/I]. You may try and do the read tricky, but there is [B]no[/B] 100% sure method to hide the HTML/javascript content. This is an axiom.

It does not worth the effort.
Copy linkTweet thisAlerts:
@Jeff_MottApr 03.2007 — snipingkid, it looks like you jave not read attentively Fred's article.[/quote]In the OP's defense, the article you're referring to gives a general overview of the topic and doesn't discuss specific cases, such as frames. There's no way for any reader to be sure that Fred hasn't overlooked some detail.
Copy linkTweet thisAlerts:
@KorApr 03.2007 — In fact it is not about Fred's article by all means. It is about the fact that for years and years some people try to discover the Perpetuum Mobile, which is a noble but an utopian task.

There might be several ways to "try to protect" your content, but none of them is 100% sure. HTML and javascript are client-side languages, thus they can not be hidden. They might be crypted, moved to files with other extensions in cache, or things like that. But if a skilled user wants to copy something from the content, he will do it by all means.

This is what I wanted to say.
Copy linkTweet thisAlerts:
@Jeff_MottApr 03.2007 — I was never trying to say that your conclusion was wrong. I meant that accusing the OP of not being attentive to some unreferenced article (the first sentence of your first post) wasn't justified. Remember that even though this may be an old topic for you and me, it's probably new for the OP.
Copy linkTweet thisAlerts:
@KorApr 03.2007 — maybe I could edit Fred's article and add some notes about that...?

Yea, you might be right... We are used for years with Fred's article, so right now probably we do not remember exactly what is all about ?
Copy linkTweet thisAlerts:
@felgallApr 03.2007 — I just have my browser add a "View Source" link to the bottom of every web page/frame it displays. Clicking that link displays the source the way the browser currently sees it. I use it for helping to resolve other peoples Javascript problems. It displays the page after any decryption and other alterations that the Javascript makes to the supplied page in order for the browser to be able to display it.

The two click solution is to use Netscape 7.0 which unlike the earlier and later versions actually saves a decrypted copy of any web page if you select Save As from the File menu after the Javascript has been applied.

Using frames does block view source bookmarklets which will work on any non-frames page except those that define window.open=null.

Since the first two solutions only require one or two mouse clicks to bypass ANY encryption or other attempts to block people from viewing the page source why waste any time or money on it. Even a $250 encryption program is a waste of money unless it has a money back guarantee in which case you should ask for your money back because none of them CAN work because the first two options I mentioned above can't be blocked. Of all of the encryption programs I have come across, only two block the third method, one by adding an empty iframe and the other by blocking popups, the rest are all vulnerable to that method as well.
×

Success!

Help @snipingkid 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 5.20,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...