SitePoint Sponsor

User Tag List

Results 1 to 15 of 15
  1. #1
    SitePoint Member
    Join Date
    Jan 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wink Disambling source code view!!

    well after lot of research i found in a lot of theards saying that its imposible to disamble the source code view in the window toolbar.. but finally I found this site that have the fucntion that im describing..


    start addy here:

    mortgagecalculators.ws
    /
    mortgage-payment-calculator
    .
    php

    end of addy:

    the address is separated in pieces because i cant post llinks and dont forget to include the extension php with the dot at the end of the address ..


    but note that if you click on the back history button,,, and then the forward.. the java doesnot work.....

    so,, i get into the source looking for some java call... but nothing found related to security disable source code...

    hope this info will get the attention of some pro to help us find a solution!! thanks in advance!!
    Last edited by xcitrate; Apr 13, 2009 at 17:12.

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,868
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    You are mistaken. It is impossible to block people from viewing the source. Even if they find a way to block all the options in your browser you can still add your own view source button into their web page itself. Also almost no browsers allow the page to block the menu options and if you are seeing a page that does then it is only because you have your browser configured to allow it.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    And of course you can just use file > save as, or open the url in notepad (or another application) or simply get the source files from your browser temporory files.

    Disabling functionality to "protect" your source code is pointless and has no effect.

  4. #4
    SitePoint Member
    Join Date
    Jan 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile

    Yepp! i forgot that.. thanks guys... but that page really have something that disamble the view source,, maybe as low level security.. but here i just found another solution free web tool that encrypt all the html code and is working.. it should be more interesting if someone knows how safe it is or is usefull or not.... I tried to get the html codes back from the encrypted html sample page with another tool the same site have,, but it was imposible to read the encrypted codes back again... hope this helps,, and thanks again!!

    addy start here:

    iwebtool com

    /

    html_encrypter

    addy end:


    converts this:

    <HTML>
    <HEAD>
    <TITLE>Example Page</TITLE>
    </HEAD>
    <BODY>
    Hello sitepoint dot com
    </BODY>
    </HTML>


    into this:

    <Script Language='Javascript'>
    <!--
    document.write(unescape('&#37;3C%48%54%4D%4C%3E%20%0D%0A%3C%48%45%41%44%3E%20%0D%0A%3C%54%49%54%4C%45%3E%45%78%61%6D%70%6C%65%20%50%61%67%65%3C%2F%54%49%54%4C%45%3E%20%0D%0A%3C%2F%48%45%41%44%3E%20%0D%0A%3C%42%4F%44%59%3E%20%0D%0A%48%65%6C%6C%6F%20%73%69%74%65%70%6F%69%6E%74%20%64%6F%74%20%63%6F%6D%21%0D%0A%3C%2F%42%4F%44%59%3E%20%0D%0A%3C%2F%48%54%4D%4C%3E%20'));
    //-->
    </Script>
    Last edited by xcitrate; Apr 17, 2009 at 00:39. Reason: clearly

  5. #5
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    JavaScript encrypting is useless, it can be decrypted just as quickly, please stop trying to find obtrusive ways to try and prevent users from accessing your source code. You have been told twice already it is impossible to prevent and it is NOT any kind of “security”, no matter how many "techniques" you find on the web, the only thing you are going to do is damage yourself and your viewer base. By trying to cloak your source code it seems like you have something to hide (are you trying to push malicious code?) and encoding your entire HTML will certainly mean the search engines will drop you hard. Just accept the fact that your source code does not require protection and it is pointless to try and achieve this because it cannot be done.

  6. #6
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    The encoded content ends up becoming unencoded so that the web page can show it to the user.

    Web browsers show you the DOM representation of the web page, which is completely separate from the source cod itself.

    Ergo, the encoded content isn't really protected. It's just a low wall that will stop some people who try to use it.

    How low a wall is the protection? Select the page contents, copy, and paste into Word.
    Last edited by paul_wilkins; Apr 17, 2009 at 06:22.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  7. #7
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Oh, and you're also stopping any browser with JavaScript turned off - INCLUDING SEARCH ENGINES - from seeing your content.

    Not a wise move...
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  8. #8
    SitePoint Zealot
    Join Date
    Apr 2009
    Location
    South Florida
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    also there are 1,000 of software outthere which allow to download any HTML page and save as a file or view the HTML code

    check this tool
    http://www.digitalcoding.com/free-so...ysis-tool.html

    This is a SEO tool, but it has the option to view HTML source code, also it has a feature to Tidying any compress HTML and view HTML Structure (DOM)

    this is just a one example, there are 1,000 of software out there may do some advance techniques to analyze HTML source code

  9. #9
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)

    Talking

    There's one aspect that we're missing here. Regardless of the effectiveness, taking the action to protect his page will make him feel better.

    *break out the trawler*

    Even though it may not be fully effective, it will stop most people.

    *get the deep sea nets ready*

    Who are we to get in the way of him protecting his page?

    *it's trolling time*
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  10. #10
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    pmw57, I think your hat is on too tight

    PS: It won’t stop anyone except those who were not actually interested in seeing his source code... counterproductive.

  11. #11
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Heck, I'm proud of my sourcecode! Wouldn't want to hide such a work of art myself...
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  12. #12
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,338
    Mentioned
    63 Post(s)
    Tagged
    3 Thread(s)
    xcitrate, yes, there is a way that you can prevent people from viewing your source code -- in fact, there are two ways

    the first way is real easy -- don't post it in the internet

    the second way is a bit trickier -- in the HEAD section of your page, place the following META tag:
    Code:
    <meta name="view-source" content="no!">
    note the exclamation mark means it's important

    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  13. #13
    SitePoint Zealot
    Join Date
    Apr 2009
    Location
    South Florida
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by r937 View Post
    xcitrate, yes, there is
    the first way is real easy -- don't post it in the internet
    good one

  14. #14
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by r937 View Post
    the second way is a bit trickier -- in the HEAD section of your page, place the following META tag:
    Code:
    <meta name="view-source" content="no!">
    note the exclamation mark means it's important
    That does not work

  15. #15
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by r937 View Post
    xcitrate, yes, there is a way that you can prevent people from viewing your source code -- in fact, there are two ways

    the first way is real easy -- don't post it in the internet

    the second way is a bit trickier -- in the HEAD section of your page, place the following META tag:
    Code:
    <meta name="view-source" content="no!">
    note the exclamation mark means it's important

    pft...a real http header is more effective


Tags for this Thread

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
  •