Page 1 of 7 123 ... LastLast
Results 1 to 10 of 65

Thread: how to disable view source

  1. #1
    Join Date
    Apr 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry how to disable view source

    hi!!! can you help me plsssss... i just wanna know how to disabble the source code i mean not just when you right click the mouse. i have a code that well disabble when you right click your mouse, and i want the whole source code will disabble so that all my visitors cant view my source code.. anyone plsssssss i rely need your help...thanx

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Skinny on this is, don't bother. Honest folks won't steal it and those that are bent on acquiring it can, no matter what you do.

  3. #3
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i have a code that well disabble when you right click your mouse
    And I have Firefox. Therefore, I can right-click.

    Anyway, the end of the story is:
    Anything you put online is subject to being stolen, disassembled and analyzed.

    If your HTML is so special you feel the need to protect it, don't put it online

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  4. #4
    Join Date
    Dec 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The source code compiler may be of use to you. You can find it at http://www.dynamicdrive.com/dynamicindex9/encrypter.htm. It is still possible to unscramble the scource code (and actually very easy if you know what you're doing,) but it is about as much as you can do.

  5. #5
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by mattZ
    The source code compiler may be of use to you.
    Please don't mention junk like that. It doesn't work and just makes a document reliant on scripting for no actual gain.

    Mike

  6. #6
    Join Date
    Nov 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    WOW! ALL those responses and not ONE that told how to do what the person wanted. AMAZING!

    (yes i know my response doesn't either. i was searching for the same thing he was and thought the "brilliant" (used VERY loosely) minds would have the answer. I WAS WRONG!)

  7. #7
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by taylorphoto
    WOW! ALL those responses and not ONE that told how to do what the person wanted. AMAZING!
    Did you consider that it's not possible to do what the person wanted? Evidentially not.

    With the exception of the post from mattZ, the OP was given honest and accurate advice.

    [I] thought the "brilliant" (used VERY loosely) minds would have the answer.
    Insulting regular posters to this forum wouldn't seem a very intelligent thing to do. Especially if you want help from any of them now, or in the future.

    I WAS WRONG!
    No, you just don't recognise an answer when you read it.

    Mike

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    1) You don't need to.
    2) You can't.
    3) Any attempts at doing so will more likely mess up your page than do any good.
    4) This is what copyright is for. (OK, that's a bit of an extension to 1), but I felt it needed its own point.)
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Dec 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    For fun, although it isn't a good thing to actually hide javascript, i have -for fun- attempted to disable all access.
    Heres what i did:
    - made js files be parsed by PHP
    - used MOD-Rewrite in htaccess to disable outside sources from connecting to my JS
    - and obviously linked to an external JS rather than writing it in the html source.
    - I also set headers to not cache the JS file

    The following steps made it 99% impossible to steal a JS file, however, all a person had to do was go to the JS file, although since its parsed you see a blank page and you cant download it, you can view source it and see the code again (so it didn't technically work, but it would block out 90% of idiots who try to steal it).

    Not only that, but when you have PHP engine parsing your JS file, you cause errors in your JS even when you set headers to disguise it, JS files seemed to break (so it didnt work good).

    The only true way to disguise a JS file is to encrypt it using an encryption program. (it also saves space and compresses your JS files). So then only someone who has the decrypter can decrypt it.

    BasicaLLY: If you put it online, there will be someone who can steal it ALWAYS, its impossible to hide anything, and in the WEB there is always a way to break/decode/hack anything, just depends on who bothers trying.

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The problem with your JS file is probably that the Content-Type header was being sent as "text/html" rather than "text/javascript." A simple
    Code:
    <?php header("Content-Type: text/javascript"); ?>
    at the top of your file should fix that.
    - used MOD-Rewrite in htaccess to disable outside sources from connecting to my JS
    How? The only way I know of to do this is using the Referer: header, which I certainly hope you wouldn't do as it would break your page for anyone behind a proxy or firewall that strips this header (and many do).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •