Hi friends How can we hide the html source code. when someone trying see code by using web browser source code.how can i hide source code?some body kindly help me
There is no way how to hide it ... Btw. What comes to my mind is, that you can only make it harder for human reader to read your HTML source code if you really want. For example by some really ugly formatting of whole HTML code on one long line. But that doesn't make much sense either, because it can be easily returned to correct formatting. (But not all users will know how to return it [easily] to nice formating. So you will eliminate some.)
You can use a piece of javascript right click to block, they will not be able to view your source code.
They will still be able to view the source code pretty easily. Either by selecting source code from browser menu e.g.: “View†> “View Source Code†or by using short cut that every browser has, or by saving whole page (HTML) to the disc from browser menu, etc. But it is true that javascript right click block will probably eliminate some users. Also, maybe by using frames he can eliminate some. But it is not the real solution = because no really working solution exists! Conclusion: It makes no sense to try to hide HTML source, because who will want to view it, he / she will find his / her way how to do it ...
i dont want to hide all codes, i saw some sites cant see their HTML code. i want to just hide HTML code, like CSS
You sure? They must be built in flash, I guess. And CSS can be hidden? I think it can be using @import instead of link. But it's not that hard to still locate the file.
I don't know for HTML that really possible or not. But i think it is not possible. But possible for PHP.
Here is the solution <iframe id="iframelive" frameborder="0" style="width:100%; height:100%" src="sourcepagelink.html/" > </iframe> Paste this iframe code in body section and source link is the original html page you want to show
I would suggest a mix of ways to hide your source code. Just to weed out some people. If they REALLY wanted to see it, then it would be a reward almost haha
i think its not possible to hide code,and why you want to hide ? is there any special code which nobody knows
You cant hide it atleast from any expert you can hide it from people by adding useless spaces at the start
As far as I know html code is always visible. You can use scripts to prevent copy and paste of the code (i.e by right clcik of the mouse) but not from having the html code dispaying on the screen. Chow chow, Kevin