| | |
hide html code on my website
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2007
Posts: 4
Reputation:
Solved Threads: 0
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
Is there anything i can install on my server to hide my site's html code?
Thanks
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.
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.
Plato forgot the nullahedron..
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.
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.
Daylight-saving time uses more gasoline
•
•
Join Date: Nov 2007
Posts: 8
Reputation:
Solved Threads: 0
•
•
•
•
Is there anything i can install on my server to hide my site's html code?
•
•
•
•
You are not going to hide any of the other files on your site that way.
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
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.
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.
Daylight-saving time uses more gasoline
![]() |
Similar Threads
- Encrypting HTML Code and SEO Pickup... (HTML and CSS)
- Urgent...Having problem with the following HTML code in IE7 (HTML and CSS)
- schedule html code (HTML and CSS)
- my html code isnt working please help (HTML and CSS)
- Please review my website - http://www.site4re.com/view (Website Reviews)
Other Threads in the HTML and CSS Forum
- Previous Thread: Flickering Sub-Menu
- Next Thread: External CSS Sheet
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7






