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.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Sep 2004
    Location
    California
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile hide source code from html doc

    anyone here have a script that can hide all the code in html page? please help me . thank you . i know there is alot of software to do it , but i rather use the script .

  • #2
    Regular Coder
    Join Date
    May 2004
    Location
    San Jose, CA
    Posts
    388
    Thanks
    0
    Thanked 0 Times in 0 Posts
    First off, welcome to the forums. This is a great place to get answers and to help others, so good choice!

    Secondly, there's really no way to completely hide the code of a page. If you put it out there on the Web, other people will be able to get at it. Disable right click? No problem, just "save as..." and look at the code on your desktop. Disable "save as..."? No problem, there's a way to leech the site off the server with a hyperlink to the page.

    But just in case you still aren't convinced, check this out. It was among the first in a quick Google search for "protect html code disable left click" and looked interesting enough.
    -ts
    -Challenge The Status Quo
    -www.toddseal.com/rodin

  • #3
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    I doubt you have any html which is so amazing and unique that you need to hide it.

    Answer you're looking for: It's impossible

    Still want to hide it anyway? Then get a no-right-click script from www.javascriptkit.com if it'll make you happy. Just remember they're easy to get around and are very annoying for people who navigate with their right mouse button

  • #4
    Senior Coder
    Join Date
    Feb 2003
    Location
    Ontario, Canada
    Posts
    1,223
    Thanks
    0
    Thanked 0 Times in 0 Posts
    *puts on his football helmet and buckles up for yet another "protect my source?" thread*

  • #5
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts
    how to protect content on site
    help on hiding my source
    How to hide web source?
    http://www.codingforums.com/search.p...8&pp=25&page=2

    Please search before you ask -- this question has been asked ALOT, and it is a common response -- you cannot. If you find a way, feel free to post it up here, and I we will be sure to test it -- do not buy software that says they can do it, they cannot. It's the nature of the web.
    // Art is what you can get away with. <-- Andy Warhol
    ...:.:::: bradyjfrey.com : htmldog : ::::.:...

  • #6
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Take your website off the internet. Seriously, it's the only way.

  • #7
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can not protect your source code and the only good reason to hide it, is that it is so terrible you want to protect everyone from seeing it...

    So, whom/what are you trying to protect?
    Us or your code?

  • #8
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    Just out of curiosity, If I asked how to throw an alert in javascript, would 10 people answer my question with:

    It's like this:

    Code:
    alert("");
    After the first person answered it? Hmmm....?

    Die thread. . .die!!!

    Edit: OK BC I fixed it, but I don't think that was really relevent to my point.


    Basscyst *Sticks tongue out at Brothercake*
    Last edited by Basscyst; 09-23-2004 at 09:43 PM.
    Helping to build a bigger box. - Adam Matthews

  • #9
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Basscyst
    Just out of curiosity, If I asked how to throw an alert in javascript, would 10 people answer my question with:

    It's like this:

    Code:
    alert();
    After the first person answered it? Hmmm....?
    They'd be wrong if they did - alert must take an argument, at the very least an emppty string:
    Code:
    alert("");
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark


  •  

    Posting Permissions

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