How to disable HTML source code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Paul
    Junior Member
    • May 2004
    • 11

    How to disable HTML source code

    i have a problem
    how do i hide the source of a website wich contains html or flash

    there are pictures involved on the website and they are not allawode to be downloaded (except when viewing the website)

    i'v already managed to disable the right mouse button but
    i don't know yet how to disable the source
  • kevin
    Love is life
    • Dec 2015
    • 83

    #2
    Unfortunatly there is no way to prevent people viewing your source. Even if you disable everything in the browser, the determined pirate could still download everything with minimum h***le.

    As for images, if they're displayed on screen, anyone could simply take a screenshot to steal them. One thing you can do for this is watermark your images - emboss your name or something lightly onto the image, a slight eyesore, but even if someone was to take a screenshot it would make it exteemly difficult to remove the watermark if it's done right.

    These technologies were not designed to be closed source, nor should they be - they are, after all, client-side and therefore the visitor should have the ultimate control over them.

    Disabling mouse clicks using JavaScript is dependent on the user having a JavaScript-enabled browser.
    External files, including images, javascripts and css, will be found in the visitor's browser cache

    Comment

    • Guest

      #3
      Disabling right click

      I read that you have disabled the right click can you tell me how you did this or direct my to some where I can learn this?

      countrygirl

      Comment

      • deepak
        Junior Member
        • Aug 2004
        • 8

        #4
        Disable right click

        Here is the script to disable right click
        Place this script on body

        <script language="JavaScript" type="text/JavaScript">
        function disableRightClick(e)
        {
        var message = " Ooopsss!!! \rRight click is disabled";

        if(!document.rightClickDisabled) // initialize
        {
        if(document.layers)
        {
        document.captureEvents(Event.MOUSEDOWN);
        document.onmousedown = disableRightClick;
        }
        else document.oncontextmenu = disableRightClick;
        return document.rightClickDisabled = true;
        }
        if(document.layers || (document.getElementById && !document.all))
        {
        if (e.which==2||e.which==3)
        {
        alert(message);
        return false;
        }
        }
        else
        {
        alert(message);
        return false;
        }
        }
        disableRightClick();
        </script>

        Comment

        • kevin
          Love is life
          • Dec 2015
          • 83

          #5
          good work, it will help webmaster and visitors

          Comment

          • punjabi_munda
            Junior Member
            • Feb 2006
            • 9

            #6
            yes u can hide the html code

            yes u can easily hide the code in html
            if u can make the site in frame u hide the code your site its the best way u hide the code of your site
            many type of site in using the frame code and u can't get html code u can get only frame code
            ok
            any dought send me post reply i wll tell you how can use the frame code on your site
            ok
            Last edited by punjabi_munda; 02-21-2006, 06:21 PM.

            Comment

            • darkstar_tfd
              Junior Member
              • Feb 2006
              • 10

              #7
              nice script, useful, just in some situations....

              Comment

              Working...
              😀
              😂
              🥰
              😘
              🤢
              😎
              😞
              😡
              👍
              👎