say i write up a website , and is there away to hide my cofde,e like if sumone goes onto my website, that person right clicks and clicks on source, is here a way to hide it

    Nope. When a browser accesses a web page, the contents of that page is downloaded to the client computer, at which point you no longer control it. You might be able to disable the right click option to view source on some browsers via JavaScript, but that is easily bypassed by either using the browser menu option for view source, or simply turning off JavaScript (or using a browser like Firefox which allows you to disable the ability of JavaScript to do such things).

      [L3]sPARTAN wrote:

      wow my bad i i googled it , iih any webmasters out there want to hide there precious , html php water code go to this site its free

      http://www.htmlguardian.org/help_main.html

      i feel like idiot i should of googled it sorry

      Before you get convinced to buy their product, it took me about 1 minute to get the "decrypted" source code of their sample "encrypted" page (http://www.protware.com/e_demo.htm).

        [L3]sPARTAN wrote:

        ...is there away to hide my cofde,e like if sumone goes onto my website....there precious , html php water code...

        Sounds to me like you're doing a reasonable job of encryption yourself.

          You can do it with JS.

          The page is just a <div> and JS loads the correct file for the page.

          The included files would have to have hotlink protection to keep them safe.

          A sort of AJAX solution.
          It requires JS to be on and would probably cause all sorts of Search engine problems.

            No probably about it, it's death to search engine rankings

              Not to mention that you can still easily view the source if you have FireFox (possible needing the WebDeveloper addon - one any web developer should have :p).

                bradgrafelman wrote:

                Not to mention that you can still easily view the source if you have FireFox (possible needing the WebDeveloper addon - one any web developer should have :p).

                That's all I did. Opened the page in Firefox, selected the View Source -> View Generated Source from the Web Developer tool bar, copied and pasted it into HTML-Kit, then ran a Tidy indent/beautify to make it more legible, et voila: I had the entire page source.

                  It's impossible for the following reason:

                  You want the person to be able to view the page. For them to view the page you have to either provide them with a custom browser that will be able to decrypt the encrypted pages you send them, or provide the decryption mechanism as part of the page.

                  Because the software they're using has to be able to decrypt the page, or they won't be able to view it. If they have to decrypt the page to view it, why encrypt it in the first place?

                    Write a Reply...