Blocking Source Code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Stang02GT
    Recognized Expert Top Contributor
    • Jun 2007
    • 1206

    Blocking Source Code

    Is there a way you can block people from right clicking on your page and being able to view your code?
  • eWish
    Recognized Expert Contributor
    • Jul 2007
    • 973

    #2
    It can be done using JavaScript. However, that is easily manipulated to get past it. Most of the browsers will all you to view the source without having to right click. So basically not really.

    --Kevin

    Comment

    • Stang02GT
      Recognized Expert Top Contributor
      • Jun 2007
      • 1206

      #3
      Originally posted by eWish
      It can be done using JavaScript. However, that is easily manipulated to get past it. Most of the browsers will all you to view the source without having to right click. So basically not really.

      --Kevin

      Altighty, thanks very much!

      Comment

      • nomad
        Recognized Expert Contributor
        • Mar 2007
        • 664

        #4
        Originally posted by Stang02GT
        Is there a way you can block people from right clicking on your page and being able to view your code?
        If someone want to view your code I can always save it and then open it in a web program (dreamweaver).

        nomad

        Comment

        • harshmaul
          Recognized Expert Contributor
          • Jul 2007
          • 490

          #5
          you can obsfucate your markup/code. making it really hard for a person to follow.

          but like nomad (i think) said you can just open it in dreamweaver.

          Comment

          Working...