Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Nov 2003
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Disabling 'View Source'

    Hiya Guys,

    Could anyone please tell me whether its posisble to stop someone from seeing your code that is contained in a webpage by using the 'View Source' option? I have a script that contains a password to 'kick' an audio stream on an internet radio station, and I don't want people to be able to see this password within the script. Can anyone please let me know if its posisble, and if so how?

    Cheers in advance guys

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Canada
    Posts
    254
    Thanks
    0
    Thanked 0 Times in 0 Posts
    short answer... no way possible.
    long answer... this thread...
    http://www.codingforums.com/showthread.php?t=4437

  • #3
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Your best bet is to use a server side script like php to do the password then, because you can't stop the view source. But a server side script would be hidden from users.
    // Art is what you can get away with. <-- Andy Warhol
    ...:.:::: bradyjfrey.com : htmldog : ::::.:...

  • #4
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    The only way to stop people from viewing the source is not putting it online.

  • #5
    Senior Coder chilipie's Avatar
    Join Date
    Jul 2004
    Location
    Shrewsbury, UK Age: 16
    Posts
    1,117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Error 404
    The only way to stop people from viewing the source is not putting it online.
    Well said !

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    Canada
    Posts
    254
    Thanks
    0
    Thanked 0 Times in 0 Posts
    here is another good article about it...
    http://www.vortex-webdesign.com/help/hidesource.htm


  •  

    Posting Permissions

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