HTML help

Discussion in 'HTML & Website Design' started by sj2012, Apr 10, 2011.

  1. #1
    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
     
    sj2012, Apr 10, 2011 IP
  2. jareso

    jareso Well-Known Member

    Messages:
    70
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #2
    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.)
     
    Last edited: Apr 10, 2011
    jareso, Apr 10, 2011 IP
  3. aplinux

    aplinux Peon

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can use a piece of javascript right click to block, they will not be able to view your source code.
     
    aplinux, Apr 10, 2011 IP
  4. jareso

    jareso Well-Known Member

    Messages:
    70
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #4
    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 ...
     
    Last edited: Apr 10, 2011
    jareso, Apr 10, 2011 IP
  5. sj2012

    sj2012 Active Member

    Messages:
    257
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    68
    #5
    thanks friends. anymore ideas ?? :)
     
    sj2012, Apr 10, 2011 IP
  6. rahulparekh

    rahulparekh Member

    Messages:
    178
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #6
    Can't hide it. Minify the code like someone suggested.
     
    rahulparekh, Apr 10, 2011 IP
  7. sj2012

    sj2012 Active Member

    Messages:
    257
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    68
    #7
    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
     
    sj2012, Apr 10, 2011 IP
  8. rahulparekh

    rahulparekh Member

    Messages:
    178
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #8
    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.
     
    rahulparekh, Apr 10, 2011 IP
  9. webserv

    webserv Active Member

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #9
    I don't know for HTML that really possible or not. But i think it is not possible. But possible for PHP.
     
    webserv, Apr 11, 2011 IP
  10. webserv

    webserv Active Member

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #10
    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
     
    webserv, Apr 11, 2011 IP
  11. Marywallace66

    Marywallace66 Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    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
     
    Marywallace66, Apr 11, 2011 IP
  12. ajomehri

    ajomehri Active Member

    Messages:
    212
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #12
    if u hide it how can browsers read and display the page ?!
     
    ajomehri, Apr 12, 2011 IP
  13. johnnright

    johnnright Peon

    Messages:
    176
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    i think its not possible to hide code,and why you want to hide ? is there any special code which nobody knows :p
     
    johnnright, Apr 12, 2011 IP
  14. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #14
    You cant hide it atleast from any expert you can hide it from people by adding useless spaces at the start
     
    Bohra, Apr 12, 2011 IP
  15. Kevin Gmm

    Kevin Gmm Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #15
    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
     
    Kevin Gmm, Apr 12, 2011 IP