Protect your page source code

Discussion in 'HTML & Website Design' started by abdobasha2004, Apr 21, 2008.

  1. #1
    abdobasha2004, Apr 21, 2008 IP
  2. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #2
    Pretty useless in my opinion, as this is easily circumvented. From what I can tell it is just turning <, <, and / to their hex representations.

    Honestly, you probably shouldn't have sensitive data in your source . . . otherwise, well, you probably just aren't that smart :p
     
    Louis11, Apr 21, 2008 IP
  3. 0cmAn

    0cmAn Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    cool.... i'll take a look. thanks!
     
    0cmAn, Apr 21, 2008 IP
  4. chaitanya.seo

    chaitanya.seo Banned

    Messages:
    625
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Great tool buddy,
    Thanks for sharing.
     
    chaitanya.seo, Apr 22, 2008 IP
  5. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #5
    Nice one , but a good percentage of user keeps javascript turned off :D
     
    it career, Apr 22, 2008 IP
  6. homemadejam

    homemadejam Well-Known Member

    Messages:
    143
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    145
    #6
    and you can easily decode it.. but i guess its kinda useful.. stops idiots from nicking your source code :D


    Jam
     
    homemadejam, Apr 22, 2008 IP
  7. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #7
    Also stops search engines from indexing your page.
     
    blueparukia, Apr 22, 2008 IP
  8. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #8
    How can it? Teh googlies can't use teh Javascript.

    But I agree with the sentiment. Nicking your source code? 99% of the HTML out there is total garbage. Not only is it not worth stealing, but it's not art anyway. It's not like stealing a book where someone creatively wrote a story. It's a bunch of freakin tags. If you're trying to hide it, it's because you're horribly ashamed that you wrote such total garbage, and then aren't smart enough to know that if the browser can see the code (and if it can't it cannot show the page), then the user behind that browser can also see the code.

    Seriously there is nothing in your code (in anyone's code I mean) that isn't on a bazillion other web pages. If it's a Javascript you're trying to hide (at least a script could be considered worth trying to hide I guess), it shouldn't be sitting in the HTML anyway.
     
    Stomme poes, Apr 22, 2008 IP
  9. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #9
    I have no idea if you meant to answer your own question or not :p
     
    blueparukia, Apr 22, 2008 IP
  10. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Oh, I thought you were saying that the Javascript was hiding the source from google... but if it's changing the >'s and /'s after the fact so people can't go to View Source, then no, as teh googlies would never start the script. If the page appears when running NoScript, then it'll appear for teh googlies.

    I dunno, I assumed the page linked to was using it itself... and I can see everything ok. Or are you supposed to paste the stuff that appears in the text box in place of your own page? How can a browser interpret that??

    btw, offtopic, can you look at something for me?
     
    Stomme poes, Apr 22, 2008 IP
  11. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #11
    I think so, and no idea. Maybe their is an external JS file?

    Is that directed to me? If so, then maybe.

    EDIT: Opera succesfully parsed <b>test</b> scrambled"

    
    <script>var U7=window,W8=document;var a1="%3Cb%3ETest%3C/b%3E";function V0(){var V0;V0=unescape(a1);W8.write(V0);}V0();</script>
    Code (markup):
    By the looks of it, it is passing hex values to the browser.
     
    blueparukia, Apr 22, 2008 IP
  12. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I'll PM you, it's simple.
     
    Stomme poes, Apr 22, 2008 IP
  13. Digitank

    Digitank Guest

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    no idea why you would want to do this. aif you have valuable code and logic keep it server side. html and css is not worth anything.
     
    Digitank, Apr 22, 2008 IP
  14. mygodamen

    mygodamen Peon

    Messages:
    60
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #14
    It's bad idea for SEO
     
    mygodamen, Apr 22, 2008 IP
  15. itcn

    itcn Well-Known Member

    Messages:
    795
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    118
    #15
    In short, there's no real way to obfuscate HTML. And no real reason, either.
     
    itcn, Apr 22, 2008 IP
  16. extrememanoj

    extrememanoj Peon

    Messages:
    70
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    SEO will be deficult for it....
     
    extrememanoj, Apr 22, 2008 IP
  17. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #17
    It will not be possible unless you have a <noscript> alternative, which defeats the purpose. I see no reason to hide your source.
     
    blueparukia, Apr 22, 2008 IP
  18. abdobasha2004

    abdobasha2004 Well-Known Member

    Messages:
    1,117
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    160
    #18
    yep this is one gr8 diasadv.
     
    abdobasha2004, Apr 23, 2008 IP
  19. mike.greenleaf

    mike.greenleaf Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Considering that a large number of Web page designers learned the trade from looking at the source code of other Web sites, it seems wrong to hide your source code and deprive future designers from learning from your example.
     
    mike.greenleaf, Apr 23, 2008 IP
  20. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #20
    If you are hiding your source code in the first place, your code is probably not good for future developers to learn from.
     
    blueparukia, Apr 23, 2008 IP