Thread: View Source

    #1
  1. No Profile Picture
    DesertFox
    Guest
    Devshed Newbie (0 - 499 posts)
    Hello,

    I'm just wondering what needs to be done so that the "view source" of IE and Netscape displays only the text I want displayed.

    Can anyone recommend what books/research needs to be done?


    Thanks
  2. #2
  3. No Profile Picture
    dahamsta
    Guest
    Devshed Newbie (0 - 499 posts)
    View Source does exactly what it says on the tin, views the source of the current document. You can't tell it how much or how little of it to show.

    Well, technically, you can, if you want to go hacking the Netscape source code. But that would mean than only the browsers you've hacked will have the mod.

    Why do you want to do this? Are you trying to protect your source, or do you want to display your source to users in a certain format?

    adam
  4. #3
  5. No Profile Picture
    DesertFox
    Guest
    Devshed Newbie (0 - 499 posts)
    I'd like to protect parts of it.

    Well actually, I ran into a page that did exactly that. I clicked on view source and all I saw was a short copyright page.

    I was just curious on how that can be done.

    Maybe the entire page was a Java applet.
  6. #4
  7. No Profile Picture
    dahamsta
    Guest
    Devshed Newbie (0 - 499 posts)
    Well, I've heard of it being done, and people boasting that they can do it, but I've never actually SEEN it.

    A lot of the time, people trick you into thinking there's no source by hitting return a lot, so you have to scroll to get at the source. Most people don't notice the scroll bar...

    If you don't mind me asking, why do you need to protect it?

    adam

    [This message has been edited by dahamsta (edited 06-03-99).]
  8. #5
  9. No Profile Picture
    DesertFox
    Guest
    Devshed Newbie (0 - 499 posts)
    You're probably right about the enter key scroll hide trick.

    I'd like make a form with hidden variables and links to other pages.
  10. #6
  11. No Profile Picture
    dahamsta
    Guest
    Devshed Newbie (0 - 499 posts)
    Well, the only way to hide stuff like that really is to use CGI. You could hide your variables behind less obvious ones and your url's behind keywords. With HTML or JavaScript though, it's pretty much impossible.

    adam
  12. #7
  13. No Profile Picture
    scollo
    Guest
    Devshed Newbie (0 - 499 posts)
    You can also use an external .js file.

    <SCRIPT language='javascript' src='ext.js'>
    </SCRIPT>

  14. #8
  15. No Profile Picture
    dahamsta
    Guest
    Devshed Newbie (0 - 499 posts)
    scollo's right, you can use external JavaScripts, but that won't stop the detemined SOB's. Most people that will take the time to look at your source will know how to get at the JavaScript file.

    Again, for decent security, CGI is the way to go. But I love Perl, so I guess I'm biased...

    adam
  16. #9
  17. No Profile Picture
    click_46
    Guest
    Devshed Newbie (0 - 499 posts)
    Easy, think PHP Scripting

    click_46
  18. #10
  19. No Profile Picture
    dahamsta
    Guest
    Devshed Newbie (0 - 499 posts)
    Huh? Methinks I'll wait for Zend...

    adam

Similar Threads

  1. Introduction to Cocoon, XML XSL
    By guest in forum Development Articles
    Replies: 115
    Last Post: October 23rd, 2004, 07:14 PM
  2. Anyone using Zend Studio 3?
    By bcyde in forum Dev Shed Lounge
    Replies: 74
    Last Post: October 14th, 2004, 09:19 PM
  3. Finding Images in HTML
    By beardo in forum PHP Development
    Replies: 14
    Last Post: March 28th, 2004, 07:29 AM
  4. Smile Cam Java
    By Davwbs in forum Java Help
    Replies: 0
    Last Post: January 30th, 2004, 05:05 PM
  5. Setting up ODBC Connections
    By AliCat in forum Java Help
    Replies: 0
    Last Post: August 7th, 2003, 12:23 PM

IMN logo majestic logo threadwatch logo seochat tools logo