Results 1 to 5 of 5

Thread: Turning off viewing source on website

  1. #1
    Join Date
    Sep 2008
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Turning off viewing source on website

    I have created a website using notepad (htm file) but cannot work out how to turn off website visitors from being able to view the source code.

    Could someone please let me know what the code is to turn this off so that others cannot access the source code.

    Thank you for your help in advance.


    Mabeline.

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    If you search the forums, you will see that there are several discussions about this and that there is no way to disable the viewing of the source code. If it is on the web, anyone can get it.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. The Following User Says Thank You to thetestingsite For This Useful Post:

    Mabeline (10-14-2008)

  4. #3
    Join Date
    Sep 2008
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thank you very much for the reply.


    Mabeline.

  5. #4
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yea,

    most of the script revolves around disabling the right click...
    other encrypt the HTML and etc (more complicated)


    so ya, you may want to try it out.

  6. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Both of which have ample negative effects that by far mitigate what dubious 'benefits' they may convey, and are easily surmountable.

    The question of why you would want to do this springs to mind. Perhaps, if your motivation is reasonable, there might be a saner method of accomplishing your goal.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •