Jump to content

Recommended Posts

Technically, there really isn't a way you can hide this from users, because of the way the internet works- your code is sent upon request to the user when he visits your web address, and then his browser decodes it, and draws the site.If you successfully hid the source from your viewers, you'd also succeed in hiding your webpage from them, as well...There are scripts that prevent "right-clicking", but those get in the way of plenty of things, especially scroll buttons, and I would advise against using them.Maybe you're asking the wrong question. Why would you want to hide your web source?

Link to post
Share on other sites

yea your chances of somebody stealing your HTML is pretty low. Most people could care less. if you code in only HTML (no php or anything) you could encrypt it into a few lines of javascript. But anyone with the time could decode it. it basically converts tag items into their ASCII equivelents.http://www.designerwiz.com/ad-framer.htm?h...ncryptHTML1.htm

Link to post
Share on other sites
  • 3 years later...
Guest FirefoxRocks

There is no point in hiding HTML code. If you manage to completely block off the View Source option, you can always run the page through the W3C validator and enable Show source.Or you can save the page to your computer and open it in a text editor.I highly doubt you can completely block off the view source. And as someone said, encrypting the code...it only takes a matter of time to decode it.

Link to post
Share on other sites

Yep, what everyone else says....and to re-ask a question of Nago's:

Why would you want to hide your web source?
Most people only look at html to study stuff. One thing that's always fun is I would like to know how someone designed a page but I discover code that links out to a css style sheet or some javascrip, etc. If I could I'd love to see the style sheet used.So if you're just trying to hide how you designed the web page's looks you could shoot for that. Dunno why you would but whatever suit ya. =) Edited by Trotun
Link to post
Share on other sites
Most people only look at html to study stuff. One thing that's always fun is I would like to know how someone designed a page but I discover code that links out to a css style sheet or some javascrip, etc. If I could I'd love to see the style sheet used.
following the path of the CSS file being called is usually a good way of finding it.
Link to post
Share on other sites
following the path of the CSS file being called is usually a good way of finding it.
hrm, weird that never worked before. I ended up going to a blank page last time. Didn't find anything when I checked source. Meh, I probably made some silly mistake. :)Thanks Scientist
Link to post
Share on other sites

in theory it should work, I'm pretty sure I've done it before. :)

Edited by thescientist
Link to post
Share on other sites

Yet another way is to push the enter button for about 100 lines, it will seem to not be there, and the browser will "skip" those lines and register only the actual HTML, unless they look at the scrollbar; that is one way to "hide" it!

Edited by HTML.Coder
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...