943,929 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Apr 19th, 2007
1

hide html code on my website

Expand Post »
How can i hide my html code on my website? when browsing to it using IE,i can click on View source and see all my html code.
Is there anything i can install on my server to hide my site's html code?

Thanks
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
daabomb2002 is offline Offline
4 posts
since Mar 2007
Apr 19th, 2007
0

Re: hide html code on my website

I am not sure but i think there are some Code encrypting programs. If you can find one, i am sure you will do what you want.
Reputation Points: 8
Solved Threads: 0
Junior Poster in Training
jamshid is offline Offline
70 posts
since Jan 2006
Apr 19th, 2007
0

Re: hide html code on my website

In a word; No.

HTML is delivered to users as 'source code', which the user's browser then interprets. There is nothing you can do to protect HTML code; except trying to enforce your copyright if it's stolen.

Also, you can't easily 'scramble' or obfuscate HTML code as you would with other types of code; because even subtle changes will often have some visible effects.

The best you might get, is encrypting the page, saving it somewhere on your server; and responding to requests with a blank page that runs a Javascript function to collect, decrypt and display the page content.

But, as you can't encrypt Javascript programs either, and since you'd have to send a link in the page to a program that can collect and decrypt your pages; it's gonna by like holding sand in a sieve...

Still, you might be able to do some funky business at the server to hide the Javascript code by means of checking the referer in an HTTP header... so that only your pages can link to the JavaScript code. This still has drawbacks; some browsers might let a user see post-JS source code ( and all browsers have to download the code, and most cache it somewhere ); and it's going to greatly increase the loading times for your pages; and the pages' contents will be totally indeterminable by a search engine spider.
Last edited by MattEvans; Apr 19th, 2007 at 10:35 am.
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
MattEvans is offline Offline
1,091 posts
since Jul 2006
Apr 19th, 2007
0

Re: hide html code on my website

If you want to encrypt it, go to designerwiz.com.
Then go to js code makers, amd it's on the bottom of the page under security
Reputation Points: 9
Solved Threads: 0
Newbie Poster
connor4312 is offline Offline
16 posts
since Apr 2007
Apr 23rd, 2007
0

Re: hide html code on my website

Why do you want to do this? It sounds very selfish to me.

You are not going to hide any of the other files on your site that way. There are programs which can read your web directory.

The whole purpose of the web is openness. Don't try to defeat that.

I do know ways of hiding email addresses from robots, yet leaving them visible to users.
Last edited by MidiMagic; Apr 23rd, 2007 at 1:54 am.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007
Nov 24th, 2007
0

Re: hide html code on my website

Quote ...
Is there anything i can install on my server to hide my site's html code?
I don't sure, that there are softs, that can be installed on server and do it on fly, but you can use some dekstop softs or online tools, that do it.

Quote ...
You are not going to hide any of the other files on your site that way.
sometimes if u are webmaster/webdesigner [in work with your clients] you need it :-) hope you understsand what i mean :-)
Reputation Points: 12
Solved Threads: 0
Newbie Poster
Lusine is offline Offline
8 posts
since Nov 2007
Nov 25th, 2007
0

Re: hide html code on my website

If the file is used to render a website, it can't be hidden from the user. The browser needs the source code itself to do the rendering, and so it can always display it to the user.

There is no binary file in HTML as there is with other programming languages.

You can make some files private, but that means that nobody except you can access the files. They can't be used to render a web page on someone else's computer..

Since most HTML code is a straightforward solution to the wanted layout, there is probably no intellectual property in the source code anyway.
Last edited by MidiMagic; Nov 25th, 2007 at 3:53 pm.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007
Nov 27th, 2007
0

Re: hide html code on my website

If you want to HIDE proprietary code from the users, try developing the site in ASP or ASP.NET, but as MidiMagic stated, the HTML MUST be visible for the browser to interpret.
Reputation Points: 10
Solved Threads: 3
Light Poster
CertGuard is offline Offline
48 posts
since Jul 2007
Nov 27th, 2007
-1

Re: hide html code on my website

if you know any coding in css that would work to because all of your formating can be linked to an external style sheet that nobody knows the properties of.
Reputation Points: 9
Solved Threads: 0
Newbie Poster
twkillswitch is offline Offline
11 posts
since Nov 2007
Nov 27th, 2007
0

Re: hide html code on my website

Style sheets can be downloaded though. If you look in the <head> tags of any page on the site you can get the location of the CSS file. Once you know that all you have to do is put the path to that file in the address bar and it's yours.
Reputation Points: 10
Solved Threads: 3
Light Poster
CertGuard is offline Offline
48 posts
since Jul 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: CSS doubt
Next Thread in HTML and CSS Forum Timeline: Image layer behind content page





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC