Web Analytics Made Easy -
StatCounter assistance - CodingForum

Announcement

Collapse
No announcement yet.

assistance

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • assistance

    how do i hide my view source or don't allow the user to see the view source or some vaildation for that.

    please come to my request positively

  • #2
    because of the way the internet works, it's simply not possible to hide your source. all possible ways of scrambling it, can be done, most of them with the same, simple line of javascript. all of the ways, of trying to make it inaccessible, don't work, because the code has to be stored on the user's computer, in order to be seen. there was one guy, who claimed to have come up with a way to do it using server side, and granted, i never was able to get his source, but he had to use an incredibly complicated system of frames, and http headers, and when i challenged him to make a standard home page using that technique, i never heard back from him.

    in practice, it's simply impossible to keep people from getting your code. if you have anything really worth protecting, copyright it, and get a lawyer.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

    Comment


    • #3
      My suggestion would be to delete all the files on your server.

      There are some interesting ideas about this topic at http://continue.to/hope
      Create accessible online surveys -::- Koobten.com - compare netbook prices and reviews -::- Affordable, reliable hosting for less than $20 per year
      Zend Certified Engineer

      Comment


      • #4
        well, if you're looking for real security on your files, then my preferred method is to actually set the server on fire. Mr. T personally recommends this, and his comments on the subject are:

        Ain't nobody gonna touch them files, foo'. You's about to be throwed!
        bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

        i am a loser geek, crazy with an evil streak,
        yes i do believe there is a violent thing inside of me.

        Comment


        • #5
          Well, though it is not possible to completely hide the source code of your page, it is possible to disguise it i.e "Encrypt It" and I guess ppl wont take the trouble to decrypt it
          There are HTML protectors available on the net that do it.

          You could also write your entire document as a JavaScript...like this:
          document.write(unescape(yourDoc))

          Here, yourDoc is your entire documents with characters like 'space' replaced by '%20'.......this could help in a way.
          Scripting | JavaScripts | PerlScripts | Python Scripts | Articles | My Journal

          Comment


          • #6
            i just had a brainwave about a solution actually, if you dissable the menu bar, then you could use a make a div that takes up exactly the screen size and put a transparent gif in in, it would be hard to pull off with all the different screen sizes but it could get the people of your source for long enough
            photoshop too expensive? use the GIMP! www.gimp.org

            Comment


            • #7
              thanks 4 the reply

              my thanks to all the members who have replied me.

              i m just a beginer in javascript and it may be possible that i may need ur help in near furture. so plz. help me whenever needed.

              i found the way to encrypt my files but is there any way to disable the view source function on the browser and on the menu bar. i think so it may cause a bit of a pain to the person try to **** my ideas

              Comment


              • #8
                you know daves right, if someone wants your source, they can get it
                photoshop too expensive? use the GIMP! www.gimp.org

                Comment


                • #9
                  Re: Re: thanks 4 the reply

                  Originally posted by Dave Clark


                  For your own amusement, I give you this:

                  var myWin = window.open("...", "...", "...,menubar=no,...");

                  That will create a window without the menu bar. There is no way to turn off the menu bar for the first window that your default page is loaded into. The following script will prevent right-click in IE and NS4:

                  PHP Code:
                  if (window.Event)
                    
                  document.captureEvents(Event.MOUSEDOWN);

                  function 
                  noRightClick(evt) {
                    if (
                  window.Event) {
                      if (
                  evt.which 1) {
                        return 
                  false;
                      }
                      return 
                  true;
                    }
                    return 
                  true;
                  }
                  document.onmousedown noRightClick;

                  function 
                  noContextMenu() {
                    
                  event.cancelBubble true;
                    
                  event.returnValue false;
                    return 
                  false;
                  }
                  document.oncontextmenu noContextMenu
                  OK?




                  thanks dave 4 ur reply. i m highly obliged.

                  and dave i wanna ask u 1 more ?.
                  i don't know asp. from where u think i can get the most simple explaination of how to start with asp. i have already bought a book wrox (unleashed) for asp

                  thanks once again

                  Comment


                  • #10
                    Re: thanks 4 the reply

                    is there any way to disable the view source function on the browser and on the menu bar. i think so it may cause a bit of a pain to the person try to **** my ideas.
                    Actually, for me that sort of user annoyance is an excellent protection: as soon as i stumble onto such a site, i immediately close the window and make sure never to return.
                    If you don't want anyone to take notice of your ideas, don't put them on the net.
                    Regards,
                    Ronald.
                    ronaldvanderwijden.com

                    Comment

                    Working...
                    X