The "View Source" and "Save" Myth

Sharky Forums


Results 1 to 15 of 15

Thread: The "View Source" and "Save" Myth

  1. #1
    Reef Shark HypnoticAngel's Avatar
    Join Date
    Mar 2002
    Location
    California
    Posts
    275

    The "View Source" and "Save" Myth

    People say you cant disable View source in IE with html pages when Ive had seen View Source disabled. SO i know there is a way to do it, I just dont know how. Ive seen scripts that disabled the view source completely out of the html.

    I had a code for the no "Save" webpages but I lost it. I accidently bumped into that code when I modified a script by accident. So I know there is a code for that one.


    If anyone here knows either both or one of them, please post em. Thanks.

  2. #2
    Tiger Shark
    Join Date
    Mar 2001
    Posts
    615
    While I'm sure there are some out there, I think it's pretty pointless. I'd be willing to bet that I can get past any of them in a matter of seconds/minutes
    System specs:


    | Core i5 750 | GA-P55A-UD3 | 4.0 GB G.skill DDR3 1600 | eVGA 470 GTX |
    | Intel X25-M 80 GB SSD | WD 5000AAKS | Lian Li PC-7FN | Corsair TX750W |
    | Windows 7 Home 64-bit |

  3. #3
    Tiger Shark GrayCalx's Avatar
    Join Date
    Nov 2000
    Location
    Northern VA
    Posts
    569
    Originally posted by Zoma
    While I'm sure there are some out there, I think it's pretty pointless. I'd be willing to bet that I can get past any of them in a matter of seconds/minutes
    Wow, how helpful of you and rather annoyingly pointless.
    XP 1600+
    MSI KT333
    512 PC2700
    AOpen Geforce4 4200

  4. #4
    Hammerhead Shark Tekime's Avatar
    Join Date
    Dec 2001
    Location
    Falmouth, ME
    Posts
    2,347
    You can disable the alternate mouse click menu using the code from this site. You cannot disable it from the menu in IE though.

    I hope you do realize that doing this doesn't amount to anything but wasted code space, though. The only people this might prevent from looking at your source at those who have NO clue about computers, in which case you really don't need to prevent them from viewing it anyway 'cuz they won't know what it is.

    You can't protect your HTML because in order to view your site the browser first downloads the HTML. As a result, no matter what you do to prevent someone from viewing the source from within their browser, it's still cached on their hard drive. All you have to do is copy it out of temp. files and view it with a text editor.

    Even if you have the menu and right-click disabled, one can simply type "view-source:http://www.somesite.com" and there it is.

    Another thing to remember is that code like this is all JavaScript, HTML itself cannot achieve a single thing in this situation. If someone disables JavaScript for the page they get the view source option back.

    One JavaScript method I've seen is to encode all of the HTML and then decode it with JScript again, so view source just shows a bunch of \00 stuff. Still doesn't do much because they can just reverse the JScript function, and it also takes a really long time to render a page.

    There really is no good way, anyone who wants to see your code will see it, and trying to stop them is just going to annoy the good people who want to view a site normally.
    Stuff and stuff

  5. #5
    Tiger Shark
    Join Date
    Mar 2001
    Posts
    615
    Wow, how helpful of you and rather annoyingly pointless.
    At least I gave him some information, while your post was just an annoyingly pointless, moronic flame.
    System specs:


    | Core i5 750 | GA-P55A-UD3 | 4.0 GB G.skill DDR3 1600 | eVGA 470 GTX |
    | Intel X25-M 80 GB SSD | WD 5000AAKS | Lian Li PC-7FN | Corsair TX750W |
    | Windows 7 Home 64-bit |

  6. #6
    Expensive Sushi
    Join Date
    Mar 2001
    Posts
    13

    Re: The "View Source" and "Save" Myth

    Originally posted by HypnoticAngel
    People say you cant disable View source in IE with html pages when Ive had seen View Source disabled. SO i know there is a way to do it, I just dont know how. Ive seen scripts that disabled the view source completely out of the html.

    I had a code for the no "Save" webpages but I lost it. I accidently bumped into that code when I modified a script by accident. So I know there is a code for that one.


    If anyone here knows either both or one of them, please post em. Thanks.
    You can't hide the source. Period. You prolly fell for the newbie trick by including a bunch of newlines so it looks like the source is empty, but scrolling down reveals different. Isn't your sig a tad too long?

  7. #7
    Hammerhead Shark Tekime's Avatar
    Join Date
    Dec 2001
    Location
    Falmouth, ME
    Posts
    2,347

    Re: Re: The "View Source" and "Save" Myth

    Originally posted by fallenang3l


    You can't hide the source. Period. You prolly fell for the newbie trick by including a bunch of newlines so it looks like the source is empty, but scrolling down reveals different. Isn't your sig a tad too long?
    Actually, as I mentioned, you can hide the source through encoding. It is reversable, but it can actually, technically, be hided. It's dumb, I'll admit, and I would have to laugh at someone spending days programming encoding/decoding functions in JScript, but it can be done.

    Oh and with your next post try and be a little more immature, I'm sure you can do it... just a few more pointless slanders... :rolleyes:
    Stuff and stuff

  8. #8
    Tiger Shark
    Join Date
    Feb 2001
    Location
    Satan Country
    Posts
    564
    You can still see the unecoded source looking through the menus.
    I'm half Scottish and half French.

    I surrender to alcohol.

  9. #9
    Hammerhead Shark e_dawg's Avatar
    Join Date
    Jan 2001
    Location
    Earth, Western Hemisphere, North America, US, UT, SLC
    Posts
    2,628

    Re: Re: Re: The "View Source" and "Save" Myth

    Originally posted by Tekime


    Actually, as I mentioned, you can hide the source through encoding. It is reversable, but it can actually, technically, be hided. It's dumb, I'll admit, and I would have to laugh at someone spending days programming encoding/decoding functions in JScript, but it can be done.

    Oh and with your next post try and be a little more immature, I'm sure you can do it... just a few more pointless slanders... :rolleyes:
    I once captured a VB script email worm in a matter of 5 minutes by using its own functions to decode the code (it was encoded multiple times over with different functions that were obvious once you decoded it)... So, there really is no way to encode it so it cannot be read. All anyone that wants to read it need do is use the happy little decoding functions you had to send with the page (or else the browser wouldn't have been able to decode it anyway) to decode them, which defeats the laborious task of hiding it.



    Also, seriously, what are you so afraid of, someone stealing your site? :rolleyes: Drop a copyright notice in there and be done with it, just like anything, that's all the protection you really can get and it doesn't mean anything unless you own a pack of rabid lawyers.
    Last edited by e_dawg; 07-04-2002 at 11:34 AM.

  10. #10
    Hammerhead Shark Tekime's Avatar
    Join Date
    Dec 2001
    Location
    Falmouth, ME
    Posts
    2,347

    Re: Re: Re: Re: The "View Source" and "Save" Myth

    Originally posted by e_dawg

    I once captured a VB script email worm in a matter of 5 minutes by using its own functions to decode the code (it was encoded multiple times over with different functions that were obvious once you decoded it)... So, there really is no way to encode it so it cannot be read. All anyone that wants to read it need do is use the happy little decoding functions you had to send with the page (or else the browser wouldn't have been able to decode it anyway) to decode them, which defeats the laborious task of hiding it.
    I belive you, and like I said - it's ridiculous to do and it IS reversable. I was stating that it can be done (obviously on a superficial level). Also I'm not sure what you're pointing out by saying it took 5 minutes, since I said it would take days to make the encoding/decoding scripts, not just decode one. (well not days but certainly would take some work...).


    Also, seriously, what are you so afraid of, someone stealing your site? :rolleyes: Drop a copyright notice in there and be done with it, just like anything, that's all the protection you really can get and it doesn't mean anything unless you own a pack of rabid lawyers.
    Um.. I'm not sure this is intended for me too, but if so PLEASE read the damn thread.

    Trying to hide your source is ultimately a joke - if I didn't make my opinion clear enough then there it is
    Stuff and stuff

  11. #11
    Hammerhead Shark e_dawg's Avatar
    Join Date
    Jan 2001
    Location
    Earth, Western Hemisphere, North America, US, UT, SLC
    Posts
    2,628

    Re: Re: Re: Re: Re: The "View Source" and "Save" Myth

    Originally posted by Tekime
    I belive you, and like I said - it's ridiculous to do and it IS reversable. I was stating that it can be done (obviously on a superficial level). Also I'm not sure what you're pointing out by saying it took 5 minutes, since I said it would take days to make the encoding/decoding scripts, not just decode one. (well not days but certainly would take some work...).
    I am agreeing and pointing out that all effort is lost because it takes 5 minutes to decode it using the script it'd take days to write (as you indicated)... I just thought I would agree and give an example of the total futility of the project to reiterate the point.

    Um.. I'm not sure this is intended for me too, but if so PLEASE read the damn thread.

    Trying to hide your source is ultimately a joke - if I didn't make my opinion clear enough then there it is
    Sorry, man, I was responding to the creator of the thread in agreement with your point... Just trying to help add credibility to your statement.

  12. #12
    Hammerhead Shark Tekime's Avatar
    Join Date
    Dec 2001
    Location
    Falmouth, ME
    Posts
    2,347
    Thanks for clarifying e_dawg, didn't mean to be so rude but I guess I was taken up by all the angst this thread was creating
    Stuff and stuff

  13. #13
    Texan Dragon Moderator Galen of Edgewood's Avatar
    Join Date
    Sep 2000
    Location
    Ft Irwin, CA
    Posts
    5,602
    GrayCalx and Zoma...

    Please read this again. Apparently y'all don't quite get the idea that you are not to flame.

    Zoma, I know he started it first, but that doesn't mean that you need to continue it...
    Dragon of the OC Crusaders

    Break the rules and you're snack food for this dragon...

  14. #14
    Catfish daFreak's Avatar
    Join Date
    Oct 2001
    Location
    Orange County, CA
    Posts
    223
    This may not help much, but I once say a webpage that used a script to encode the HTML so when it was viewed it was completely scrambled. I wish I could tell you the name of the program that did it, but I can't seem to remember. I'm sure if you check out enough "illegal software" sites you'll run across it eventually.
    Intel P4 - 2.0GHz / Intel Motherboard D850MVL / Samsung PC800 Ram - 512MB / VisionTek GeForce4 Ti4600 / WD 120GB 7200 8MB Cache HD / IBM 40GB 7200 ATA HD / Toshiba 16x/48x DVD-ROM / LiteOn 40x12x48 CD-RW / Viewsonic p95f - 19" flat / Windows XP Professional

  15. #15
    Mako Shark dighn's Avatar
    Join Date
    Nov 2000
    Location
    Vancouver, BC Canada
    Posts
    3,171
    Originally posted by daFreak
    This may not help much, but I once say a webpage that used a script to encode the HTML so when it was viewed it was completely scrambled. I wish I could tell you the name of the program that did it, but I can't seem to remember. I'm sure if you check out enough "illegal software" sites you'll run across it eventually.
    that idea was mentioned and refuted several times in this thread :rolleyes:
    .

Posting Permissions

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