Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to hide web source?

    I know use <script src=""></script>
    can hide webpage source and <body oncontextmenu="return false"> can block right button,but it is not enough so i want to know other method to protect my webpage source.
    Thank you.

  • #2
    New Coder
    Join Date
    Nov 2003
    Posts
    65
    Thanks
    1
    Thanked 0 Times in 0 Posts
    It is impossible.

    Look for the 3 million other threads on this and they will all tell you the same.

  • #3
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Log into ftp, highlight all files and press delete. Now you've made it so no one can copy your source and I'm sure you don't have anything worth keeping a secret

  • #4
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    personally, I hide it under the mattress, no one thinks to look there...

  • #5
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Why stop there, you may have them locally and a hacker might want to steal the dynamic drive code you copied! Burn your computer and bury the remains in the garden.

    [edit:] I've updated my sticky thread .. maybe some people read it .. at least they'll know.
    Omnis mico antequam dominus Spookster!

  • #6
    New Coder
    Join Date
    Jan 2004
    Location
    Malaysia
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Some websides tried to validate the right click to stop it from copying the source.

    But there is still ways to view it likes save the whole web page into local drive and can see it.

    I don't think I can find away to cover the source, same to pictures too.

  • #7
    Regular Coder
    Join Date
    Dec 2003
    Location
    USA
    Posts
    230
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I believe the best thing to do would be to make sure all the files are on your PC, and nowhere else, then place your PC on a rocket, which has a timed Nuclear bomb on it. Send the rocket into space, and wait for the Kaboom.

  • #8
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Paul Jr
    I believe the best thing to do would be to make sure all the files are on your PC, and nowhere else, then place your PC on a rocket, which has a timed Nuclear bomb on it. Send the rocket into space, and wait for the Kaboom.
    Ensure the hard drive is rigged with explosives as well, otherwise it might fall to earth.
    David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
    W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

  • #9
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Some websides tried to validate the right click to stop it from copying the source.
    yes you are right.if you know the url use
    view-source:url method
    can find the page code.
    And i know use <frameset> sometimes can protect my code.

  • #10
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    larasimone-

    I think you've missed out on the last few posts, and the "sticky" in the general web forum. ABSOLUTELY NOTHING can protect your code.

    Let's use a little metaphor here. Let's say that your server is a big folder with sheet music in it. And that your webpage is a song in that folder, written for piano. And let's pretend that the browser, the "interpreter" as it were, is a piano player. The piano player gets a set of instructions of what to play (the sheet music), and plays the song. See how this works? If the sheet music was garbled or hidden or protected, or whatever, the piano player wouldn't be able to read it and would end up playing some kind of abstract jazz. Which, you know, is cool if you're into that sort of thing.

    I don't know if any of that made sense, but take my word on it. Nothing will protect your source code from being viewed. If it's that important to you, I suggest you program your pages in Flash.

    -Rich

  • #11
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The browser needs the code to display the page. So, the browser must have the code. There's nothing you can do to stop the browser from showing the user the code.
    David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
    W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

  • #12
    Regular Coder
    Join Date
    Jul 2002
    Location
    Brighton
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts
    IMO its the very fact that we CAN see peoples code that helps us all to develop as programmers and designers. It allows us to learn instantly from new ideas and then ultimately create our own ideas which others may benefit from. As long as its not 'blatant' theft, i'm very pro sharing anyway.

  • #13
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The fact that you are trying to "protect" your HTML code says that it is not worth a dime
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #14
    Senior Coder
    Join Date
    Aug 2002
    Location
    A 4D universe
    Posts
    1,337
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Easy.

    Go into MS DOS, and type at the prompt:

    Code:
    format c:\
    That'll do the trick. If you don't have it, no one can steal it. This topic has been discussed countless amounts of time. Read the sticky about it in General Discussions.
    http://www.mudsplat.com - Web design, print, and marketing solutions.

  • #15
    Regular Coder
    Join Date
    Jan 2004
    Location
    Georgia
    Posts
    306
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh wow, if you disable right click, which is simpily done with javascript, go into control panel and make left click your menu clicker or whatever you want to call it. Or just Disable both clicks and make your site non-navigatable . Look, fact is this: if its not server side then you cannot "hide" the source code.
    ~Designer's Toolz~


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •