CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2002
    Location
    Reykjavik, Iceland
    Posts
    201

    How do you disable view source?

    Go to http://my.aol.com/ directly using IE browser. You can view the source either by right clicking or using the browser menu.

    Now go to the same page by going to http://www.aol.com and clicking on the red "My AOL" tab. (this is the route most users would take). Now try to view the source. It has been disabled!!

    How did they do this?

  2. #2
    Join Date
    Aug 2002
    Location
    Washington, USA
    Posts
    104
    I am able to view the source with IE 6.0.2800.1106

    Which version are you using? And where are you right-clicking? Have you tried selecting Source from the View menu instead?

    I also seem to remember something about there being a bug that would disable the View Source option in some situations...

    In any case, it doesn't appear to be anything AOL did.
    - Shawn
    MCP, VB6: Desktop Apps
    [ C# | VB | .NET | Java | VC++ | Perl | PHP | Javascript ]
    Unless otherwise stated, all sample code provided is UNTESTED.
    http://www.codemastershawn.com

  3. #3
    Join Date
    Aug 2002
    Location
    Reykjavik, Iceland
    Posts
    201
    I am using IE 6.0.2600.0000 on Windows 2000.

    Of course I tried selecting Source from the View menu. As I mentioned, when you do this nothing happens. Any time I right-clicked on an area that was not an image and selected View Source nothing happened. Note that it works on every site but this one.

    As you mentioned, its most likely an IE bug due to some certain situation.

  4. #4
    Join Date
    Aug 2002
    Location
    Washington, USA
    Posts
    104
    Originally posted by websmith99
    I am using IE 6.0.2600.0000 on Windows 2000.

    Of course I tried selecting Source from the View menu.
    No "of course" about it. You'd be surprised.

    The only thing I can recommend is that you upgrade IE. As I said, it's working fine here (also on Win2k). There isn't any way I know of that a site can disable your ability to view their source. OTOH, as I said, I do remember their being a bug in previous versions of IE that resulted in this behavior.
    - Shawn
    MCP, VB6: Desktop Apps
    [ C# | VB | .NET | Java | VC++ | Perl | PHP | Javascript ]
    Unless otherwise stated, all sample code provided is UNTESTED.
    http://www.codemastershawn.com

  5. #5
    Join Date
    Aug 2002
    Location
    Reykjavik, Iceland
    Posts
    201
    ShawnDev,

    Thanks for your reply. Could you please take a look at the previous threads that I started. They are all very challenging and have yet to be resolved. (If they are even solvable)

    Any insights or tips are greatly appreciated.

    Thanks

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured