How can I hide my source code?

  • solarflere
  • Born
  • Born
  • solarflere
  • Posts: 1

Post 3+ Months Ago

How can I hide my source code? Not just encrypt it but realy hide it.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9090
  • Loc: Seattle, WA & Phoenix, AZ
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

...that coding in VBscript for ASP pages that the VB portion is completely invisible. I suppose, theoretically one could code the whole website in VB and the source would essentially disappear, but I can't for the life of me imagine why anyone would want to / need to. Virtually anything in HTML coding is pretty much a given and known by any designer, and it's beyond me what one would want to hide in a source code.

I did like that link to the weblockpro.com site though. That's not bad. I tried everything I knew and couldn't view it. The only thing I got was the main page source:

What's really interesting, though - is that I couldn't even paste the source code I did get here! Not bad at all. I'm guessing they are using a combination of cookies and VBscript to get the job done.
-----------------------------------
{edited} Never mind -- I just read the entire link to the former post and see it was done in JavaScript -- Interesting. I always knew you could code a whole site that way, but never wanted to waste the time to try it.

Good link.
  • dreamer7
  • Student
  • Student
  • dreamer7
  • Posts: 95
  • Loc: UK

Post 3+ Months Ago

You can do it in javascript by calling an external file instead of typing the code on the page but i think as one of the posts that big put up for you thats what you get for using open source, nothings hidden.
d7
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9090
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

If you call the javascript externally, you could still load that javascript file yourself and view the contents. Nothing would be hidden. If your browser can read it, so can anything else :wink:
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

exactly. there is no way to hide it completely. just make it harder to view.
  • MediaDesign
  • Loser
  • Loser
  • User avatar
  • Posts: 129
  • Loc: somewhere

Post 3+ Months Ago

solution to hide source code at 300$ :twisted: 8) :lol:
  • killercelery
  • Newbie
  • Newbie
  • killercelery
  • Posts: 13
  • Loc: Montréal, Québec

Post 3+ Months Ago

there's a way to make it harder for people to see the source sode (I guess this is for work, not a personal page):

Code: [ Select ]
<script type="text/javascript>
var message="You can't see the page code"
function click(e) {
    if (document.all) {
        if (event.button==2||event.button==3) {
        alert(message);
        return false;
        }
    }
    if (document.layers) {
        if (e.which == 3) {
        alert(message);
        return false;
        }
    }
}

if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
</script>
  1. <script type="text/javascript>
  2. var message="You can't see the page code"
  3. function click(e) {
  4.     if (document.all) {
  5.         if (event.button==2||event.button==3) {
  6.         alert(message);
  7.         return false;
  8.         }
  9.     }
  10.     if (document.layers) {
  11.         if (e.which == 3) {
  12.         alert(message);
  13.         return false;
  14.         }
  15.     }
  16. }
  17. if (document.layers) {
  18. document.captureEvents(Event.MOUSEDOWN);
  19. }
  20. document.onmousedown=click;
  21. </script>


it simply traps the mouse rigt click, but doesn't prevent someone to save the page on his computer and then look at the source.
It's just a way to make it harder, but as I said, I hope this isn't for a personal page cause "Human knowledge belongs to everyone".

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 154 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.