how to hide webpage source code?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ChineseSalon
    New Member
    • Dec 2004
    • 12

    how to hide webpage source code?

    If you do not want people to look at the web page source code, how do you hide the source code in Vbulletin?
    华人文化生活沙龙 http://ChineseSalon.com
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    Not possible....

    Comment

    • GearTripper
      Senior Member
      • Aug 2004
      • 440

      #3
      it's not possible, but you can make it difficult for the "average" user to get... i'm currently using the following script within my web pages and am wondering if it would be possible to add this into one the the vB templates, perhaps header?

      HTML Code:
      <script language=JavaScript>
       
      <!--
       
       
       
      var message="Function Disabled!";
       
       
       
      ///////////////////////////////////
       
      function clickIE4(){
       
      if (event.button==2){
       
      alert(message);
       
      return false;
       
      }
       
      }
       
       
       
      function clickNS4(e){
       
      if (document.layers||document.getElementById&&!document.all){
       
      if (e.which==2||e.which==3){
       
      alert(message);
       
      return false;
       
      }
       
      }
       
      }
       
       
       
      if (document.layers){
       
      document.captureEvents(Event.MOUSEDOWN);
       
      document.onmousedown=clickNS4;
       
      }
       
      else if (document.all&&!document.getElementById){
       
      document.onmousedown=clickIE4;
       
      }
       
       
       
      document.oncontextmenu=new Function("alert(message);return false")
       
       
       
      // --> 
       
      </script>

      Comment

      • Dennis Olson
        Senior Member
        • Oct 2002
        • 2789

        #4
        Actually, disabling the drag method is a bunch simpler than that. But anyone who knows HTML can get around that in about 5 seconds.

        Comment

        • xmitchx
          Senior Member
          • May 2004
          • 257
          • 3.8.x

          #5
          You can use an HTML obfuscator. Some programming knowledge would be needed to get it working with vB, though it is possible.

          Secure and license your PHP scripts with the ionCube PHP Encoder 12.0. Secure valuable code with bytecode compilation, encryption and licensing capabilities.

          Comment

          Related Topics

          Collapse

          Working...